EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

Hack dafang info #146

Closed crm1801 closed 6 years ago

crm1801 commented 6 years ago

Very good, first of all forgive me for my English, I am using a translator. Can you tell me if with the hack, you could thus record the alerts on a private server? Thank you.

shinebar1001 commented 6 years ago

As the Xiaomi-Dafang-Hack isn't able to detect motion, you are not able to record alerts on a private server without additional software running on an another server like motioneye. But you can record videos (with some manual actions to a ftp-server or a nfs-enabled NAS. I'm closing this issue, please feel free to reopen it when you have further questions.

Adriien-M commented 6 years ago

Just for my information, the original firmware of the Dafang camera is able to detect motion, right? It's not possible to use the original function to get an alert when motion is detected?

nik0 commented 6 years ago

I added the v4l2server motion detection that is not yet merged https://github.com/EliasKotlyar/Xiaomi-Dafang-Software/pull/8 For now the "region selection" of the motion is not working but it seems to be promising. I didn't suceeded saving the stream using avconv ... Nik0

Adriien-M commented 6 years ago

Wow nice work indeed! This is an important feature... Currently, I detect motion and record video stream via Synology Surveillance Station, it works perfectly. However, it would be interesting to handle the detection directly via the camera and send a notification via MQTT. In this way, the management can be centralized in our favorite home automation platform...

Edit : saving the stream to the sdcard would be a nice feature too you're right, but another challenge too...