Reading IO input state WRN-1610S
AnsweredHello,
In the post "Reading I/O input state on WRN Wave server" and "Input/Output support" we see that we can receive the I/O settings.
But is there also an endpoint that can show us what the state of the input is ?
Thanks.
MB
-
Hello,
In the GUI application, you could configure an event rule on your device to report the input signal change, with parameters
When: Input signal on Camera. Choose your device and the input.
Action: Do HTTP Request
This would notify your external service on signal change
0 -
I therefore assume that we cannot request the status via an HTTP API Call. We will make a receiver to read the status.
Thanks.
Michiel
0 -
Hi,
You could try this yet undocumented method /api/iomonitor?cameraId=<your device id>
I got this result with ADAM-6052 io module.
[{"id":"coil_0","isActive":false,"timestamp":"1673435970597"},{"id":"coil_1","isActive":false,"timestamp":"1673435970597"},{"id":"coil_2","isActive":false,"timestamp":"1673435970597"},{"id":"coil_3","isActive":false,"timestamp":"1673435970597"},{"id":"coil_4","isActive":false,"timestamp":"1673435970597"},{"id":"coil_5","isActive":false,"timestamp":"1673435970597"},{"id":"coil_6","isActive":false,"timestamp":"1673435970597"},{"id":"coil_7","isActive":false,"timestamp":"1673435970597"},{"id":"coil_16","isActive":false,"timestamp":"1673435970597"},{"id":"coil_17","isActive":false,"timestamp":"1673435970597"},{"id":"coil_18","isActive":false,"timestamp":"1673435970597"},{"id":"coil_19","isActive":false,"timestamp":"1673435970597"},{"id":"coil_20","isActive":false,"timestamp":"1673435970597"},{"id":"coil_21","isActive":false,"timestamp":"1673435970597"},{"id":"coil_22","isActive":false,"timestamp":"1673435970597"},{"id":"coil_23","isActive":false,"timestamp":"1673435970597"}]
However, I had no success with a camera having Alarm input and output. No data received.
I guess, the API works for IO modules only.
0 -
Another option would be creating a plugin with the video source SDK, which would look to the Server as an IO module and work with IO functionality (reading/changing status) of your WRN-1610S.
0 -
Thanks, we take a look.
0
Please sign in to leave a comment.
Comments
5 comments