Send Daily Push Notifications to Your Phone Using Python | Build A New Year's Resolution BOT (fast)

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • 👉 Explore All My Excel Solutions: pythonandvba.c...
    𝗗𝗘𝗦𝗖𝗥𝗜𝗣𝗧𝗜𝗢𝗡
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    In this tutorial, I will show you, how you can send daily push notifications to your smartphone using python. We will be using the “Pushbullet API” to send the notifications. Afterwards, we are going to set up PythonAnywhere to run the script daily.
    Python Code and files used in the tutorial [Google Drive]:
    👉 bit.ly/3pz47mI
    Further Links:
    Pythonanywhere: www.pythonanyw...
    Pushbullet: www.pushbullet...
    Pushbullet Python Library: pypi.org/proje...
    📝 SOURCE CODE:
    from pushbullet import Pushbullet
    API_KEY = "YOUR_API_KEY"
    filename = 'resolution.txt'
    with open(filename, mode='r') as f:
    text = f.read()
    pb = Pushbullet(API_KEY)
    push = pb.push_note("This is the title", text)
    𝗧𝗢𝗢𝗟𝗦 𝗔𝗡𝗗 𝗥𝗘𝗦𝗢𝗨𝗥𝗖𝗘𝗦
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🆓【𝗙𝗥𝗘𝗘】Excel Add-in (𝗠𝘆𝗧𝗼𝗼𝗹𝗕𝗲𝗹𝘁): pythonandvba.c...
    📊 Dashboard Excel Add-In (𝗚𝗿𝗮𝗳𝗹𝘆): pythonandvba.c...
    🎨 Cartoon Charts Excel Add-In (𝗖𝘂𝘁𝗲𝗣𝗹𝗼𝘁𝘀): pythonandvba.c...
    🤪 Fun Emoji Excel Add-In (𝗘𝗺𝗼𝗷𝗶𝗳𝘆): pythonandvba.c...
    📑 Excel Templates: pythonandvba.c...
    🎓 My Courses: pythonandvba.c...
    📚 Books, Tools, and More: pythonandvba.c...
    𝗖𝗢𝗡𝗡𝗘𝗖𝗧 𝗪𝗜𝗧𝗛 𝗠𝗘
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🔗 LinkedIn: / sven-bosau
    📸 Instagram: / codingisfun_official
    💻 GitHub: github.com/Sve...
    💬 Discord: pythonandvba.c...
    📬 Contact: pythonandvba.c...
    ☕ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲?
    If you want to support this channel, you can buy me a coffee here: pythonandvba.c...

КОМЕНТАРІ • 77

  • @victorgsp2
    @victorgsp2 3 роки тому +16

    Fix: You don't need to give notification access permission for the app. I didn't give permission and it still worked. This permission is weird...because the app needs to access notifications from other apps when in fact it just needs to notify its own stuff. 🤔
    Despite this point of attention, I congratulate you for the excellent video. Thanks!

    • @CodingIsFun
      @CodingIsFun  3 роки тому +3

      Thank you for watching the video & your input. I pinned your comment here, as it might be also helpful for others :)

    • @YuvrajRaghuvanshiS
      @YuvrajRaghuvanshiS Рік тому +1

      To whoever reads this in future, don't allow notification access permission to ANY application unless you know what you're doing. Allowing this permission allows the app to read all your notifications, your messages, bank sms, other app notifications, basically whatever you see in the notification area. Someone can login to your account by sending an OTP and reading it remotely.
      Similar permission is usage access, that is far more dangerous.

  • @andrezorro9010
    @andrezorro9010 2 роки тому +1

    Awesome tutorial !! Thanks
    If you get the error pushbullet module not found when executing the script remember to change from pip3.8 to pip3.9 when installing pushbullet

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      Thanks for watching the video & the additional hint regarding the Pushbullet installation.

  • @drishtisunderphukon415
    @drishtisunderphukon415 3 роки тому +5

    Thank you very much for this tutorial!! I was able to make a covid vaccination slot notifier program with this. And it worked perfectly!! Got notification as soon as slots opened. A big thumbs up to you👍👍

    • @CodingIsFun
      @CodingIsFun  3 роки тому +1

      Thank you for watching the video. Fantastic! Glad it helped 😃

  • @afonsorekbaim
    @afonsorekbaim 2 роки тому +2

    I was trying to install the library in the pythonanywhere console, but it said I had already installed it. So, if anyone is having this problem just change pip3.8 to pip3.9. It solved it for me

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks for sharing this information!

  • @SmartSleeper
    @SmartSleeper 2 роки тому +1

    Extremely useful video! Is it possible to respond to these push notifications on your phone, so that your script can recieve a response (for example a Yes or No)?

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Glad you found the video helpful. Unfortunately, receiving a push notification response is not possible with Pushbullet.

  • @JonahMe
    @JonahMe 2 роки тому +1

    Your video is exactly what I have been looking for. I wanted to try it myself but found out that the smartphone app for IOS is no longer available. Do you know of any alternatives? Thanks

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks for watching. Unfortunately, PushBullet has stopped the support for iOS & I do not know a good alternative.

  • @ryder0047
    @ryder0047 4 місяці тому +1

    getting error "ModuleNotFoundError: No module named 'pushbullet'' pz help

    • @CodingIsFun
      @CodingIsFun  4 місяці тому +1

      Thanks for watching. Did you install Pushbullet as shown in the video using pip? Cheers, Sven ✌️

    • @ryder0047
      @ryder0047 4 місяці тому

      @@CodingIsFun yup did everything

    • @kandeelxp6222
      @kandeelxp6222 3 місяці тому

      @@ryder0047 same prob here

  • @asapusrinivas
    @asapusrinivas 3 роки тому

    Thankyou for wonder ful tutorial on push bullet.

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      A pleasure! Thank you for watching :)

  • @kiannn
    @kiannn 2 місяці тому

    Is there an alternative knowing that support for Apple has ended?

    • @CodingIsFun
      @CodingIsFun  2 місяці тому

      Thanks for watching. I don't use Apple, so I'm not aware of any alternative. Cheers, Sven ✌️

  • @empowercode
    @empowercode 3 роки тому +2

    Hey! I just found your channel and subscribed, love what you're doing! Particularly, I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your UA-cam Journey, can't wait to see you succeed!
    Your content really stands out and you've obviously put so much thought into your videos! I applaud you for that and really wish you the best for the future!
    Cheers, happy holidays, and keep up the great work :)

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      Hi Rohak,
      Thank you so much for your kind words!
      I also had a look at your channel. Keep up the great work and good luck on your journey!
      Cheers,
      Sven

    • @empowercode
      @empowercode 3 роки тому +1

      @@CodingIsFun Thank you so much Sven, Happy New Years to you and your family as well!

  • @bamstian
    @bamstian Рік тому

    Digga dein Akzent ist anders hart. :D
    Aber eine interessante Anwendung, die du da vorstellst. 👌🏼✌🏼

  • @VeioooOOO
    @VeioooOOO 2 роки тому +1

    sadly its only 400 messages per month in the free service

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      I did not know that. Thanks for the hint!

  • @ARDAVTEAM
    @ARDAVTEAM 3 роки тому +1

    Woahh!! really nice video in the end of 2020

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      Thank you! Wish you all the best for 2021 👍🍀

  • @MrVishalOjha
    @MrVishalOjha 2 роки тому

    Please make a video for blogger website . B'coz I've blogger website

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Can you perhaps elaborate on what it is you're actually trying to achieve?
      Please provide some additional info. Thanks!

  • @torque6389
    @torque6389 7 місяців тому

    Amazing! I will try this on my raspberry pi. Thank you!

    • @CodingIsFun
      @CodingIsFun  7 місяців тому

      Thanks for watching and good luck with your project! 🍀 Cheers, Sven ✌️

  • @sulalithasannasgala
    @sulalithasannasgala Рік тому

    How to send notifications if paid done using this method in GUi

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Sorry, but I don't understand your question

    • @sulalithasannasgala
      @sulalithasannasgala Рік тому

      Made simple using pandas, and pysimple GUi Excel, want to add push notifications that send phone

    • @CodingIsFun
      @CodingIsFun  Рік тому

      @@sulalithasannasgala yes, it's possible. Happy Coding!

  • @adarshp6930
    @adarshp6930 Рік тому

    Hey - I am trying to create a notification to let me know if the price of a certain product that I am tracking in amazon goes below a certain amount. Do you think I could do that?

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Hey, you can definitely use Python to track the price of a product on Amazon and get notified if it drops below a certain amount. To deploy your script on a web server, you can use services like PythonAnywhere or AWS.

  • @piotrg2096
    @piotrg2096 Рік тому

    Not for apple

    • @CodingIsFun
      @CodingIsFun  Рік тому

      That is correct. Pushbullet stopped the support for iOS/macOS :/

  • @shrivastavasankalp
    @shrivastavasankalp 3 роки тому

    How to print a group of lines from a text file, randomly (in ascending order) without repetition.
    Like print
    Line 123
    Line 789
    Line 456

    • @namenotappropriate8756
      @namenotappropriate8756 2 роки тому

      I know it's old, but if you still haven't found a solution then here's mine: declare an int variable with value 1, generate a random number in range, add the generated number to the int variable and print it.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      I am not sure if I understand the task correctly, but here is my solution ⤵
      import random
      # Open the text file
      with open('textfile.txt', 'r') as f:
      # Read all the lines into a list
      lines = f.readlines()
      # Shuffle the lines randomly
      random.shuffle(lines)
      # Sort the lines in ascending order
      lines.sort()
      # Iterate through the lines and print them
      for line in lines:
      print(line)

  • @paulinakania6745
    @paulinakania6745 2 роки тому

    Is any corresponding application in the appstore?

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      I think Pushbullet stopped the support for iOS

  • @ayushthakur16xd61
    @ayushthakur16xd61 8 місяців тому

    Exactly I was searching this

  • @AaPerm
    @AaPerm 2 роки тому

    How do I collect it to my phone? Didn’t quite get it

  • @gyanaswain6881
    @gyanaswain6881 3 роки тому

    hello sir , can i create a database and connect this , it could help me to create daily time chart of a employee by pushing the notification reminder.
    please give me the solution on this problem.

    • @CodingIsFun
      @CodingIsFun  3 роки тому +1

      *Thanks for watching the video & your question.*
      Do you want to run your Python Script 24/7 on a server + a database in a cloud?
      Or are you looking for a local solution, e.g. making use of the windows task scheduler to execute a Python Script in combination with a small database, e.g. SQLite?

  • @bazookajoe595
    @bazookajoe595 Рік тому

    Is working thanks!

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Happy to hear that. Thanks for watching!

  • @BartBruh
    @BartBruh 2 роки тому

    THANKS MAN I LOVE YOUUUUUUU

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      Glad I could help! Thanks for watching!

  • @jojox1904
    @jojox1904 2 роки тому

    I get this
    Traceback (most recent call last):
    File "/home/jora/notifBot.py", line 1, in
    from pushbullet import Pushbullet
    ModuleNotFoundError: No module named 'pushbullet'
    >>>
    when I try to run it in pythonanywhere :((

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      You need to install Pushbullet: pip install pushbullet

    • @jojox1904
      @jojox1904 2 роки тому

      @@CodingIsFun I did, for some reason it didn't work at first but it did just now hahah 🥳

  • @nahidkhan5145
    @nahidkhan5145 2 роки тому

    can I send unlimited notifications using this?

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      When using PushBullet, free accounts (without a Pro subscription) are limited to 500 pushes per month. Going over will result in an error when sending a Push.

    • @nahidkhan5145
      @nahidkhan5145 2 роки тому

      @@CodingIsFun thanks for the info!

  • @samwisedrn7196
    @samwisedrn7196 3 роки тому

    im having some problems. i can install pushbullet using the pip comand on cmd and it says it is sucsesful however on pycharm it cant seem to run the from pushbullet import Pushbulet section is there a way to solve this thanks

    • @samwisedrn7196
      @samwisedrn7196 3 роки тому

      never mind i did some resherch and found i had to copy it to pycharms folders

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      @@samwisedrn7196 *Thank you for watching the video* Great, that you have found a solution 😃

    • @samwisedrn7196
      @samwisedrn7196 3 роки тому +1

      @@CodingIsFun turns out that pip install dosnt work with pycharm so you have to copy the pythons data into the pycharms data

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      @@samwisedrn7196 Good to know. Thanks for posting the solution here 👍

  • @godeksik
    @godeksik 3 роки тому

    thanks Buddy! i needed that

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      A pleasure! Glad it was helpful! :)

  • @AmanPatel-lo3ce
    @AmanPatel-lo3ce 3 роки тому

    hey can you please tell me how can i set the time according to Indian Standard Time in pythonanywhere. Please help me.

    • @CodingIsFun
      @CodingIsFun  3 роки тому +1

      Thanks for watching the video.
      I have not found any settings on how to change UTC to IST in PythonAnywhere. Yet, you could use the following online converter to help you to figure out the equivalent UTC time:
      www.worldtimebuddy.com/utc-to-ist-converter

    • @AmanPatel-lo3ce
      @AmanPatel-lo3ce 3 роки тому +2

      @@CodingIsFun Thankyou so much!

  • @ouss0539
    @ouss0539 3 роки тому

    Loved it

    • @CodingIsFun
      @CodingIsFun  3 роки тому

      Thank you! Glad it was helpful 😃