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!



Smart Home Forum by FIBARO Team

  • 0

How to command Foscam IP cam via HCL3



I am new with Fibaro, but worked earlier with Popp controler. I want to switch on and off the alarm of the camera by a http command (http://IPcamera/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=xxx&pw=yyy). What is the best way to do it? Please provide details (I really don't know much about programming in LUA). Thanks for your help!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • Inquirer
  • After some trials I found a solution that seems to work to a certain point:


    local url = "http://192.168.yyy.xx:88/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&linkage=159&snapInterval=1&sensitivity=3&triggerInterval=10&schedule0=281474976710655&schedule1=281474976710655&schedule2=281474976710655&schedule3=281474976710655&schedule4=281474976710655&schedule5=281474976710655&schedule6=281474976710655&area0=960&area1=960&area2=960&area3=960&area4=960&area5=960&area6=960&area7=960&area7=960&area8=960&area9=960&usr=xxx&pwd=yyy"
    net.HTTPClient():request(url, {
            method = 'get',
            headers = { 
                Accept = "application/x-www-form-urlencoded" },
            timeout = 5000
        success = function(response)
            hub.debug("Scene66", response.data)
        error = function(errorMessage)
            hub.debug("Scene66""HTTPClient error" .. errorMessage)
    Unfortunately the camera do not change the status und sends -1 that means "CGI request string format error". If I send the command via browser it works perfectly. Any ideas, what is wrong and how I can solve it.
    Link to comment
    Share on other sites

    Join the conversation

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

    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...