Page 1 of 1

Rain block (blue circles)

Posted: Fri Jan 07, 2022 7:39 pm
by WeerstationGeel
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

Re: Rain block (blue circles)

Posted: Fri Jan 07, 2022 10:06 pm
by Asobig
My values for the orange fields are:
100
200
750
4
10
30
TRUE
FALSE
1

Perhaps that helps.

Re: Rain block (blue circles)

Posted: Fri Jan 07, 2022 11:20 pm
by davidefa
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 9501 times

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 7:25 am
by WeerstationGeel
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.

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 10:30 am
by Asobig
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)

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 11:25 am
by davidefa
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

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 2:15 pm
by WeerstationGeel
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.

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 6:37 pm
by Asobig
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...

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 9:13 pm
by WeerstationGeel
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.

Re: Rain block (blue circles)

Posted: Sat Jan 08, 2022 9:15 pm
by davidefa
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

Re: Rain block (blue circles)

Posted: Wed Jan 12, 2022 11:03 pm
by davidefa
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

Re: Rain block (blue circles)

Posted: Thu Jan 13, 2022 7:15 pm
by WeerstationGeel
https://weerstationgeel.be/template/hom ... /demo.html

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