A Ruby wrapper for the Tomorrow.io weather API. Right now this just supports the weather-forecast endpoint for API v4.
gem install tomorrowio_rb
require 'tomorrowio_rb'
Set your API key
Tomorrowiorb.api_key = ''
Make requests with (see API docs for more info)
result = Tomorrowiorb.forecast(location, timesteps, units)
Access results via
result.status
result.headers
result.body
- Check issues, PRs, and main branch to avoid duplicating work
- Fork the project
- Make changes
- Run tests with
bundle exec rspec - Push the PR
This project is not affiliated with Tomorrow.io nor my employer, GitHub. Contributions welcome although my resources for this volunteer project are limited. Feel free to submit small PRs although you may first want to open an issue and discuss my capacity to review a larger change. Alternatively, you are welcome to fork the project.
Because of my inexperience with Ruby, much of my knowledge came from referencing the archived forecast-ruby project.