tteggelit / OpenWeather-InfluxDB2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:JavaScript 100.0%