Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted (edited)

I want to simple test the function     /Event/notification/alertStream  on my Hikvision camera by using the virtual device for Motion detection on / Off  (found in the forum and works fine) and added a button for Motion_DETECTED.

 

-- MAIN
cam = Net.FHttp(ipaddress,port)
cam:setBasicAuthentication(username,password)
fibaro:debug('test')
response,status,errorcode  = cam:GET('/ISAPI/Event/notification/alertStream')
fibaro:debug(response)

 

during debug session only "test" appears and nothing further.  

My aim is to see the "response" variable in a string format.

 

any idea what is going wrong?

 

 

Edited by maygel

5 answers to this question

Recommended Posts

  • 0
Posted

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

  • 0
Posted (edited)

Hi,

You can try my code
 

Please login or register to see this code.

 

Edited by annhan91
  • 0
  • Inquirer
  • Posted

    Thank you! Will give it a go

    • 0
  • Inquirer
  • Posted

    @annhan91 the code works well. I received bien1 ="1" every time motion is detected. It seems to reset as then get "" and "0". I walk past the camera a few times and the highest the value of bien1 was "1".

    I created a test VD and added two labels to display while test and capture time of trigger.

     

    Thanks again.

     

     

    Quote

    Please login or register to see this code.

     

     

    • 0
    Posted
    On 4/24/2018 at 5:54 AM, annhan91 said:

    Hi,

    You can try my code
     

    Please login or register to see this code.

     

    Hi!

    Please help me with the followin problem: I have a Hikvision  ds-2cd2041g1  camera registrred in HCL Lite .  Do you think it is possible to program HCL to activate an alarm if camera detect motion ? I do not know to program HCL.

    The Manual of Camera is on the adress:

    Please login or register to see this link.

    Thanks!

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...