Getting data from forecast_io using Ruby on Rails -


i'm pretty new ruby , use in project in school. i've done blog tutorial , have little understanding of how works.

the question: can give me tip on how start data forecast_io api? simple request data page. should start?

thanks!

the forecast_io gem helps here. first need api key. can api key through registering here. forecast_io github readme helps you.

forecast::io.api_key = 'this-is-your-api-key' forecast = forecast::io.forecast(37.8267, -122.423) # params are: latitude, longitude forecast.currently # gives current forecast datapoint forecast.currently.summary # =>"mostly cloudy" 

you can read forecast.io api docs more details.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -