[Help] Motion Sensor via IP Cam JSON POST or URL Content Change

When motion is detected by my IP camera (Yi Home Camera with Yi-Hack installed) within the last 60 seconds, the defined webpage (http://XXX.XXX.X.104/motion) displays the filename of the newest recording (ie: record/2017Y06M26D13H/15M00S.mp4).

Is there a way using HTTP Sensor or RESTful Sensor etc. to make this into a motion sensor?

Also, the custom firmware has the ability to input a URL destination for a JSON POST with the following format upon motion being detected:

{
    "armed": true,
    "motion": false,
    "last_motion_check": 1490776393,
    "host": "YiCamera"
}

This may be easier to implement, but I have no idea how (what URL to point the JSON POST to so that it can be received by RESTful Sensor and then how to interpert the values and translate to a motion sensor).

Any advice or assistance would be greatly appreciated.

Posted Jun 26, 2017, 8:23 PM UTC

20
Loading comments…