How to find out what the returned values are?

Posted on
Thu Jan 12, 2017 7:50 pm
Jim offline
Posts: 150
Joined: Jul 20, 2003

How to find out what the returned values are?

I have set up a device (Type=WUnderground, Model=Wunderground Weather).

I then set up a trigger that if Forecast Precipitation - Day 2 > 40 skip watering

Does seem to be working. I tried the "Write Weather data to File ..." but does not seem to be writing out the file.

1) Does Forecast Precipitation - Day 2 return percent change of precipitation?

2) Is there a way to see what is coming back from the Underground API call to help debug?

3) In general is there a document that shows what values are returned for each of the API values? I found some older ones on the forum but not one for Wunderground Weather

Thanks,
Jim

Posted on
Thu Jan 12, 2017 9:35 pm
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to find out what the returned values are?

Jim wrote:
1) Does Forecast Precipitation - Day 2 return percent change of precipitation?

It does. Specifically, POP (Probability of Precipitation). http://help.wunderground.com/knowledgebase/articles/129082-what-is-pop

2) Is there a way to see what is coming back from the Underground API call to help debug? I tried the "Write Weather data to File ..." but does not seem to be writing out the file.

What version of Indigo are you using? The plugin generally requires Indigo 6 or above and should be writing all the weather data in question to either of two places (depending on your version of Indigo):

Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 6/Logs/
/Library/Application Support/Perceptive Automation/Indigo 7/Logs/

If that's not the case, I may have a bug that needs tending to.

In general is there a document that shows what values are returned for each of the API values?

Not as such. There is a Weather Underground API site located at: https://www.wunderground.com/weather/api/d/docs which is where I get my information. But I should note that not all the data that are available are included in the plugin.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Jan 12, 2017 9:51 pm
Jim offline
Posts: 150
Joined: Jul 20, 2003

Re: How to find out what the returned values are?

Thanks for the quick response Dave.

I am running Indigo 7

When I select "Write Weather data to File ..." is a dialog suppose to come up. Nothing happens and the Logs directory is empty.

/Library/Application Support/Perceptive Automation/Indigo 7/Logs

Jim

Posted on
Thu Jan 12, 2017 9:55 pm
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to find out what the returned values are?

Jim wrote:
Thanks for the quick response Dave.

I am running Indigo 7

When I select "Write Weather data to File ..." is a dialog suppose to come up. Nothing happens and the Logs directory is empty.

/Library/Application Support/Perceptive Automation/Indigo 7/Logs

Jim

Hmmm. You should see a note to the Indigo log window that says something akin to:
Code: Select all
   WUnderground                    Weather data written to: /Library/Application Support/Perceptive Automation/Indigo 7/Logs/2017-01-12 Wunderground.txt

I've just tested it here on my production server and it seems to be working fine.
Attachments
Screen Shot 2017-01-12 at 9.54.51 PM.png
Screen Shot 2017-01-12 at 9.54.51 PM.png (74.72 KiB) Viewed 2067 times

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Jan 12, 2017 10:03 pm
Jim offline
Posts: 150
Joined: Jul 20, 2003

Re: How to find out what the returned values are?

Dave I was looking in /Library on the machine running the front-end and not on the Mac running the server. The log is there. Sorry about that and thanks for the other answers.

Jim

Posted on
Fri Jan 13, 2017 4:40 am
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to find out what the returned values are?

Jim wrote:
Dave I was looking in /Library on the machine running the front-end and not on the Mac running the server. The log is there. Sorry about that and thanks for the other answers.

Jim

Wunderbar. Glad I could help.

Please feel free to post back with any other questions.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron