[TMT] Send Notifications From An ESP8266

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 เม.ย. 2024
  • github.com/witnessmenow/push-...
    A quick guide on how to send push notifications to your phone from your ESP8266 when using the Arduino IDE.
    If you have any questions or comments please let me know.
    Telegram Library:
    github.com/witnessmenow/Unive...
    IFTTT Library:
    github.com/witnessmenow/ardui...
    Video on Telegram Library:
    • Universal Arduino Tele...
    Esp8266 Modules:
    Wemos D1 Mini (Clone - the one in the video): s.click.aliexpress.com/e/uzFUnIe
    Wemos D1 Mini: www.aliexpress.com/item/D1-mi...
    NodeMCU: s.click.aliexpress.com/e/AAyvJiA
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 135

  • @ObsequiousV4
    @ObsequiousV4 5 หลายเดือนก่อน

    awesome. I'm going to use this to send me notifications when my plants' auto watering system needs to be refilled

  • @hrayjunior
    @hrayjunior 6 ปีที่แล้ว +4

    Hi. To use IFTTT, the name is updated, serch for Webhook!

  • @soovui
    @soovui 4 ปีที่แล้ว

    Great work... How do I send notifications to a group of people?

  • @julius8795
    @julius8795 6 ปีที่แล้ว +1

    Can you please link me to the used ESP8266 module?

  • @danieltech1391
    @danieltech1391 4 ปีที่แล้ว +2

    How to remove loop delay while esp waiting for new messages?

  • @chanelas292
    @chanelas292 4 ปีที่แล้ว

    Can u make a tutorial for bin trash can, and sending a notification when it gets full?

  • @MONZERJAMALELDIN
    @MONZERJAMALELDIN 6 ปีที่แล้ว

    Thank you for this video, but I have a question. When you created the notification event for IFTTT, where did you define (value1, and value2) for SSID and IP?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      +MONZER JAMAL ELDIN your welcome!
      Do you mean in the Arduino code or the template of the message on the ifttt website?

    • @MONZERJAMALELDIN
      @MONZERJAMALELDIN 6 ปีที่แล้ว

      The template of the message (the video at 1:36), because I have gone through your code and you did not mention anything about value1&2. I have tried a similar project before but by using webhooks and I did not know where to define (value1&2) so I was receiving an empty message (for exmaple (SSID: &IP: ))

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว +2

      +MONZER JAMAL ELDIN
      Ah OK, they are set by the triggerEvent call, it accepts additional parameters that ends up being available as value1 etc
      github.com/witnessmenow/push-notifications-arduino-esp8266/blob/master/PushNotificaitonDemo.ino#L109
      Maybe it has changed since I did this, I can try it out over the weekend to see if it's still working

  • @arifqurbanov2159
    @arifqurbanov2159 ปีที่แล้ว +1

    hi great video im trying to make my own but firs i get an error for compiling esp8266 error after 2 hours i solwed it with use older version of Telegram library. Now im entering the ifttt but no maker triger there what can i do? can you please help me with that

  • @ArtsyEngineering
    @ArtsyEngineering 5 ปีที่แล้ว

    Nice, this is useful!
    What do you use to do the android screen recording?

    • @BrianLough
      @BrianLough  5 ปีที่แล้ว

      It was called Az screen recorder, it's free and worked perfectly for me anyways!

  • @adrividmishra2258
    @adrividmishra2258 3 ปีที่แล้ว

    Where in the code ( examples) I need to type the pin no of the esp 8266 to which my input is connected? Please help.

  • @rochedilarbi2762
    @rochedilarbi2762 ปีที่แล้ว +1

    the ifttt library is not compatible with the newest ArduinoJson Library how to fix it ?

  • @ladjemikais6910
    @ladjemikais6910 5 ปีที่แล้ว

    Hello Brian , great content ! i am actually looking for a way to listen to push notifications on my esp32, any ideas ? Thanks !

    • @BrianLough
      @BrianLough  5 ปีที่แล้ว

      The Telegram in this video is great if you want to send messages to your Arduino. Is that what you mean?

  • @c0r0y
    @c0r0y 6 ปีที่แล้ว +5

    So now Maker has become Webhooks, what do I need to change in the code?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว +2

      +c0r0y hey, it should work the exact same ! Sorry I need to update the documents but others have tried and it still works

  • @ImMajesticAf
    @ImMajesticAf 6 ปีที่แล้ว

    Hi, um slight issues when on IFTTT, either there is another search location with another library of options or they have removed Maker from there applets, can you suggest an alternative?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      Thanks for letting me know! Hmm, it looks like it has been renamed to "webhooks", I haven't tested it, but it looks the exact same as the Maker channel so hopefully it will work without changes
      It might be a few days before I can test it, but if you try it out I would really appreciate if you could let me know if it works!

  • @ChristianKronen
    @ChristianKronen 7 ปีที่แล้ว

    Thank you for the great library. I would like to use this in my next project. I'll build a door bell. Is it ok if I use the library in it - it will be a TH-cam tutorial. Thanks Chris.

    • @BrianLough
      @BrianLough  7 ปีที่แล้ว +1

      Hey Chris,
      Your welcome, thanks for the comment.
      Yeah of course! I would be delighted for your to use it in a video! Sounds like a cool project.
      Brian

    • @ChristianKronen
      @ChristianKronen 7 ปีที่แล้ว

      Thanks alot!! I'm glad I can use the library. :-)
      Once the video is online, I will write to you - it is probably in German :D
      Chris

    • @BrianLough
      @BrianLough  7 ปีที่แล้ว

      Yeah please do! I studied German in school for 5 years so you think I would be able to understand it but I can't speak a word!

  • @JohnyTai
    @JohnyTai 5 ปีที่แล้ว

    Hello, thank so much for your share. But why i can't receive the notification on my iphone. Could you help me ?

    • @JohnyTai
      @JohnyTai 5 ปีที่แล้ว

      // ------- Telegram config --------
      #define BOT_TOKEN "797314648:AAEiAuCx8zhVkwCEwbpZl252P5HfpvYGsEE" // your Bot Token (Get from Botfather)
      #define CHAT_ID "606904550" // Chat ID of where you want the message to go (You can use MyIdBot to get the chat ID)

  • @guydvir2
    @guydvir2 5 ปีที่แล้ว +1

    Hi, thank you for your work. after creating the applet, and pasting the needed creditials - i get an "Failed" error, what might be the reason for that ? I copied all as needed... even the EventName create on IFTTT

    • @BrianLough
      @BrianLough  5 ปีที่แล้ว +2

      There is a change in esp8266 code that broke it. Add "client.setInsecure();" anywhere in your setup

    • @guydvir2
      @guydvir2 5 ปีที่แล้ว

      @@BrianLough Thank you very MUCH !!!

    • @anchongasj
      @anchongasj 4 ปีที่แล้ว

      @@BrianLough hi! Thank you for the video and instructions. Tried adding "client.setinsecure();" in my setup and still doesn't work. Any ideas what might be wrong?

    • @BrianLough
      @BrianLough  4 ปีที่แล้ว

      It should be client.setInsecure()
      Notice the capital i

    • @anchongasj
      @anchongasj 4 ปีที่แล้ว

      @@BrianLough thank you! It finally works. But it doesn't compile with the latest arduinojson. Had to install version 5.13.5. As well as had to include ICACHE_RAM_ATTR for telegram / iftttbuttonpressed functions.

  • @fajrimaulana5901
    @fajrimaulana5901 5 ปีที่แล้ว

    can you make a tutorial esp8266 send notification to whatsapp?

  • @wildangery3301
    @wildangery3301 6 ปีที่แล้ว +1

    I tried to compile this program using board wemos D1, but failed because interrupt it can not be read
    'telegramButtonPressed' was not declared in this scope. is there a solution?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      +Wildan Gery maybe try grab the sketch from github again because that method is there and should work!

    • @wildangery3301
      @wildangery3301 6 ปีที่แล้ว

      I have grab sketch from github and error on interrupt, I try compile attachInterrupt() from example in arduino, on the board arduino uno, the sketch is done compile, but when I change the board to wemos D1 error on interrupt. are you used Arduino ide?

  • @n1kkri
    @n1kkri 3 ปีที่แล้ว

    Does anyone sell a current sensing device that will send me a text or email when it senses current flow. I was thinking if I could
    sense the 24vac current when my doorbell is pushed it could be used with a device to send the text or email. I am a newbie and don't have any experiences with ESPxxx boards. It would be nice if the software was already programmed and I could use my cell phone to connect and add email and phone number for the sending of email or a text. Any help would be appreciated.
    Thanks

  • @samithetechsavvy6485
    @samithetechsavvy6485 5 หลายเดือนก่อน

    I have a problem , it shows jbugger error in the code Can you please help? Thanks

  • @hasanetakiwa
    @hasanetakiwa 4 ปีที่แล้ว

    IFTTTWebhook ifttt(KEY, client); error message is no matching function for call to 'IFTTTWebhook::IFTTTWebhook(const char [45]

  • @Rick-zj2gn
    @Rick-zj2gn 6 ปีที่แล้ว

    Thank u man

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      No problem Rick! Glad to help!

  • @carlosvallori2365
    @carlosvallori2365 5 หลายเดือนก่อน

    Hi, do you have a Telegram code? THanks.

  • @DigvijayKapdi
    @DigvijayKapdi 4 ปีที่แล้ว

    can i use the same codes and library for ESP-01 (which is contain ESP8266 Chip)? and upload the cde through arduino IDE? please give me reply.

    • @BrianLough
      @BrianLough  4 ปีที่แล้ว +1

      Yes, use Arduino JSON 5.x and add client.setInsecure() in your setup and it will work

  • @madeehaasim5093
    @madeehaasim5093 3 ปีที่แล้ว +1

    The code was successfully uploaded on my Wemos D1 Mini but the serial monitor only shows gibberish and none of the serial print messages. What could be the problem? Please help!

    • @madeehaasim5093
      @madeehaasim5093 3 ปีที่แล้ว +1

      After a lot of trouble shoot, I'm now able to get the messages in setup() i.e the WiFi conception messages in the serial monitor. Not able to get anything else after that no matter how many times I press the button. Don't even know what to troubleshoot now cause everything works well. Any help would be appreciated 🙏🏼

  • @BADDiam
    @BADDiam 5 ปีที่แล้ว

    hey, why i can't receive the notification on my iphone. even though the serial prints telegramButtonPressed.

    • @BrianLough
      @BrianLough  5 ปีที่แล้ว

      Check the following things
      - is your bot token correct?
      - is your chat Id correct?
      - have you started a conversation with your bot?

  • @julius8795
    @julius8795 6 ปีที่แล้ว

    Can I use the Wemos D1 instead or just Arduino Uno + ESP8266?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      You need to program the esp8266 with the arduino IDE, the AT commands don't work with the libraries

  • @MrHemachand
    @MrHemachand 6 ปีที่แล้ว

    I have not much idea about the project,
    Someone tell me what the USB from the breadboard connected to ?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว +1

      +kanigiri hemchand that's a wemos d1 mini board (it has the esp8266 chip), its a type of arduino board that has built in WiFi. They are really cheap so I definitely recommend picking one up!

  • @TEKKENEnterMyDragon
    @TEKKENEnterMyDragon 6 ปีที่แล้ว +1

    Hi sir is it possible to use with vibration sensor?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      Sure, it could be used with anything at all. Just get sensor working and then you can copy the notification code into your sketch

    • @TEKKENEnterMyDragon
      @TEKKENEnterMyDragon 6 ปีที่แล้ว

      Thank you for the insanely fast reply sir! I am planning to do an indoor prototype car collision detection using vibration sensor, gps module ublox6m and esp8266-12e. When the vibration sensor is triggered, the long and lad value from gps module will be sent as notifications, do you think the esp8266 can have the sensor and gps to work together?

  • @the9tailsupersaiyan
    @the9tailsupersaiyan 6 ปีที่แล้ว +1

    what's the range of the esp8266?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว +1

      +Santiago Guzman I haven't really tested the range that much, I guess a lot of it depends in how good your router is.
      I would say it's probably not as good as your phone for reception but I have not had any complaints so far.

  • @tashima42
    @tashima42 5 ปีที่แล้ว

    Hey! I'm trying to create a recipe for something like 30 minutes now, and i just can't find this option. IFTT ask me for suggestions or redirects me to a creation studio that asks me to "create" a company. Sry if i'm being dumb, but i just can't find this option anywhere. I searched for a bit but it resulted in nothing. Probably it's just my English, anyway, i would thank u a lot if u could help me with this. Great work, keep it up.

    • @tashima42
      @tashima42 5 ปีที่แล้ว

      Yeah, i was being dumb. Just find out where i needed to go. Anyway, thanks a lot for the content and the libraries. Nice Work

  • @kitingboarding
    @kitingboarding 4 ปีที่แล้ว

    This is really cool but I can’t get it working. Followed everything to the letter. WiFi connects. Button shows pressed in serial monitor but nothing on telegram. I’ve tried multiple bots too. Using esp8266 chip with ftdi usb aerial adapter which works fine with other code. Can’t find much on the net so far that relates to my problem. Any ideas. Should I raise issue on github?

    • @BrianLough
      @BrianLough  4 ปีที่แล้ว +1

      Add "client.setInsecure();" to your setup

    • @kitingboarding
      @kitingboarding 4 ปีที่แล้ว

      @@BrianLough Amazing.....!

  • @krishnachaitanya6187
    @krishnachaitanya6187 5 ปีที่แล้ว

    Is there any need , that both nodeMCU and my phone are in same network?......i mean i am working on a project where the button is far away from my phone

    • @BrianLough
      @BrianLough  5 ปีที่แล้ว

      Nope! Both of these work without the devices being on the same network (both the phone and esp8266 need internet though)

    • @krishnachaitanya6187
      @krishnachaitanya6187 5 ปีที่แล้ว

      @@BrianLough but while i am dumping my code into my nodeMCU, i am getting error in uploading .....its saying "espcomm sync failed"..i have checked COM and frequency of cpu and also changed my cable and its not working

  • @fiendore
    @fiendore 5 ปีที่แล้ว

    Hi Brian, thanks for the video. But I cant even compile the code, even after adding library files. I notice #include is not in orange. Has it sth to do with Arduino Board type? I selected Generic ESP8266 module

    • @MrBobWareham
      @MrBobWareham 3 ปีที่แล้ว

      Change your board to Wemose D1

  • @TuanTran-og6wp
    @TuanTran-og6wp 6 ปีที่แล้ว

    i have a question, how can i push notification to other people, example i have 2 people can open the door, name is 1 and 2, when 1 open the door, name 1 will send to my phone , and if 2 is open the door, name 2 will send to my phone

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      +Tuan Tran I guess you would need a way of being able to tell them 1 and 2 apart, do they open the door with a key card or something?

    • @TuanTran-og6wp
      @TuanTran-og6wp 6 ปีที่แล้ว

      yes i provide the card RFID for open

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      It should just be a case of storing the name in the sketch and when that RFID card is used change the message that is sent via telegram.

  • @absdatar99
    @absdatar99 3 ปีที่แล้ว

    Is "Maker" still available on IFTTT, can't seem to find it.

    • @BrianLough
      @BrianLough  3 ปีที่แล้ว

      I believe it's called webhook now

    • @absdatar99
      @absdatar99 3 ปีที่แล้ว

      @@BrianLough So in the "IF this" part, I have to choose the Webhook icon?

    • @BrianLough
      @BrianLough  3 ปีที่แล้ว

      @@absdatar99 I haven't used it in a long time, but yes I believe so. They basically renamed "maker" to "webhook"

  • @iony10
    @iony10 6 ปีที่แล้ว +1

    what is your latency like? i takes a good 30-60 seconds to receive messages for me

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      +Iony Ion I mainly use telegram, but the delay would be a 2-3 seconds sort of a time frame. Are you using the same code from the description?

    • @iony10
      @iony10 6 ปีที่แล้ว

      no i am using adafruit i/o as my "this" and android sms for "that" would that make a difference? FYI i have an adafruit esp8266 huzzah

    • @iony10
      @iony10 6 ปีที่แล้ว

      i tried your code. i am doing the ifttt app notification part. i got the code to compile and loaded on the board. everything seems fine, but i am not getting notifications. any advice?

    • @iony10
      @iony10 6 ปีที่แล้ว

      sorry for the spam, i changed my pin and it worked lol. thanks for the video!!!

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      No worries, thats great! is it any faster?

  • @julius8795
    @julius8795 6 ปีที่แล้ว

    Is this the Wemos D1 Mini Lite?

    • @BrianLough
      @BrianLough  6 ปีที่แล้ว

      It's the standard d1 mini

  • @hajarathaur9378
    @hajarathaur9378 4 ปีที่แล้ว

    hi, what about if use in Whatsapp not Telegram? how about the code and so on

    • @BrianLough
      @BrianLough  4 ปีที่แล้ว

      WhatsApp doesn't have a public bot API so I'm not sure it can be done too easily

  • @bagusadi1044
    @bagusadi1044 5 ปีที่แล้ว

    How about telegram and sim800l. ?

    • @BrianLough
      @BrianLough  5 ปีที่แล้ว

      Someone has gotten it working before with the tinygsm library, I don't own one so I can't really help more than that

    • @bagusadi1044
      @bagusadi1044 5 ปีที่แล้ว

      @@BrianLough oke oke thanks for information

  • @anandkrishnan1996
    @anandkrishnan1996 7 ปีที่แล้ว

    when i compile only with ifttt it shows arduinojson.h not found in library

    • @anandkrishnan1996
      @anandkrishnan1996 7 ปีที่แล้ว

      \Documents\Arduino\libraries\arduino-ifttt-maker-master\src/IFTTTMaker.h:24:25: fatal error: ArduinoJson.h: No such file or directory

    • @BrianLough
      @BrianLough  7 ปีที่แล้ว

      anand krishnan hey, try install arduinoJson from the library manager. sorry not sure if I mentioned that on github!

    • @BrianLough
      @BrianLough  7 ปีที่แล้ว

      Did adding ArduinoJson library from the library manager fix your issue?

    • @anandkrishnan1996
      @anandkrishnan1996 7 ปีที่แล้ว

      yeah bro but i am using wemos d1 instead of nodemcu but i cant able to receive any notification using ifttt please help

    • @BrianLough
      @BrianLough  7 ปีที่แล้ว

      anand krishnan do you get any errors on the serial console?

  • @GamingAmbienceLive
    @GamingAmbienceLive 4 ปีที่แล้ว

    1. the email service is too fucking slow, it takes 10 seconds on average for an email to be delivered from the moment you hit send and arrive to the phone as SMS
    2. you cannot name the random phone number that is used to send the message, meaning instead of all the messages accumulating in one thread on the phone -- you will have dozens of messages created from a new contact every time you get a notification, so email is not an answer
    3. is there a way to use the google voice messaging system somehow?

  • @harshcomm
    @harshcomm ปีที่แล้ว

    Hello sir i am getting error in (send telegram message)