With the impending snow just around the corner here in Alberta, I notice there are 3 options to show snow height including ‘we use dashboard script’
Ive looked everywhere but cant see it anywhere.
With the impending snow just around the corner here in Alberta, I notice there are 3 options to show snow height including ‘we use dashboard script’
Ive looked everywhere but cant see it anywhere.
Older topic with the whole development discussion
Snow in pwsdashboard
The how-to description in answer 32
Snow in pwsdashboard - #32 by pwsdashboard
You can use PWS_winter.php to manually enter snow-heights.
The snow-height is only shown in the “rainfall”-block if there is a positive snow-height value
and
if the outside-temperature is less then 5°C
I will test the two “snow”-scripts to make sure they are compatible with PHP 8.2 as the latest release versions of the snow scripts are from February 2021 and December 2022.
I will post an updated version (if necessary) this weekend.
Thanks for using the PWS_Dashboard,
Wim
Thanks for that.
( i did search for it on here but didn’t return anything relevant, I must have used the wrong search terms maybe.)
Just tried to enter data today, it reports this error…
Hi Pgee,
The HTTP error 500 is a script-PHP error
You are using PHP 8.1.23 which can not be the problem.
Please test with
https://carstairs-weather.ca/pwsWD/_test.php?test=PWS_winter.php
Maybe that will give a clue.
Did the error occur after you entered any values?
Did the values show up after you restarted the PWS_winter script?
Could be a file permission problem?
Add this 1 line file to your ./jsondata/ folder
snow.txt (31 Bytes)
Otherwise I have to check myself what is going wrong on your website
For that I need your easyweather-setup password.
Do not post the password here, but sent a PM or a mail.
Regards,
Wim
P.S. My local time is UTC+2 , an 8 hour timedifference with your location.
This is the information when running the test.
**Warning** : Undefined variable $arr_snw in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **190**
**Warning** : Trying to access array offset on value of type null in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **190**
**Warning** : Trying to access array offset on value of type null in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **191**
**Deprecated** : substr(): Passing null to parameter #1 ($string) of type string is deprecated in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **191**
**Warning** : Trying to access array offset on value of type null in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **191**
**Deprecated** : substr(): Passing null to parameter #1 ($string) of type string is deprecated in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **191**
**Warning** : Trying to access array offset on value of type null in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **191**
**Deprecated** : substr(): Passing null to parameter #1 ($string) of type string is deprecated in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **191**
**Warning** : Trying to access array offset on value of type null in **/home/cyupco15/public_html/pwsWD/PWS_winter.php** on line **200**
I’ll add that line of text and try the permissions too.
Attached two updated scripts dated October 14.
These should work OK.
Succes,
Wim
snow_2023-10-14.zip (7.7 KB)
Thanks. Trying it out now.
Paul