A Prometheus exporter that periodically scrapes weather station data from Weathercloud and exposes metrics at /metrics.
Configuration can be provided via environment variables or a .env file:
| Variable | Required | Default | Description |
|---|---|---|---|
DEVICES |
Yes | — | Space- or comma-separated list of Weathercloud device IDs (or 4-letter METAR codes) |
METRICS_PORT |
No | 8080 |
Port for the Prometheus HTTP server (/metrics) |
SCRAPE_INTERVAL |
No | 600 |
Interval in seconds between Weathercloud API scrapes |
All station metrics include the device="<device_id>" label:
weathercloud_temperature_celsiusweathercloud_temperature_indoor_celsiusweathercloud_humidity_percentweathercloud_humidity_indoor_percentweathercloud_pressure_hpaweathercloud_dew_point_celsiusweathercloud_dew_point_indoor_celsiusweathercloud_wind_chill_celsiusweathercloud_heat_index_celsiusweathercloud_heat_index_indoor_celsiusweathercloud_thw_index_celsiusweathercloud_rain_daily_mmweathercloud_rain_rate_mm_per_hourweathercloud_wind_speed_meters_per_secondweathercloud_wind_gust_meters_per_secondweathercloud_wind_speed_avg_meters_per_secondweathercloud_wind_direction_degreesweathercloud_wind_direction_avg_degreesweathercloud_solar_radiation_watts_per_square_meterweathercloud_uv_indexweathercloud_visibility_metersweathercloud_last_update_timestamp_secondsweathercloud_scrape_successweathercloud_scrape_duration_seconds
This project is licensed under the MIT License - see the LICENSE.md file for details

