craig
September 14, 2022, 5:10pm
5
most people use a bash script in a loop. You can use curl on Linux (or RPi OS) to send the command to take a picture.
If the interval is short, you can sleep the program inside the loop.
By Veronica Stork When you're writing a shell script, you may find that you need it to wait a certain number of seconds before proceeding. For example, you might want the script to wait while a process completes or before retrying a failed command. ...
If the interval is long, such as once a day, you can use crontab
https://www.baeldung.com/linux/schedule-script-execution
Example of taking a picture is here:
curl examples
Curl works on Windows 10 with the THETA in client mode.
GET example for osc/info
$ curl -D - --digest -u "THETAYL00101082:00101082" 'http://192.168.2.101/osc/info'
[image]
POST example for osc/state
POST Example
Note the use of -H for the header
$ curl -H "Content-Type:application/json" -D - --digest -u "THETAYL00101082:00101082" -X POST 'http://192.168.2.101/osc/state'
[image]
POST Example with data payload to takePicture with osc/execute
$ curl -d '{"name":"camera…
NOTE: most people are using the USB API for this type of long-term use. There are limited examples using Ethernet. We don’t have examples of controlling the plug-in over Ethernet in production use. You would be a pioneer.