Best way to run Perl script whitin dzVents

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
McMelloW
Posts: 427
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Best way to run Perl script whitin dzVents

Post by McMelloW »

At this moment I run a Perl script within dzVents on the following way.

Code: Select all

os.execute('perl /home/pi/Public/perl-script > /tmp/output.txt')
The script runs every minute between 15 minutes before sunrise and 15 minutes after sunset. The ouput is piped to /tmp/output.txt.
Is there a better and/or faster way to run this perl script within dzVents. Or perhaps as a crontab job and pickup the contents of output.txt within dzVents.
Smart ideas are welcome
Greetings McMelloW
triton
Posts: 15
Joined: Monday 03 April 2017 15:01
Target OS: Linux
Domoticz version: 4.9701
Location: Netherlands
Contact:

Re: Best way to run Perl script whitin dzVents

Post by triton »

I don't know what your perl script does? Don't get me wrong. Depening on what the script does it may be worthwhile getting the data with lua so you can do it all from dzvents. Perhaps it possible to save the hassle working with a temp file that way.
User avatar
McMelloW
Posts: 427
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Best way to run Perl script whitin dzVents

Post by McMelloW »

That is point, I can not without the perl script (yet) It gets information from a Solarpanel Inverter using modbus protocol and transforms the data to a file. That is way I use this script. Handling the file to devices is no big deal
Greetings McMelloW
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest