Hi,
since update to php 8.2 I can’t access the menu anymore, I think the notifications in the date - time block is trying to retrieve data but is in a endless loop (left upper corner), and thus preventing access to the menu.
Also the block 'particulate matter for this station ’ is not showing any data. I should have two (inside and outside), but only see 1 blank (right lower corner).
In the past I read a fix about this , something about memory of my router, but i cant find it anymore.
Can someone help me in the right direction?
Thx!
URL?
Wim is on holiday this week but someone might be able to help if we can see it. . .
Sint-Katelijne-Waver, Belgium Home Weather Station (DWL_v2api version)
First update to the latest versions as current versions are tested with 8.2.5
For instance your _test.php does not work
The menu is not shown as the AQ block fails
Remove the station AQ block if the problem persists
Succes,
Wim
thx Wim, for your swift reply. everuthing seems to be working. at first glance. except the earthquake block. you know you made a special user mod some time ago. Need to investigate , give me some time. in the mean time. enjoy yr holidays.
Look at the bitsostring message before yours for a link about the earthquake block
Your data from cumulus contains the PM values with a comma.
All numerical data has comma’s where a decimal.point should be.
|pm25_crnt1|text|31,5|!
|pm25_crnt2|text|1,9|!
Values such as tempo humidity are converted for the live-data file, using conversion scripts which replace the , to a .
The PM values have the type “text” as specified at line 59-62 in your extra data file for Cumulus
Those values are not converted and remain as uploaded.
Solution 1:
When using CumulusMX you can instruct Cumulus to use a . and not a ,
https://www.cumuluswiki.org/a/Webtags/Parameters#Changing_the_decimal_separator
The four lines should then get a rc=y parameter , see example below
|pm25_crnt1|text|<#AirQuality1 rc=y>|!
|pm25_crnt2|text|<#AirQuality2 rc=y>|!
|pm25_crnt3|text|<#AirQuality3 rc=y>|!
|pm25_crnt4|text|<#AirQuality4 rc=y>|!
Solution 2:
For other versions of Cumulus or for other users with comma’s as decimal point, I adapted the scripts.
I added a “numeric” field which can be used. It will not convert values such as with temp, it will only replace a , with a . and store the value in the livedata file as a float.
For that we now use the type nmrc and not text
|pm25_crnt1|nmrc|<#AirQuality1>|!
|pm25_crnt2|nmrc|<#AirQuality2>|!
|pm25_crnt3|nmrc|<#AirQuality3>|!
|pm25_crnt4|nmrc|<#AirQuality4>|!
Please use attached version to test but do not forget t0 change the 4 lines in your Cumulus upload file.
PWS_extra_data.php.zip (2.6 KB)
Succes,
Wim
thx Wim,
sorry for the late reply , solution 1 worked.
i think the latest cmx update changed stuff in the extra_cu.txt and that caused all the troubles,
php wasn’t the cause
earthquake block isn’t working though on my end.
still stalling on 27 th June, …
updated to all the recent files.
many thx
Yes, followed that. Still stalled.
Suggest you try reuploading the revised earthquake file from post 1 of the link in bitsostring post above and check your cron job is still running
Seems your webserver does not allow running scripts from your own server.
. . ./pwsWD/PWS_module_test.php and button “Load files” , wait 10 seconds, time out for earthquake
PWS_load_files.php (501) Earthquakes___: time spent: 10.0009 -
invalid CURL Connection timed out after 10000 milliseconds
https://www.sint-katelijne-waver-meteo.be/pwsWD/PWS_quakes_load.php?json
But when running in the browser . . . . -meteo.be/pwsWD/PWS_quakes_load.php?json , the file is nicely returned.
There are other users with identical problems. Often when has to “whitelist” at the provider ones own webserver to allow access using http(s)
If no solution with your provider can be found:
Change line 299 in PWS_load_files.php from
$url = $this_server.'PWS_quakes_load.php?json'; ##### 2020-12-31 'https://earthquake-report.com/feeds/recent-eq?json';
to
$url = 'https://pwsdashboard.be/pwsWD/PWS_quakes_load.php?json'; # 2023-07-14 USER MOD
and set the version number in line 1 from 01| to 02| to get a warning when updating.
Wim
thx Wim, works nicely!!! thank yoy!!