1
0

- added values in celsius degree and in km/h in pws2mqtt

- debug of hooks
-added webserver.php
This commit is contained in:
2022-01-27 18:41:16 +01:00
parent fc4eaf2238
commit 1361cb9395
13 changed files with 214 additions and 57 deletions

View File

@ -23,12 +23,17 @@ function now()
function farenheit2celsius($value)
{
return ($value - 32 / 1.8);
return round((((float)$value - 32) / 1.8),2);
}
function mph2kmh($value)
{
return round(((float)$value * 1.60934),2);
}
function millibars($value)
{
return ($value * 0.029530);
return round(((float)$value * 33.86),2);
}
function mktopic($device)