All Projects → ErwinSteffens → darksky-influxdb

ErwinSteffens / darksky-influxdb

Licence: MIT license
Logs weather information from darksky.io to InfluxDB

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to darksky-influxdb

weatherBot
⛈ A Twitter bot for weather
Stars: ✭ 20 (-9.09%)
Mutual labels:  weather, darksky
DarkSkyKit
DarkSky.net API client written in Swift.
Stars: ✭ 33 (+50%)
Mutual labels:  weather, darksky
darksky
Forecast.io API wrapper in Go (Golang)
Stars: ✭ 74 (+236.36%)
Mutual labels:  weather, darksky
darksky2influxdb
Stores wheather forcecast data from darkskyapi into a influxdb database
Stars: ✭ 21 (-4.55%)
Mutual labels:  weather, influxdb
Jupiter
🌞 The Swift Weather Framework
Stars: ✭ 14 (-36.36%)
Mutual labels:  weather, darksky
MMM-forecast-io
Forecast.io Module for MagicMirror
Stars: ✭ 58 (+163.64%)
Mutual labels:  weather, darksky
epaper-clock-and-more
e-paper clock + weather + AQI + traffic delays - using Waveshare 2.7inch & 4.2inch eink displays running on Raspberry Pi
Stars: ✭ 34 (+54.55%)
Mutual labels:  weather, darksky
infocenter
Raspberry Pi weather, calendar, and internet radio with graphical, touch-based interface.
Stars: ✭ 18 (-18.18%)
Mutual labels:  weather
monitor system docs
No description or website provided.
Stars: ✭ 30 (+36.36%)
Mutual labels:  influxdb
coolme
A 🌜⚽⚽👢 Discord bot, invite ➡
Stars: ✭ 13 (-40.91%)
Mutual labels:  weather
inspector-metrics
Typescript metrics / monitoring library
Stars: ✭ 19 (-13.64%)
Mutual labels:  influxdb
bounded-disturbances
A k6/.NET red/green load testing workshop
Stars: ✭ 39 (+77.27%)
Mutual labels:  influxdb
react-weather-app
⛅️ PWA Weather App made with ReactJS
Stars: ✭ 147 (+568.18%)
Mutual labels:  weather
influxdb-ha
High-availability and horizontal scalability for InfluxDB
Stars: ✭ 45 (+104.55%)
Mutual labels:  influxdb
PyWeather
Viewing the weather in a CLI has never been this much fun. (ARCHIVED)
Stars: ✭ 28 (+27.27%)
Mutual labels:  weather
improver
IMPROVER is a library of algorithms for meteorological post-processing.
Stars: ✭ 76 (+245.45%)
Mutual labels:  weather
influx-proxy
InfluxDB Proxy with High Availability and Consistent Hash
Stars: ✭ 223 (+913.64%)
Mutual labels:  influxdb
dropwizard-influxdb-reporter
Dropwizard Integrations for InfluxDB.
Stars: ✭ 16 (-27.27%)
Mutual labels:  influxdb
Twitter-bot
Twitter bot which waits for #hashTag and sends weather update of city via tweets
Stars: ✭ 20 (-9.09%)
Mutual labels:  weather
weather-tools
Apache Beam pipelines to make weather data accessible and useful.
Stars: ✭ 72 (+227.27%)
Mutual labels:  weather

darksky-influxdb

Docker image which logs weather information from DarkSky.net to InfluxDB.

DarkSky key

A DarkSky api key can be requested here: https://darksky.net/dev. This key needs to be provided to the docker image as an environment variable.

You get 1000 requests per day for free. Enough to use for your personal weather logger.

Usage

An example of using this in docker-compose can be found here.

Run it once:

docker run -rm -it \
    -e DARKSKY_KEY=<your-darksky-key> \
    -e INFLUXDB_HOST=influxdb.myhost.io \
    -e INFLUXDB_PORT=8086 \
    -e INFLUXDB_DATABASE=weather \
    erwinsteffens/darksky-influxdb:latest

Run it every 10 seconds:

docker run -rm -it \
    -e DARKSKY_KEY=<your-darksky-key> \
    -e CRON="*\10 * * * * *" \
    -e INFLUXDB_HOST=influxdb.myhost.io \
    -e INFLUXDB_PORT=8086 \
    -e INFLUXDB_DATABASE=weather \
    erwinsteffens/darksky-influxdb:latest

Query the weather data from your InfluxDB instance. For example show average temperature for the last 7 days:

SELECT MEAN("temperature") FROM weather WHERE time > now() - 7d GROUP BY time(1d)

Environment variables

DEBUG

When set to any value, write request output to the command line.

CRON

When set the data will be updated on the given interval.

Examples:

  • *\10 * * * * *: update every 10 seconds.
  • * *\10 * * * *: update every 10 minutes.
  • * 5 * * * *: update every hour on the 5th minute.

DARKSKY_KEY

Your DarkSky api key. Request it here: https://darksky.net/dev

DARKSKY_UNITS

The metric units to use. Choose from:

  • auto: automatically select units based on geographic location
  • ca: same as si, except that windSpeed is in kilometers per hour
  • uk2: same as si, except that nearestStormDistance and visibility are in miles and windSpeed is in miles per hour
  • us: Imperial units (the default)
  • si: SI units

DARKSKY_LATITUDE and DARKSKY_LONGITUDE

Your geo coordinates to get the weater data for. You can find them here: http://mygeoposition.com/.

INFLUXDB_HOST

Hostname of IP of your InfluxDB server.

INFLUXDB_PORT

Port of your InfluxDB server.

INFLUXDB_DATABASE

Database to write to for InfluxDB.

INFLUXDB_USERNAME and INFLUXDB_PASSWORD

Credentials to use for InfluxDB.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].