Rain block (blue circles)

Post Reply
WeerstationGeel
Newbie
Newbie
Posts: 5
Joined: Mon Jan 01, 2018 9:00 am
Station model: Davis Pro 2
Software: Meteobridge

Rain block (blue circles)

Post by WeerstationGeel » Fri Jan 07, 2022 7:39 pm

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
Attachments
Fotorain1.jpg
Fotorain1.jpg (175.55 KiB) Viewed 9497 times
fotorain2.jpg
fotorain2.jpg (179.74 KiB) Viewed 9497 times

User avatar
Asobig
Advisor
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)

Post by Asobig » Fri Jan 07, 2022 10:06 pm

My values for the orange fields are:
100
200
750
4
10
30
TRUE
FALSE
1

Perhaps that helps.

davidefa
Expert
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)

Post by davidefa » Fri Jan 07, 2022 11:20 pm

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 )


rain3.png
rain3.png (375.21 KiB) Viewed 9491 times
Attachments
jquery.min.zip
(79.37 KiB) Downloaded 925 times
rain_7.2.zip
(8.45 KiB) Downloaded 413 times
Image

WeerstationGeel
Newbie
Newbie
Posts: 5
Joined: Mon Jan 01, 2018 9:00 am
Station model: Davis Pro 2
Software: Meteobridge

Re: Rain block (blue circles)

Post by WeerstationGeel » Sat Jan 08, 2022 7:25 am

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.

User avatar
Asobig
Advisor
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)

Post by Asobig » 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)

davidefa
Expert
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)

Post by davidefa » Sat Jan 08, 2022 11:25 am

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
Image

WeerstationGeel
Newbie
Newbie
Posts: 5
Joined: Mon Jan 01, 2018 9:00 am
Station model: Davis Pro 2
Software: Meteobridge

Re: Rain block (blue circles)

Post by WeerstationGeel » Sat Jan 08, 2022 2:15 pm

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)
Hello,

Where i can find this new file d3.v7.min.js?

Thank you.

User avatar
Asobig
Advisor
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)

Post by Asobig » 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...

WeerstationGeel
Newbie
Newbie
Posts: 5
Joined: Mon Jan 01, 2018 9:00 am
Station model: Davis Pro 2
Software: Meteobridge

Re: Rain block (blue circles)

Post by WeerstationGeel » Sat Jan 08, 2022 9:13 pm

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...
Asobig,

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
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)

Post by davidefa » Sat Jan 08, 2022 9:15 pm

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
Image

davidefa
Expert
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)

Post by davidefa » Wed Jan 12, 2022 11:03 pm

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
Attachments
demo.zip
(1.05 KiB) Downloaded 411 times
Image

WeerstationGeel
Newbie
Newbie
Posts: 5
Joined: Mon Jan 01, 2018 9:00 am
Station model: Davis Pro 2
Software: Meteobridge

Re: Rain block (blue circles)

Post by WeerstationGeel » Thu Jan 13, 2022 7:15 pm

https://weerstationgeel.be/template/hom ... /demo.html

Here is this file that i added to my rain-block map.

Post Reply