Smaller version of request or ability to specify specific fields I would like

  • 1
  • Question
  • Updated 5 years ago
Is there a stripped down version of the response fields or can I specifically specify individual elements I would like? I only need 3 items (the average temp for yesterday, the high/low humidity for yesterday, and the precipitation for today). To get that I need to request /yesterday/conditions/. That gives me a full 30k of JSON data to parse through and about 2500 different fields. Generally that's not a problem for a big desktop client, but for my little arduino it takes a very long time.
Photo of puschridge

puschridge

  • 3 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
Not at the moment, but we're talking about ways to make a less verbose version.
Photo of puschridge

puschridge

  • 3 Posts
  • 0 Reply Likes
Thanks Brendan, You guys provide a huge amount of data, and that's generally a good thing, but if all you need is a couple simple fields it can be a pretty daunting task to parse through it all.

Thanks.
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
If I were you puschridge, I would code sort of a man-in-the-middle piece of software, located on another machine: you can code a serverside script and call it from your board, for example, that could hit the WU API, parse the feed and return just the data you need.