/weather-data-api

A simple python app that polls the DarkSkyMap API and displays weather statistics in a RESTful API

Primary LanguagePython

☔ weather-data-api ☔

This data stream acquired using the The Dark Sky Forecast API polls the API every minute to grab the distance of the nearest storm to Columbia University (rel. to Butler Library) and stores that in a redis store. At the same time, on every entry on the redis store, we calculate a moving average of the distance of the storm and we send an alert via twitter, alerting us of whether a storm is moving closer or further

Usage

  1. Install numpy, redis and birdy

  2. In one tab start an instance of redis:

     redis-server
    
  3. In another tab run the command:

     ./pipeline.sh
    
  4. Observe the Twitter account: @realtimetestin

  5. Bask in the beauty of the notifications