HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
803 stars 75 forks source link

MQTT support for detections? #40

Closed roger- closed 3 years ago

roger- commented 3 years ago

Is it possible to add a small MQTT client to trigger messages based on detections?

HclX commented 3 years ago

I can probably hack something based on the log file, but it can be messy.

roger- commented 3 years ago

Do you have an example of a log file?

HclX commented 3 years ago

if you have log sync enabled you should be able to get the log from your camera. There are too many account specific things in the log to share.

HclX commented 3 years ago

another more logic approach for this is: when events are detected, they will need to post the event to Wyze's server, this is done by using curl library. Since I'm already hooking some functions using LD_PRELOAD, it's possible that we can hook the curl function calls, and extract the event details. However, I'm just too busy at this moment. You are welcome to take a look into it and submit a pull request if you get it figured out. Please do that in dev branch if you are going to.

HclX commented 3 years ago

closing this for now.