Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

bensternthal/wunderground-influxdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This small node script pulls information from wunderground and pushes to infuxdb. It uses slack to notify of errors.

I use this to show outside conditions on my home weather monitoring dashboard.

Grafana

Wunderground Data

Bot pulls the following data for the zip specified.

  1. current_temperature
  2. current_humidity
  3. pressure_mb

Install

  1. npm install
  2. Copy env.dist to .env
  3. Populate .env with the correct values.
  4. Run with node app.js or for production use pm2 or similar.

Example Configuration

INFLUX_HOST=host.com
INFLUX_PORT=8086
INFLUX_USERNAME=weather
INFLUX_PASSWORD=foobar
INFLUX_DB=highgarden
SLACK_API_TOKEN=foobar
SLACK_CHANNEL=bots
SLACK_BOT_NAME=wu-status
WUNDERGROUND_KEY=foobar
UPDATE_FREQUENCY=1800000
ZIP_CODE=97214

InfluxDB Data

To see what data and how it is written to influxdb, see lib/influx.js.

SlackBot

If you do not want to use slack for notifications just comment out the bot lines in app.js.

About

Weatherunderground To Influxdb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published