Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 697 Bytes

README.md

File metadata and controls

10 lines (5 loc) · 697 Bytes

CascoBaySewerBot

A Twitter notification bot for likely sewer overflow (CSO) events in Portland, Maine, based on weather and historical reports. A @pressherald project by @c_milneil.

The interesting stuff is contained in the bot.js file. There, the tweetConditions() function downloads current weather reports from the Weather Underground API, and, if conditions warrant, call the status() function to compose a tweet.

Configuration

These files are currently deployed as a Node.js app on Heroku. To adapt this code, you'll need to adjust the config.js file to include your own Twitter API and Weather Underground API keys.