This object is in archive! 

Can Zipabox retrive some data from an HTTP request?

Abdalrahman Hassanine shared this question 5 years ago
Need Answer

I have the following HTTP request:

https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%202487889&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys


when I put this url in the browser, the response has the following form:


  1. {
  2. "query": {
  3. "count": 1,
  4. "created": "2016-06-15T11:04:31Z",
  5. "lang": "en-US",
  6. "results": {
  7. "channel": {
  8. "item": {
  9. "condition": {
  10. "code": "29",
  11. "date": "Wed, 15 Jun 2016 03:00 AM PDT",
  12. "temp": "63",
  13. "text": "Partly Cloudy"
  14. }
  15. }
  16. }
  17. }
  18. }
  19. }

the response contains some data about the weather there. Can I use the HTTP Request block to retrive some data from this response and put it in virtual meter?

for example, I need to get the value of the tempreture ("temp")

Comments (3)

photo
1

Any answer ?

photo
1

I think only zipato can answer this question.

photo
1

I don t think that it will work. As the response is json you would need to parse it. And without the posibity to code in Zipabox I don't know how this should work.


You could run the request via a cron job on a server. Parse the response and send the values to the Zipabox.