Extending extra sensor table
Posted: Thu May 13, 2021 10:14 pm
ver 1.0
I have extended the support of extra sensor of meteotemplate to 8 sensors of the following ( it was limited to 4 ) :
T1-8 ( extra temperature )
H1-8 ( extra humidity )
TS1-8 ( soil temperature )
SM1-8 ( soil moisture )
LW1-8 ( leaf wettness )
LT1-8 ( leaf temperature )
CO2_1-8
NO2_1-8
SO2_1-8
O3_1-8
CO_1-8
PP1-8 ( particulate pollution )
If you want to save in the database more than 4 extra temperature sensors ( for example to graph these sensors ) this is for you.
You don't need this mod if you only need the 'last value' of these extra sensors as this is already available through the file meteotemplateLive.txt ( many blocks use this )
Simply expand the file in the root folder of meteotemplate ( it will overwrite the files api.php, update/apiSetup.php and update/saveAPISettings.php )
ver 1.1a
Minor update: corrected LD/LT saving in update/apiSettings.txt and added an option ( $logGetPost on line 33 ) to enable logging of the api.php call with get/post parameters ( cache/apiReqLog.txt )
ver 1.1b
Minor update: added ET ( evapotranspiration ) to extra sensor table
I have extended the support of extra sensor of meteotemplate to 8 sensors of the following ( it was limited to 4 ) :
T1-8 ( extra temperature )
H1-8 ( extra humidity )
TS1-8 ( soil temperature )
SM1-8 ( soil moisture )
LW1-8 ( leaf wettness )
LT1-8 ( leaf temperature )
CO2_1-8
NO2_1-8
SO2_1-8
O3_1-8
CO_1-8
PP1-8 ( particulate pollution )
If you want to save in the database more than 4 extra temperature sensors ( for example to graph these sensors ) this is for you.
You don't need this mod if you only need the 'last value' of these extra sensors as this is already available through the file meteotemplateLive.txt ( many blocks use this )
Simply expand the file in the root folder of meteotemplate ( it will overwrite the files api.php, update/apiSetup.php and update/saveAPISettings.php )
ver 1.1a
Minor update: corrected LD/LT saving in update/apiSettings.txt and added an option ( $logGetPost on line 33 ) to enable logging of the api.php call with get/post parameters ( cache/apiReqLog.txt )
ver 1.1b
Minor update: added ET ( evapotranspiration ) to extra sensor table