- May 19, 2015
- 104
- 6
OK, so I sort of solved it using the same concept as Nayr.
I ended up writing a PHP script that will take the variables sent to it and trigger the PTZ, but has a built in delay + file locking to prevent the script being rerun until the delay ends. I then only linked to this script under a Night Profile, as it works 100% fine thru the day.
So now I am getting best of both worlds.
Thanks for the info Nayr, even thou I did it differently, I still achieved the same concepts you described. I still don't like the 30sec delay but it's the best I can do for now.
I may be able to improve my script thou. I could try adding in a list of the presets, and assign some way of prioritising some and maybe even set different delays depending on the distance of travel between each preset. This should let me get it even closer to an ideal setup.
I ended up writing a PHP script that will take the variables sent to it and trigger the PTZ, but has a built in delay + file locking to prevent the script being rerun until the delay ends. I then only linked to this script under a Night Profile, as it works 100% fine thru the day.
So now I am getting best of both worlds.
Thanks for the info Nayr, even thou I did it differently, I still achieved the same concepts you described. I still don't like the 30sec delay but it's the best I can do for now.
I may be able to improve my script thou. I could try adding in a list of the presets, and assign some way of prioritising some and maybe even set different delays depending on the distance of travel between each preset. This should let me get it even closer to an ideal setup.