Doing Useful Things with WeMo Motion

Using both the WeMo Motion rules and IFTTT allows you to do certain things with this motion detector. However, to expand our possibilities it would help if we could store our motion data and make it accessible to the programs that we write. To store our motion data in a database we need a bit … Continue reading Doing Useful Things with WeMo Motion

Accessing Our Sensor Data: PHP + SQLite + SVG

So we have our sensor(s) dutifully logging their data to an SQLite database. Now we need to process and view this data. LASP First we need to set our Raspberry Pi up as a webserver. This typically requires: Linux, Apache, MySQL and PHP - a LAMP framework. There is a handy guide: here (thanks Dave!). … Continue reading Accessing Our Sensor Data: PHP + SQLite + SVG

Databases for Sensor Data in Python

Here are some options to persistently store sensor data in a database using python. Anydbm For simple key-value pairs the anydbm module looks the best. It stores values as strings. Because of this you may need to use another module called pickle to convert non-string values into strings. For example: import anydbm, pickle from datetime … Continue reading Databases for Sensor Data in Python

Simple Energy Monitoring on Raspberry Pi

So. Reading an LCD screen was more difficult than I first assumed. My code is still good for reading my Thermostat values. However for energy monitoring and £20 I found a better solution. Looking on the net a particular model of energy monitor was recommended for easy monitoring: the Current Cost EnviR. This monitor has … Continue reading Simple Energy Monitoring on Raspberry Pi

Programming a Raspberry Pi from the Sofa

I have set up quite a nifty little workflow for interfacing and programming the Raspberry Pi. SSH Access I have set up the Pi with a static IP address and configured SSH access. Setting up a static IP address is easy with an AirPort Extreme. Using AirPort Utility goto Advanced options>DHCP and NAT>Reservations. Set up … Continue reading Programming a Raspberry Pi from the Sofa

Face Tracking Robot Arm

Ha - awesome - I have made a face tracking robot arm. The 12 year-old me is so jealous.Here's how I did it (on Ubuntu 12.04 but should be portable to the Raspberry Pis):I installed SimpleCV: - http://simplecv.org/ .(I love this - makes it so simple to prototype.)I built this robot arm: - http://www.maplin.co.uk/robotic-arm-kit-with-usb-pc-interface-266257 .I installed pyusb: … Continue reading Face Tracking Robot Arm

Scanning to the Cloud: Fujitsu Scansnap S1500 + Raspberry Pi

Process Flow Get Input to Initiate Scan Scan Using Auto-Document Feed Post Processing Import to Evernote (via email) Install Scanning Driver & Utilities Typically, using: sudo apt-get install sane You may need to adjust permissions for the scanners. I found as a non-root user I could not see any scanners when using: scanadf -L or … Continue reading Scanning to the Cloud: Fujitsu Scansnap S1500 + Raspberry Pi

Setting up a Webcam for Stills in Raspberry Pi

First attempt: a Logitech Quickcam:This was detected when I plugged it in. Running lsusb gave me the following output:Then I tried the example described here: http://silicondelight.com/2012/07/grabbing-frames-from-webcam-with-a-raspberry-pi/ However, I kept getting errors relating to the v4l2 libraries. I tried a powered hub - a Logik Hub from Currys snipped as described here - http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=8926 . The … Continue reading Setting up a Webcam for Stills in Raspberry Pi