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 Наука
thanks alot.
great tutorial.
thanks for make this tutorial.
i have question!
when this pushetta.py python is ON my CPU go to 25%.
is always this way?
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
Hehe, I like your background music :)
good
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?
thanks bro ,you saved my ass.. its working fine..
how do i install the code in raspi?
good
thank you
sir what version or kind of pir sensor you used
what is the command to download urllib library and json library
thanks so much. it really works :)
+basikal malaysia thanks
+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?
Does the message sending needs any internet or lan connection for message sending??
yes it requires internet.
Works with RPI 4?
Can anyone give me advice on how to load the Libraries urllib2
& json. i have a RPI3 using pyhton 3
+Beany Brooklyn It is Python 2 NOT 3. my newbie mistake
how do I get urllib2 can you send me a video or email?
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.
did u find a soln to this ??
one more question.
how i can modify the code for just a push botton for doorbell?
+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.
+zaher syed go to this link!
github.com/lelandg/Raspberry-Pi-Security-Camera
+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!
+Toshiyuki Takamatsu thanks :) ... I am looking at it right now. Did you get yours working?
+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
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?
Grimzoe Kho you can do (almost) anything using your programming skills and sensor interface.very useful for future technology IOT Internet of Things
In need of help
more details please
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
I love you
i too
!!!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.