Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
dht22
helloworld
led
motion-and-range
motion-led Update README.md Feb 10, 2016
motion-sensor
proximity-sensor reflect the change in the latest release Jul 6, 2015
range-finder Update rangefinder.py Feb 11, 2016
remote-led
README.md

README.md

Setting up PubNub Python Lib

Open LXTerminal

image

Install Python pi@raspberrypi ~$ sudo apt-get install python-dev

Install pip pi@raspberrypi ~$ sudo apt-get install python-pip

Then, install PubNub pi@raspberrypi ~$ sudo pip install pubnub

Using Python IDE

Open Python 2 IDE

image

Running a Script

On terminal: $ sudo python your-script.py

OK, now you are ready to code on Pi. Let's learn how to use PubNub next!


"Hello World" with PubNub

Learn how to use PubNub Python APIs by publishing simple messages.

"Hello World" of Hardware

Learn how to assemble circuit with wires and breadboard using a LED.

Pi Projects with Sensors

Now, let's connect some sensors to Raspberry Pi, and learn more about sending and receiving data to/from the sensors using PubNub APIs!