Jump to content

The ultimate community for Ruby on Rails developers.


Photo

new gem for Yahoo Weather API

gem yahoo weather yahoo_weather

  • Please log in to reply
5 replies to this topic

#1 Ildar Manzhikov

Ildar Manzhikov

    Passenger

  • Members
  • 3 posts

Posted 06 September 2013 - 01:10 PM

Hi guys,

Just released gem for rails to fetch weather from Yahoo Weather. It is support caching and I18n.

Please feel free to use https://rubygems.org...s/yahoo_weather

Write you comments and suggestions.

Thanks, Ildar


  • jack likes this

#2 Rowel

Rowel

    Controller

  • Members
  • 109 posts

Posted 06 September 2013 - 03:41 PM

Suggestion:  It'd be nice if you can pass the city or zip code directly to the gem, instead of the WOEID. 

 

Tried it... Doesn't work.... 

 

Gemfile:

gem 'yahoo_weather'
$ rails console
/Users/username/.rvm/gems/ruby-2.0.0-p247/gems/yahoo_weather-1.0.3/lib/yahoo_weather/client.rb:1:in `<top (required)>': uninitialized constant YahooWeather (NameError)


#3 Ohm

Ohm

    Guard

  • Members
  • 179 posts
  • LocationCopenhagen

Posted 07 September 2013 - 03:00 PM

Confirmed, I get the same error when trying it out. 


Blog: http://ohm.sh | Twitter: madsohm


#4 Ildar Manzhikov

Ildar Manzhikov

    Passenger

  • Members
  • 3 posts

Posted 07 September 2013 - 04:57 PM

Fixed. Thanks for comments.



#5 Ildar Manzhikov

Ildar Manzhikov

    Passenger

  • Members
  • 3 posts

Posted 07 September 2013 - 04:59 PM

 

Suggestion:  It'd be nice if you can pass the city or zip code directly to the gem, instead of the WOEID. 

 

 

Yahoo Weather API is not provide lookup by city or zipcode. I will think how better to add this feature.

 

Thanks, Ildar



#6 Rowel

Rowel

    Controller

  • Members
  • 109 posts

Posted 07 September 2013 - 06:14 PM

Check this out

 

http://developer.yah.../geo/geoplanet/

 

Find the WOEID of a specific place:
http://where.yahooap...[yourappidhere]


  • Kelli Shaver likes this





Also tagged with one or more of these keywords: gem, yahoo, weather, yahoo_weather

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users