Page 1 of 1
/pages/station/climate.php?var=xxx
Posted: Wed Apr 20, 2022 6:53 am
by meteoesine
Hello,
I probably missed some steps ...
but how did you Davide to add the extra sensors in the climate statistics?
thanks
Re: /pages/station/climate.php?var=xxx
Posted: Thu Apr 21, 2022 9:20 pm
by davidefa
I think you have to update only the attached files ( expand in pages/station directory, make a backup of the original files ).
But don't remember if these are the only changes needed ( because I made these mods together with other php 8.0 conversions ).
In the menu, to add T1 extra temperature, SM1 soil moisture and ET evapotranspiration, add something similar to:
Code: Select all
T1|pages/station/redirect.php?url=climate.php?var=T1|mticon-temp
SM1|pages/station/redirect.php?url=climate.php?var=SM1|mticon-soilmoisture
ET|pages/station/redirect.php?url=climate.php?var=ET|mticon-evapotranspiration
The graph.php and graphAjax.php extend the 'Interactive graph' page adding extra sensor graphing capabilities.
Re: /pages/station/climate.php?var=xxx
Posted: Fri Apr 22, 2022 6:38 am
by meteoesine
works fine, tnx a lot
I would only use UV and PP1-2-3, so
1st thing: the UV archive seems not be enabled
.../pages/station/climate.php?var=UV

- ScreenShot00994.jpg (46.51 KiB) Viewed 45289 times
2nd thing: is it possible to assign a description (or an icon) to the various PPs? (x purpleAir: PP1=PM10 - PP2=PM2.5 - PP3=PM1)
we know what it is, but the 'muggle users' who looks the report or the graph does not know what are means PP1, PP2 or PP3)
thanks againr
Re: /pages/station/climate.php?var=xxx
Posted: Sun Apr 24, 2022 8:21 am
by meteoesine
Ciao Davide,
avendo iniziato a registrare i dati PP1-2-3 da pochi giorni con MB nano ma l'archivio alldataExtra contiene già i dati UV dal 2017, mi ritrovo con dati PP1-2-3 a null che sballano le statistiche.
come posso sostituire i null con 0 nel database? o meglio, se cancello fisicamente da phpMyadmin si ricrea poi in automatico?
grazie
Re: /pages/station/climate.php?var=xxx
Posted: Sun Apr 24, 2022 9:30 am
by davidefa
No, il valore corretto ( per i dati mancanti ) è null. Il problema è che meteotemplate ( a volte ) non tratta correttamente i dati incompleti ( come nel tuo caso ).
Allega un backup della tabella alldataExtra ( mi basta l'ultimo anno ) e vedo di correggerlo.
The correct value ( for missing data ) is null. The problem is that meteotemplate ( sometimes ) is not good at dealing with incomplete data ( as in your case ).
Attach a backup of the alldataExtra table ( last year is enough ) I'll try to fix it.
Re: /pages/station/climate.php?var=xxx
Posted: Thu Apr 28, 2022 9:34 pm
by davidefa
- added UV to available sensors
- you can specify the page heading passing parameter title ( to climate.php script )
In menu add something like this:
Code: Select all
SM1|pages/station/climate.php?var=SM1&title=soil moisture SM1 (vaso)|mticon-soilmoisture
For the PP1-PP3 showing incorrect min/max try deleting the cache files ( will be automatically regenerated )
Code: Select all
pages\station\cache\climatePP1extremes.txt
pages\station\cache\climatePP2extremes.txt
pages\station\cache\climatePP3extremes.txt
NOTE
Add commas to the title parameter to automatically translate ( well, sorta ) the text between commas, ex:
a) title=soil moisture SM1 (vaso) - will translate the full text ( in reality the text is not present in the language file, so the text will remain unchanged )
b) title=soil moisture,SM1 (vaso) - will translate 'soil moisture' and 'SM1 (vaso)' ( 'soil moisture' will be translated in the selected language, 'SM1 (vaso)' will remain unchanged )
This 'sort of translation' works only if the text is contained in the meteotemplate language file
Re: /pages/station/climate.php?var=xxx
Posted: Fri Apr 29, 2022 1:51 pm
by meteoesine

GREAT !!
Re: /pages/station/climate.php?var=xxx
Posted: Tue May 03, 2022 11:57 am
by mchd17
new stats are showing C not default F for temps
and there is no Feels Like stats
I have reverted back to backup files
Re: /pages/station/climate.php?var=xxx
Posted: Sat Jul 02, 2022 9:01 am
by meteoesine
Hello,
Evapotranspiration:
https://meteoesine.it/template/pages/st ... nspiration
I have noticed that the data seems not complete and fully correct
If I clear the cache the data shown are correct, but as soon as I reload the page again it appears as before.
Most probably I don't have the latest version, possibly you can share the updated full version containg also the possibility to see lightning data?
another question about ET data: is it right that the database archives only and exclusively the values from 23:45 to 00:00 of the next day?
many thanks in advance
Re: /pages/station/climate.php?var=xxx
Posted: Tue Jul 12, 2022 5:06 pm
by davidefa
Should have fixed the cache problem, the incorrect extra temperature conversion ( °C <-> °F ) and reintroduced Feels Like stats.
P.S.
All available sensors should be supported ( in stats and interactive graph page )
Re: /pages/station/climate.php?var=xxx
Posted: Wed Jul 13, 2022 6:31 am
by meteoesine
perfect !!
tnx a lot
Re: /pages/station/climate.php?var=xxx
Posted: Thu Sep 29, 2022 5:10 pm
by meteoesine
hello
for lightning
Would it be possible to reset the data at midnight on the new day to prevent the previous day's data from being carried over to the next day and bust the statistics?
There is obviously something wrong
to fix also the evapotranspiration
thanks in advance
Re: /pages/station/climate.php?var=xxx
Posted: Mon Oct 10, 2022 9:30 pm
by davidefa
You may try this updated api.php script, it should fix the zeroing of L and ET at 00:00
Regarding the evapotranspiration table you posted, it could be ok ( if you have only 1 year of recording )
As every row represent average/min/max of all values recorded in the same day of the year.
Re: /pages/station/climate.php?var=xxx
Posted: Mon Nov 14, 2022 6:22 am
by meteoesine
Ciao,
yes, data is reset at 00:00 but reappears at 00:05 then it is reset again at 00:10
tnx
Re: /pages/station/climate.php?var=xxx
Posted: Sat Jul 08, 2023 5:50 am
by meteoesine
https://meteoesine.it/template/pages/st ... .php?var=L
for the lightning statistics is it possible to have the cumulative data month/year instead of the daily max? (as in the rain statistic)
Thank you