dzVents: How to round notification value
Posted: Saturday 07 October 2023 19:42
How to correctly write the code to have the value sent in push notification ("Regn idag") rounded to one decimal, I have tried so many different ways...
From log:
Newbie trying to learn dzVents......
Code: Select all
execute = function(domoticz)
if (domoticz.devices('WU: Rain').rain > domoticz.data.Raincounter1) then
domoticz.data.Raincounter1 = domoticz.devices('WU: Rain').rain
domoticz.notify(('Regn idag:'), domoticz.devices('WU: Rain').rain)
Code: Select all
SendNotification = Regn idag:#2.2000000476837#0#pushover##