Rain block (blue circles)
-
WeerstationGeel
- Newbie

- Posts: 5
- Joined: Mon Jan 01, 2018 9:00 am
- Station model: Davis Pro 2
- Software: Meteobridge
Rain block (blue circles)
Hello,
Someone now what i do wrong with the settings of this block? The blue circles give 0.0mm. Before it was working good.
Website: https://weerstationgeel.be
Someone now what i do wrong with the settings of this block? The blue circles give 0.0mm. Before it was working good.
Website: https://weerstationgeel.be
- Attachments
-
- Fotorain1.jpg (175.55 KiB) Viewed 9496 times
-
- fotorain2.jpg (179.74 KiB) Viewed 9496 times
- Asobig
- Advisor

- Posts: 72
- Joined: Mon Aug 21, 2017 7:05 am
- Location: Almere
- Station model: Davis Vantage VP2+
- Software: Meteobridge (Red)
- Contact:
Re: Rain block (blue circles)
My values for the orange fields are:
100
200
750
4
10
30
TRUE
FALSE
1
Perhaps that helps.
100
200
750
4
10
30
TRUE
FALSE
1
Perhaps that helps.
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block (blue circles)
You have an error in jquery when the rain block is loaded ( but I don't know what it means )
Did you change anything recently ( php version, activated https... )?
I updated the block recently to correct a few errors in php 8 ( only minor correction for uninitialized variables, not sure if it is of any help )
In the past I tried to debug a few errors in jqery installing this version ( that is not minified ). If you want to try, expand it in the scripts directory ( backup the original jquery.min.js )
Did you change anything recently ( php version, activated https... )?
I updated the block recently to correct a few errors in php 8 ( only minor correction for uninitialized variables, not sure if it is of any help )
In the past I tried to debug a few errors in jqery installing this version ( that is not minified ). If you want to try, expand it in the scripts directory ( backup the original jquery.min.js )
- Attachments
-
- jquery.min.zip
- (79.37 KiB) Downloaded 925 times
-
- rain_7.2.zip
- (8.45 KiB) Downloaded 413 times
-
WeerstationGeel
- Newbie

- Posts: 5
- Joined: Mon Jan 01, 2018 9:00 am
- Station model: Davis Pro 2
- Software: Meteobridge
Re: Rain block (blue circles)
Hello,
Thanx for the reactions.
I update the block to 7.2 and update this javascript but its still the same.
I last weeks change my website to https and to PHP 8.0 but again change (after talk with Jachym) to PHP 7.4 because the website was not showing anything.
In the last weeks of december/2021 (9 till 25 +/-) i had no data send to meteotemplate after problems with meteobridge. Can this be give any problem for this block?
Thanx.
Thanx for the reactions.
I update the block to 7.2 and update this javascript but its still the same.
I last weeks change my website to https and to PHP 8.0 but again change (after talk with Jachym) to PHP 7.4 because the website was not showing anything.
In the last weeks of december/2021 (9 till 25 +/-) i had no data send to meteotemplate after problems with meteobridge. Can this be give any problem for this block?
Thanx.
- Asobig
- Advisor

- Posts: 72
- Joined: Mon Aug 21, 2017 7:05 am
- Location: Almere
- Station model: Davis Vantage VP2+
- Software: Meteobridge (Red)
- Contact:
Re: Rain block (blue circles)
The rainblock has references to two JS files (line 299 and 300):
- pages/astronomy/d3.v3.min.js
- homepage/blocks/rain/liquidGauge.js
The error massage on the site of weerstationGeel seems to come from the d3.v3.min.js file.
Perhaps that file is the problem?
There is an updated file available (current version d3.v7.min.js)
- pages/astronomy/d3.v3.min.js
- homepage/blocks/rain/liquidGauge.js
The error massage on the site of weerstationGeel seems to come from the d3.v3.min.js file.
Perhaps that file is the problem?
There is an updated file available (current version d3.v7.min.js)
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block (blue circles)
In addition to what asobig said you may try reverting to http ( simply disabling the automatic http to https redirection and change in the main setup the 'page URL' ) to see if this has any effect.
I' have noticed there is a problem with the interactive graph page ( pages/station/graph.php ).
But there is not problem with the interactive table page ( pages/station/table.php )
So we should investigate even this issue.
Regarding php 8 meteotemplate is not 'super ready' for it. I mean I'm using php 8 on my site and I continuously find few problems to correct, so I'd say it is still not super recommended for 'production site'.
I've opened a thread on the template subforum, should update shortly with latest correction if anyone is interested
I' have noticed there is a problem with the interactive graph page ( pages/station/graph.php ).
But there is not problem with the interactive table page ( pages/station/table.php )
So we should investigate even this issue.
Regarding php 8 meteotemplate is not 'super ready' for it. I mean I'm using php 8 on my site and I continuously find few problems to correct, so I'd say it is still not super recommended for 'production site'.
I've opened a thread on the template subforum, should update shortly with latest correction if anyone is interested
-
WeerstationGeel
- Newbie

- Posts: 5
- Joined: Mon Jan 01, 2018 9:00 am
- Station model: Davis Pro 2
- Software: Meteobridge
Re: Rain block (blue circles)
Hello,Asobig wrote: ↑Sat Jan 08, 2022 10:30 am The rainblock has references to two JS files (line 299 and 300):
- pages/astronomy/d3.v3.min.js
- homepage/blocks/rain/liquidGauge.js
The error massage on the site of weerstationGeel seems to come from the d3.v3.min.js file.
Perhaps that file is the problem?
There is an updated file available (current version d3.v7.min.js)
Where i can find this new file d3.v7.min.js?
Thank you.
- Asobig
- Advisor

- Posts: 72
- Joined: Mon Aug 21, 2017 7:05 am
- Location: Almere
- Station model: Davis Vantage VP2+
- Software: Meteobridge (Red)
- Contact:
Re: Rain block (blue circles)
You can find it here:
https://github.com/d3/d3/releases/tag/v7.3.0
P.S.
Davidefa,
Your Rainblock doesn't work either, but there aren't any error messages. Strange...
https://github.com/d3/d3/releases/tag/v7.3.0
P.S.
Davidefa,
Your Rainblock doesn't work either, but there aren't any error messages. Strange...
-
WeerstationGeel
- Newbie

- Posts: 5
- Joined: Mon Jan 01, 2018 9:00 am
- Station model: Davis Pro 2
- Software: Meteobridge
Re: Rain block (blue circles)
Asobig,Asobig wrote: ↑Sat Jan 08, 2022 6:37 pm You can find it here:
https://github.com/d3/d3/releases/tag/v7.3.0
P.S.
Davidefa,
Your Rainblock doesn't work either, but there aren't any error messages. Strange...
Can you help me a little bit which file i need take for replace d3.v3.min.js? I look on the link but find a d3.v7.min.js file on our link.
Thanx.
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block (blue circles)
The block should be ok.
The 'liquid inside' is shown ( although a little low )
The average comparison is shown only when there are at least 1 year of data ( my recording start on 2021/01/11 ) so only a few days to wait
P.S.
But certainly there are other 'hiccups' on my site, as I said I'm transitioning to php 8
The 'liquid inside' is shown ( although a little low )
The average comparison is shown only when there are at least 1 year of data ( my recording start on 2021/01/11 ) so only a few days to wait
P.S.
But certainly there are other 'hiccups' on my site, as I said I'm transitioning to php 8
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block (blue circles)
You could also try the attached demo file ( uncompress it in the rain block directory ).
It should show 6 liquid filled gauges as here: http://bl.ocks.org/brattonc/5e5ce9beee483220e2f6
It should show 6 liquid filled gauges as here: http://bl.ocks.org/brattonc/5e5ce9beee483220e2f6
- Attachments
-
- demo.zip
- (1.05 KiB) Downloaded 411 times
-
WeerstationGeel
- Newbie

- Posts: 5
- Joined: Mon Jan 01, 2018 9:00 am
- Station model: Davis Pro 2
- Software: Meteobridge
Re: Rain block (blue circles)
https://weerstationgeel.be/template/hom ... /demo.html
Here is this file that i added to my rain-block map.
Here is this file that i added to my rain-block map.