Weather Extension Documentation

Real-Time Weather Data for Your Projects

Overview

The Weather Extension allows you to fetch current weather information for any specified city directly into your Turbowarp projects. It uses the Open-Meteo API for reliable, free weather data.

Blocks

Temperature

Gets the current temperature for a city.

temperature in [city] (°C)

Returns the temperature in Celsius (e.g., 15.5).

Humidity

Gets the current relative humidity for a city.

humidity in [city] (%)

Returns the humidity percentage (e.g., 60).

Wind Speed

Gets the current wind speed for a city.

wind speed in [city] (km/h)

Returns the wind speed in kilometers per hour (e.g., 12.0).

Weather Description

Gets a textual description of the current weather conditions.

weather description for [city]

Returns a text description (e.g., "Partly cloudy", "Clear sky").

Is it Daytime?

Checks if it is currently daytime at the specified city.

is it daytime in [city]?

Returns true if it's daytime, false if it's nighttime.

Example Usage


// Get weather for New York
set [currentTemp] to (temperature in [New York] (°C))
say (join [Temperature in New York: ] (currentTemp))

if (is it daytime in [Tokyo]?) then
    say [Good day, Tokyo!]
else
    say [Good night, Tokyo!]
end
                

Data Source & Limitations

  • Requires an active internet connection.
  • Weather data is provided by Open-Meteo.
  • City names are resolved to coordinates; ensure correct city spelling for accuracy.
  • Data is cached for 10 minutes to reduce API calls.
  • Humidity is based on the current hour's forecast.