ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

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

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ธ.ค. 2020
  • 👉 Explore All My Excel Solutions: pythonandvba.com/solutions
    𝗗𝗘𝗦𝗖𝗥𝗜𝗣𝗧𝗜𝗢𝗡
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    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.pythonanywhere.com/
    Pushbullet: www.pushbullet.com/
    Pushbullet Python Library: pypi.org/project/pushbullet.py/
    📝 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.com/mytoolbelt
    📊 Dashboard Excel Add-In (𝗚𝗿𝗮𝗳𝗹𝘆): pythonandvba.com/grafly
    🎨 Cartoon Charts Excel Add-In (𝗖𝘂𝘁𝗲𝗣𝗹𝗼𝘁𝘀): pythonandvba.com/cuteplots
    🤪 Fun Emoji Excel Add-In (𝗘𝗺𝗼𝗷𝗶𝗳𝘆): pythonandvba.com/emojify
    📑 Excel Templates: pythonandvba.com/go/excel-tem...
    🎓 My Courses: pythonandvba.com/go/courses
    📚 Books, Tools, and More: pythonandvba.com/resources
    𝗖𝗢𝗡𝗡𝗘𝗖𝗧 𝗪𝗜𝗧𝗛 𝗠𝗘
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🔗 LinkedIn: / sven-bosau
    📸 Instagram: / codingisfun_official
    💻 GitHub: github.com/Sven-Bo
    💬 Discord: pythonandvba.com/discord
    📬 Contact: pythonandvba.com/contact
    ☕ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲?
    If you want to support this channel, you can buy me a coffee here: pythonandvba.com/coffee-donation

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

  • @victorgsp2
    @victorgsp2 2 ปีที่แล้ว +15

    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  2 ปีที่แล้ว +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.

  • @drishtisunderphukon415
    @drishtisunderphukon415 3 ปีที่แล้ว +4

    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 😃

  • @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 TH-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!

  • @andrezorro9010
    @andrezorro9010 2 ปีที่แล้ว

    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.

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

    Thankyou for wonder ful tutorial on push bullet.

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

      A pleasure! Thank you for watching :)

  • @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.

  • @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.

  • @afonsorekbaim3788
    @afonsorekbaim3788 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!

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

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

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

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

  • @godeksik
    @godeksik 2 ปีที่แล้ว

    thanks Buddy! i needed that

    • @CodingIsFun
      @CodingIsFun  2 ปีที่แล้ว

      A pleasure! Glad it was helpful! :)

  • @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 👍🍀

  • @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.

  • @kiannn
    @kiannn 6 วันที่ผ่านมา

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

    • @CodingIsFun
      @CodingIsFun  5 วันที่ผ่านมา

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

  • @ayushthakur16xd61
    @ayushthakur16xd61 6 หลายเดือนก่อน

    Exactly I was searching this

    • @CodingIsFun
      @CodingIsFun  6 หลายเดือนก่อน

      Happy to hear that! :)

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

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

  • @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?

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

    Loved it

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

      Thank you! Glad it was helpful 😃

  • @BartBruh
    @BartBruh 2 ปีที่แล้ว

    THANKS MAN I LOVE YOUUUUUUU

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

      Glad I could help! Thanks for watching!

  • @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 👍

  • @bazookajoe595
    @bazookajoe595 10 หลายเดือนก่อน

    Is working thanks!

    • @CodingIsFun
      @CodingIsFun  10 หลายเดือนก่อน

      Happy to hear that. Thanks for watching!

  • @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!

  • @AaPerm
    @AaPerm 2 ปีที่แล้ว

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

    • @CodingIsFun
      @CodingIsFun  2 ปีที่แล้ว

      Via the Pushbullet API

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

    Is any corresponding application in the appstore?

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

      I think Pushbullet stopped the support for iOS

  • @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!

  • @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!

  • @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!

  • @ryder0047
    @ryder0047 3 หลายเดือนก่อน +1

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

    • @CodingIsFun
      @CodingIsFun  3 หลายเดือนก่อน +1

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

    • @ryder0047
      @ryder0047 3 หลายเดือนก่อน

      @@CodingIsFun yup did everything

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

      @@ryder0047 same prob here

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

    Not for apple

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

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

  • @shrivastavasankalp
    @shrivastavasankalp 2 ปีที่แล้ว

    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)

  • @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!

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

    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  ปีที่แล้ว

      You need to install Pushbullet: pip install pushbullet

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

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