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

Опубликовано: 04 Октябрь 2024
на канале: local guy
16,838
174

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 :- https://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('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/pi...

Raspberry Pi 2 First Time Setup OS Install
   • Raspberry Config Pi Noobs | Setup Ras...  

Raspberry Pi Program simple Blinking LED Written in Python
   • Raspberry Pi Basics GPIO Programs | B...  

Raspberry Pi Remote Desktop Xrdp
   • Raspberry Config Remote Desktop Xrdp ...  

Raspberry Pi 2 | PIR Motion Sensor + Push Notification on Android iPhone
   • Raspberry Pi Config | PIR Motion Sens...  

like comment share subscribe

  / localguy5  
  / 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