A small script that polls the WITS Free to air service using gchan's wits gem, and emails electricity price alerts for New Zealand via mailgun. Note that you will need to know which (parent) grid exit point you are connected to.
Make sure you have modified the .env
file to use your own mailgun details.
Modify .ruby-version
as you wish.
bundle install
Best run in a screen
session:
screen bundle exec ./main.rb
Or run as a background task:
bundle exec ./main.rb --no-output &
Fork and pull request. This was a very short and crude project to get something going. I won't be surprised if you do or don't want to contribute ;)