API
For now, the API (application programming interface) allows these changes:
- Set dynamic text overlays: to dynamicaly update overlay information text, i.e. weather information
- Enable/disable webcam: use an external call to turn on/off image collection
- Change live stream settings: stream from (or to) another endpoint; enable/disable webcam
These calls can be used from your own scripts or from an external cron services like https://www.easycron.com
Using the API
Get the SECRET-API-KEY from your Dashboard -> Profile settings. The WEBCAM-ID is shown in the webcams list.
API calls can be made using a curl
command:
This could be a live example:
Warning: there is a sensible API rate limit. If there are too many calls per hour, your account might be locked.
Dynamic text overlays
(also see dynamic text overlays)
Example to update the value of the dynamic_text variables:
Enable/disable webcam
example call using interval field to disable/enable camera:
turn off:
turn “on” (there is no “on”, set to 60 seconds here):
Live stream settings
To change live stream parameters:
All parameters shown are optional.
Example: Setting ’{“stream_enabled”: true}’ (or false) can be used by an external scheduler to enable/disable streaming at a specific time.