manybots-weather is a Manybots Observer that notifies you of the Weather conditions in any Location, using the Yahoo! Weather API.
Having the weather conditions on your Manybots account enables other apps to use that information and create more useful information, like "you should water the plants today".
You need the latest version of Manybots Local running on your system. Open your Terminal and cd
into its' directory.
First, require the gem: edit your Botfile
, add the following, and run bundle install
gem 'manybots-weather', :git => 'git://github.com/manybots/manybots-weather.git'
Second, run the manybots-weather install generator (mind the underscore):
rails g manybots_weather:install
bundle exec rake db:migrate
Now you need to register your Weather Observer with Yahoo! to obtain an API Key.
-
Go to this link: http://developer.yahoo.com/
-
Click on the "My projects" link (you'll need to login or signup using your Yahoo! ID), and then on the "New Project" button.
-
Select a Standard project like shown below:
- Fill out the form and click "Get API KEY"
- Copy the AppID into
config/initializers/manybots-weather.rb
config.yahoo_app_id = 'appID'
You don't need to copy the secret.
Restart your server and you'll see the Weather Observer in your /apps
catalogue. Go to the app, select a location and start observing the weather right within Manybots.