Hacker News Update: Raspicam & WeMo

A quick update on my recent discoveries.


I now have a Raspberry Pi Camera Board (Raspicam)!

There is a brilliant combo deal on at the moment allowing you to buy a Raspicam, Model A + 4GB SD card for about £35 (including VAT + shipping!)! That’s £35 for a device that can run OpenCV with a camera capable of 30fps at HD resolutions. I will leave you to think about that for a moment.

The downside is that the software is still not quite there. The Raspicam couples directly to the Raspberry Pi; this means it is not (at the moment) available as a standard USB video device (e.g. /dev/video0 on Linux). Now most Linux software and packages like SimpleCV work based on a standard USB video device. This means as of 24 October 2013 you cannot use SimpleCV with the Raspicam.

However, not to fret! The Internet is on it. I imagine that we will see better drivers for the Raspicam from the official development communities very soon. While we wait:

WeMo and Python

As you will see from the previous posts I have been using IFTTT as a make-shift interface between my Raspberry Pi and my WeMo Motion detector and switch.  This morning though I found a Python module that appears to enable you to control the Switch and listen to motion events via Python. Hurray!

The module is called ouimeaux (there is a French theme this week). Details can be found here: link.

Very soon I hope to adapt my existing code to control my Hue lights based on motion events (e.g. turn on when someone walks in the room, turn off when no motion). Watch this space.


WeMo Motion / IFTTT Bugs

Just bought the WeMo Switch and Motion sensor.

Setup was fine via app.

Next step was connecting IFTTT. I did this via the “…More” button on the app. Click on “Connect to IFTTT” option. A pin is generated. It took me a couple of attempts to realise you can click on the button under the pin to log in to IFTTT to activate the devices – if you do this the pin is automatically copied across.

The switch activated without problems on IFTTT. However, when I tried the Motion IFTTT said the pin was not valid (invalid pin message in a red box). Generating different pins did not work, neither did a clear or a factory reset of the Motion (via “Edit”) in the app.

I tried deactivating, then deleting the Switch. This did something as the app then said it could not generate a pin. I then deleted and reinstalled the app. This time a pin was generated and the Motion connected.

I then performed a factory reset on the Switch (hold button on top and plug in). Then added this via the app. The first attempt to connect to IFTTT failed but the second time worked.

Success! Both Switch & Motion connected to IFTTT.