LinuxMCE Forums

General => Developers => Topic started by: Crawtech on October 09, 2012, 03:48:40 am

Title: raspberry pi as a controller
Post by: Crawtech on October 09, 2012, 03:48:40 am
Hi Guys
I have a Raspberry pi version B connected to a I2c relay board and it it controlling  my Roller shutters and my Retic  and I would like to get linuxmce talking to the raspberry pi so linuxmce can control the  the relays and know the status as well like the relays on a gc100 but I am not sure were to start
there is so much that can be done with the raspberry pi
eg I all so   have it monitoring my solar system and battery's  with some INA219 senses boards from
anyway any help would be appreciated :)
Title: Re: raspberry pi as a controller
Post by: tschak909 on October 09, 2012, 04:22:29 am
Well, we can help you develop your device in IRC, if you wish. We're more than happy to help.

If you have a protocol for talking to your interface, and it can be mapped into the existing commands that LinuxMCE can support (look in Web Admin > DCE > Commands, Events, and Device Data menu items), then a driver can be made.

The web admin provides all the pieces you need to make a device template. You then choose whether you want to write the driver in C++, Ruby, or bash. If you write your driver in ruby, then the web admin also acts as a place to put the little scripts of code for each command.

You can see the process of creating a new device template, and to set up the things you need to develop a device, here: … It concentrates on setting things up for C++ development, but the content is just as relevant for Ruby devices.

And you can read see the process for developing a Generic Serial Device (in Ruby), here:

Once a device has been made, then sqlCVS can be used to check in the changes to the database, and if the device is a C++ device, the resulting code can be submitted as a patch.

Basically, If you can send commands to the device manually over the same communication channel as would be used with LinuxMCE, then a device driver can be made.

Title: Re: raspberry pi as a controller
Post by: Crawtech on October 09, 2012, 04:27:34 am
I  will make a start on this  thanks Thom