Randy is a scheduled Mailer implemented in Ruby on Rails. It sends an email to preset users with the forecast.
This mailer will check if the surf forecast in Fairhaven is good in the next 24 hours. If the surf is good, a surf forecast is sent via email. The email includes the surf height, temperatures, forecast & and wind graphs.
- Ruby 2.7.1
- Rails 5.0.1
# install ruby dependancies
bundle install# trigger emails
rake send_surf_report- Heroku. For hosting & scheduling. Can be configured to execute a rake task every 10 minutes, hour or day.
- Magic Seaweed API. Used to acquire all surf data. Data is already formatted and processed.
- Install Rails
- Configure smtp settings
- Serve locally or with Heroku
- If serving locally, use the whenever gem to configure chronjobs easily.
- Fork it
- Create your feature branch (git checkout -b my-newfeature)
- Commit your changes (git commit -am 'Some helpful feature')
- Push (git push origin my-new-feature)
- Create a new Pull Request
