Page 1 of 1

Problem parsing 10-day forecast data. Error: (Line 1842....

PostPosted: Mon Nov 06, 2017 6:49 am
by norcoscia
Hi, Dave, I noticed this error in my log about the same time yesterday (and then again today). Passing along to you in case it will help. Let me know if you need any other info. I'm on your latest version but yesterday I think I was still on .02 when I noticed the error in my log.

Nov 6, 2017, 3:29:23 AM
WUnderground Error Problem parsing 10-day forecast data. Error: (Line 1842 (float() argument must be a string or a number)

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Mon Nov 06, 2017 7:03 am
by DaveL17
Thanks Norm - I will take a look. There seems to be something going on with the Weather Underground developer site right now--I can't even open a link to it.

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Mon Nov 06, 2017 6:23 pm
by DaveL17
Hi Norm - I can't recreate the error you're seeing. The next time you see it, could you please go to the WUnderground Plugin menu, and select "Write Weather Data to File". The location of the file will be written to the Indigo Event log. Please send that or an email address in a PM.

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Mon Nov 06, 2017 6:30 pm
by norcoscia
OK :D

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 6:59 am
by DaveL17
I believe I was able to figure out what was causing the error -- Weather Underground should be sending all data as a string, but in this case, they were sending something else. I've added a trap to catch the error. I need to do a bit more research to determine if this is a permanent change or a special case. If WU has changed the structure of its API, I'll need to make some more changes.

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 7:06 am
by norcoscia
Thanks, Dave, I'm busy doing an OS update today so not sure if the error came in today - I'll keep an I out for it....

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 8:03 am
by norcoscia
Just FYI, between the million updates I had to do this AM. I did see the same error pop up but I was in the middle of too much stuff to mess with it, when I was finished with the OS updates I updated WU to version .04 and I did not see the error - I'll continue to monitor for it...

Thanks for the help with this.

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 8:19 am
by DaveL17
Glad to hear it. Thanks for reporting back.


Sent from my iPhone using Tapatalk

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 3:19 pm
by Colly
Hi Dave,

I've been getting the same error for a few days:
Code: Select all
7 Nov 2017, 21:11:56
   Trigger                         Night low forecast
   WUnderground Error              Problem parsing 10-day forecast data. Error: (Line 1795 (float() argument must be a string or a number)

Seems like something has been changed. Let me know if I can do anything to help.

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 5:04 pm
by DaveL17
Hi Colly - thanks for reaching out. Are you seeing those errors with v6.0.4 of the plugin?

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 5:11 pm
by Colly
I'm on v1.1.15. Should I update to the latest version to check it?

Re: Problem parsing 10-day forecast data. Error: (Line 1842.

PostPosted: Tue Nov 07, 2017 7:44 pm
by DaveL17
@Colly - your call. There have been other enhancements and bug fixes since v1.1.15, and updating should also silence the most recent error messages.