Skip to content

JakeBar/Randy-Mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Randy Mailer

Randy is a scheduled Mailer implemented in Ruby on Rails. It sends an email to preset users with the forecast.

About

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.

Screenshot

Configuration

  • Ruby 2.7.1
  • Rails 5.0.1

Setup

# install ruby dependancies
bundle install

Usage

# trigger emails
rake send_surf_report

Services used

  • 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.

Installation & Deployment

  • Install Rails
  • Configure smtp settings
  • Serve locally or with Heroku
  • If serving locally, use the whenever gem to configure chronjobs easily.

How to Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-newfeature)
  3. Commit your changes (git commit -am 'Some helpful feature')
  4. Push (git push origin my-new-feature)
  5. Create a new Pull Request

About

Randy Mailer - Surf Report Mailer written in Ruby on Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors