Reading IO input state WRN-1610S

Answered

Comments

5 comments

  • Avatar
    Andrey Terentyev

    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
    Comment actions Permalink
  • Avatar
    M Boulonois

    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
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    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
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    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
    Comment actions Permalink
  • Avatar
    M Boulonois

    Thanks, we take a look.

    0
    Comment actions Permalink

Please sign in to leave a comment.