Skip to content

node.js app to check if internet connection is working and subsequently tweet the outage duration when the connection returns.

License

Notifications You must be signed in to change notification settings

JavaChilly/tattle-tweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tattle-Tweet

A simple node.js app that monitors basic connectivity via ping and reports the duration of the outage via twitter. You must create a twitter app profile (https://apps.twitter.com/) to generate api keys. All ping checks must fail in order for down condition to be met.

Copy config/default.js to customize. Define environment NODE_ENV={name of new config file}. (-.js) You can Define environment variables for twitter api keys or put them in the config file.

##environment variables:

  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • TWITTER_ACCESS_TOKEN_KEY
  • TWITTER_ACCESS_TOKEN_SECRET

config options

  • node.mode (development | production) - enable to see successful checks and pings that failed
  • ping.interval - milliseconds in between checks
  • ping.hosts - array of hostnames to ping
  • twitter.update_body - the tweet to send when we're able to ping again (%d will be replaced with the duration in seconds)

About

node.js app to check if internet connection is working and subsequently tweet the outage duration when the connection returns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published