Skip to content

Hendriksie/OpenWeather-InfluxDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWeather-InfluxDB

Fetch weather data from OpenWeatherMap One Call API every 10 minutes and save it into an InfluxDB database.

Install

npm ci

Run

npm start

Configuration

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

About

Fetch weather data from OpenWeatherMap every 10 minutes and save it into an InfluxDB database.

Topics

Resources

Stars

Watchers

Forks

Contributors