Undefined Data when trying to get astrology data

  • 1
  • Problem
  • Updated 2 years ago
I'm trying to gather the sunrise and sunset times however when ever I run the web hook it returns undefined data and I'm not sure what I'm doing wrong. I was able to create a webhook to get the weather forecast (date and temps) without an issue. I'm not sure if I need to define the data types when trying to get astrology data. I am using Json.

http://api.wunderground.com/api/a40f611ad11e4632/astronomy/q/IA/Iowa_City.json

That is the webhook that was generated.





That is my actual code.

I am using the particle libraries and their photon device.

Thanks
Photo of Logan

Logan

  • 1 Post
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Ravi Yadav

Ravi Yadav

  • 82 Posts
  • 8 Reply Likes
Logan, 

Weather Underground API doesn't support webhooks. You would have to make a request and then parse the response.