Rain block
-
- Newbie
- Posts: 3
- Joined: Thu Apr 29, 2021 5:38 am
- Station model: netatmo
- Software: netatmo plugin
Rain block
Hi
Having issues with the rain block.
It only shows rain today.
This month and This year is always zero
Block version 7.1
Weather station netatmo
Bengt
Having issues with the rain block.
It only shows rain today.
This month and This year is always zero
Block version 7.1
Weather station netatmo
Bengt
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block
- do other block report rain data correctly ( for example block station data )?
- do graphs show past rain data correctly ( which is equivalent to previous question and should verify that rain data is correctly saved in database )?
- when did you start weather data recording in meteotemplate
Please post a link to your site
- do graphs show past rain data correctly ( which is equivalent to previous question and should verify that rain data is correctly saved in database )?
- when did you start weather data recording in meteotemplate
Please post a link to your site
-
- Newbie
- Posts: 3
- Joined: Thu Apr 29, 2021 5:38 am
- Station model: netatmo
- Software: netatmo plugin
Re: Rain block
Link: https://selevaret.casadelsele.com/meteo/
Started collecting data sinse mid april this year.
Now i see that block station data also shows 0 mm when selecting month or year
Bengt
Started collecting data sinse mid april this year.
Now i see that block station data also shows 0 mm when selecting month or year
Bengt
-
- Newbie
- Posts: 3
- Joined: Thu Apr 29, 2021 5:38 am
- Station model: netatmo
- Software: netatmo plugin
Re: Rain block
Found the fix
ran this command:
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
I had problem with the interactive graph as well, both solved:)
ran this command:
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
I had problem with the interactive graph as well, both solved:)
-
- Observer
- Posts: 15
- Joined: Mon Oct 30, 2023 6:22 pm
- Location: Diano Marina - Italy
- Station model: GW2000 - WS90
- Contact:
Re: Rain block
I have the same problem. Where should I run the command? In this console?
- Attachments
-
- Acquisizione schermata 10.11.2023 alle 08.30.39.png (118.56 KiB) Viewed 314 times
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block
Yes, you can do it from the Sql tab, or in the Variables tab you should be able to edit the sql_mode variable directly
-
- Observer
- Posts: 15
- Joined: Mon Oct 30, 2023 6:22 pm
- Location: Diano Marina - Italy
- Station model: GW2000 - WS90
- Contact:
Re: Rain block
Sorry but I've never edited on SQL. Is this one? What should I enter or change?
- Attachments
-
- Acquisizione schermata 11.11.2023 alle 13.41.21.png (57.33 KiB) Viewed 293 times
-
- Observer
- Posts: 15
- Joined: Mon Oct 30, 2023 6:22 pm
- Location: Diano Marina - Italy
- Station model: GW2000 - WS90
- Contact:
Re: Rain block
It gives me an error when modifying the sqlmode database because I don't have super privileges even if the database is mine
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: Rain block
You still have a few options:
- verify in the control panel of your hosting provider if you have any 'database setting options' to disable the only_full_group_by flag ( a mysql.ini editor or the like )
- verify in the control panel of your hosting provider if you can change the 'sql version' ( in mysql that option is enabled by default starting from ver 5.7, in mariaDb is disabled )
- you could add the following to your config.php script near line 15 ( after line beginning with '$con =' ). I used in my aruba domain which has the same problem, and it seems working.
( if you run the 'main configuration script' and click the save button, you will need to reenter this mod )
- verify in the control panel of your hosting provider if you have any 'database setting options' to disable the only_full_group_by flag ( a mysql.ini editor or the like )
- verify in the control panel of your hosting provider if you can change the 'sql version' ( in mysql that option is enabled by default starting from ver 5.7, in mariaDb is disabled )
- you could add the following to your config.php script near line 15 ( after line beginning with '$con =' ). I used in my aruba domain which has the same problem, and it seems working.
Code: Select all
mysqli_query($con,"SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))");
-
- Observer
- Posts: 15
- Joined: Mon Oct 30, 2023 6:22 pm
- Location: Diano Marina - Italy
- Station model: GW2000 - WS90
- Contact:
Re: Rain block
@davidefa I have to thank you again... I used the "third method" you listed.
I have a TopHost domain and had the same problem.
Now it seems to work. I have to remember that if I make changes in the main configuration I have to go and edit the config.php file again.
My php version is 7.4.
I have a TopHost domain and had the same problem.
Now it seems to work. I have to remember that if I make changes in the main configuration I have to go and edit the config.php file again.
My php version is 7.4.
- Attachments
-
- Acquisizione schermata 12.11.2023 alle 08.43.17.png (39.12 KiB) Viewed 278 times