Search found 5 matches

by krej
Sunday 17 January 2021 20:23
Forum: dzVents
Topic: utils.osExecute leaves defunct processes
Replies: 2
Views: 341

Re: utils.osExecute leaves defunct processes

Just tried with this simple script return { on = { timer = { 'every minute' }, }, execute = function(dz, timer) dz.log('Timer event was triggered by ' .. timer.trigger, dz.LOG_INFO) os.execute('sleep 20 > /data/sleep.stdout 2> /data/sleep.stderr &') end } and the defunct processes still appear. # ps ...
by krej
Sunday 17 January 2021 12:22
Forum: Utility
Topic: P1 smartmeter presentation issues
Replies: 2
Views: 554

P1 smartmeter presentation issues

I'm feeding production/consumption data from a Fronius Smartmeter into a virtual P1 SmartMeter device in Domoticz. I see several issues with the presentation of data. I feed positive values for CONS and PROD to the device, still it displays negative values on the dashboard for CONS-umption. https ...
by krej
Sunday 17 January 2021 11:44
Forum: dzVents
Topic: utils.osExecute leaves defunct processes
Replies: 2
Views: 341

utils.osExecute leaves defunct processes

In regular lua scripts I use os.execute('some-command > /data/some-command.output.json &' to trigger a lenghty (> a few seconds) collection of data that Domoticz some moments later will pick up. Notice the background processing with &. This works well. Tried the same technique in dzVents, using a ...
by krej
Monday 11 January 2021 10:28
Forum: dzVents
Topic: dzVents 3.1 on Domoticz 2020.2 - possible?
Replies: 2
Views: 358

Re: dzVents 3.1 on Domoticz 2020.2 - possible?

OK, Thank for a quick response! I'll have to choose from either waiting for next stable release or venturing out into beta territory.
by krej
Sunday 10 January 2021 22:16
Forum: dzVents
Topic: dzVents 3.1 on Domoticz 2020.2 - possible?
Replies: 2
Views: 358

dzVents 3.1 on Domoticz 2020.2 - possible?

Just started to convert all my lua scripts to dzVents (which seems great!), partially driven by the support for asynchronous execution of HTTP requests and command executions. Found out the hard way that command executions are not supported in dzVents in 2020.2. I'm using the latest stable ...