Page 1 of 1

How to find out what the returned values are?

PostPosted: Thu Jan 12, 2017 7:50 pm
by Jim
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

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

PostPosted: Thu Jan 12, 2017 9:35 pm
by DaveL17
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

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

PostPosted: Thu Jan 12, 2017 9:51 pm
by Jim
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

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

PostPosted: Thu Jan 12, 2017 9:55 pm
by DaveL17
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.

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

PostPosted: Thu Jan 12, 2017 10:03 pm
by Jim
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

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

PostPosted: Fri Jan 13, 2017 4:40 am
by DaveL17
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