cloudy cloudy

Author Topic: ***closed*** weather34 for WeatherDisplay (clientraw and WDapi)  (Read 23612 times)

0 Members and 2 Guests are viewing this topic.

Offline bitsostring

  • Posts: 978
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #240 on: January 26, 2019, 10:06:05 PM »
You have to check your WU data, another glitch of WU/IBM

I might have known! Thanks, Wim.
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,176
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #241 on: January 26, 2019, 10:15:28 PM »
You have to check your WU data, another glitch of WU/IBM
Last two lines in the file chartswudata/IEDINBUR98Y.txt  are
2019-1-25,9.9,7.7,5.5,9.1,7.8,4.7,97,93,83,1007,1003,21,7,37,0.00
2019-1-26,9.5,8.9,8.4,8.5,7.6,6.2,95,90,84,1003,986,14,5,32,0.08
That data is loaded from WU. Not made by any script.
Maybe your settings at WU are misaligned for the timezone OR for the lat/lon??????
No idea, Wim

Maybe I have a misunderstanding of your reply, but is WU really the issue? The file shows that the last WU data is for 2019-1-26 which is Saturday, but on http://swanston.maui.co.uk/pws/ the January Temperature chart shows "Sat 25th" on the legend, and the last data point is "Sun 26th", in other words on the chart the day of the week doesn't match the date.

Offline bitsostring

  • Posts: 978
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #242 on: January 26, 2019, 10:18:27 PM »
Maybe I have a misunderstanding of your reply, but is WU really the issue?

I was beginning to wonder, too, because my old w34 graphs at /pwsold/ are OK. . . Lat/long OK, too.
« Last Edit: January 26, 2019, 10:22:10 PM by bitsostring »
It's meant to be fun. . .

Offline bitsostring

  • Posts: 978
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #243 on: January 27, 2019, 12:17:55 AM »
Updated w34_livedata.php attached, only for clientraw.txt users needed

Wim

P.S. There is no "rain last hour" in WDapi yet, needs a lot of extra fields to be added.

Update: clientraw version did OK with "rain last hour" today, although definitely delayed compared with WD client (driven by clientraw). Still getting the total negated at midnight reset, see clientrawrain3.

API version shows readings that correspond to "rain last hour" but at the wrong time, see APIrain3. I don't know what API[43] is meant to quantify.

P.S. Can we have units for "Yesterday" rain, please?
« Last Edit: January 27, 2019, 12:23:06 AM by bitsostring »
It's meant to be fun. . .

Offline Cheffy

  • Posts: 86
  • Melbourne, Australia
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Mickleham Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #244 on: January 27, 2019, 05:13:33 AM »
Hi Wim,

I have noticed the wind forecast from Darksky has always been really low, it rarely gets above 10km/h, however I think I have just worked out why.

It seems the Darksky wind forecast gives a range and I think the forecast on my site is just giving the lower range of that forecast.

As an example, for today the wind forecast from Darksky is 13-48km/h and tomorrow it is to be 6-31km/h. However the forecast for those days on my site is 13km/h and 6km/h.

If this is the case, I was just wondering how hard would it be to incorporate the full range into the forecast.

The link to my site is,

https://micklehamweather.com/pwsWD/

The full darksky forecast can be seen here,

http://micklehamweather.com/wxforecast.php

Thanks,
Neil 

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,350
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #245 on: January 27, 2019, 08:19:46 AM »
Maybe I have a misunderstanding of your reply, but is WU really the issue? The file shows that the last WU data is for 2019-1-26 which is Saturday, but on http://swanston.maui.co.uk/pws/ the January Temperature chart shows "Sat 25th" on the legend, and the last data point is "Sun 26th", in other words on the chart the day of the week doesn't match the date.
@bitsostring @niko
Sorry for the confusing. I was/am running the demo site with the same settings as @bitsostring
The graphs there were correct so I assumed another cause. But the graphs were correct as they used the SQL data.
And it was late when further checking so I thought it was the WU file.
Wrong,  :oops: I did not  set in canvas.js the correct  date format of the WU.CSV  .

Attached new version of the graph script.
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,350
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #246 on: January 27, 2019, 08:57:53 AM »
Update: clientraw version did OK with "rain last hour" today, although definitely delayed compared with WD client (driven by clientraw).
The delay is "time between clientraw uploads = ??" + "time rain block refresh = 50 seconds"
Quote
Still getting the total negated at midnight reset, see clientrawrain3.
That would imply that the oldest field of the 1 hour array would be reset to zero at midnight? As the calculation = oldest -/- latest
Quote
API version shows readings that correspond to "rain last hour" but at the wrong time, see APIrain3.
What is wrong?
Are you running two versions?  One for clientraw and 1 for WDapi?
Quote
I don't know what API[43] is meant to quantify.
According to a doc from 2017: "43 0.0  rain total last 60 minutes"
Quote
P.S. Can we have units for "Yesterday" rain, please?
Attached
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,350
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #247 on: January 27, 2019, 09:19:49 AM »
Hi Wim,
I have noticed the wind forecast from Darksky has always been really low, it rarely gets above 10km/h,
An "original" Darksky Forecast for your area: https://darksky.net/details/-37.8142,144.9632/2019-1-29/ca12/en
The data which is on your website comes from ". /jsondata/darksky.txt"  which you can check and expand to readable text
https://micklehamweather.com/pwsWD/w34_module_test.php
=> "Check file contents" => drop down" jsondata/darksky.txt" => click "List contents => Data is shown below => click "Expand as json
Quote
however I think I have just worked out why.It seems the Darksky wind forecast gives a range and I think the forecast on my site is just giving the lower range of that forecast. As an example, for today the wind forecast from Darksky is 13-48km/h and tomorrow it is to be 6-31km/h. However the forecast for those days on my site is 13km/h and 6km/h.
Both the "official-site" as the API-json file show only 1 wind value.
The second value in your Saratoga script is the Gust-value
Quote
If this is the case, I was just wondering how hard would it be to incorporate the full range into the forecast.
Normally that would need another field as Gust is "by definition" not Wind
Quote
The link to my site is,https://micklehamweather.com/pwsWD/
The full darksky forecast can be seen here, http://micklehamweather.com/wxforecast.php
Thanks,Neil
I do not think the "low" values are in error.  Maybe also others have an opinion about this, but for now I will put it on the wish-list as "add gust value to forecast".

I attach a test version of the 3 day forecast, as there is room to add the second value.  The 8 day forecast needs changes in the css, that is for later this year.

Wim
« Last Edit: January 27, 2019, 09:33:31 AM by wvdkuil »
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bitsostring

  • Posts: 978
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #248 on: January 27, 2019, 11:25:41 AM »
@bitsostring @niko
Sorry for the confusion. . . Attached new version of the graph script.

Many thanks, Wim. (And niko!)
It's meant to be fun. . .

Offline bitsostring

  • Posts: 978
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #249 on: January 27, 2019, 11:41:23 AM »
The delay is "time between clientraw uploads = ??" + "time rain block refresh = 50 seconds"

I got the impression it was longer than that. I'll keep an eye on it.

Quote
That would imply that the oldest field of the 1 hour array would be reset to zero at midnight? As the calculation = oldest -/- latest

There had been no rain for 4.5 hours, so all fields should have been zero anyway. (Rain last hour had been showing zero, correctly, just before midnight.)

Quote
What is wrong [with API rain last hour]?

As above, there had been no rain for 4.5 hours. And screenshot was taken after midnight reset.

Quote
Are you running two versions?  One for clientraw and 1 for WDapi?

I switch between them, using Menu/Settings, so I can spot any differences.

Quote
According to a doc from 2017: "43 0.0  rain total last 60 minutes"

My doc just says "43 raintotal60". Doesn't seem to be working here.

Quote
[Units] Attached

Many thanks.
« Last Edit: January 27, 2019, 07:21:27 PM by bitsostring »
It's meant to be fun. . .

Offline Cheffy

  • Posts: 86
  • Melbourne, Australia
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Mickleham Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #250 on: January 27, 2019, 11:53:38 AM »
Quote
I do not think the "low" values are in error.  Maybe also others have an opinion about this, but for now I will put it on the wish-list as "add gust value to forecast".

Thanks for the explanation Wim - I was just trying to understand why the wind forecast always seemed to be rather low, and yes others may have an opinion on that.

Quote
I attach a test version of the 3 day forecast, as there is room to add the second value.

I have just updated to the the test version and it works fine.  I will see how this goes over the next few days.

Quote
The 8 day forecast needs changes in the css, that is for later this year.

Thats fine - no real rush for this.

As always....thanks for your efforts.

Neil

Offline mldenison

  • Posts: 308
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
    • York, Pennsylvania USA Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #251 on: January 29, 2019, 11:42:12 AM »
Hi Wim,

I don't think the Weather Alert window is correct.  It shows a warning for the dew point below freezing.  There's a winter snow advisory out for our area.  Is the exclamation point icon supposed to do anything when you click on it?

Thanks,
Mort

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,350
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #252 on: January 29, 2019, 12:16:33 PM »
Hi Wim,
I don't think the Weather Alert window is correct.  It shows a warning for the dew point below freezing.  There's a winter snow advisory out for our area.  Is the exclamation point icon supposed to do anything when you click on it?
Thanks,Mort
It is on the  "wish-list" at https://www.weather-watch.com/smf/index.php/topic,67497.0.html to include real warnings from NOAA.
The three warning scripts (Europe/USA/Canada) are in Beta testing and will be included in the April release.

The current messages in the alert-box are based on your weather values, so "dew-point is below freezing"  => icy road conditions.
The graphic warning sign "exclamation point icon" does nothing.
All ideas for enhancements please add them to  the "wish-list"
Wim

Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline mldenison

  • Posts: 308
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
    • York, Pennsylvania USA Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #253 on: January 29, 2019, 12:19:51 PM »
Thanks, Wim.

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Personal weather site
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #254 on: January 29, 2019, 05:42:27 PM »
Where do I get the path for the clientraw.txt from? In the settings screen it asks for path?

 

cumulus