
Meteosource is a global weather data provider offering current conditions, forecasts and historical data through a REST API. The TapHome template connects to the Meteosource free tier API via HTTPS and reads current weather conditions and today’s daily forecast for a configured GPS location.
The template provides 8 read-only devices covering weather type, wind speed and direction, current temperature, daily min/max temperatures and precipitation (current and daily). The module polls the API every 5 minutes and caches the full JSON response — individual sensors then read from the cache at faster intervals. The free tier allows 400 calls per day and the template uses approximately 288 calls per day, which is well within the limit.
Configuration
Obtaining the API key
- Register a free account at meteosource.com/client/sign-up
- After registration, the API key is available in the account dashboard
- Copy the key — it will be needed when importing the template in TapHome
The free tier provides 400 API calls per day with a rate limit of 10 requests per minute. The TapHome template polls every 5 minutes (288 calls/day), which leaves a comfortable margin. The free tier requires a mention and backlink to Meteosource for commercial use.
Import parameters
When importing the template in TapHome, three parameters are required:
| Parameter | Description | Example |
|---|---|---|
latitude | Location latitude in decimal degrees | 48.1778 |
longitude | Location longitude in decimal degrees | 17.1426 |
apiKey | Meteosource API key from account dashboard | abc123def456... |
To find the coordinates for a location, right-click on Google Maps and select the coordinates from the context menu.
Module variables
After importing the template, one variable can be adjusted in the module settings:
| Variable | Description | Default |
|---|---|---|
tz | Timezone in tzinfo format | Europe/Prague |
The timezone determines how timestamps in the API response are interpreted. Users outside the CET/CEST timezone should change this value to match their location (e.g. America/New_York, Asia/Tokyo, UTC).
API endpoint
The module connects to www.meteosource.com over HTTPS (port 443) and calls:
| |
The template uses the ca (Canadian) unit system: Celsius for temperature, km/h for wind speed, mm for precipitation and hPa for pressure.
Device capabilities
Weather type
The Weather Type device is a multi-value switch that maps the Meteosource icon_num field (values 1–36) to 7 TapHome weather categories:
| Switch Value | Category | Meteosource icons (day) | Meteosource icons (night) |
|---|---|---|---|
| 0 | Clear / Sunny | 2, 3, 4, 5 | 26, 27, 28 |
| 1 | Clouds / Overcast | 6, 7, 8 | 29, 30, 31 |
| 2 | Rain | 11, 12, 13, 25 | 32, 34, 35, 36 |
| 3 | Drizzle / Light rain | 10 | – |
| 4 | Thunderstorm | 14, 15 | 33 |
| 5 | Snow / Freezing | 16–24 | – |
| 6 | Fog | 9 | – |
If the icon number is 1 or unrecognized, the switch defaults to 1 (Clouds). The weather type is polled every 30 minutes.
Temperature
Three temperature devices provide current and forecast data:
- Temperature – current air temperature at 2m height in Celsius. Uses a dedicated temperature sensor device type with error reporting if the API response is unavailable
- Temperature Max – today’s forecast maximum temperature in Celsius, read from the daily forecast section (
daily.data[0]) - Temperature Min – today’s forecast minimum temperature in Celsius, read from the daily forecast section (
daily.data[0])
Wind
- Wind Speed – current wind speed at 10m height in km/h (using the
caunit system). Reports an error if the cached response is unavailable - Wind Direction – wind direction in degrees (0–360, where 0/360 = North, 90 = East, 180 = South, 270 = West). This is the fastest-polled device at 15-second intervals, reading from the cached response
Precipitation
- Precipitation (1-hour) – current precipitation amount in mm. Reports an error if the cached response is unavailable
- Precipitation (Daily) – today’s total daily forecast precipitation in mm, read from the daily forecast section
Additional capabilities
The Meteosource API also exposes feels-like temperature, wind gusts, cloud cover, atmospheric pressure, humidity, visibility, UV index, dew point, wind chill, precipitation type and a text weather summary for current conditions. An air quality endpoint with PM10, PM2.5, NO2, CO, O3 and AQI is available separately. These can be added in a future template update.
Troubleshooting
All devices show NaN or no data
- Verify that the TapHome Core has internet access – the template requires outbound HTTPS connectivity to
www.meteosource.com - Check that the API key is valid and has not been regenerated
- Confirm the latitude and longitude values are correct decimal coordinates
- New API keys may require a few minutes to activate after registration
Stale or delayed readings
The module polls the Meteosource API every 5 minutes and stores the response in a cache variable. Individual sensors read from this cache at faster intervals (15 seconds to 1 minute). If the API call fails, all sensors continue returning their last cached values until the next successful poll.
The Meteosource API is a cloud service that requires an active internet connection on the TapHome Core. During internet outages or API downtime, the template will not receive updated weather data. The default timezone is
Europe/Prague– users in other regions must change thetzmodule variable for correct local timestamps.
