Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

nishantr
nishantr
6,326 Points

weather application in ruby on rails

I want to build a weather application in ruby on rails. can anybody suggest me a procedure to develop a weather app?

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

I'm not sure how many features you need, but its not too hard in Ruby or Rails. I usually start with the meat and the potatoes, how are you going to get a users input, query against weather, and what are you going to do with that information.

I built this a few months ago: http://weather.titanhomesllc.com. In this case, they were just worried about tracking wind speeds. So this checks the weather every 15-20 or so minutes, and if the current or forecasted weather is over 10mph, it will save that to the database. And that based on criteria, it may or may not send a text message as well.

I just initialized the api call in a cron job when rails initializes, and from there the rest was pretty "rails-y".