Hi All ! I'm in need to update a variable on a remote domoticz via json & curl : - remote domoticz is IP accessible on port 8080 - a dedicated user exists, with "user" rights on a remote domoticz and a few devices authorised - this user can be successfuly used to update remotely that devices via ...
I need to rise a warning in using that kind of flow sensors on a swimming pool filtration circuit. I never managed to keep one of them operating more than a few months. And the breakdowns come after +/- the same amount of M3 pumped through them. I guess they are just not designed to count such a ...
You're right !! Here is the full code : function os.capture(cmd, raw) local f = assert(io.popen(cmd, 'r')) local s = assert(f:read('*a')) f:close() if raw then return s end s = string.gsub(s, '^%s+', '') s = string.gsub(s, '%s+$', '') s = string.gsub(s, '[\n\r]+', ' ') return s end function getPref ...
I've had the same need in lua, so I wrote the following function : function getPref(dbName,key) -- Retourne une valeur depuis les préférences de domoticz -- Key doit correspondre à l'une des lignes de la table preference sql='sqlite3 '..dbName..' "select nValue,sValue from Preferences where Key=\' ...
I back up the point for the icon, it would be nice
Regarding export of data, I had this need for electricity, and choose to export to a MySQL dB. Simply by running an SQL query via an os.execute in a lua script. I think we could do the same here
Suggestion: The script results in display at the widget with many digitis which are not effective. Inserting a 'round'-function you can limit to a more meaningful display. You're right about displaying not meaningful digits. The problem is calculating ET every minutes, or even hours, gives very ...
Here is my script to calculate EVP based on weather sensors. Calculations are from Penman Monteith formula and FAO-56 method ( http://edis.ifas.ufl.edu/pdffiles/ae/ae45900.pdf ). The code below is an extraction from my global watering script, so maybe I introduced some syntax bug on the process. If ...
Did you also put an automatic chlorine regulator? Yes ; I have a full setup filtration+pH+chlorine Same as for the ph but with another probe? Yes, an ORP probe connected to a dedicated phidget 1130 card Same as for the ph but with another probe? You can have a look at this topic in the french ...
I would be curious too about other's experience. Here it's still operating. After having selected the right material for acid piping, it's been rock solid. If I would make a v2, here are the things I'd change : - Include water temperature measurement with 18ds20 - Include weighting of chlorine and ...
Hi ! This is the function I use for this usage function pzem_read(pzem,HC,dev_V,dev_A,dev_W,dev_CP) --[[Read measures from a pzem in a 3Amps device and dispatch measures for voltage, current and power in corresponding devices Input : pzem : type 3phase current HC : switch "On"=night time Output ...
I know you excluded it explicitly, but just in case... I'm using that stuff https://www.aliexpress.com/item/3280974 ... 2e0eVhVncD for the same purpose (detecting the run of a pump), it's been working fine for years now.
Did you put 220v on the pzem while trying ? Mine does not respond without 220v
Edit : I just read again the thread on let's control it and they say the protocol have changed for pzem v3 ; my precompiled firmware won't work with those ones, sorry