Fonecal
Fonecal parses formula1.com for each Grand Prix and outputs an iCalendar file with every qualifying, practice, and race session for this year's 2014 Formula One season. All event times are converted to UTC time, allowing calendars to convert the event time to the user's current timezone.
The latest version of the calendar is hosted here: martinbmadsen.dk/files/f1cal.ics, and can be subscribed to in most calendar applications.
Note: Most users do not need to read past this point.
Installation
Add this line to your application's Gemfile:
gem 'fonecal'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fonecal
Usage
Simply require 'fonecal'
and call
$ Fonecal.create_ical
To create an iCalendar file in the current directory, readable by your favorite text editor. It is then ready to be imported in a calendar application.
TODO
A list of stuff I (might) eventually do.
- [ ] fix tests
- [ ] create a better CLI exposing more features
- [ ] add documentation
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request