Q: How can I use the the ioBroker Simple RESTful API Adapter as the Alarmserver of my WQHD 2k+ Camera?
A: Start by running an instance of the adapter:
Configure the adapter to use a interface on the same network as your camera. You can also adjust the port the service is working on - the default value is
Now switch to the object tree and and create a folder for cameras with subfolders for each camera inside the
At the end of this folder structure we now need to add a datapoint that we will be able to toggle by calling the REST endpoint:
I created my datapoint
0_userdata/0/Cameras/INSTAR120 and my ioBroker instance is running on a server with the IP address
192.168.2.112 on the default port
8087. I can test this REST endpoint from my browser or a tool like Postman:
Sending a GET request successfully toggled the endpoint and it now has a value of
To configure your camera by opening the Alarmserver Menu and add the URL you just called above:
Save your settings and click on the Test button to send a request:
The alarmserver successfully changed the value in ioBroker. All you need to do now is to select a script engine - Blockly or Node-RED - and write a script to react to this change.