Page 1 of 1

How to check an osCommand in dzVents

Posted: Monday 08 July 2024 21:18
by McMelloW
Hello to all

I have a data-logger running and every 2 minutes i take a copy of the memory contents. This IP-address is dynamic and there is no room to make it a fixe IP-address. Sometimes the data-logger receives a new IP-address in my LAN and then I don't notice this
The copy of the memory is done with the following line in a dzVents script.

Code: Select all

domoticz.utils.osCommand('wget -nv -N -P /tmp/ 192.168.xxx.yyy/current/current_packets.vbus')
How can I check when this wget failed, because of a wrong IP-address

Re: How to check an osCommand in dzVents

Posted: Monday 08 July 2024 22:53
by waltervl
Check the documentation on executeShellCommand()
It has option to check result (error code etc)

https://www.domoticz.com/wiki/DzVents:_ ... tion_3.1.0

Re: How to check an osCommand in dzVents

Posted: Tuesday 09 July 2024 16:25
by McMelloW
waltervl wrote: Monday 08 July 2024 22:53 Check the documentation on executeShellCommand()
It has option to check result (error code etc)

https://www.domoticz.com/wiki/DzVents:_ ... tion_3.1.0
Thanks, I will dig into this example.

Re: How to check an osCommand in dzVents

Posted: Tuesday 09 July 2024 16:44
by Kedi
Most routers have the possibility to assign an IP-address to a MAC-address.
Is that a possibility?

Re: How to check an osCommand in dzVents

Posted: Tuesday 09 July 2024 17:10
by McMelloW
Kedi wrote: Tuesday 09 July 2024 16:44 Most routers have the possibility to assign an IP-address to a MAC-address.
Is that a possibility?
My router can only 10 fixed IP-addresses. So I have to make a choice.

Re: How to check an osCommand in dzVents

Posted: Thursday 11 July 2024 16:36
by habahabahaba
Is it possible to make data-logger send some data to domoticz?

Re: How to check an osCommand in dzVents

Posted: Thursday 11 July 2024 17:14
by McMelloW
habahabahaba wrote: Thursday 11 July 2024 16:36 Is it possible to make data-logger send some data to domoticz?
No this data logger does not send any thing. You have to get it