Regarding the image uploading. Originally I used the inherent method of this product. With the app you can configure taking snapshots with an alarm on button push. The script "send_pic_telegram" is responsible for finding the latest snapshot. Sometimes it does not work and needs to adjust a timeout. Perhaps the same can be achieved without the app... I think the app does not read its config from the cloud, it leaves some undocumented settings in the nonvolatile area in the file called
/rom/custom_setting.ini
. Some parameters that could be related to the picture taking:
Code:
AlarmPicCaps = 3
AlarmPathPushSuppport = 1
RemotlySetNetwork = 1
The latter can be something to control the cloud access, anyway the name does not sound nice. However, all that is only a guessing, if someone can take the time to test how the app settings correspond to the parameters values in this file, and how the other ones with permanent values affect the doorbell features.
Later I moved away from "send_pic_telegram" solution and stopped using the script in favour of the Home Assistant ecosystem. I integrated the RTSP stream from the doorbell into HA, and it takes care of all. Here kudos to
@Florissilfhout as the original RTSP support was awful. Snapshots are taken with its automation as well as Telegram bot support. For the automation tasks I use NodeRed.
Thank you for continuing your effort on reverse engineering of the doorbell system. With time settings, my methods works for me, but it involves some hacking depending on your timezone. Basically, as I describe above, all needed things (for me) are now on the FW partition and do not need SD card. Maybe only that time setting script... but it can be moved there too, once the experiments are over. But for a convenience, I would keep a complete busybox, text editor, cron support on the SD anyway. So, regarding mosquitto_pub -- maybe pushing all to the new image is not that handy. If one day you need also to listen for the MQTT messages? BTW I have successfully tested a compiled together simple MQTT send/receive client based upon
this project. That was easier than cross-compiling mosquitto.
The last comment is about RTSP passwords. On the same
/rom
partition mentioned above, together with
RtspAuthentication = 1
setting in the config file you can find passwd1 and passwd2 files one of which can be related to the RTSP. However, once you kill the cloud connection does it matter at all?