Send a notification to phone

Hi all, I have a ESP8266 board with WiFi on it and I had it set up to send IFTTT notifications to my cell phone whenever my laundry dryer started - in order to remind my wife and I to take clothes out after it has been running for 15 minutes. I used the IFTTT applets and webhooks for this. Then they turned off the free webhooks on their site. Now I am looking for another way to send a notification to our phones for free or for very little. Willing to pay $1 per month but anything more than that, we will live without this convenience.

I know that you can send an SMS message to a phone (for example we have AT&T and if you send an email to yourPhoneNumber@txt.att.net it will send the SMS message). I spent many hours trying to get SMTP messaging working in my ardruino code with no success... keep getting compile errors on the #include line...

Please help with any ideas.

Maybe consider using Telegram. I don't use an ESP to send messages but they do have a library that will (UniversalTelegramBot - Arduino Libraries).

What about Whatsapp

Pushover. $5 one-time fee.

See

Also, I've used this library for sending emails, including sending texts via email to myself. .

I did look into Telegram but was having some issues with getting that set up too. Has anyone on this board been successful setting up notifications to go to Telegram?

I haven't looked into WhatsApp yet - have you used it?

Hi Dave, after I posted there was a suggestion that came up which linked to a post about Pushover. It might have been one that you had commented on in the past. I looked thru the post and there was some discussion about refining something - forget what it was. I wouldn't mind using Pushover. Just looking for something relatively easy to set up and use as I am not a strong user/coder. Is it fairly easy to setup? If so, I might go with that. I'm assuming if I wanted to send push notifications to both my wife and I that we'd each have to do the one-time $5 purchase?

You'll have to double-check, or maybe Dave knows for sure, but my memory is that the payment is for a "platform", the options being IOS, Android, and desktop. So if you and your wife are both using iPhones, then it would just be one $5 payment. Also, there's a 30-day free trial, so nothing paid until you're sure it works.

The thread Dave linked to is the one I started. I made the switch to Pushover for the same reason as you. And since you're using the ESP8266, you can take advantage of BearSSL, which is included in the ESP8266Wifi.h library, and which lets you do a TLS connection without having to mess with the server's certificate, or get the current time via NTP. Here's my code:

https://github.com/gbhug5a/Mailbox-Notifier/tree/master/Update-2025

Dave, did you get it working on ESP32?

Almost every day for ten years :grinning:

I had to drop the project for a while, but I'm definitely going to try to figure it out why I'm not getting a good response after the current crunch is over. But it does send notifications...

Ok, I signed up as a user on the iphone app for Pushover which gave me a user key and an email address to send emails to in order to get a push notification in the app. I did try sending the email and it did push a notification to me in the app. Next I set up an Application in Pushover and got an API token.

I was able to send a push notification to my phone via curl on my computer. I am now just needing to know how to integrate this with my arduino code.

Any suggestions would be much appreciated!

Thanks!

I started here:

I looked at that one but didn't know if I needed the pushover certificate like he had in his code. I didn't see that in the pushover documentation anywhere. It looks like he uses the esp8266 to "build" the .json file or something. When I tested using curl I didn't need to use a json file - I just included the token, name, and message tags along with their values.

As I said in post #8, you don't have to mess with the certificate or the NTP connection if you don't want to. The code I linked to is a simple example of skipping all of that.

And Dave is on the verge of getting this all working for the ESP32. Any day now. :slight_smile:

1 Like

ShermanP thank you! Success! I did see your earlier post but I think I was still stuck on trying to get Telegram going and forgot about your comment about the certificate. I checked out your code and used a chunk of it in combination with what I already had and I am up and running again now. I'm still on the 30-day free trial but will happily pay a one-time fee of $5 to have this as a full-time working solution again!

Much appreciated to all who helped out!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.