Fetch weather data from OpenWeatherMap One Call API every 10 minutes and save it into an InfluxDB database.
npm ci
npm start
Set configuration options via ENV variables.
Name | Description | Default | Required |
---|---|---|---|
OW_URL |
OpenWeatherMap API endpoint | https://api.openweathermap.org/data/2.5/onecall |
No |
OW_API_KEY |
Your OpenWeatherMap API key (Here) | - | Yes |
OW_UNITS |
Units of measurement (Options) | metric |
No |
OW_LAT |
Geographical coordinates (latitude) of the location | - | Yes |
OW_LON |
Geographical coordinates (longitude) of the location | - | Yes |
OW_LANG |
Not really used, defaults to en (Options) |
en |
No |
INFLUX_HOST |
InfluxDB host | 127.0.0.1 |
No |
INFLUX_PORT |
InfluxDB port | 8086 |
No |
INFLUX_USERNAME |
InfluxDB username | - | Yes |
INFLUX_PASSWORD |
InfluxDB password | - | Yes |
INFLUX_DATABASE |
InfluxDB database | - | Yes |