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

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

No files matched your search

+7 -2
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)