- added values in celsius degree and in km/h in pws2mqtt
- debug of hooks -added webserver.php
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user