cloudy cloudy

Author Topic: weather34 for WeatherDisplay (clientraw and WDapi)  (Read 4934 times)

0 Members and 1 Guest are viewing this topic.

Offline bitsostring

  • Posts: 569
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #150 on: January 12, 2019, 04:32:24 PM »
Not in the Avatar not in the post.

Sorry: http://swanston.maui.co.uk/pws/
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 899
  • 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 #151 on: January 12, 2019, 05:06:40 PM »
Small problem in Rain block: 0.3 mm rainfall today was at 0130 Z, so "Last Hour" should be zero.
You are using clientraw.txt for your "livedata".
The http://swanston.maui.co.uk/clientraw.txt  has 10 fields for rain-hour, they all contain 0.3 mm
The clientrawextra.txt has 24 fields for rain-hour, the first 9 contain zero , other 15 contain0.3 mm

Seems Brian, as the programmer of WD, has to tell me how I should calculate rain-last hour.
Probably I have to subtract  the tenth = last hour value from the ninth one to get the last hour rain.
Wim
Leuven-Template&Scripts https://support.leuven-template.eu/
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bitsostring

  • Posts: 569
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #152 on: January 12, 2019, 05:20:41 PM »
You are using clientraw.txt for your "livedata".
The http://swanston.maui.co.uk/clientraw.txt  has 10 fields for rain-hour, they all contain 0.3 mm
The clientrawextra.txt has 24 fields for rain-hour, the first 9 contain zero , other 15 contain0.3 mm

That would explain it! I did check that WD was showing "rain last hour" correctly, and SSGauges is showing "time of last rain" correctly, before I posted. . . but didn't think to check the values in clientraw.txt.
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,794
  • 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 #153 on: January 12, 2019, 05:22:35 PM »
Wim, does it use clientrawhour.txt ? The last 60 mins rain is in there by minute starting at #361 if that helps.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 899
  • 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 #154 on: January 12, 2019, 05:31:20 PM »
Wim, does it use clientrawhour.txt ? The last 60 mins rain is in there by minute starting at #361 if that helps.
http://swanston.maui.co.uk/clientrawhour.txt  Those 60 fields also contain 0.3 mm
361   rain total last 60 min for min 01   M   0.3 mm ( = 0.012 in )
362   rain total last 60 min for min 02   M   0.3 mm ( = 0.012 in )
363   rain total last 60 min for min 03   M   0.3 mm ( = 0.012 in )

It seems that all those  "rain-minute" "rain-hour" fields  all contain cumulative values, but Brian has to confirm that.
Wim
Leuven-Template&Scripts https://support.leuven-template.eu/
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bitsostring

  • Posts: 569
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #155 on: January 12, 2019, 05:37:38 PM »
Wim, does it use clientrawhour.txt ? The last 60 mins rain is in there by minute starting at #361 if that helps.

Wim's quicker than I am with the parser! But I agree they all contain 0.3 mm. . .

[A single tip from my modified raingauge is actually 0.25 mm = 0.01 in, but WD doesn't do mm to 2 d.p.]
« Last Edit: January 12, 2019, 05:39:09 PM by bitsostring »
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,794
  • 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 #156 on: January 12, 2019, 05:38:34 PM »
 :(

Offline windgust

  • Posts: 343
  • Hooksett NH
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
    • http://www.windgust.com/live1
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #157 on: January 12, 2019, 08:21:25 PM »
To get the graphs to work using WU where do I set the API key, Do I place it in the dark weather section?
I see the station name for WU not a spot to add my API key.
Also moon rise moon set does not match WD using same lat/long

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 899
  • 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 #158 on: January 12, 2019, 09:01:14 PM »
To get the graphs to work using WU where do I set the API key, Do I place it in the dark weather section?
I see the station name for WU not a spot to add my API key.
Also moon rise moon set does not match WD using same lat/long
IMPORTANT
  • You do not need an WU API-key. Your own data was always available without any key, your station ID is the only id needed.
  • The current WU-API-key was/is used to load the WU forecast for your area. That is now the DarkSky forecast with the DarkSky API-key.
  • On February 15th
    • all "rules of the game" will change
    • WU will switch to new API-keys for all access including our own station data.
    • But at this moment there is no documentation or description  how we can load our stations data over a longer period then 7 days.
So for now and at least until Feb 15, all graphs should work with your WU-station data. Just set the correct station-key usinge easyweather.
Wim
Leuven-Template&Scripts https://support.leuven-template.eu/
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: 899
  • 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 #159 on: January 12, 2019, 09:07:36 PM »
. . .  shortened . . .
Also moon rise moon set does not match WD using same lat/long
To check this out, I need the URL of your pwsWD/ folder.
And can you please post your latitude / longitude as you set in WD and in Easyweather? I con not check these myself as settings are protected from spying eyes.

Be aware that WeatherDisplay uses a minus for latitude east of Greenwich (f.i. Europe).
Other programs use the standard minus for west of Greenwich (f.i. the USA).

Wim
Leuven-Template&Scripts https://support.leuven-template.eu/
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,794
  • 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 #160 on: January 12, 2019, 09:19:03 PM »
Also be aware that moon data can be confusing since the rise and set seen on one calendar day may be from two different moon cycles, see this recent thread.

Offline Weather Display

  • Posts: 85,753
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #161 on: January 13, 2019, 05:39:37 AM »
its daily rain total
as per the clientrawdescription.txt
i.e so its the daily rain total 60 minutes ago
then the daily rain total 59 minutes ago
etc

clientraw.txt does have
100-109   array of last rain last hour (10 positions)
and that too is daily rain total at those times

Offline blainec

  • Global Moderator
  • Posts: 377
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Weather YYC
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #162 on: January 14, 2019, 01:30:26 AM »
My AQI is reading "offline". Is this normal between data updates?


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 899
  • 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 #163 on: January 14, 2019, 07:41:54 AM »
My AQI is reading "offline". Is this normal between data updates?
The date-time seemed to be in "UTC" for other test-sites. Now it is in local as far as i can see.
Try this script for a few days, I changed only line 93 from gmdate() to date()
As the time difference here in wester Europe between UTC and local is small, this error was not found when testing.

PM or mail me if there are still problems.
Wim

P.S. better version  attached at 15:21 UTC
« Last Edit: January 14, 2019, 03:22:16 PM by wvdkuil »
Leuven-Template&Scripts https://support.leuven-template.eu/
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: 899
  • 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 #164 on: January 14, 2019, 08:03:29 AM »
its daily rain total
as per the clientrawdescription.txt
i.e so its the daily rain total 60 minutes ago
then the daily rain total 59 minutes ago
etc

clientraw.txt does have
100-109   array of last rain last hour (10 positions)
and that too is daily rain total at those times
Thanks, also for the mail.
The array [100] -> [109] covers only 1 hour divided in 10 data points.
"total rain of the last hour" = latest data point [100] minus oldest point [109];
w34_livedata.php line 132 is changed from
Code: [Select]
$weather["rain_lasthour"]       = convert_precip ($wd[100],$from,$to);to
Code: [Select]
$value                          = (float) $wd[100] - (float) $wd[109];  # 2019-01-14
$weather["rain_lasthour"]       = convert_precip ($value ,$from,$to);   # 2019-01-14

Wim
« Last Edit: January 14, 2019, 08:12:29 AM by wvdkuil »
Leuven-Template&Scripts https://support.leuven-template.eu/
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

 

cumulus