Page 1 of 1

Temporary email/mqtt/sms/telegram scripts for Docker container joshuacox/mkdomoticz

Posted: Saturday 07 March 2020 21:47
by AlanGpio
I installed the Docker container joshuacox / mkdomoticz and found that I could not send emails. This is a problem experienced by others and the author is working on a solution.

As a temporary measure I have written a bash & python scripts to send emails from Blockly but I guess it can be used wherever a script can be called. The scripts provide some flexibility to use arguements to override the default settings so one script can be used to send different messages or subjects to different addresses.

In fact there are 2 sets of scripts, one for emails and one for mqtt messages.

More details at my github respository: [https://github.com/alan-rpi/domoticz-em ... s-telegram]

Note that neither script supports SSL so it will not work with some email / mqtt hosts.

This is my first github repository; a little thank you to all those who have provided lots of free resources that I have used.

Alan
PS. I'm new to Domoticz so others may well have produced similar solutions, but it has help me to refresh my python skills.
PS. It would be nice if Domoticz Blockly could have these mqtt templates included https://github.com/Gr4vity4/MQTT-BLOCKLY

Re: Temporary email/mqtt/sms/telegram scripts for Docker container joshuacox/mkdomoticz

Posted: Saturday 14 March 2020 0:57
by AlanGpio
1st, I have found that the telegram function is not working when run from the Docker Containers so I've written a script for that.

2nd, the Domoticz sms function used a US SMS delivery provider, so I have written a script to use a UK provider, theSMSworks. Initial use in testing gave a fast response and support was helpful.

3rd, all scripts are now configured using yml files.

Files on Github https://github.com/alan-rpi/domoticz-em ... s-telegram