Build the internet of things with Raspberry Pi!

44 %
56 %
Information about Build the internet of things with Raspberry Pi!
Technology

Published on March 3, 2014

Author: DonaldDerek

Source: slideshare.net

Description

Arabnet Conf 2014 Code & Design Day.

GDG Beirut Code Lab:
Duration: 1h30min
Project Files: https://github.com/DonaldDerek/GoogleBeam
Given By: Raghd Hamzeh, Donald Derek Haddad

The recipe Hardware Stack • Raspberry Pi Model B (512 MB Ram) • Raspberry Pi Camera Module (2 MP) or any compatible USB Cam * • Ethernet Cable • Wifi dongle: Edimax EW-7811Un 150Mbps Wireless • SD Card ( 4 GB ++)

The recipe Software Stack • • • • • • Raspbian OS Node.js (v 0.10.2 +) Python (V 2.7) Shell Scripts Twitter Stream API Google Drive API

Downloading weapons Node.js on Raspberry Pi: https://github.com/DonaldDerek/rPi-cheat-sheet

WARNING coding mask on!

Connecting to your raspberry pi ssh-ing #Avahi Deamon should be installed ssh pi@raspberrypi.local #Static IP shh pi@192.168.5.10 Usefull Links: http://elinux.org/RPi_Advanced_Setup

* Testing USB Cam Resurrecting ancient technologies #Test USB Camera Lsusb #Take images from RaspberryPi USB Camera fswebcam -d /dev/video0 -r 640x480 test.jpeg

Testing Rpi 2mp cam Tiny yet amazing camera! raspistill –o test.jpg -w 640 -h 480

WARNING coding mask on!

App architecture Where all your scripts belong • node_modules/ • ntwitter/ • Request/ • bin/ • atom/ • gdata/ • gdrive.py • images/ • App.js • Config.js • Controller.js • Package.json • tw-upload.js

Twitter stream api The communication layer is built upon Twitter’s infrastructure var twit = new twitter(config); // Check Credentials twit.verifyCredentials(function (err, data) { if(err) console.log(err); }) .stream('user', {track:watch}, function(stream) { console.log("Twitter stream is ready and waiting for inc tweets...") stream.on('data', function (data) { //Check if tweet is not empty if (data.text !== undefined) { //Action Code here } }); //Catch errors stream.on('error', function (err, code) { console.log("err: "+err+" "+code) });

Child process Control anything you can do in the terminal child = exec("raspistill -o "+ image_path +" -w 640 -h 480", function (err, stdout, stderr) { //trigger another event })

WARNING coding mask on!

Google drive api Light-weight python script //Authenticate with Gdrive API try: docsclient.ClientLogin(username, password, docsclient.source); except (gdata.client.BadAuthentication, gdata.client.Error), e: sys.exit('Unknown Error: ' + str(e)) except: sys.exit('Login Error, perhaps incorrect username/password') print 'success!' Resources: http://planzero.org/blog/2012/04/13/uploading_any_file_to_google_docs_with_python

WARNING coding mask on!

May The Source be With you https://github.com/DonaldDerek/GoogleBeam DonaldDerek DerekHaddad rhamzeh r_hamzeh

Add a comment

Related presentations

Related pages

Internet of Things with the Raspberry Pi: Build Internet ...

Build exciting Internet of Things projects with the Raspberry Pi! Written by Raspberry Pi & IoT expert Marco Schwartz, Internet of Things with the ...
Read more

Raspberry Pi - Teach, Learn, and Make with Raspberry Pi

The Raspberry Pi is a tiny and affordable computer ... learn new things, and meet other Pi ... Astro Pi. Two Raspberry Pis on the International Space ...
Read more

Internet of Things Archives - Raspberry Pi

The purpose of the competition was to get designers to use a kit of components that included Raspberry Pi, ... Internet of Things ... Raspberry Pis being ...
Read more

Building the Internet of Things with Raspberry Pi et al ...

Building the Internet of Things with Raspberry Pi ... are actually simple enough that you could probably build something ... The Internet of Things: ...
Read more

Build your personal Internet of Things | SmartLiving.io ...

... Raspberry Pi and Arduino, ... Subscribe to Smartliving newsletter. ... Everything you need to build your personal Internet of Things. Guides, ...
Read more

Internet of Things with the Raspberry Pi: Build Internet ...

In this book, you are going to learn how to use the powerful Raspberry Pi board to create Internet of Things projects. After reading the book, you will be ...
Read more

Internet of Things with the Raspberry Pi: Build Internet ...

Internet of Things with the Raspberry Pi: Build Internet of Things Projects Using the Raspberry Pi Platform eBook: Marco Schwartz: Amazon.in: Kindle Store
Read more

Raspberry Pi Internet of Things Kit - Dexter Industries

The GrovePi Starter Kit is the Raspberry Pi Internet of Things ... you build Internet of Things ... with the Raspberry Pi and the Internet of Things.
Read more

Overview | Internet of Things Printer for Raspberry Pi ...

Build an "Internet of Things" connected mini printer that will do your bidding!
Read more

Learning ESP8266: Build the Internet of Things with the ...

Buy Learning ESP8266: Build the Internet of Things with the Arduino IDE and Raspberry Pi on Amazon.com FREE SHIPPING on qualified orders
Read more