TheCrypt0 / yi-hack-v4

New Custom Firmware for Xiaomi Cameras based on Hi3518e Chipset. It features RTSP, SSH, FTP and more!
GNU General Public License v3.0
1.55k stars 218 forks source link

Support for native Android app #9

Closed lucaventurini closed 5 years ago

lucaventurini commented 5 years ago

Hello,

I have noticed that many on the Android Play Store lament the fact that the original Yi-Home app does not show notifications anymore, and I'm one of the unlucky ones.

Does this firmware somehow fix this situation? I know it is some magic that I'm asking about, but who knows, maybe it is just a matter of reverting something back...

Alternatively, what would it be a workaround that can be achieved today? I have read of a Telegram plugin, but it seems not implemented yet, am I correct?

Kudos to @TheCrypt0 for the great work!

BlueBlueBlob commented 5 years ago

Hi Yi app notifications have nothing to do with the camera. For workarounds : curl is implemented, so you can already play with ifttt. I don't know about telegram bot, but if it uses http post and get, it will be easy to add. I can help you for ifttt or gdrive. For telegram bot, go to discord channel :)

Best regards

lucaventurini commented 5 years ago

IFTTT would be great! Should I follow the instructions from yi-hack-v3 to flash the firmware? If you can give me some advice to integrate ifttt I'd really appreciate that.

BlueBlueBlob commented 5 years ago

I don't know, are you comfortable with bash ? Here documentation for ifttt : https://maker.ifttt.com/

With this you can send notification and last snap url.

Ask if you need help. I have to remake my ifttt script for motioneye. And next release will include mqtt integration.

Have fun :)

lucaventurini commented 5 years ago

Hi @BlueBlueBlob, do you have any script to share perhaps? I don't really know where to start, I'm ok with bash but don't want to reinvent the wheel ;)

And, as for the last snap url, is it a private url to the camera or a public one to the cloud?

TheCrypt0 commented 5 years ago

@lucaventurini

Unfortunately we cannot control from the camera how often the App will send out notifications. MQTT integration is being developed to allow to subscribe to motion events.