What bindings can be used to detect motion of an IP-camera?

I would like to use a motion detect binding for my foscam IP-camera. Unfortunately the “IP-camera” binding does not work although the foscam app detects and shows all motion.

Are there other bindings which can be used for “motion detection”? I am using OH 4.1, windows.

Thanks

Can you explain in more detail what your issue is? Also it would be handy to provide the Thing code for the camera.

Have you also followed this instruction?

As each Foscam model has a different resolution and two different URLs, this makes it difficult to automate, so an override feature was added to create your own "enable the alarm" URL. This setting is called customMotionAlarmUrl and the steps to using it are:

Enable the motion alarm in the web interface of your camera and setup any areas you wish movement to be ignored in. E.g. tree branches moving in the wind.
Use any web browser to fetch this URL https://x.x.x.x/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig1&usr=xxxxx&pwd=xxxxx
Use the information returned by the above URL to create the override settings.

this is exactly the issue I have. When receiving the CGI output I get this:

<CGI_Result>
    <result>0</result>
    <isEnable>1</isEnable>
    <linkage>646</linkage>
    <snapInterval>1</snapInterval>
    <sensitivity>2</sensitivity>
    <triggerInterval>0</triggerInterval>
    <isMovAlarmEnable>1</isMovAlarmEnable>
    <isPirAlarmEnable>0</isPirAlarmEnable>
    <schedule0>281474976645119</schedule0>
    <schedule1>281474976645119</schedule1>
    <schedule2>281474976645119</schedule2>
    <schedule3>281474976645119</schedule3>
    <schedule4>281474976710655</schedule4>
    <schedule5>281474976710655</schedule5>
    <schedule6>281474976645119</schedule6>
    <area0>120</area0>
    <area1>120</area1>
    <area2>120</area2>
    <area3>120</area3>
    <area4>120</area4>
    <area5>120</area5>
    <area6>120</area6>
    <area7>120</area7>
    <area8>120</area8>
    <area9>120</area9>
    <humanEnable>1</humanEnable>
    <carEnable>0</carEnable>
    <petEnable>0</petEnable>
    <crossLineEnable>0</crossLineEnable>
    <OnlyDtPed>0</OnlyDtPed>
    <isEnableLine0>0</isEnableLine0>
    <line0Direction>0</line0Direction>
    <line0StartX>0</line0StartX>
    <line0StartY>0</line0StartY>
    <line0EndX>0</line0EndX>
    <line0EndY>0</line0EndY>
    <isEnableLine1>0</isEnableLine1>
    <line1Direction>0</line1Direction>
    <line1StartX>0</line1StartX>
    <line1StartY>0</line1StartY>
    <line1EndX>0</line1EndX>
    <line1EndY>0</line1EndY>
    <isEnableLine2>0</isEnableLine2>
    <line2Direction>0</line2Direction>
    <line2StartX>0</line2StartX>
    <line2StartY>0</line2StartY>
    <line2EndX>0</line2EndX>
    <line2EndY>0</line2EndY>
    <isEnableLine3>0</isEnableLine3>
    <line3Direction>0</line3Direction>
    <line3StartX>0</line3StartX>
    <line3StartY>0</line3StartY>
    <line3EndX>0</line3EndX>
    <line3EndY>0</line3EndY>
</CGI_Result>

Then I setup the URL and put it into the IPcamera Thing like this:

/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&linkage=646&snapInterval=1&sensitivity=2&triggerInterval=0&schedule0=281474976645119&schedule1=281474976645119&schedule2=281474976645119&schedule3=281474976645119&schedule4=281474976710655&schedule5=281474976710655&schedule6=281474976645119&area0=120&area1=120&area2=120&area3=120&area4=120&area5=120&area6=120&area7=120&area7=120&area8=120&area9=120&usr=***&pwd=***

When I check the channel “Motion Alarm” it is always OFF! Do I need to use another channel or what I am doing wrong?

Thank you

Your link is ‘setMotionDetectConfig’ but as I see it should be ‘getMotionDetectConfig’ and more

getMotionDetectConfig1&usr=xxxxx&pwd=xxxxx

I don’t have a foscam but what I see here…
One link is to SET an area and the other GET the information about motiondetection.
Greets

When I check the docu it is a “setMotionDetectConfig” - right?!

https://www.openhab.org/addons/bindings/ipcamera/#foscam

This URL I put in the foscam thing configuration. Do I need to configure it differently?

Ok you’re right… I can’t help here.
we need to wait for @matt1, maybe he can help.
Greets.

Sorry I put everything I know into the readme under foscam setup heading. If you want help then you really should start a thread that accurately describes what you need help with so other foscam users see and jump on to help out.

From memory you do not need to create the url unless your wanting to get the binding to turn the motion on and off. Just leave it enabled in the camera and the channel should move as it detects motion.

As for your other question which the title of this thread is about… You can use the ftp upload binding to detect motion if your camera can upload a file to a ftp site when the motion is detected.

Thanks for the answer. I will use this thread to describe the problem, while you answered to this thread already.

IPcamera with Foscam and MotionDetect