Page 1 of 1
How can I make a discord/whatsapp bot?
Posted: Monday 28 February 2022 18:06
by feliw124
Hello everyone, I just finished coding a notification system for some temperature sensors with dzVents. I have been using the email option, but now want to use discord or whatsapp. I looked up some tutorial and the bigger part of the tutorials are for python(which I didnt choose because you could only do very limitted thing on it. My question now is, if a can communicate a python code with my dzvents code to send notifications?
Re: How can I make a discord/whatsapp bot?
Posted: Monday 28 February 2022 20:04
by waltervl
If you can run a command in a terminal that does your discard/Whatsapp notification you can have dzvents run that external command with .executeShellCommand()
https://www.domoticz.com/wiki/DzVents:_ ... tion_3.1.0
Edit: Perhaps easier to use the Notification Action field as explained in next message.
Re: How can I make a discord/whatsapp bot?
Posted: Tuesday 01 March 2022 9:15
by waltervl
For whatsapp these instructions are on the Wiki (but from 2016 so could be outdated).
https://www.domoticz.com/wiki/Unofficia ... ll_example
Scripts can now also be activated in the Notification Action field
https://www.domoticz.com/wiki/Managing_ ... ifications
And if the action can be triggered through a HTTP/HTTPS URL you can add the link in Custom HTTP/Action
https://www.domoticz.com/wiki/Applicati ... ifications