Raspberry Pi Config | PIR Motion Sensor + Push Notification on Android iPhone

Поделиться
HTML-код
  • Опубликовано: 28 июн 2015
  • Raspberry Pi Config | PIR Motion Sensor + Push Notification on Android iPhone.in this video i m gonna show you how to use PIR Motion Sensor with Push Notification on Android Iphone | Raspberry Pi 2
    Raspberry Pi IOT internet of things
    Buy Raspberry Pi 3 :- amzn.to/2uIn5gf
    Programming for Push Notification
    Library to include:-
    import urllib2
    import json
    Function For Pushetta:-
    def sendNotification(token, channel, message):
    data = {
    "body" : message,
    "message_type" : "text/plain"
    }
    req = urllib2.Request('api.pushetta.com/api/pushes/{0}/'.format(channel))
    req.add_header('Content-Type', 'application/json')
    req.add_header('Authorization', 'Token {0}'.format(token))
    response = urllib2.urlopen(req, json.dumps(data))
    Push Message:-
    sendNotification("API Key Here", "Channel Name Here", "Custom Message Here")
    Learn/Teach Computer Coding/Programming Hands on & Make DIY Projects (college students,enthusiastic learners for all)
    Raspberry Pi 2 on Amazon :- goo.gl/qjnXMT
    check my other videos below :-
    localguytech.com/2015/07/06/pi...
    Raspberry Pi 2 First Time Setup OS Install
    • Raspberry Config Pi No...
    Raspberry Pi Program simple Blinking LED Written in Python
    • Raspberry Pi Basics GP...
    Raspberry Pi Remote Desktop Xrdp
    • Raspberry Config Remot...
    Raspberry Pi 2 | PIR Motion Sensor + Push Notification on Android iPhone
    • Raspberry Pi Config | ...
    like comment share subscribe
    / localguy5
    / localguy05
    www.localguytech.com
    PS :- if you have any queries,suggestions or found any error /mistake regarding tutorial please notice me in the comment section.i will answer all your questions / queries.
    Thanks.
    Local Guy
    A RUclips Channel for Technology,Internet,IT,Software,Programming,Developer,Linux,Networking,Computer,Android,Iphone,iOS,IT Analyst,Data Analyst
  • НаукаНаука

Комментарии • 38

  • @anjumparveen763
    @anjumparveen763 7 лет назад

    thanks alot.
    great tutorial.

  • @LAStupidDrivers
    @LAStupidDrivers 8 лет назад

    thanks for make this tutorial.
    i have question!
    when this pushetta.py python is ON my CPU go to 25%.
    is always this way?

  • @blablublably
    @blablublably 8 лет назад

    Hi, i have one question, can i send photos via Pushetta ? Or do you know another app which allows me sending photos ?
    Im making photo trap and i need capture a photo when motion is detected and imidietly send to my phone. Thanks and sorry for my English :D

  • @jenniferw8963
    @jenniferw8963 8 лет назад +2

    Hehe, I like your background music :)

    • @sooh2
      @sooh2 5 лет назад

      good

  • @michellebee5603
    @michellebee5603 8 лет назад +1

    Hi. my raspberry pi showed error global name "dumps" is not defined when i run sudo python of my coding. Can u tell me how to fix this?

  • @The.Crust.Wanderer
    @The.Crust.Wanderer 8 лет назад +2

    thanks bro ,you saved my ass.. its working fine..

  • @mcs5305
    @mcs5305 7 лет назад

    thank you

  • @zeingridtv3182
    @zeingridtv3182 4 года назад

    sir what version or kind of pir sensor you used

  • @poojayeole3374
    @poojayeole3374 6 лет назад

    what is the command to download urllib library and json library

  • @basikalmalaysia4158
    @basikalmalaysia4158 8 лет назад +1

    thanks so much. it really works :)

    • @localguy
      @localguy  8 лет назад

      +basikal malaysia thanks

    • @soyabean4397
      @soyabean4397 8 лет назад

      +basikal malaysia macam mana boleh jadi?starting buat apa?maaf tanya..saya tgh FYP..bulan 5 saya present projek..saya nak buat yg mcm ne..tp xde org yg nak bg tunjuk ajar..boleh ajarkan?

  • @harshasagarkv2150
    @harshasagarkv2150 5 лет назад +2

    Does the message sending needs any internet or lan connection for message sending??

    • @localguy
      @localguy  5 лет назад

      yes it requires internet.

  • @Shadowking1O17
    @Shadowking1O17 4 года назад

    Works with RPI 4?

  • @darbeeny
    @darbeeny 8 лет назад

    Can anyone give me advice on how to load the Libraries urllib2
    & json. i have a RPI3 using pyhton 3

    • @darbeeny
      @darbeeny 8 лет назад

      +Beany Brooklyn It is Python 2 NOT 3. my newbie mistake

  • @origanilzumper9520
    @origanilzumper9520 8 лет назад

    how do I get urllib2 can you send me a video or email?

  • @USNEM
    @USNEM 5 лет назад +1

    Hey man thanks for the video.
    I am having an issue with the code.
    its saying "importerror: no module named 'urllib2'" I am using python 3. Is there a way around this issue?
    thank you.

  • @LAStupidDrivers
    @LAStupidDrivers 8 лет назад

    one more question.
    how i can modify the code for just a push botton for doorbell?

    • @zahersyed3743
      @zahersyed3743 8 лет назад

      +Toshiyuki Takamatsu Hey :) seems like you are working on the Pi bell project. Seen you on other post, let me know if you get close... I will do the same.

    • @LAStupidDrivers
      @LAStupidDrivers 8 лет назад

      +zaher syed go to this link!
      github.com/lelandg/Raspberry-Pi-Security-Camera

    • @LAStupidDrivers
      @LAStupidDrivers 8 лет назад

      +zaher syed the developer ho make this is very nice! You can contact him for questions! This codes is for make PI work as security camera and video doorbell!

    • @zahersyed3743
      @zahersyed3743 8 лет назад

      +Toshiyuki Takamatsu thanks :) ... I am looking at it right now. Did you get yours working?

    • @LAStupidDrivers
      @LAStupidDrivers 8 лет назад

      +zaher syed I was able to make pi to call my linphone in my iPhone and computer but I can't call to pi yet! Something I missing

  • @khowenhan6308
    @khowenhan6308 9 лет назад

    Does all Raspberry pi 2 support this feature
    1. It can operates with sensors ?
    2. android application via internet?
    3. What specification should it look for?

    • @localguy
      @localguy  9 лет назад +1

      Grimzoe Kho you can do (almost) anything using your programming skills and sensor interface.very useful for future technology IOT Internet of Things

  • @salmanhassan437
    @salmanhassan437 7 лет назад

    In need of help

  • @mohamedghoneim3780
    @mohamedghoneim3780 7 лет назад

    more details please

  • @localguy
    @localguy  9 лет назад +1

    Raspberry Pi 2 | PIR Motion Sensor + Push Notification on Android iPhone
    ruclips.net/video/aZEUsc_9_KM/видео.html
    in this video i m gonna show you how to use PIR Motion Sensor with Push Notification on Android Iphone | Raspberry Pi 2
    Raspberry Pi IOT internet of things
    Programming for Push Notification
    Library to include:-
    import urllib2
    import json
    Function For Pushetta:-
    def sendNotification(token, channel, message):
    data = {
    "body" : message,
    "message_type" : "text/plain"
    }
    req = urllib2.Request('api.pushetta.com/api/pushes/{0}/'.format(channel))
    req.add_header('Content-Type', 'application/json')
    req.add_header('Authorization', 'Token {0}'.format(token))
    response = urllib2.urlopen(req, json.dumps(data))
    Push Message:-
    sendNotification("API Key Here", "Channel Name Here", "Custom Message Here")
    Raspberry Pi 2 First Time Setup OS Install
    ruclips.net/video/DDIox6NZZvU/видео.html
    Raspberry Pi Program simple Blinking LED Written in Python
    ruclips.net/video/JNqaSLBCYJw/видео.html
    Raspberry Pi Remote Desktop Xrdp
    ruclips.net/video/D7zwKjxYwnE/видео.html
    Raspberry Pi 2 | PIR Motion Sensor + Push Notification on Android iPhone
    ruclips.net/video/aZEUsc_9_KM/видео.html
    like comment share subscribe
    to my channel " Local Guy "
    twitter.com/LocalGuy5
    facebook.com/LocalGuy05
    PS :- if you have any queries,suggestions or found any error /mistake regarding tutorial please notice me in the comment section.i will answer all your questions / queries.
    Thanks.
    Local Guy
    A RUclips Channel for Technology,Internet,IT,Software,Programming,Developer,Linux,Networking,Computer,Android,Iphone,iOS,IT Analyst,Data Analyst
    #raspberryPi #RaspberryPi2 #PIRmotionSensor #PIR #sensor #PushNotification #API #SMS #Pushetta #raspberryPiProjects #iot #internetofthings

  • @shyngysrakhad5499
    @shyngysrakhad5499 6 лет назад

    I love you

  • @ethanb4058
    @ethanb4058 5 лет назад

    !!!STOP!!! Before you try to do this, Pushetta has their own library for python and you can just run pip install pushetta. It's much easier to use than this old method.