README
Installation
- $
bundle install
- $
rake db:create
- $
rake db:migrate
- $
rake db:seed
- $
rake currentweather:bom
- $
rake currentweather:forecastio
- $
rails s
Set Up Recurring Task
If in "development" environment:
whenever --update-crontab
If in "production":
- Change the environtment from
development
toproduction
inconfig/schedule.rb
- Run from console
whenever --update-crontab
Notice
The values for the "Rainfall amount" of data rows with the source being "bom" will be empty for the first ten minutes. That is because the BOM only gives the data of "precipitation since 9 am". The "Rainfall amount" can only be calculated by getting the differences from two BOM readings.