Search found 8 matches

by AriePiet
Sunday 14 April 2024 10:27
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

Hi Haba, Sorry for the late response. Here you have the basic for the script: #!/bin/bash # VoordeurBelCam-vid.sh # ============== # |Author: JvdB| # ============== # Take video with the SmartWares IP WiFi camera..! # With this script you save a live video from any camera using rtsp, mine is a ...
by AriePiet
Wednesday 03 April 2024 20:17
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

@haba

Tears of joy and happiness here, it looks like it's working!

Not sure about you example, but i had to uncheck the 'Ignore Interval' option:
Schermafbeelding 2024-04-03 201233.png
Schermafbeelding 2024-04-03 201233.png (62.46 KiB) Viewed 1711 times
by AriePiet
Tuesday 02 April 2024 19:49
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

So, like this: cnt=`ps x | grep "VoordeurBelCam-vid.sh"|grep -cv grep` echo $cnt if [ $cnt -gt 1 ] then echo "Process already running" exit fi --- rest of your script ./VoordeurBelCam-vid.sh & Although this looks very promising and i'll definately will use it, wouldn't it be better to prevent this ...
by AriePiet
Sunday 31 March 2024 21:35
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

Thanks Haba,

I will look into this also, not really played with Dzevents before.
by AriePiet
Sunday 31 March 2024 14:18
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

So, like this: cnt=`ps x | grep "VoordeurBelCam-vid.sh"|grep -cv grep` echo $cnt if [ $cnt -gt 1 ] then echo "Process already running" exit fi --- rest of your script ./VoordeurBelCam-vid.sh & Although this looks very promising and i'll definately will use it, wouldn't it be better to prevent this ...
by AriePiet
Sunday 31 March 2024 13:46
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

First thanks for your quick replies! Not sure why this would work, but worth a try. I have created a new script, which is started by the Domo switch event: cnt=`ps x | grep "Pre-VoordeurBel.sh"|grep -cv grep` echo $cnt if [ $cnt -gt 1 ] then echo "Process already running" exit fi --- rest of your ...
by AriePiet
Sunday 31 March 2024 11:26
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Re: Mutliple events

Hi jvdz,

In the script i already prevent it from running more then once, that's not the problem.

The problem is that, somewhere (Domoticz, Espeasy) each press is remembered and handled after the first press and thus the script starts again.
by AriePiet
Saturday 30 March 2024 13:00
Forum: Switches and Scenes
Topic: Mutliple events
Replies: 14
Views: 1864

Mutliple events

Hi Guys, I am posting this here, as it's switch related. I am having an issue where a specifi bash script is triggered to run more than once. I know why, but not how to surpress it. I have several EspEasy devices, with all kinds of sensors and they all work flawlessly except for the one with a ...