Weather data in response?

Tagged:

Currently contains 6 posts

Avatar

May 28, 2014 11:35

Scott Cochrane

The weather trigger looks good – but does it give me any weahter data?

I.e. if the temperature is above 38 F in New York – I can find out it is – but can I find the actual temperature ?

cheers, Scott

Avatar

May 28, 2014 11:53

John Armstrong

Hi Scott,

We released the WeatherTrigger API with the function to query past, current and forecast weather data to get a Yes or No response.

However, the good news is the API has been set up in such a way that we can add much more functionality, and we plan to do this over coming days/weeks/months.

Even better news for you is that we are about to release the functionality to enable the API to return ‘current weather’ data. This means you could ask a query of current weather, get a yes or no response, and also get the current weather data queried.

We expect this to be made available by Friday 6th June. We’ll update this post once available and we’ll contact you directly to let you know.

John from Weather Unlocked.

Avatar

June 23, 2014 10:07

Kyle Fraser

Yep, I’d second the request for the api to (optionally) return current weather data. Otherwise I think you’re going to see a lot of unnecessary requests just to get a simple bit of info…

Avatar

June 23, 2014 16:17

scottw

Hi Kyle,

Thanks for the feedback. The Trigger is design to allow you to ask a question more than get data – but we have completed an update to allow you to get the data values relevant to your query back – we just haven’t quite ticked off the documentation yet.

We will get this update out as soon as possible.

We are also working on an API with general weather data to return information on request – so there is yet more to come.

regards, Scott

Avatar

July 23, 2015 16:35

Mihai Simionica

Hi,

Judging by this thread, the functionality should be already in, but I can’t seem to get it to work displaying actual current data, rather than answer yes or no.
Could you please provide an example for how to query: What is the weather forecast for HA9 0PA, two days from now ? (I’m looking for temperature, cloud cover, wind speed, precipitation chance).

Kind regards,
Mihai

Avatar

July 23, 2015 22:21

scottw

HI Mihai,

You want to look at this page here >https://developer.weatherunlocked.com/documentation/response#yes-no-with-data

So the query looks like > http://api.weatherunlocked.com/api/trigger/51.50,-0.12/current temperature gt 16 includecurrent?app_id={APP_ID}&app_key={APP_KEY}

So your query with postcode would include “includecurrent” to get the current data. For forecast on postcode you could do something like..

Your query would look like: http://api.weatherunlocked.com/api/trigger/HA9 0PA/forecast next2d precipitationtype eq anyrain includecurrent

Hope this helps, Scott

Reply to thread
  1. If you're human, leave this field empty.