How to change bar to psi on widget Topic is solved
Moderator: leecollings
-
- Posts: 15
- Joined: Thursday 08 December 2016 6:38
- Target OS: Linux
- Domoticz version:
- Contact:
How to change bar to psi on widget
hi guys i got a question for you i like to change the Bar to Psi on a widget , but i cant find it any where , any help will be very appreciated
- Attachments
-
- bartopsi.jpg (9.42 KiB) Viewed 2117 times
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: How to change bar to psi on widget
You could use below dzVents script for that.
When not yet familiar with dzVents please start with reading Get started Before implementing. Special attention please for
"In Domoticz go to Setup > Settings > Other and in the section EventSystem make sure the checkbox 'dzVents disabled' is not checked. Also make sure that in the Security section in the settings you allow 127.0.0.1 to not need a password. dzVents uses that port to send certain commands to Domoticz. Finally make sure you have set your current location in Setup > Settings > System > Location, otherwise there is no way to determine nighttime/daytime state."
Code: Select all
return {
on = {
devices = {xxx} -- change xxx to idx of your Pressure device in bar
},
execute = function(dz, item)
local psiDevice = dz.devices(yyy) -- change yyy to your new psi device (define as virtual sensor under dummy hardware as custom sensor )
local convHpa2Psi = 68.9475729318
psiDevice.updateCustomSensor(dz.round(item.barometer / convHpa2Psi,2))
end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 15
- Joined: Thursday 08 December 2016 6:38
- Target OS: Linux
- Domoticz version:
- Contact:
Re: How to change bar to psi on widget
mate thanks a lot you save me there , still not working as im noob on dzvent but you gave me the starting poin , and for that i thank you
Who is online
Users browsing this forum: No registered users and 1 guest