roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Feature request: Send snapshot via MQTT #10

Closed fcsegalla closed 3 years ago

fcsegalla commented 3 years ago

It would be nice to send a snapshot or the short mp4 (as the ftp already does) via MQTT, not just the link, the file itself, this way we don't have to deal with firewall settings to send the image ou video to a monitoring app.

roleoroleo commented 3 years ago

Is there a "standard" protocol to do this? jpg? png? base64 encoding?

fcsegalla commented 3 years ago

I got this ideia from this project: https://www.npmjs.com/package/ipcam2mqtt

I don't think there is a standard protocol for this but base64 seems a good solution

roleoroleo commented 3 years ago

https://github.com/roleoroleo/sonoff-hack/commit/4b4810b9fdedee2d9a67962d61370a2cd9a8853e

fcsegalla commented 3 years ago

Great news @roleoroleo