Page 1 of 1

WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.4 F

PostPosted: Wed May 09, 2018 3:10 am
by McJohn
Outside temperature at this moment is 23 C / 73.4 F.

But the WU Day Forecast at day 1 gives a minus digit. It says -18C / -0.4 F outside, but it's hot summer here...
How is this possible? This happens sometimes more (normally this 1 day forecast device is ok).

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Wed May 09, 2018 3:30 am
by McJohn
We changed totally nothing at the settings and spontaneous after ~ 45 minutes it gives the right temperature; 24C.

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Wed May 09, 2018 4:46 am
by DaveL17
That's on Weather Underground I'm afraid. The plugin doesn't change the forecast temperature data WU provide except to convert it from a string to an integer.

I haven't seen anything like that on the PWS sites that I use, but I have seen other weirdness. One PWS I watch will periodically freeze and then start again.

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Wed May 09, 2018 8:36 am
by McJohn
Thanks for the fast explanation Dave.
We now know that we can't do anything about this.

(Every morning when our alarm system is switched off, Indigo speaks to the whole hose the forecast temperature for the day and it's a little bit strange when you hear that it will freeze outside in the middle of a hot summer day... :lol: )

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Wed May 09, 2018 8:45 am
by DaveL17
If there is a more "official" weather site or a site that uses "Smart Forecasts" (if those are available in your area), you may want to give those a try. I would hope that a "Smart Forecast" would be smart enough to spot the error you experienced.

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 7:40 am
by McJohn
I know see that also the date is wrong...
Today it's January 3.....
(But the observation date is correct; May 11).

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 7:47 am
by McJohn
WUnderground site forecast is OK:

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 7:50 am
by DaveL17
Is it only Day 1 that's wrong? That's truly odd.

I do a little bit of refactoring on that value to convert the date to local time. It is supposed to account only for local preference of how the date is displayed--it should not be changing the date in any other way. In other words, WU provides "05-11-2018" and the local preference is "2018-05-11". Mine is displaying correctly here. I suspect--but don't know for sure--that the data element you received was wrong.

You can examine the weather data by selecting "Write Weather Data to File" from the plugin menu. There's a lot of data, but the 10-day forecast data should be in there. If you can post it to DropBox or another sharing site, I can inspect it.

I saw your most recent post and, unfortunately, we can't compare the API data to the website data for any clues. They can be (legitimately) different at times.

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 8:29 am
by McJohn
Thanks for your fast help.
As you could see in the last Indigo Device screendump (post before) day 2 is January 4... (or 1 April in European settings?)

Could you tell me where the "Data to file" is placed and what is the name of this file?

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 8:55 am
by DaveL17
Can and did are two separate things! :D

Perhaps if I opened my eyes wider...

I would recommend selecting "Refresh Data Now" to ensure that you have the most up-to-date API data and then select "Write Weather Data to File". When you do the latter, there should be a message written to the Indigo Event Log with the location and name of the file. Mine is:

Code: Select all
   WUnderground 7                  Weather data written to: /Library/Application Support/Perceptive Automation/Indigo 7/Logs/2018-05-11 Wunderground.txt

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 1:31 pm
by McJohn
Thanks for the hint of the location of the file. (In our Indigo log there was no such message).
Send you a message.

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Fri May 11, 2018 1:41 pm
by DaveL17
McJohn wrote:
Thanks for the hint of the location of the file. (In our Indigo log there was no such message).
Send you a message.

Thanks for the feedback. That message is probably set to appear only when informational or debug logging is selected. I'll make a note to change that in an upcoming version.

Re: WU Ten Day forecast, Hot Summer: Day 1 gives -18 C / -0.

PostPosted: Sat May 12, 2018 12:18 pm
by DaveL17
Unfortunately, I don’t think that there’s anything I can do about the odd date issue. I was able to replicate the result you’re seeing and the data coming from Weather Underground is wrong at the source:

Code: Select all
>>> print(x['forecast']['simpleforecast']['forecastday'][0]['date’])

{u'isdst': u'0', u'pretty': u'11:00 AM CST op 03 januari 2018', u'hour': 11, u'min': u'00', u'ampm': u'AM', u'tz_long': u'America/Chicago', u'month': 1, u'epoch': u'1514998800', u'weekday_short': u'wo', u'weekday': u'woensdag', u'monthname': u'januari', u'year': 2018, u'sec': 0, u'yday': 2, u'tz_short': u'CST', u'day': 3, u'monthname_short': u'jan'}

It may warrant a note to Weather Underground, though, as it could be an issue with whatever code they use when constructing the API data in Dutch.