As a test I ran
Code: Select all
nc -l -p 8081
on my pi and on my camera I set the message to be /json.htm?type=command¶m=switchlight&idx=57&switchcmd=Off&level=0, my Pi on the test port 8081 it came in 100%. Next I thought I'd try 8080 but it was a longshot and the sensor on IDX57 did not change.
What would the collective recommend to toggle my sensor? A script constantly listening on an arbitrary port to trigger the sensor to then grab a pic OR use the camera to upload the pic and have a script that waits for a pic to arrive and use that as a trigger?
I'm leaning towards the latter as the pic will be more likely to contain the 'trigger' ie no delay.