Each user (phone number) is having their own private apikey to allow sending messages only to that phone number (who requested the apikey). So basically you can only spam to yourself.
Okay - managed to get this going and testing things out. I can (nodered) send a test message using the ‘http request’ node.
Now I ned to get a little more complicated. I’m trying to work out how to add data from a sensor into the message.
Currently I have this in a template node where {{service}} contains the battery percent:
{ "domain": "notify",
"service": "mobile_app_pixel4",
"data": {
"title": "Plug Tess in",
"message": "You forgot to plug in Tess. The battery is at {{service}}%"
}
}
Any idea how I would make that work with with Whatsapp?
Just worked this out - so the ‘http request’ node allows you to use mustache-style tags in it. This way, the relevant data can be pulled from sensors etc.
An example of the url in the node would be:
using nodered on HA - i have a function which returns msg to the WhatsApp node.
in the WhatsApp notify node i have this. but i only get This. i dont get info within msg that was sent from function {
“message”: “https://api.callmebot.com/whatsapp.php?phone=+mobilenumber&text=This+{{msg}}&apikey=apikey”
}
i have alexa node from same function node and it is picking up the msg info.
any help to display msg info in WhatsApp?
New boy here - just set this up. had a bit of trouble with formating but figured it out - THANKS for such a great service. really useful, pretty easy to setup. Look forward to enhancements
No surprise there. It’s the direction all weather service providers are taking. I wouldn’t build my system around the expectation of any service remaining free these days.
I can’t see anywhere that says it’s not free. In fact I just set this up last night and it’s still working fine right now… where are people seeing that it’s not free?