Планета гаджетов / технологий
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
http://goo.gl/cC2Vof
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(‘http://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 :- http://goo.gl/qjnXMT
check my other videos below :-
http://localguytech.com/2015/07/06/pir-motion-sensor-with-raspberry-pi-2-and-push-notification-message-on-android-or-iphone
Raspberry Pi 2 First Time Setup OS Install
Raspberry Pi Program simple Blinking LED Written in Python
Raspberry Pi Remote Desktop Xrdp
Raspberry Pi 2 | PIR Motion Sensor + Push Notification on Android iPhone
like comment share subscribe
to my channel » Local Guy »
Tweets by LocalGuy5
https://www.facebook.com/LocalGuy05
http://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 YouTube Channel for Technology,Internet,IT,Software,Programming,Developer,Linux,Networking,Computer,Android,Iphone,iOS,IT Analyst,Data Analyst
Источник