Month: March 2013

Raspberry Pi with Relay I/O Board

Relay I/O Board is widely used in applications of smart home project. In this article, I will detail how to control the Relay I/O board using Raspberry Pi with Raspberry Pi Universal Expansion Board via internet. The codes and schematic

Posted in Hardware Notes, Software Notes Tagged with: , , , ,

Smart Home Portal

– Smart home application framework Application Notes Overview Smart home portal is a web-based smart home application framework which is optimized for smartphone. Refer to the flowing system diagram, the Arm based embedded system (Raspberry Pi with add on boards)

Posted in Projects

Accessing serial port via CGI script

Prerequisites: Part 3: Using Serial Port on Universal Expansion Board Python CGI script with lighttpd (Root privileges are required) 1. Install pyserial on RaspberryPi a. Download pyserial-2.5.tar.gz (106.3 kB) b. unzipping and untaring gunzip pyserial-2.5.tar.gz tar -xvf pyserial-2.5.tar c. Install

Posted in Hardware Notes, Software Notes Tagged with: , , ,

Python CGI script with lighttpd

1.Edit lighttpd.conf $sudo vim /etc/lighttpd/lighttpd.conf 1. Change cgi.assign = (".php" => "/usr/bin/php5-cgi") server.error-handler-404 = "/index.html" To cgi.assign = (".php" => "/usr/bin/php5-cgi", ".py" => "/usr/bin/python" ) server.error-handler-404 = "/index.html" 2. Change static-file.exclude-extensions = ( ".php", ".pl", ".fcgi") To static-file.exclude-extensions = (

Posted in Software Notes Tagged with: , , ,