SjoenH / fbAlert.py

Python program controlling GPIOs on Raspberry Pi. Connects to facebook and alerts when a specified page is liked.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fbAlert.py

fbAlert is a python program that monitors a facebook page and prints out a message when someone likes -and dislikes, the page. The program is running on a Raspberry Pi and is flashing a LED trough the GPIOs.

The LED is connected to ground and to pin 7. Raspberry Pi is connected to internet through Ethernet cable.

You need to have the RPI.GPIO module for python on the Raspberry Pi. To install it, SSH into the RPi and run:

$ wget http://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.1.0.tar.gz
$ tar zxf RPi.GPIO-0.1.0.tar.gz
$ cd RPi.GPIO-0.1.0
$ sudo python setup.py install

A new version is out, but the program should work with this version of GPIO.

We also use requests for checking the page for updates.

$ pip install requests

Tips: Comment out RPi specific libraries to test on computer.

About

Python program controlling GPIOs on Raspberry Pi. Connects to facebook and alerts when a specified page is liked.


Languages

Language:Python 100.0%