<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Caiman</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Caiman"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Caiman"/>
	<updated>2026-07-21T20:39:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22621</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22621"/>
		<updated>2010-03-10T17:16:54Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Using it remotely */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Status and Availability ==&lt;br /&gt;
At the moment, the app is in a functioning state (for the features mentioned above). &lt;br /&gt;
&lt;br /&gt;
The source code has been given to the LMCE development team.&lt;br /&gt;
&lt;br /&gt;
It is also available on google code: http://code.google.com/p/lmce-remote/&lt;br /&gt;
&lt;br /&gt;
The current plan is to have the binary version on the app store soon for a few dollars. All net benefits will go to research against cancer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Beta testing ==&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights). Once that is done, PM me (caiman) your iPhone device ID to get a build, or compile it yourself from the source code to test it on the iphone simulator or on a device if you have purchased the iphone developer license.&lt;br /&gt;
&lt;br /&gt;
== Using it remotely ==&lt;br /&gt;
By default, the application will connect to the hostname &#039;dcerouter&#039;. This should work fine locally on most installations. The application can also be used remotely by following these steps:&lt;br /&gt;
&lt;br /&gt;
    * subscribe to a dynamic dns if required&lt;br /&gt;
    * open and forward a TCP port xxxx on your internet router to the port your core Apache is listening to (usually 80)&lt;br /&gt;
    * setup apache authentication as your server is now exposed&lt;br /&gt;
    * setup apache to listen to the same port as the external port you have redirected (it can listen on multiple ports)&lt;br /&gt;
    * setup split-dns, so that when queried from your LAN, the dyndns hostname resolved to the internal IP of your core&lt;br /&gt;
    * enter your external hostname in the iphone app settings tab, as well as your apache username and password&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22620</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22620"/>
		<updated>2010-03-10T14:51:07Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Status and Availability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Status and Availability ==&lt;br /&gt;
At the moment, the app is in a functioning state (for the features mentioned above). &lt;br /&gt;
&lt;br /&gt;
The source code has been given to the LMCE development team.&lt;br /&gt;
&lt;br /&gt;
It is also available on google code: http://code.google.com/p/lmce-remote/&lt;br /&gt;
&lt;br /&gt;
The current plan is to have the binary version on the app store soon for a few dollars. All net benefits will go to research against cancer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Beta testing ==&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights). Once that is done, PM me (caiman) your iPhone device ID to get a build, or compile it yourself from the source code to test it on the iphone simulator or on a device if you have purchased the iphone developer license.&lt;br /&gt;
&lt;br /&gt;
== Using it remotely ==&lt;br /&gt;
By default, the application will connect to the hostname &#039;dcerouter&#039;. This should work fine locally on most installations. The application can also be used remotely by following these steps:&lt;br /&gt;
&lt;br /&gt;
    * subscribe to a dynamic dns if required&lt;br /&gt;
    * open and forward a TCP port on your internet router to the port your core Apache is listening to (usually 80)&lt;br /&gt;
    * setup apache authentication&lt;br /&gt;
    * setup split-dns, so that when queried from your LAN, the dyndns hostname resolved to the internal IP of your core &lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22619</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22619"/>
		<updated>2010-03-10T14:50:43Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Status and Availability ==&lt;br /&gt;
At the moment, the app is in a functioning state (for the features mentioned above). &lt;br /&gt;
&lt;br /&gt;
The source code has been given to the LMCE development team.&lt;br /&gt;
&lt;br /&gt;
It is also available on google code: http://code.google.com/p/lmce-remote/&lt;br /&gt;
&lt;br /&gt;
The current plan is to have the binary version on the app store soon for a few dollars. All net benefits will go to research against cancer.&lt;br /&gt;
&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights). Once that is done, PM me (caiman) your iPhone device ID to get a build, or compile it yourself from the source code to test it on the iphone simulator or on a device if you have purchased the iphone developer license.&lt;br /&gt;
&lt;br /&gt;
== Using it remotely ==&lt;br /&gt;
By default, the application will connect to the hostname &#039;dcerouter&#039;. This should work fine locally on most installations. The application can also be used remotely by following these steps:&lt;br /&gt;
&lt;br /&gt;
    * subscribe to a dynamic dns if required&lt;br /&gt;
    * open and forward a TCP port on your internet router to the port your core Apache is listening to (usually 80)&lt;br /&gt;
    * setup apache authentication&lt;br /&gt;
    * setup split-dns, so that when queried from your LAN, the dyndns hostname resolved to the internal IP of your core &lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22618</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22618"/>
		<updated>2010-03-10T14:04:11Z</updated>

		<summary type="html">&lt;p&gt;Caiman: added link to source code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;br /&gt;
&lt;br /&gt;
== Status and Availability ==&lt;br /&gt;
At the moment, the app is in a functioning state (for the features mentioned above). &lt;br /&gt;
&lt;br /&gt;
The source code has been given to the LMCE development team.&lt;br /&gt;
&lt;br /&gt;
It is also available on google code: http://code.google.com/p/lmce-remote/&lt;br /&gt;
&lt;br /&gt;
The current plan is to have the binary version on the app store soon for a few dollars. All net benefits will go to research against cancer.&lt;br /&gt;
&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights). Once that is done, PM me (caiman) your iPhone device ID to get a build, or compile it yourself from the source code to test it on the iphone simulator or on a device if you have purchased the iphone developer license.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22617</id>
		<title>Web service</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22617"/>
		<updated>2010-03-10T14:01:48Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* LMCE Web Service */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== LMCE Web Service ===&lt;br /&gt;
The web service described on this page is used by the iPhone application [[LmceRemote]].&lt;br /&gt;
&lt;br /&gt;
It is a ruby script ([[WebServiceSource|see source]]) run by the Apache web server.&lt;br /&gt;
&lt;br /&gt;
There are a few dependencies that need to be installed first. It would be great to have them installed via debian packages but I had to go for a manual install via ruby gem.&lt;br /&gt;
* rubygems&lt;br /&gt;
* json&lt;br /&gt;
* cgi&lt;br /&gt;
* mysql&lt;br /&gt;
&lt;br /&gt;
=== Want to help ? ==&lt;br /&gt;
Help is welcome to make the installation of this webservice easier to end users. Topics to cover:&lt;br /&gt;
- ruby dependencies&lt;br /&gt;
- initial install&lt;br /&gt;
- setting-up authentication in apache&lt;br /&gt;
&lt;br /&gt;
=== Other Webservices ===&lt;br /&gt;
There are other initiatives to provide web services in LMCE:&lt;br /&gt;
   * http://github.com/chrisbirkinshaw/lmce_webservice&lt;br /&gt;
   * A webservice plugin by Hari&lt;br /&gt;
Both are being considered for this project too.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22616</id>
		<title>Web service</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22616"/>
		<updated>2010-03-10T14:00:39Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Other Webservices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== LMCE Web Service ===&lt;br /&gt;
The web service described on this page is used by the iPhone application [LmceRemote].&lt;br /&gt;
&lt;br /&gt;
It is a ruby script ([[WebServiceSource|see source]]) run by the Apache web server.&lt;br /&gt;
&lt;br /&gt;
There are a few dependencies that need to be installed first. It would be great to have them installed via debian packages but I had to go for a manual install via ruby gem.&lt;br /&gt;
* rubygems&lt;br /&gt;
* json&lt;br /&gt;
* cgi&lt;br /&gt;
* mysql&lt;br /&gt;
&lt;br /&gt;
=== Want to help ? ==&lt;br /&gt;
Help is welcome to make the installation of this webservice easier to end users. Topics to cover:&lt;br /&gt;
- ruby dependencies&lt;br /&gt;
- initial install&lt;br /&gt;
- setting-up authentication in apache&lt;br /&gt;
&lt;br /&gt;
=== Other Webservices ===&lt;br /&gt;
There are other initiatives to provide web services in LMCE:&lt;br /&gt;
   * http://github.com/chrisbirkinshaw/lmce_webservice&lt;br /&gt;
   * A webservice plugin by Hari&lt;br /&gt;
Both are being considered for this project too.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22615</id>
		<title>Web service</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22615"/>
		<updated>2010-03-10T14:00:03Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* LMCE Web Service */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== LMCE Web Service ===&lt;br /&gt;
The web service described on this page is used by the iPhone application [LmceRemote].&lt;br /&gt;
&lt;br /&gt;
It is a ruby script ([[WebServiceSource|see source]]) run by the Apache web server.&lt;br /&gt;
&lt;br /&gt;
There are a few dependencies that need to be installed first. It would be great to have them installed via debian packages but I had to go for a manual install via ruby gem.&lt;br /&gt;
* rubygems&lt;br /&gt;
* json&lt;br /&gt;
* cgi&lt;br /&gt;
* mysql&lt;br /&gt;
&lt;br /&gt;
=== Want to help ? ==&lt;br /&gt;
Help is welcome to make the installation of this webservice easier to end users. Topics to cover:&lt;br /&gt;
- ruby dependencies&lt;br /&gt;
- initial install&lt;br /&gt;
- setting-up authentication in apache&lt;br /&gt;
&lt;br /&gt;
=== Other Webservices ===&lt;br /&gt;
There are other initiatives to provide web services in LMCE:&lt;br /&gt;
   * [http://github.com/chrisbirkinshaw/lmce_webservice]&lt;br /&gt;
   * A webservice plugin by Hari&lt;br /&gt;
Both are being considered for this project too.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22552</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22552"/>
		<updated>2010-03-02T11:24:30Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Availability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;br /&gt;
&lt;br /&gt;
== Status and Availability ==&lt;br /&gt;
At the moment, the app is in a functioning state (for the features mentioned above). &lt;br /&gt;
&lt;br /&gt;
The source code has been given to the LMCE development team and will be made available shortly.&lt;br /&gt;
&lt;br /&gt;
The current plan is to have the binary version on the app store soon for a few dollars. All net benefits will go to research against cancer.&lt;br /&gt;
&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights). Once that is done, PM me (caiman) your iPhone device ID to get a build, or compile it yourself from the source code once published.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22542</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22542"/>
		<updated>2010-03-01T09:13:13Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Availability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee. Once the cost of the SDK is recovered, all benefits go to research against cancer.&lt;br /&gt;
&lt;br /&gt;
Source code will also be available shortly for anyone who wants to play with it. Just need to find the right place.&lt;br /&gt;
&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights)&lt;br /&gt;
In that case, PM me your iPhone device ID to get a build, or get the source code once published.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22538</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22538"/>
		<updated>2010-02-28T21:12:46Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Availability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
Beta testers are welcome after they have installed the web service and have it working (check with http://dcerouter/lmce-ws/index.rb?cmd=getLights)&lt;br /&gt;
In that case, PM me your iPhone device ID&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22537</id>
		<title>Web service</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22537"/>
		<updated>2010-02-28T21:08:52Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== LMCE Web Service ===&lt;br /&gt;
The web service described on this page is used by the iPhone application [LmceRemote].&lt;br /&gt;
&lt;br /&gt;
It is a ruby script ([[WebServiceSource|see source]]) run by the Apache web server.&lt;br /&gt;
&lt;br /&gt;
There are a few dependencies that need to be installed first. It would be great to have them installed via debian packages but I had to go for a manual install via ruby gem.&lt;br /&gt;
* rubygems&lt;br /&gt;
* json&lt;br /&gt;
* cgi&lt;br /&gt;
* mysql&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=WebServiceSource&amp;diff=22536</id>
		<title>WebServiceSource</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=WebServiceSource&amp;diff=22536"/>
		<updated>2010-02-28T21:06:10Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script needs to be placed in /var/www/lmce-ws/index.rb&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/ruby&lt;br /&gt;
&lt;br /&gt;
require &#039;rubygems&#039;&lt;br /&gt;
require &#039;json&#039;&lt;br /&gt;
require &#039;cgi&#039;&lt;br /&gt;
require &#039;mysql&#039;&lt;br /&gt;
&lt;br /&gt;
def hashresult(query)&lt;br /&gt;
# Execute SQL query and return result as an array, one entry per row&lt;br /&gt;
  # setup sql database&lt;br /&gt;
  db = Mysql.new(&amp;quot;localhost&amp;quot;, &amp;quot;root&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
  db.select_db(&amp;quot;pluto_main&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  result = db.query(query)&lt;br /&gt;
  arr = Array.new&lt;br /&gt;
  #result.each_hash(with_table=true) do |row|&lt;br /&gt;
  result.each do |row| &lt;br /&gt;
    arr &amp;lt;&amp;lt; row&lt;br /&gt;
  end&lt;br /&gt;
  return arr&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
def getlights()&lt;br /&gt;
# return list of lights (devices with (DeviceTemplate.FK_DeviceCategory = 73)&lt;br /&gt;
  query = &amp;quot;SELECT Device.PK_Device, Device.Description, Device.State, Device.FK_Room FROM Device,DeviceTemplate WHERE (Device.FK_DeviceTemplate = DeviceTemplate.PK_DeviceTemplate) AND (DeviceTemplate.FK_DeviceCategory = 73) ORDER BY PK_Device ASC&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def getrooms()&lt;br /&gt;
  # return list of all rooms&lt;br /&gt;
  query = &amp;quot;SELECT Room.PK_Room, Room.Description FROM Room ORDER BY Room.Description ASC&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def getscenarios()&lt;br /&gt;
  query = &amp;quot;SELECT CommandGroup.PK_CommandGroup, CommandGroup.Description, CommandGroup.Hint, CommandGroup.FK_Template, CommandGroup_Room.FK_Room&lt;br /&gt;
             FROM CommandGroup, CommandGroup_Room&lt;br /&gt;
             WHERE (CommandGroup_Room.FK_CommandGroup = CommandGroup.PK_CommandGroup)&lt;br /&gt;
             ORDER BY Sort ASC;&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def gettemplates()&lt;br /&gt;
  query = &amp;quot;&lt;br /&gt;
	SELECT PK_Template, Description&lt;br /&gt;
	FROM Template&lt;br /&gt;
	;&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def sendcommand(id,command)&lt;br /&gt;
 return `/usr/pluto/bin/MessageSend localhost 0 #{id} 1 #{command}`&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
# Send header to http client&lt;br /&gt;
puts &amp;quot;Content-type: text/html\r\n\r\n&amp;quot;&lt;br /&gt;
#puts &amp;quot;Content-type: application/json\r\n\r\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Process CGI arguments&lt;br /&gt;
c=CGI.new &lt;br /&gt;
cmd=c[&#039;cmd&#039;]&lt;br /&gt;
&lt;br /&gt;
return_obj = case cmd&lt;br /&gt;
  when &#039;getLights&#039; then getlights()&lt;br /&gt;
  when &#039;getRooms&#039; then getrooms()&lt;br /&gt;
  when &#039;getScenarios&#039; then getscenarios()&lt;br /&gt;
  when &#039;getTemplates&#039; then gettemplates()&lt;br /&gt;
  when &#039;sendCommand&#039; then sendcommand(c[&#039;id&#039;], c[&#039;command&#039;])&lt;br /&gt;
  else &amp;quot;use cmd=xxx where xxx is getLights, getRooms, getScenarios, getTemplates&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
# Send the return object as JSON&lt;br /&gt;
puts return_obj.to_json&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=WebServiceSource&amp;diff=22535</id>
		<title>WebServiceSource</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=WebServiceSource&amp;diff=22535"/>
		<updated>2010-02-28T21:04:59Z</updated>

		<summary type="html">&lt;p&gt;Caiman: New page: This script needs to be placed in /var/www/lmce-ws/index.rb  &amp;lt;nowiki&amp;gt;  #!/usr/bin/ruby  require &amp;#039;rubygems&amp;#039; require &amp;#039;json&amp;#039; require &amp;#039;cgi&amp;#039; require &amp;#039;mysql&amp;#039;  def hashresult(query) # Execute SQL...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script needs to be placed in /var/www/lmce-ws/index.rb&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/ruby&lt;br /&gt;
&lt;br /&gt;
require &#039;rubygems&#039;&lt;br /&gt;
require &#039;json&#039;&lt;br /&gt;
require &#039;cgi&#039;&lt;br /&gt;
require &#039;mysql&#039;&lt;br /&gt;
&lt;br /&gt;
def hashresult(query)&lt;br /&gt;
# Execute SQL query and return result as an array, one entry per row&lt;br /&gt;
  # setup sql database&lt;br /&gt;
  db = Mysql.new(&amp;quot;localhost&amp;quot;, &amp;quot;root&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
  db.select_db(&amp;quot;pluto_main&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  result = db.query(query)&lt;br /&gt;
  arr = Array.new&lt;br /&gt;
  #result.each_hash(with_table=true) do |row|&lt;br /&gt;
  result.each do |row| &lt;br /&gt;
    arr &amp;lt;&amp;lt; row&lt;br /&gt;
  end&lt;br /&gt;
  return arr&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
def getlights()&lt;br /&gt;
# return list of lights (devices with (DeviceTemplate.FK_DeviceCategory = 73)&lt;br /&gt;
  query = &amp;quot;SELECT Device.PK_Device, Device.Description, Device.State, Device.FK_Room FROM Device,DeviceTemplate WHERE (Device.FK_DeviceTemplate = DeviceTemplate.PK_DeviceTemplate) AND (DeviceTemplate.FK_DeviceCategory = 73) ORDER BY PK_Device ASC&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def getrooms()&lt;br /&gt;
  # return list of all rooms&lt;br /&gt;
  query = &amp;quot;SELECT Room.PK_Room, Room.Description FROM Room ORDER BY Room.Description ASC&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def getscenarios()&lt;br /&gt;
  query = &amp;quot;SELECT CommandGroup.PK_CommandGroup, CommandGroup.Description, CommandGroup.Hint, CommandGroup.FK_Template, CommandGroup_Room.FK_Room&lt;br /&gt;
             FROM CommandGroup, CommandGroup_Room&lt;br /&gt;
             WHERE (CommandGroup_Room.FK_CommandGroup = CommandGroup.PK_CommandGroup)&lt;br /&gt;
             ORDER BY Sort ASC;&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def gettemplates()&lt;br /&gt;
  query = &amp;quot;&lt;br /&gt;
	SELECT PK_Template, Description&lt;br /&gt;
	FROM Template&lt;br /&gt;
	;&amp;quot;&lt;br /&gt;
  return hashresult(query)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def sendcommand(id,command)&lt;br /&gt;
 return `/usr/pluto/bin/MessageSend localhost 0 #{id} 1 #{command}`&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
# Send header to http client&lt;br /&gt;
puts &amp;quot;Content-type: text/html\r\n\r\n&amp;quot;&lt;br /&gt;
#puts &amp;quot;Content-type: application/json\r\n\r\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Process CGI arguments&lt;br /&gt;
c=CGI.new &lt;br /&gt;
cmd=c[&#039;cmd&#039;]&lt;br /&gt;
&lt;br /&gt;
return_obj = case cmd&lt;br /&gt;
  when &#039;getLights&#039; then getlights()&lt;br /&gt;
  when &#039;getRooms&#039; then getrooms()&lt;br /&gt;
  when &#039;getScenarios&#039; then getscenarios()&lt;br /&gt;
  when &#039;getTemplates&#039; then gettemplates()&lt;br /&gt;
  when &#039;sendCommand&#039; then sendcommand(c[&#039;id&#039;], c[&#039;command&#039;])&lt;br /&gt;
  else &amp;quot;use cmd=xxx where xxx is getLights, getRooms, getScenarios, getTemplates&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
# Send the return object as JSON&lt;br /&gt;
puts return_obj.to_json&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22534</id>
		<title>Web service</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Web_service&amp;diff=22534"/>
		<updated>2010-02-28T20:58:39Z</updated>

		<summary type="html">&lt;p&gt;Caiman: New page: === LMCE Web Service === The web service described on this page is used by the iPhone application [LmceRemote].  It is a ruby script run by the Apache web server.  The...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== LMCE Web Service ===&lt;br /&gt;
The web service described on this page is used by the iPhone application [LmceRemote].&lt;br /&gt;
&lt;br /&gt;
It is a [[WebServiceSource|ruby script]] run by the Apache web server.&lt;br /&gt;
&lt;br /&gt;
There are a few dependencies that need to be installed first. It would be great to have them installed via debian packages but I had to go for a manual install via ruby gem.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22533</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22533"/>
		<updated>2010-02-28T20:54:15Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service|WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service|WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service|WebService]] approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the [[web service|WebService]] and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22532</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22532"/>
		<updated>2010-02-28T20:52:15Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a [[web service][WebService]]&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the [[web service][WebService]] on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the [[web service][WebService]] approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the web service and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22531</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22531"/>
		<updated>2010-02-28T20:47:06Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Screenshots */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a web service&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the web service and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22530</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22530"/>
		<updated>2010-02-28T20:46:54Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Screenshots */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
The light and room names on this screenshot are in French, but they are retrieved directly from LMCE. They will appear just as you entered them in the lightning wizard.&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a web service&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the web service and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22529</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22529"/>
		<updated>2010-02-28T20:45:30Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Want to help? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a web service&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, packaging the web service and making it easy to install is the best thing you can do. LMCE needs a good web service.&lt;br /&gt;
LmceRemote comes with a basic web service that is sufficient for the purposes of this app. But having a clean and robust web service shipped together with LMCE would be fantastic.&lt;br /&gt;
I am looking for someone who can help package my temporary web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22528</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22528"/>
		<updated>2010-02-28T20:42:34Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Availability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a web service&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functionning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public. Expect it on the app store soon for a small fee.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, I am looking for someone who can help package the web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22516</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22516"/>
		<updated>2010-02-28T16:43:40Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a web service&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
At the moment, the app is in a functioning state (for the features mentioned above). &lt;br /&gt;
It is however not yet available to the public.&lt;br /&gt;
&lt;br /&gt;
== Want to help? ==&lt;br /&gt;
If you want to contribute, I am looking for someone who can help package the web service in a nice .deb, and resolve the dependencies (there are some issues with ruby gems). You can pm me (caiman) on the forum.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being considered for short term:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22514</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22514"/>
		<updated>2010-02-28T16:40:56Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
* Connect directly to the DCE router&lt;br /&gt;
** Pros:&lt;br /&gt;
*** seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
** Cons:&lt;br /&gt;
*** need to implement the DCE protocol&lt;br /&gt;
*** it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
*** remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
* Connect to the web interface&lt;br /&gt;
** Pros:&lt;br /&gt;
*** easy to implement for simple actions&lt;br /&gt;
*** easier remote access as the web server is often made available externally&lt;br /&gt;
** Cons:&lt;br /&gt;
*** requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
*** requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
* Implement a web service&lt;br /&gt;
** Pros:&lt;br /&gt;
*** can access all required information in Lmce databases&lt;br /&gt;
*** very lean and network efficient&lt;br /&gt;
*** easily made available externally with apache authentication&lt;br /&gt;
** Cons:&lt;br /&gt;
*** The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being seriously considered:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22513</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22513"/>
		<updated>2010-02-28T16:38:30Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:LmceRemoteLights.jpg]]&lt;br /&gt;
[[Image:LmceRemoteSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
=== Connect directly to the DCE router ===&lt;br /&gt;
Pros:&lt;br /&gt;
- seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
Cons:&lt;br /&gt;
- need to implement the DCE protocol&lt;br /&gt;
- it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
- remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
=== Connect to the web interface ===&lt;br /&gt;
Pros:&lt;br /&gt;
- easy to implement for simple actions&lt;br /&gt;
- easier remote access as the web server is often made available externally&lt;br /&gt;
Cons:&lt;br /&gt;
- requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
- requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
=== Implement a web service ===&lt;br /&gt;
Pros:&lt;br /&gt;
- can access all required information in Lmce databases&lt;br /&gt;
- very lean and network efficient&lt;br /&gt;
- easily made available externally with apache authentication&lt;br /&gt;
Cons:&lt;br /&gt;
- The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being seriously considered:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=File:LmceRemoteSettings.jpg&amp;diff=22512</id>
		<title>File:LmceRemoteSettings.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=File:LmceRemoteSettings.jpg&amp;diff=22512"/>
		<updated>2010-02-28T16:37:17Z</updated>

		<summary type="html">&lt;p&gt;Caiman: Screenshot of the Lmce Remote iPhone application, settings tab&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot of the Lmce Remote iPhone application, settings tab&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=File:LmceRemoteLights.jpg&amp;diff=22511</id>
		<title>File:LmceRemoteLights.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=File:LmceRemoteLights.jpg&amp;diff=22511"/>
		<updated>2010-02-28T16:36:53Z</updated>

		<summary type="html">&lt;p&gt;Caiman: Screenshot of the Lmce Remote iPhone application, lights tab&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot of the Lmce Remote iPhone application, lights tab&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22510</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22510"/>
		<updated>2010-02-28T16:33:44Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
[[Image:Example.jpg]]&lt;br /&gt;
[[Image:Example.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
=== Connect directly to the DCE router ===&lt;br /&gt;
Pros:&lt;br /&gt;
- seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
Cons:&lt;br /&gt;
- need to implement the DCE protocol&lt;br /&gt;
- it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
- remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
=== Connect to the web interface ===&lt;br /&gt;
Pros:&lt;br /&gt;
- easy to implement for simple actions&lt;br /&gt;
- easier remote access as the web server is often made available externally&lt;br /&gt;
Cons:&lt;br /&gt;
- requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
- requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
=== Implement a web service ===&lt;br /&gt;
Pros:&lt;br /&gt;
- can access all required information in Lmce databases&lt;br /&gt;
- very lean and network efficient&lt;br /&gt;
- easily made available externally with apache authentication&lt;br /&gt;
Cons:&lt;br /&gt;
- The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being seriously considered:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22509</id>
		<title>LmceRemote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=LmceRemote&amp;diff=22509"/>
		<updated>2010-02-28T16:33:05Z</updated>

		<summary type="html">&lt;p&gt;Caiman: Created page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LMCE Remote =&lt;br /&gt;
LMCE Remote is an iPhone application which can be used to:&lt;br /&gt;
* load available lights from LMCE&lt;br /&gt;
* display the lights status&lt;br /&gt;
* set each light on or off&lt;br /&gt;
&lt;br /&gt;
== Intent ==&lt;br /&gt;
Please note, this is not, and is not intended to be a full Orbiter. The goal of this app is to be lightweight so that it remains very responsive even when used over a 3G connection.&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
There were three possible approaches to connect to LMCE:&lt;br /&gt;
&lt;br /&gt;
=== Connect directly to the DCE router ===&lt;br /&gt;
Pros:&lt;br /&gt;
- seemed to be the cleanest approach, closed to a real orbiter&lt;br /&gt;
Cons:&lt;br /&gt;
- need to implement the DCE protocol&lt;br /&gt;
- it is unclear how to obtain a list of the available scenarios through this protocol&lt;br /&gt;
- remote access is difficult because of the lack of authentication mechanism&lt;br /&gt;
&lt;br /&gt;
=== Connect to the web interface ===&lt;br /&gt;
Pros:&lt;br /&gt;
- easy to implement for simple actions&lt;br /&gt;
- easier remote access as the web server is often made available externally&lt;br /&gt;
Cons:&lt;br /&gt;
- requires parsing HTML for more advanced actions and is prone to errors&lt;br /&gt;
- requires double authentication when used for remote access (apache auth, then lmce auth)&lt;br /&gt;
&lt;br /&gt;
=== Implement a web service ===&lt;br /&gt;
Pros:&lt;br /&gt;
- can access all required information in Lmce databases&lt;br /&gt;
- very lean and network efficient&lt;br /&gt;
- easily made available externally with apache authentication&lt;br /&gt;
Cons:&lt;br /&gt;
- The user needs to install the web service on the core before it can be used&lt;br /&gt;
&lt;br /&gt;
I have chosen to go for the web service approach.&lt;br /&gt;
&lt;br /&gt;
== Upcoming features ==&lt;br /&gt;
Some additional features are being seriously considered:&lt;br /&gt;
* Add a tab with scenarios&lt;br /&gt;
* Add a tab to set security mode&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Apple_Iphone&amp;diff=22507</id>
		<title>Apple Iphone</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Apple_Iphone&amp;diff=22507"/>
		<updated>2010-02-28T16:14:34Z</updated>

		<summary type="html">&lt;p&gt;Caiman: Created LmceRemote page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Orbiters]]&lt;br /&gt;
[[Image:Iphone.gif]]&lt;br /&gt;
==About this device==&lt;br /&gt;
*  3.5-inch (diagonal) widescreen multi-touch display&lt;br /&gt;
** 480-by-320-pixel resolution at 163 ppi&lt;br /&gt;
** Support for display of multiple languages and characters simultaneously&lt;br /&gt;
* OS X&lt;br /&gt;
* Quad-band (850, 900, 1800, 1900 MHz)&lt;br /&gt;
* Wi-Fi (802.11b/g)&lt;br /&gt;
* EDGE&lt;br /&gt;
* Bluetooth 2.0+EDR&lt;br /&gt;
* 2.0 megapixels&lt;br /&gt;
&lt;br /&gt;
This is a very popular device that many users would prefer to use as an Orbiter.&lt;br /&gt;
&lt;br /&gt;
==Lmce related applications running on iPhone==&lt;br /&gt;
* [[LmceRemote]] - Lightweight remote to control LMCE lights&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=CM11&amp;diff=22341</id>
		<title>CM11</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=CM11&amp;diff=22341"/>
		<updated>2010-02-09T20:23:20Z</updated>

		<summary type="html">&lt;p&gt;Caiman: Added note about GC100&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category: Power Line Control]]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
The CM11 (A/F/G/U/...) is a device that uses [http://hypermetrics.com/rubyhacker/x10proto.html X10] protocol to control lights and other appliances around the house by injecting data into powerline.&lt;br /&gt;
&lt;br /&gt;
Each X10 device has an address formed as &#039;&#039;housecode&#039;&#039;[A..P]+&#039;&#039;unitcode&#039;&#039;[1..16]. As powerlines are usually shared between near houses/apartments it&#039;s a good idea to choose an other housecode than your neighbor, or have a suitable filter installed by a qualified electrician.&lt;br /&gt;
&lt;br /&gt;
Note that some electric equipment can generate a lot of static on the powerlines.  This can drasticly reduce the performance of the X10 installation.  The solution is to install filters, effectively isolating these devices from the rest of the power grid.  These type of filters are usually installed between the power socket and plug of the appliance.  Some X10 switches and dimmers also have these filters built in already (depending on the make and model of course) to ensure more reliable operation.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
# [http://192.168.80.1/ web admin] -&amp;gt; Show devices tree -&amp;gt; &#039;&#039;the device to which the CM11 is connected&#039;&#039; (For instance &amp;quot;CORE&amp;quot;.  If you are running a hybrid core, make sure you select the &amp;quot;CORE&amp;quot; device not the &amp;quot;The core/hybrid&amp;quot;.)&lt;br /&gt;
# Create Child Device -&amp;gt; Pick device template -&amp;gt; CM11A (The wizzard pops up to say she didn&#039;t detect lighting?, then shows &amp;quot;dev81&amp;quot; and an OK button in 1.1-RC1, I just ignored this).&lt;br /&gt;
# Device data -&amp;gt; COM Port on PC -&amp;gt; &#039;&#039;the port to which this device is connected&#039;&#039; -&amp;gt; &#039;&#039;&#039;save&#039;&#039;&#039;. (ttyS0=&amp;quot;com1&amp;quot;, ttyS1=&amp;quot;com2&amp;quot;, and so on, &amp;quot;pci0000:00/0000:00:13.1+2&amp;quot; in my case, which is a USB port [http://forum.linuxmce.org/index.php?topic=1850.msg8883#msg8883]).&lt;br /&gt;
&lt;br /&gt;
== Adding lights ==&lt;br /&gt;
# [http://192.168.80.1/ web admin] -&amp;gt; Show devices tree -&amp;gt; CM11A&lt;br /&gt;
# Create Child Device -&amp;gt; Pick device template -&amp;gt; &#039;&#039;take your pick&#039;&#039; (I added &amp;quot;Light Switch (on/off)&amp;quot;)&lt;br /&gt;
# Device data -&amp;gt; Port/Channel Number -&amp;gt; &#039;&#039;HousecodeUnitcode&#039;&#039; -&amp;gt; &#039;&#039;&#039;save&#039;&#039;&#039; (codes range from &amp;quot;A1&amp;quot; to &amp;quot;P16&amp;quot;, no seperator)&lt;br /&gt;
&lt;br /&gt;
When you are done adding lights, you can continue with the setup wizzard to assign them to the proper rooms and give them names (she refers to ZWave devices and seems unable to actually controll the X10 devices in 1.1-RC1)  Also you might have to &amp;quot;reload the router&amp;quot; before they actually work (orbiter screens will be also be regenerated), but they do work.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
===Reset CM11A Completely===&lt;br /&gt;
I had a terrible time getting my CM11A to work under LinuxMCE. After about 2 weeks of searching, i found a post on the internet [http://www.shed.com/ddt1.html here]. Basically, what it narrows down to is that whenever the interface is moved to a new PC, it may lock up. To clear this, unplug the serial cable from the CM11A, unplug the CM11A from the wall, and remove its batteries (they aren&#039;t even needed for how LinuxMCE uses the interface). Let it sit for at least 15 minutes, then hook it back up. (I have also read that some people had to let it sit overnight during this step)&lt;br /&gt;
After 2 weeks of frustration, everything works as it should now. If you are having problems getting your CM11A to work, i highly recommend doing this procedure.&lt;br /&gt;
&lt;br /&gt;
===CM11A Disabled Periodically===&lt;br /&gt;
If you are finding that the CM11A device and its children (i.e. light switches, etc) are being disabled periodically, try connecting the CM11A to a different serial port.  Doing so solved the disabling problem in [http://forum.linuxmce.org/index.php?topic=8238.msg54578#msg54578 this case].&lt;br /&gt;
&lt;br /&gt;
===CM11A used behind a GC100===&lt;br /&gt;
If you use a GC100 to connect your CM11A further away from the computer, be sure to add the CM11A device under the CORE in the web admin, and not under the GC100. If you do so the devices will start but commands will not be passed down to the CM11A.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* Insteon [http://wiki.linuxmce.org/index.php/Insteon_-_Setting_Up_PLM_Template PLM] now supports bidirectional X10 communication.&lt;br /&gt;
* The older [[CM11A]] page, which appears to be more aimed at development.&lt;br /&gt;
* The pluto [http://plutohome.com/wiki/index.php/CM11A CM11A] page.&lt;br /&gt;
* The pluto [http://plutohome.com/wiki/index.php/Gc100 gc100] page for setup on the serial port of the gc100.&lt;br /&gt;
* An interesting comment about pluto with the CM11 [http://smart-home-blog.com/archives/726#comments] containing a workaround dealing with sensors and remotes.&lt;br /&gt;
* Discussions on the forum:&lt;br /&gt;
** [http://forum.linuxmce.org/index.php?topic=1762.msg8037#msg8037 Re: UK &amp;amp; Ireland Users]&lt;br /&gt;
** [http://forum.linuxmce.org/index.php?topic=1882.0 CM11] &lt;br /&gt;
** [http://forum.linuxmce.org/index.php?topic=1850.0 CM11g]&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Everspring_SM103&amp;diff=22242</id>
		<title>Everspring SM103</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Everspring_SM103&amp;diff=22242"/>
		<updated>2010-02-03T22:30:43Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: RF Control]]&lt;br /&gt;
[[Category: ZWave]]&lt;br /&gt;
[[Category: Security]]&lt;br /&gt;
[[Category: Works without caveats on 0810]]&lt;br /&gt;
[[Image:SM103-s.jpg|thumb|200px|SM103]]&lt;br /&gt;
&lt;br /&gt;
= Status =&lt;br /&gt;
Tested with the latest svn Z-Wave driver (will be included in 0810). &lt;br /&gt;
&lt;br /&gt;
Confirmed working with 0810-beta2 using the same procedure as [http://wiki.linuxmce.org/index.php/ACT_Homepro_Motion_Detector]&lt;br /&gt;
&lt;br /&gt;
= About = &lt;br /&gt;
The Everspring SM103 is a battery powered Z-Wave door/window sensor. It uses a frequency of 868MHz. There is also a US version.&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
http://www.everspring.com&lt;br /&gt;
&lt;br /&gt;
[http://www.techstyleuk.co.uk/index_files/sm103.htm For sale at Techstyle UK Ltd.]&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Everspring_SM103&amp;diff=22241</id>
		<title>Everspring SM103</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Everspring_SM103&amp;diff=22241"/>
		<updated>2010-02-03T22:30:24Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: RF Control]]&lt;br /&gt;
[[Category: ZWave]]&lt;br /&gt;
[[Category: Security]]&lt;br /&gt;
[[Category: Works without caveats on 0810]]&lt;br /&gt;
[[Image:SM103-s.jpg|thumb|200px|SM103]]&lt;br /&gt;
&lt;br /&gt;
= Status =&lt;br /&gt;
Tested with the latest svn Z-Wave driver (will be included in 0810). &lt;br /&gt;
Confirmed working with 0810-beta2 using the same procedure as [http://wiki.linuxmce.org/index.php/ACT_Homepro_Motion_Detector]&lt;br /&gt;
&lt;br /&gt;
= About = &lt;br /&gt;
The Everspring SM103 is a battery powered Z-Wave door/window sensor. It uses a frequency of 868MHz. There is also a US version.&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
http://www.everspring.com&lt;br /&gt;
&lt;br /&gt;
[http://www.techstyleuk.co.uk/index_files/sm103.htm For sale at Techstyle UK Ltd.]&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Z-Wave_Getting_Started&amp;diff=22222</id>
		<title>Z-Wave Getting Started</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Z-Wave_Getting_Started&amp;diff=22222"/>
		<updated>2010-02-02T09:17:19Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ZWave]]&lt;br /&gt;
So you decided to expand your LMCE system and add some Home Automation to the mix? Well the goal for this page is to let you know what you are going to need to start with and give you ideas and options to expand on in the future.&lt;br /&gt;
&lt;br /&gt;
=LMCE Interface=&lt;br /&gt;
You are going to need some kind of method for LMCE to control your Z-Wave installation. There are currently 2 different types of interfaces, both of which us a USB stick that plugs into the LMCE Core.&lt;br /&gt;
&lt;br /&gt;
Here are the Choices:&lt;br /&gt;
&lt;br /&gt;
==USB Stick without Controller==&lt;br /&gt;
This type of z-wave USB stick acts as an interface into the Z-Wave system only. It allows LMCE to have full control, however, you will need a seperate Z-Wave master controller(Required). A master controller can be used in addition to LMCE to control Z-Wave devices.&lt;br /&gt;
&lt;br /&gt;
Some examples of these sticks are:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Tricklestar_300ZW-US-W|US Tricklestar]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Tricklestar_300ZW-EU-W|EU Tricklestar]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Seluxit_viaSENS_Homecontroller|Seluxit viaSENS Homecontroller]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Intermatic_HA23C|Intermatic HA23C]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure to check out each options individual page to see about any issues or problems you might have with the respective USB stick&lt;br /&gt;
&lt;br /&gt;
==USB Stick with Controller==&lt;br /&gt;
This type of stick not only provides the interface to LMCE, it also acts as a Z-Wave master control. There is not a physical controller with buttons on the USB stick, but it is built in so an actual master controller is not needed.&lt;br /&gt;
&lt;br /&gt;
Some examples of these sticks are:&amp;lt;br&amp;gt;&lt;br /&gt;
[[MCV_Z-Wave_Dongle|Mi Casa Verde USB + Inclusion Controller in one]]&lt;br /&gt;
&lt;br /&gt;
Make sure to check out each options individual page to see about any issues or problems you might have with the respective USB stick&lt;br /&gt;
&lt;br /&gt;
=Devices=&lt;br /&gt;
These are some of the devices that you will use around the house with your z-wave installation or to replace current devices as you build a new Z-Wave system or grow a current one.&lt;br /&gt;
&lt;br /&gt;
Keep in mind this page is for simple options someone new to Z-Wave can use for refence on how they want to proceed with their home setup. If you are not sure or need more clarification, it is always best to check with a trained professional.&lt;br /&gt;
&lt;br /&gt;
==Dimmers==&lt;br /&gt;
Dimmers function similar to a light switch, however they are not simply on or off. They also cover everything in between for ultimate light control. Generally, they will only work with incandescent lights and will not function with fluorescent or compact fluorescent bulbs.&lt;br /&gt;
&lt;br /&gt;
The [[Intermatic_HA06C|Intermatic HA06C]] is an example of this.&lt;br /&gt;
&lt;br /&gt;
Dimmer Switches can replace current dimmer switches in your house along with normal switches that control light fixtures.&lt;br /&gt;
&lt;br /&gt;
Dimmer switches should not be used for replacing switches which control a cieling fan, fluorescent bulbs or an outlet receptacle.&lt;br /&gt;
&lt;br /&gt;
==Switches==&lt;br /&gt;
Switches are a simple switch that is either On or Off&lt;br /&gt;
&lt;br /&gt;
The [[Wayne_Dalton_HA18WD|Wayne Dalton HA18WD]] is an example of this.&lt;br /&gt;
&lt;br /&gt;
Switches can replace any current switch in your home. Because they only offer On and Off control, they are best used to control fluorescent light fixtures, fixtures that include a cieling fan with lights operating on a single switch and switches that control an outlet receptacle.&lt;br /&gt;
&lt;br /&gt;
For the best Z-Wave and LMCE experience, it is recommended to get a dimmer switch if replacing a fixture that support incandescent bulbs.&lt;br /&gt;
&lt;br /&gt;
==Receptacles==&lt;br /&gt;
Receptacles are the outlets which you plug your stuff into.&lt;br /&gt;
&lt;br /&gt;
Generally there is not a need to replace these but it can be useful for these needs:&lt;br /&gt;
&lt;br /&gt;
* Turn the Receptacle on or of at specific time to conserver power&lt;br /&gt;
* If you do not have a permanent light fixture and a lamp is attached to this Receptacle.&lt;br /&gt;
&lt;br /&gt;
If you currently have a switch controlling a Receptacle, it is not advised to replace the Receptacle with one of these unless you are eliminating the switch. Otherwise the switch will need to remain in the On position for the receptacle to operate correctly.&lt;br /&gt;
&lt;br /&gt;
==Door Locks==&lt;br /&gt;
&lt;br /&gt;
==Heating\Cooling Control==&lt;br /&gt;
&lt;br /&gt;
==Setting associations==&lt;br /&gt;
The web interface allows you to create associations between devices (I believe this requires SIS mode, not sure).&lt;br /&gt;
Click &amp;quot;Show device tree&amp;quot; then navigate to your z-wave controller (under CORE) and select &amp;quot;Send command to device&amp;quot;. A popup window will show and you can choose the &amp;quot;Set Association&amp;quot; command.&lt;br /&gt;
Enter three parameters:&lt;br /&gt;
* the zwave NodeID of the source device, the one that will send the command&lt;br /&gt;
* the group in the source device that will trigger the send (typically the button number on a multi-paddle switch)&lt;br /&gt;
* the NodeID(s) device(s)&lt;br /&gt;
Example: 5 / 2 / 7,8  would cause devices 7 and 8 to turn on when you press button 2 of device 5&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Known_Issues_0710_Beta4&amp;diff=9900</id>
		<title>Known Issues 0710 Beta4</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Known_Issues_0710_Beta4&amp;diff=9900"/>
		<updated>2008-04-11T08:00:22Z</updated>

		<summary type="html">&lt;p&gt;Caiman: Added link to CM11a i386 binaries&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &amp;quot;Failed to get IVTV video driver&amp;quot; message on status window on Orbiter. This is because IVTV package fails to install.This can probably be safely ignored as the IVTV driver is now built into the Linux kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* VIA video support is a bit lame at the moment: Cursor leaves dandruff with OpenChrome drivers (fix is to enable SWCursor in xorg.conf, need to make default), MythTV menu text not always drawn with VIA proprietary drivers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* nVidia 7150 + and some 6150 and 7050 systems have high cpu problem. This causes high Xorg usage with MythTV + Xine, unless V-Sync disabled. On machines with SSE (most modern CPUs), the solution is to install nvidia drivers 169.12 and add&lt;br /&gt;
 Option &amp;quot;UseEvents&amp;quot; &amp;quot;true&amp;quot; &lt;br /&gt;
to the video device section of the /etc/xorg.conf file. Then you can fully enable v-sync in nvidia-settings without drowning the CPU.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Zwave children have the device data&#039;s and room reseted after reload router. A fixed was committed (svn rev #19914) in General Info Plugin for this. To fix this on your machine, follow the steps:&lt;br /&gt;
&#039;&#039;- cd /usr/pluto/bin&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- mv General_Info_Plugin.so General_Info_Plugin.so.orig&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- wget -c ftp://builder32.linuxmce.com/Download/GIP-beta4-fix/i386/General_Info_Plugin.so &#039;&#039; (for i386)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;or&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- wget -c ftp://builder32.linuxmce.com/Download/GIP-beta4-fix/x86_64/General_Info_Plugin.so &#039;&#039; (for amd64)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- reload router&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Sorting by genre, performed etc. doesn&#039;t work correctly. A fixed was committed (svn rev #19953) in Media Plugin for this. Also, now  you can rip audio cd and play it in track order (the track number attribute will be attach to audio files). To fix this on your machine, follow the steps:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- cd /usr/pluto/bin&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- mv Media_Plugin.so Media_Plugin.so.orig&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- wget -c ftp://builder32.linuxmce.com/Download/Media_Plugin-beta4-fix/i386/Media_Plugin.so &#039;&#039; (for i386)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;or&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- wget -c ftp://builder32.linuxmce.com/Download/Media_Plugin-beta4-fix/x86_64/Media_Plugin.so &#039;&#039; (for amd64)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- reload router&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* MythTV affects performance of system because of too verbose logging, sometimes even freezing. The fix was commited (svn rev #19965). To fix it on your machine, follow the steps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- cd /usr/pluto/bin&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- mv MythTV_Player MythTV_Player.orig&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- wget -c ftp://builder32.linuxmce.com/Download/MythTV_Player-beta4-fix/i386/MythTV_Player &#039;&#039; (for i386)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;or&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- wget -c ftp://builder32.linuxmce.com/Download/MythTV_Player-beta4-fix/x86_64/MythTV_Player &#039;&#039; (for amd64)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- chmod +x MythTV_Player&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;- reload router&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Asterisk/FreePBX (automatic) configuration seems to be broken.  It fails to accept incoming calls, the following error is logged:&lt;br /&gt;
 [Mar  6 23:11:25] WARNING[19471] pbx.c: Channel &#039;SIP/0878700000-081dffa8&#039; sent into invalid extension &#039;102&#039; in context &#039;custom-linuxmce&#039;, but no invalid handler&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Support disked MD was dropped completely in 0710&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* DVDs fail to play on the M/D but play OK on the Core. &lt;br /&gt;
This is caused by the bug in the mounting script which is fixed already in the SVN. See the instruction how to patch your M/Ds in this post: http://forum.linuxmce.org/index.php?topic=4585.msg27572#msg27572&lt;br /&gt;
&lt;br /&gt;
* CM11A fixes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; - download TAR file for AMD64 - http://www.mediafire.com/?yl1mozw0p9r or [http://www.k-net.eu.org/lmce/cm11a-x86.tgz here for i386]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; - copy libSerial to /usr/pluto/lib&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; - copy CM11A and Lighting_Plugin.so to /usr/pluto/bin&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DO NOT FORGET BACKUP ORIGINAL FILES!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; - reload router&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=ZWave_API&amp;diff=9844</id>
		<title>ZWave API</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=ZWave_API&amp;diff=9844"/>
		<updated>2008-04-06T09:25:53Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Traces */  Info on decoding initialization data&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Hardware| ]]&lt;br /&gt;
[[Category: Automation]]&lt;br /&gt;
[[Category: ZWave]]&lt;br /&gt;
[[Category: Programmer&#039;s Guide]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
The ZWave API is not available for free. You have to get the Zensys SDK for command specifications and device class definitions. This page tries to collect all the freely available information about ZWave. The final goal is to provide a header file with all necessary definitions for basic operation with open source software.&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: all information added to this page _must_ have a reference to the source where it came from.&lt;br /&gt;
&lt;br /&gt;
= API =&lt;br /&gt;
== Frame specification ==&lt;br /&gt;
Karl Denning implemented basic ZWave support in his software &amp;quot;HomeDaemon&amp;quot;. He advised that basic frame specification can be derived from his source code (http://www.intouchcontrolsforum.com/forums/showpost.php?s=e11a812b08256225ebb66a73d8f6d193&amp;amp;p=173&amp;amp;postcount=13).&lt;br /&gt;
== Basic Classes ==&lt;br /&gt;
From the Leviton Z-Wave RS232 ASCII Interface Programming Guide (RZC0P-1LW, 10/9/2007):&lt;br /&gt;
 Controller         1&lt;br /&gt;
 Static controller  2&lt;br /&gt;
 Slave              3&lt;br /&gt;
 Routing Slave      4&lt;br /&gt;
that leads us to some definitions:&lt;br /&gt;
 #define OZA_BASIC_CLASS_CONTROLLER         0x01&lt;br /&gt;
 #define OZA_BASIC_CLASS_STATIC_CONTROLLER  0x02&lt;br /&gt;
 #define OZA_BASIC_CLASS_SLAVE              0x03&lt;br /&gt;
 #define OZA_BASIC_CLASS_ROUTING_SLAVE      0x04&lt;br /&gt;
&lt;br /&gt;
== Device Types ==&lt;br /&gt;
From the Z-Wave Configuration Information-1.pdf:&lt;br /&gt;
 CONTROLLER       0x01 (like the ZTH200,    Classes: )&lt;br /&gt;
 SWITCH/APPLIANCE 0x10 (ZRP200,             Classes: 25, 27, 75)&lt;br /&gt;
 DIMMER           0x11 (ZDP200, ZDW230, .., Classes: 26, 27, 75, ...)&lt;br /&gt;
 TRANSMITTER      0x12&lt;br /&gt;
 THERMOSTAT       0x08&lt;br /&gt;
 SHUTTER          0x09&lt;br /&gt;
&lt;br /&gt;
== Command and Device classes ==&lt;br /&gt;
From the Electronic Solutions, Inc. DBMZ Advanced User manual:&lt;br /&gt;
&lt;br /&gt;
=== Command/Device Classes ===&lt;br /&gt;
==== Basic Slave Device ====&lt;br /&gt;
==== All ====&lt;br /&gt;
==== Multilevel Switch ====&lt;br /&gt;
* COMMAND_CLASS_SWITCH_MULTILEVEL&lt;br /&gt;
 MULTILEVEL_SWITCH_GET&lt;br /&gt;
 MULTILEVEL_SWITCH_SET&lt;br /&gt;
 MULTILEVEL_SWITCH_START_LEVEL_CHANGE&lt;br /&gt;
 MULTILEVEL_SWITCH_STOP_LEVEL_CHANGE&lt;br /&gt;
&lt;br /&gt;
additional information from http://zwaveworld.com/forum/index.php?showtopic=237:&lt;br /&gt;
 &amp;gt;?FI003,017,000  //basic class 3 (slave), generic class 0x11 (multlevel switch), specific class 0&lt;br /&gt;
&lt;br /&gt;
==== Basic ====&lt;br /&gt;
* COMMAND_CLASS_BASIC&lt;br /&gt;
 BASIC_GET&lt;br /&gt;
 BASIC_SET&lt;br /&gt;
==== Mandatory ====&lt;br /&gt;
==== Multilevel Sensor ====&lt;br /&gt;
(from the Vizia RF Application Note)&lt;br /&gt;
* COMMAND_CLASS_SENSOR_MULTILEVEL&lt;br /&gt;
example get:&lt;br /&gt;
 &amp;gt;N4SE49,4 (RZC0P Syntax)&lt;br /&gt;
sensor report:&lt;br /&gt;
 &amp;lt;N004:049,005,001,009,075&lt;br /&gt;
   049: device class&lt;br /&gt;
   005: command report&lt;br /&gt;
   001: value send is a temperature value&lt;br /&gt;
   009: value represented with 1 byte in degrees fahrenheit &lt;br /&gt;
   075: 75° F&lt;br /&gt;
==== Manufacturer Specific ====&lt;br /&gt;
* COMMAND_CLASS_MANUFACTURER_SPECIFIC&lt;br /&gt;
Show the ESI product data:&lt;br /&gt;
 MANUFACTURER_SPECIFIC_GET&lt;br /&gt;
Example return message:&lt;br /&gt;
 0x00 0x33 0x52 0x50 0x30 0x32&lt;br /&gt;
  0x00: maunfacturer id high byte&lt;br /&gt;
  0x33: manufacturer id low byte, ID: 0x0033&lt;br /&gt;
 Product type ID &amp;quot;RP&amp;quot;&lt;br /&gt;
 Product ID &amp;quot;02&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Version ====&lt;br /&gt;
* COMMAND_CLASS_VERSION&lt;br /&gt;
 VERSION_GET&lt;br /&gt;
Example return message:&lt;br /&gt;
 0x04 0x02 0x06 0x01 0x01 0x5a&lt;br /&gt;
  0x04: Library type 4 for basic slave device&lt;br /&gt;
  0x02: Protocol version 2&lt;br /&gt;
  0x06: Protocol sub version 6&lt;br /&gt;
  0x01: Application version 1&lt;br /&gt;
  0x01: Application sub version 1&lt;br /&gt;
  0x5a: ?&lt;br /&gt;
&lt;br /&gt;
==== All Switch ====&lt;br /&gt;
* COMMAND_CLASS_SWITCH_ALL&lt;br /&gt;
 SWITCH_ALL_GET&lt;br /&gt;
 SWITCH_ALL_ON&lt;br /&gt;
 SWITCH_ALL_OFF&lt;br /&gt;
==== Configuration ====&lt;br /&gt;
* COMMAND_CLASS_CONFIGURATION&lt;br /&gt;
Each parameter is a single byte (&amp;quot;0&amp;quot; or &amp;quot;1&amp;quot;)&lt;br /&gt;
 CONFIGURATION_GET&lt;br /&gt;
 CONFIGURATION_SET&lt;br /&gt;
==== Power Level ====&lt;br /&gt;
* COMMAND_CLASS_POWERLEVEL&lt;br /&gt;
 POWERLEVEL_TEST_NODE_SET&lt;br /&gt;
 POWERLEVEL_TEST_NODE_GET&lt;br /&gt;
 POWERLEVEL_TEST_NODE_REPORT&lt;br /&gt;
Example: POWERLEVEL_SET, 5, 60&lt;br /&gt;
set the ZWave node&#039;s power level to 5 for the length of 60 seconds&lt;br /&gt;
&lt;br /&gt;
== Device configuration data ==&lt;br /&gt;
= Traces =&lt;br /&gt;
Starting the ZWave device:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
40    03/28/08 15:53:34.590           0x1 0x3 0x0 0x15 0xe9 (#####) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:34.741           0x6 0x1 0x10 0x1 0x15 0x5a 0x2d 0x57 0x61 0x76 0x65 0x20 0x32 0x2e 0x33 0x31 0x0 0x1 0x96 (#####Z-Wave 2.31###) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
40      03/28/08 15:53:34.792           0x1 0x3 0x0 0x20 0xdc (### #) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:35.042           0x6 0x1 0x8 0x1 0x20 0x0 0x0 0x55 0x28 0x2 0xa9 (#### ##U(##) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
40      03/28/08 15:53:35.092           0x1 0x3 0x0 0x2 0xfe (#####) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:35.342           0x6 0x1 0x25 0x1 0x2 0x4 0x4 0x1d 0x3 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x1 0xc4 (##%#) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
40      03/28/08 15:53:35.393           0x1 0x4 0x0 0x52 0x1 0xa8 (###R##) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:35.643           0x6 0x1 0x4 0x1 0x52 0x1 0xa9 (####R##) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
40      03/28/08 15:53:35.694           0x1 0x3 0x0 0x56 0xaa (###V#) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:35.944           0x6 0x1 0x4 0x1 0x56 0x0 0xac (####V##) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
40      03/28/08 15:53:35.995           0x1 0x4 0x0 0x41 0x1 0xbb (###A##) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:36.245           0x6 0x1 0x9 0x1 0x41 0xc9 0x0 0x0 0x3 0x11 0x0 0x6d (####A######m) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
40      03/28/08 15:53:36.296           0x1 0x4 0x0 0x41 0x2 0xb8 (###A##) &amp;lt;0xb698bb90&amp;gt;&lt;br /&gt;
41      03/28/08 15:53:36.545           0x6 0x1 0x9 0x1 0x41 0xd2 0x6 0x0 0x2 0x2 0x0 0x62 (####A######b) &amp;lt;0xb718cb90&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Interesting string: &lt;br /&gt;
  0x1 0x2 0x4 0x4 0x1d 0x3 0x0 0x0 0x0 ...&lt;br /&gt;
  0x1 means it is a response&lt;br /&gt;
  0x2 means it is initialization data&lt;br /&gt;
  0x4 is the version&lt;br /&gt;
  0x4 is the capabilities&lt;br /&gt;
LMCE will look for the next 4 bytes to get the list of devices. It seems to be a bit map. In this case, the first byte is 0x3 or in binary 00000011 so devices ID 1 and 2 are present. It is unclear to me why we only look at 4 bytes (32 zwave devices) while the protocol supports 252&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switching on a ZDP200 lamp plug from the Orbiter:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
40      03/28/08 15:49:20.707           0x1 0xa 0x0 0x13 0x1 0x3 0x26 0x1 0x63 0x5 0x6 0xa3 (#\n####&amp;amp;#c###) &amp;lt;0xb68f3b90&amp;gt;&lt;br /&gt;
41      03/28/08 15:49:21.007           0x6 0x1 0x4 0x1 0x13 0x1 0xe8 (#######) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
41      03/28/08 15:49:21.307           0x1 0x5 0x0 0x13 0x6 0x0 0xef (#######) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pressing &amp;quot;all units on&amp;quot; on the ZTH200:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
41      03/28/08 15:50:58.553           0x1 0x8 0x0 0x4 0x4 0xef 0x2 0x27 0x4 0x39 (#######&#039;#9) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
41      03/28/08 15:50:58.854           0x1 0x8 0x0 0x4 0x0 0xef 0x2 0x27 0x4 0x3d (#######&#039;#=) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pressing &amp;quot;all units off&amp;quot; on the ZTH200:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
41      03/28/08 15:51:43.713           0x1 0x8 0x0 0x4 0x4 0xef 0x2 0x27 0x5 0x38 (#######&#039;#8) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
41      03/28/08 15:51:44.014           0x1 0x8 0x0 0x4 0x0 0xef 0x2 0x27 0x5 0x3c (#######&#039;#&amp;lt;) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pressing the local switch on the ZDP200 (toggling from off to on):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
41      03/28/08 15:52:37.284           0x1 0xc 0x0 0x49 0x84 0x1 0x6 0x3 0x11 0x0 0x26 0x27 0x75 0x5f (###I######&amp;amp;&#039;u_) &amp;lt;0xb70f4b90&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
http://www.basshome.com/leviton_z-wave_documentation_1970_ctg.htm&lt;br /&gt;
&lt;br /&gt;
http://zwaveworld.com/forum/index.php?showtopic=237&lt;br /&gt;
&lt;br /&gt;
http://www.eilhk.com/en/product/Datasheet/Zensys/SDS10243-2%20-%20Z-Wave%20Protocol%20Overview.pdf&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
http://www.smarthus.info/support/download/zwave/Z-Wave%20Protocol%20Overview.pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.eilhk.com/en/product/Datasheet/Zensys/INS10244-3%20-%20Z-Wave%20Node%20Type%20Overview%20and%20Network%20Installation%20Guide.pdf&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
http://www.smarthus.info/support/download/zwave/Z-Wave%20Node%20Type%20Overview%20and%20Network.pdf&lt;br /&gt;
&lt;br /&gt;
http://www.smarthus.info/support/download/zwave/Z-Wave%20Configuration%20Information.pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.ddj.com/embedded/193104353&lt;br /&gt;
&lt;br /&gt;
= Tools used =&lt;br /&gt;
http://sourceforge.net/projects/slsnif/&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
&lt;br /&gt;
http://www.intouchcontrolsforum.com/forums/showthread.php?t=41&amp;amp;page=2&lt;br /&gt;
&lt;br /&gt;
http://www.elec-solutions.com/docs/motor_controls/dbmz/DBMZ_v1+1_Advanced_User_Manual.pdf&lt;br /&gt;
&lt;br /&gt;
http://zwaveworld.com/forum/index.php?showtopic=227&amp;amp;st=20&lt;br /&gt;
&lt;br /&gt;
http://www.denninger.net/homedaemon.htm&lt;br /&gt;
&lt;br /&gt;
http://forums.controlthink.com/&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=GlobalCache_GC-100&amp;diff=9816</id>
		<title>GlobalCache GC-100</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=GlobalCache_GC-100&amp;diff=9816"/>
		<updated>2008-03-30T15:22:59Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Serial Port */  Removed info to modify gc100-serial-bridge.sh because the patch is already in 0710 beta 4&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category: Hardware]]&lt;br /&gt;
[[Category: Automation]]&lt;br /&gt;
[[Category: Infrared]]&lt;br /&gt;
&lt;br /&gt;
[[Image:GC100.jpg|right]]&lt;br /&gt;
&lt;br /&gt;
GC100 is a device which allows you to have remote connection almost anywhere. It&#039;s a network device which will forward all your data to :&lt;br /&gt;
* couple of serial ports&lt;br /&gt;
* [[IR]] senders and/or sensors&lt;br /&gt;
* several relays&lt;br /&gt;
For more details about the product check [http://www.globalcache.com/products/gc-index.html manufacturer web site].&lt;br /&gt;
&lt;br /&gt;
== Send IR codes ==&lt;br /&gt;
LinuxMCE implementation of GC100 assumes that in device tree we&#039;ll have children and the messages are actually addressed to them instead of GC100 itself. &lt;br /&gt;
&lt;br /&gt;
So when you are sending &amp;quot;ON&amp;quot; to TV controlled by GC100, the message is routed to the GC100, it finds [[infrared]] code for &amp;quot;ON&amp;quot; for that specific TV, sends a command to gc100 to send a specific [[infrared]] sequence, which will blink IR sender connected to specific port, and the TV will turn on.&lt;br /&gt;
&lt;br /&gt;
The only two commands that GC100 implements itself are : &#039;&#039;&#039;CMD_Send_Code&#039;&#039;&#039; used to test which IR is suitable for your equipment and &#039;&#039;&#039;CMD_Learn_IR&#039;&#039;&#039; used to learn new IR codes.&lt;br /&gt;
&lt;br /&gt;
== Learn IR codes ==&lt;br /&gt;
The learning device is actually unrelated to GC100. It may be plugged into one of GC100&#039;s serial ports (don&#039;t forget to set them to 9600 bps), or in regular serial port, just be sure you specified right port in GC100 device data.&lt;br /&gt;
&lt;br /&gt;
There are several other devices that support learning of infrared codes : [[IRTrans]], [[Tira]], [[USB_UIRT]].&lt;br /&gt;
&lt;br /&gt;
Learning is done from [[LinuxMCE-admin|web page]]. When clicking &amp;quot;Learn&amp;quot; gc100 will start a thread that will try to get data from the port. If nothing is received in 30 seconds the thread will die. The page will continue to refresh trying to see if anything was added, but after 30 seconds it&#039;s useless.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
The gc100 jacks are by default configured as IR transmitters, but they can be configured to function as sensors. The sensors are, in their most basic form, two wires connected to a jack plug. When you cross them, a &amp;quot;sensor tripped&amp;quot; event is emitted. I am not currently aware of how this is supposed to function, who will intercept the event and how will it react to it. One idea for using a sensor is attaching a doorbell button to it, which, when pressed, will notify you in some way.&lt;br /&gt;
&lt;br /&gt;
You must go into the gc100&#039;s web panel and set the input jack to &#039;sensor w/ auto notify&#039; to use an i/r jack for a sensor.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
=== Install ===&lt;br /&gt;
The device is not quite [[plug&amp;amp;play]]. You have to perform a factory reset and to add it from orbiter (&amp;quot;Add GC100&amp;quot; button).&lt;br /&gt;
&lt;br /&gt;
A script will do some tricks with IP, will submit some pages on GC100&#039;s interface and so on. It will install needed software and after that it should say that device is ready to use (don&#039;t forget to [[quickreload]])&lt;br /&gt;
&lt;br /&gt;
=== Before the first use ===&lt;br /&gt;
* Insert proper wires in relays, devices in serial ports, [[IR]] LEDs and/or sensors.&lt;br /&gt;
* Go to device&#039;s webpage and set proper inputs/outputs, baud rates and so on.&lt;br /&gt;
* Add child devices in [[LinuxMCE-admin]] webpage and set proper device data to match the wiring.&lt;br /&gt;
&lt;br /&gt;
This should do it.&lt;br /&gt;
&lt;br /&gt;
=== Changes in LinuxMCE 0710 beta 4 ===&lt;br /&gt;
The way the gc100 is configured in the database changes in LinuxMCE 0710 beta 4. If you are upgrading from a previous release and have a gc100 set up, you will have to reconfigure it.&lt;br /&gt;
&lt;br /&gt;
The device tree will now have children for each relay, transmitter and sensor port. These are autodetected depending on the settings made to the gc100 itself and updated as the settings change.&lt;br /&gt;
&lt;br /&gt;
If until now you would put a TV directly under the gc100, you will have to put it under a transmitter child from now on. This will tell the gc100 which port to use to send the code, instead of sending it using all available transmitters like it did until now. This will allow you to add more IR devices which use the same codes without stepping on each other&#039;s toes, since the IR codes will be routed just to the target device. The old functionality is still in place and you can still add a TV directly under the gc100, but make sure you mark the checkbox that says &amp;quot;Don&#039;t autoconfigure&amp;quot; if you don&#039;t want the gc100 to manage its children, so your device remains in its place.&lt;br /&gt;
&lt;br /&gt;
This is also true for relays. Add your lights, or other devices that support On and Off commands, under the relay children. The On and Off commands will be routed to the right relay this way.&lt;br /&gt;
&lt;br /&gt;
=== Known Problems ===&lt;br /&gt;
&lt;br /&gt;
==== MAC detection ====&lt;br /&gt;
&lt;br /&gt;
--[[User:Nite man|Nite man]] 06:03, 25 January 2008 (PST) To solve the MAC detection problem replace the function &#039;&#039;get_gc100mac()&#039;&#039; in the script &#039;&#039;/usr/pluto/bin/gc100-conf.pl&#039;&#039; by new one below:&lt;br /&gt;
&lt;br /&gt;
 sub get_gc100mac {&lt;br /&gt;
    my($mac, $page, $ret);&lt;br /&gt;
 &lt;br /&gt;
    `curl http://192.168.1.70/Commands.cgi -o gc100mac1 --silent`;&lt;br /&gt;
    `curl http://192.168.1.101/Commands.cgi -o gc100mac2 --silent`;&lt;br /&gt;
 &lt;br /&gt;
    open FILE, &amp;quot;gc100mac1&amp;quot;;&lt;br /&gt;
    $ret = read FILE, $page, -s &amp;quot;gc100mac1&amp;quot;;&lt;br /&gt;
    close FILE;&lt;br /&gt;
 &lt;br /&gt;
    unless($page) {&lt;br /&gt;
        open FILE, &amp;quot;gc100mac2&amp;quot;;&lt;br /&gt;
        $ret = read FILE, $page, -s &amp;quot;gc100mac2&amp;quot;;&lt;br /&gt;
        close FILE;&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    ($mac) = $page =~ /((?:[\dA-F]{2}-){5}[\dA-F]{2})/i;&lt;br /&gt;
 &lt;br /&gt;
    if($mac) {&lt;br /&gt;
        $mac =~ tr/\-/\:/;&lt;br /&gt;
        loggc(&amp;quot;Mac Found $mac\n&amp;quot;);&lt;br /&gt;
        system &amp;quot;rm -f gc100mac1 gc100mac2&amp;quot;;&lt;br /&gt;
        return $mac;&lt;br /&gt;
    } else { exit 1 }&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
or apply that [[http://smart-home-blog.com/wp-content/plugins/wp-downloadMonitor/download.php?id=18 gc100-conf.pl.patch]]&lt;br /&gt;
&lt;br /&gt;
Currently the support for the gc100 in LinuxMCE is broken, at least for some models or firmware versions.  The &#039;&#039;/usr/pluto/bin/gc100-conf.pl&#039;&#039; script is for some reason unable to determine the gc100&#039;s MAC Adress after it has been reset to factory defaults.  As a result it is only half configured and not added to the system properly.&lt;br /&gt;
&lt;br /&gt;
The only known workaround [http://smart-home-blog.com/archives/688] [http://forum.linuxmce.org/index.php?topic=1990.msg9161#msg9161] at this time is to manually edit the perl script, and hardcode the MAC address of your gc100.  In short, find this line in the script:&lt;br /&gt;
 sub get_gc100mac {&lt;br /&gt;
Then insert this line immediately following it (replace &#039;&#039;00:00:00:00:00:00&#039;&#039; with the adress of your gc100):&lt;br /&gt;
 &#039;&#039;&#039;return &amp;quot;&#039;&#039;00:00:00:00:00:00&#039;&#039;&amp;quot;;&#039;&#039;&#039;&lt;br /&gt;
As a result it should look something like this now:&lt;br /&gt;
         exit(4);&lt;br /&gt;
   }&lt;br /&gt;
 } &lt;br /&gt;
     &lt;br /&gt;
 sub get_gc100mac {&lt;br /&gt;
   &lt;br /&gt;
   &#039;&#039;&#039;return &amp;quot;&#039;&#039;00:00:00:00:00:00&#039;&#039;&amp;quot;&#039;&#039;&#039;;&lt;br /&gt;
   &lt;br /&gt;
   `curl &amp;lt;nowiki&amp;gt;http://192.168.1.70/Commands.cgi&amp;lt;/nowiki&amp;gt; -o gc100mac1 --silent`;&lt;br /&gt;
   `curl &amp;lt;nowiki&amp;gt;http://192.168.1.101/Commands.cgi&amp;lt;/nowiki&amp;gt; -o gc100mac2 --silent`;&lt;br /&gt;
   open(FILE,&amp;quot;gc100mac1&amp;quot;);&lt;br /&gt;
   @data1 = &amp;lt;FILE&amp;gt;;&lt;br /&gt;
   close(FILE);&lt;br /&gt;
&lt;br /&gt;
Reset the gc100 to factory defaults if necessary and you should be able to add it from an orbiter as described above.&lt;br /&gt;
&lt;br /&gt;
Another possible workaround &#039;&#039;might&#039;&#039; be described on the [http://plutohome.com/wiki/index.php/Gc100 Plutohome wiki for the gc100], under &#039;&#039;&#039;Complete Manual Install&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Firmware versions known to be affected:&lt;br /&gt;
* 2.4-06 (GC100-06)&lt;br /&gt;
&lt;br /&gt;
==== Serial Port ====&lt;br /&gt;
&lt;br /&gt;
Previous problems in the gc100-serial-bridge.sh script were fixed in 0710 beta4.&lt;br /&gt;
&lt;br /&gt;
The GC100 serial port needs to be setup for 4800 bauds. &lt;br /&gt;
&lt;br /&gt;
In some cases the gc100 may respond with &amp;quot;configuration is locked&amp;quot;. If that happens, you need to re-configure the gc100 manually from factory defaults. In the /usr/pluto/bin/gc100-conf.pl, modify the wget call in the &amp;quot;sub configure_webgc&amp;quot; function to add parameter &amp;quot;Y=0&amp;quot; which means &amp;quot;do not lock config&amp;quot;:&lt;br /&gt;
 sub configure_webgc {&lt;br /&gt;
    $local_ip = shift;&lt;br /&gt;
    system(&amp;quot;wget -q -T 3 --read-timeout=4 -t 1 \&amp;quot;http://192.168.1.70/commands.cgi?2=$local_ip&amp;amp;3=255.255.255.0&amp;amp;4=$gw$Y=0&amp;amp;7=submit\&amp;quot;&amp;quot;);&lt;br /&gt;
    system(&amp;quot;wget -q -T 3 --read-timeout=4 -t 1 \&amp;quot;http://192.168.1.101/commands.cgi?2=$local_ip&amp;amp;3=255.255.255.0&amp;amp;4=$gw&amp;amp;Y=0&amp;amp;7=submit\&amp;quot;&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
or if you do it all manually from the command line:&lt;br /&gt;
 wget -q -T 3 --read-timeout=4 -t 1 &amp;quot;http://192.168.1.70/commands.cgi?2=192.168.80.23&amp;amp;3=255.255.255.0&amp;amp;4=192.168.80.1&amp;amp;Y=0&amp;amp;7=submit&amp;quot;&lt;br /&gt;
and adapt to the desired IP address.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now edit the port speed with the browser. If your browser hangs when you submit, you can use this the following wget call instead:&lt;br /&gt;
 wget -q -T 3 --read-timeout=4 -t 1 &amp;quot;http://192.168.80.23/serial.cgi?C=1&amp;amp;B=5&amp;amp;F=0&amp;amp;A=submit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Firmware version 3.0 and later ====&lt;br /&gt;
&lt;br /&gt;
gc100 with firmware version 3.0 and later is Plug&amp;amp;Play, but not yet supported as such by LinuxMCE. It implements a DHCP client and also has a discovery beacon. Because it is able to get an IP address from the DHCP server, you won&#039;t be able to add it using the manual method describe here when using a default installation. You either have to use the completely manual installation procedure described on the [http://plutohome.com/wiki/index.php/Gc100#Complete_Manual_Install Plutohome Wiki for gc100], if you know what IP address the DHCP server gave it, or temporarily disable the DHCP server on the core (write down the DHCP settings, because they are erased from the database when you disable the DHCP server from Pluto-Admin - you can also /etc/init.d/dhcp3-server stop, add the gc100 and /etc/init.d/dhcp3-server start, without erasing the database).&lt;br /&gt;
&lt;br /&gt;
== Implementation details ==&lt;br /&gt;
In &#039;&#039;gc100.cpp&#039;&#039; there is a lot of code for format conversion and other stuff. Practically it&#039;s not a big deal it receives a command, find a proper IR sequence and sends it to gc100.&lt;br /&gt;
&lt;br /&gt;
==== Operating the relays, IR transmitters, and sensors ====&lt;br /&gt;
The gc100 software architecture uses two threads to communicate with the gc100 regarding relays, IR transmitters and sensors, one for sending messages (SocketThread) and one for receiving (EventThread). The reason for this is that the gc100 protocol isn&#039;t completely a request-reply protocol, even if it seems like that at first. The gc100 can initiate a transmission when a sensor is tripped, enough to break the request-reply paradigm. The program was designed to treat the communication as asynchronous. Messages are sent to the device without expecting a reply, and the replies are treated as independent events and state change reports, without linking a request to a reply in the program logic (except for the initialization phase).&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=GlobalCache_GC-100&amp;diff=9815</id>
		<title>GlobalCache GC-100</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=GlobalCache_GC-100&amp;diff=9815"/>
		<updated>2008-03-30T15:15:07Z</updated>

		<summary type="html">&lt;p&gt;Caiman: /* Serial Port */  added info to change serial port speed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category: Hardware]]&lt;br /&gt;
[[Category: Automation]]&lt;br /&gt;
[[Category: Infrared]]&lt;br /&gt;
&lt;br /&gt;
[[Image:GC100.jpg|right]]&lt;br /&gt;
&lt;br /&gt;
GC100 is a device which allows you to have remote connection almost anywhere. It&#039;s a network device which will forward all your data to :&lt;br /&gt;
* couple of serial ports&lt;br /&gt;
* [[IR]] senders and/or sensors&lt;br /&gt;
* several relays&lt;br /&gt;
For more details about the product check [http://www.globalcache.com/products/gc-index.html manufacturer web site].&lt;br /&gt;
&lt;br /&gt;
== Send IR codes ==&lt;br /&gt;
LinuxMCE implementation of GC100 assumes that in device tree we&#039;ll have children and the messages are actually addressed to them instead of GC100 itself. &lt;br /&gt;
&lt;br /&gt;
So when you are sending &amp;quot;ON&amp;quot; to TV controlled by GC100, the message is routed to the GC100, it finds [[infrared]] code for &amp;quot;ON&amp;quot; for that specific TV, sends a command to gc100 to send a specific [[infrared]] sequence, which will blink IR sender connected to specific port, and the TV will turn on.&lt;br /&gt;
&lt;br /&gt;
The only two commands that GC100 implements itself are : &#039;&#039;&#039;CMD_Send_Code&#039;&#039;&#039; used to test which IR is suitable for your equipment and &#039;&#039;&#039;CMD_Learn_IR&#039;&#039;&#039; used to learn new IR codes.&lt;br /&gt;
&lt;br /&gt;
== Learn IR codes ==&lt;br /&gt;
The learning device is actually unrelated to GC100. It may be plugged into one of GC100&#039;s serial ports (don&#039;t forget to set them to 9600 bps), or in regular serial port, just be sure you specified right port in GC100 device data.&lt;br /&gt;
&lt;br /&gt;
There are several other devices that support learning of infrared codes : [[IRTrans]], [[Tira]], [[USB_UIRT]].&lt;br /&gt;
&lt;br /&gt;
Learning is done from [[LinuxMCE-admin|web page]]. When clicking &amp;quot;Learn&amp;quot; gc100 will start a thread that will try to get data from the port. If nothing is received in 30 seconds the thread will die. The page will continue to refresh trying to see if anything was added, but after 30 seconds it&#039;s useless.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
The gc100 jacks are by default configured as IR transmitters, but they can be configured to function as sensors. The sensors are, in their most basic form, two wires connected to a jack plug. When you cross them, a &amp;quot;sensor tripped&amp;quot; event is emitted. I am not currently aware of how this is supposed to function, who will intercept the event and how will it react to it. One idea for using a sensor is attaching a doorbell button to it, which, when pressed, will notify you in some way.&lt;br /&gt;
&lt;br /&gt;
You must go into the gc100&#039;s web panel and set the input jack to &#039;sensor w/ auto notify&#039; to use an i/r jack for a sensor.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
=== Install ===&lt;br /&gt;
The device is not quite [[plug&amp;amp;play]]. You have to perform a factory reset and to add it from orbiter (&amp;quot;Add GC100&amp;quot; button).&lt;br /&gt;
&lt;br /&gt;
A script will do some tricks with IP, will submit some pages on GC100&#039;s interface and so on. It will install needed software and after that it should say that device is ready to use (don&#039;t forget to [[quickreload]])&lt;br /&gt;
&lt;br /&gt;
=== Before the first use ===&lt;br /&gt;
* Insert proper wires in relays, devices in serial ports, [[IR]] LEDs and/or sensors.&lt;br /&gt;
* Go to device&#039;s webpage and set proper inputs/outputs, baud rates and so on.&lt;br /&gt;
* Add child devices in [[LinuxMCE-admin]] webpage and set proper device data to match the wiring.&lt;br /&gt;
&lt;br /&gt;
This should do it.&lt;br /&gt;
&lt;br /&gt;
=== Changes in LinuxMCE 0710 beta 4 ===&lt;br /&gt;
The way the gc100 is configured in the database changes in LinuxMCE 0710 beta 4. If you are upgrading from a previous release and have a gc100 set up, you will have to reconfigure it.&lt;br /&gt;
&lt;br /&gt;
The device tree will now have children for each relay, transmitter and sensor port. These are autodetected depending on the settings made to the gc100 itself and updated as the settings change.&lt;br /&gt;
&lt;br /&gt;
If until now you would put a TV directly under the gc100, you will have to put it under a transmitter child from now on. This will tell the gc100 which port to use to send the code, instead of sending it using all available transmitters like it did until now. This will allow you to add more IR devices which use the same codes without stepping on each other&#039;s toes, since the IR codes will be routed just to the target device. The old functionality is still in place and you can still add a TV directly under the gc100, but make sure you mark the checkbox that says &amp;quot;Don&#039;t autoconfigure&amp;quot; if you don&#039;t want the gc100 to manage its children, so your device remains in its place.&lt;br /&gt;
&lt;br /&gt;
This is also true for relays. Add your lights, or other devices that support On and Off commands, under the relay children. The On and Off commands will be routed to the right relay this way.&lt;br /&gt;
&lt;br /&gt;
=== Known Problems ===&lt;br /&gt;
&lt;br /&gt;
==== MAC detection ====&lt;br /&gt;
&lt;br /&gt;
--[[User:Nite man|Nite man]] 06:03, 25 January 2008 (PST) To solve the MAC detection problem replace the function &#039;&#039;get_gc100mac()&#039;&#039; in the script &#039;&#039;/usr/pluto/bin/gc100-conf.pl&#039;&#039; by new one below:&lt;br /&gt;
&lt;br /&gt;
 sub get_gc100mac {&lt;br /&gt;
    my($mac, $page, $ret);&lt;br /&gt;
 &lt;br /&gt;
    `curl http://192.168.1.70/Commands.cgi -o gc100mac1 --silent`;&lt;br /&gt;
    `curl http://192.168.1.101/Commands.cgi -o gc100mac2 --silent`;&lt;br /&gt;
 &lt;br /&gt;
    open FILE, &amp;quot;gc100mac1&amp;quot;;&lt;br /&gt;
    $ret = read FILE, $page, -s &amp;quot;gc100mac1&amp;quot;;&lt;br /&gt;
    close FILE;&lt;br /&gt;
 &lt;br /&gt;
    unless($page) {&lt;br /&gt;
        open FILE, &amp;quot;gc100mac2&amp;quot;;&lt;br /&gt;
        $ret = read FILE, $page, -s &amp;quot;gc100mac2&amp;quot;;&lt;br /&gt;
        close FILE;&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    ($mac) = $page =~ /((?:[\dA-F]{2}-){5}[\dA-F]{2})/i;&lt;br /&gt;
 &lt;br /&gt;
    if($mac) {&lt;br /&gt;
        $mac =~ tr/\-/\:/;&lt;br /&gt;
        loggc(&amp;quot;Mac Found $mac\n&amp;quot;);&lt;br /&gt;
        system &amp;quot;rm -f gc100mac1 gc100mac2&amp;quot;;&lt;br /&gt;
        return $mac;&lt;br /&gt;
    } else { exit 1 }&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
or apply that [[http://smart-home-blog.com/wp-content/plugins/wp-downloadMonitor/download.php?id=18 gc100-conf.pl.patch]]&lt;br /&gt;
&lt;br /&gt;
Currently the support for the gc100 in LinuxMCE is broken, at least for some models or firmware versions.  The &#039;&#039;/usr/pluto/bin/gc100-conf.pl&#039;&#039; script is for some reason unable to determine the gc100&#039;s MAC Adress after it has been reset to factory defaults.  As a result it is only half configured and not added to the system properly.&lt;br /&gt;
&lt;br /&gt;
The only known workaround [http://smart-home-blog.com/archives/688] [http://forum.linuxmce.org/index.php?topic=1990.msg9161#msg9161] at this time is to manually edit the perl script, and hardcode the MAC address of your gc100.  In short, find this line in the script:&lt;br /&gt;
 sub get_gc100mac {&lt;br /&gt;
Then insert this line immediately following it (replace &#039;&#039;00:00:00:00:00:00&#039;&#039; with the adress of your gc100):&lt;br /&gt;
 &#039;&#039;&#039;return &amp;quot;&#039;&#039;00:00:00:00:00:00&#039;&#039;&amp;quot;;&#039;&#039;&#039;&lt;br /&gt;
As a result it should look something like this now:&lt;br /&gt;
         exit(4);&lt;br /&gt;
   }&lt;br /&gt;
 } &lt;br /&gt;
     &lt;br /&gt;
 sub get_gc100mac {&lt;br /&gt;
   &lt;br /&gt;
   &#039;&#039;&#039;return &amp;quot;&#039;&#039;00:00:00:00:00:00&#039;&#039;&amp;quot;&#039;&#039;&#039;;&lt;br /&gt;
   &lt;br /&gt;
   `curl &amp;lt;nowiki&amp;gt;http://192.168.1.70/Commands.cgi&amp;lt;/nowiki&amp;gt; -o gc100mac1 --silent`;&lt;br /&gt;
   `curl &amp;lt;nowiki&amp;gt;http://192.168.1.101/Commands.cgi&amp;lt;/nowiki&amp;gt; -o gc100mac2 --silent`;&lt;br /&gt;
   open(FILE,&amp;quot;gc100mac1&amp;quot;);&lt;br /&gt;
   @data1 = &amp;lt;FILE&amp;gt;;&lt;br /&gt;
   close(FILE);&lt;br /&gt;
&lt;br /&gt;
Reset the gc100 to factory defaults if necessary and you should be able to add it from an orbiter as described above.&lt;br /&gt;
&lt;br /&gt;
Another possible workaround &#039;&#039;might&#039;&#039; be described on the [http://plutohome.com/wiki/index.php/Gc100 Plutohome wiki for the gc100], under &#039;&#039;&#039;Complete Manual Install&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Firmware versions known to be affected:&lt;br /&gt;
* 2.4-06 (GC100-06)&lt;br /&gt;
&lt;br /&gt;
==== Serial Port ====&lt;br /&gt;
&lt;br /&gt;
The GC100&#039;s serial port does not work under LinuxMCE without a small modification, see: [http://forum.linuxmce.org/index.php?topic=2161.msg10140#msg10140 Re: GC100 + CM11 setup]&lt;br /&gt;
&lt;br /&gt;
The following commands should correct this issue (and make a backup copy just in case):&lt;br /&gt;
 mv /usr/pluto/bin/gc100-serial-bridge.sh /usr/pluto/bin/gc100-serial-bridge.sh.backup&lt;br /&gt;
 sed -e &#039;s/false/0/g&#039; /usr/pluto/bin/gc100-serial-bridge.sh.backup &amp;gt;/usr/pluto/bin/gc100-serial-bridge.sh&lt;br /&gt;
&lt;br /&gt;
It basicly replaces &#039;&#039;&#039;false&#039;&#039;&#039; with &#039;&#039;&#039;0&#039;&#039;&#039; in the &#039;&#039;/usr/pluto/bin/gc100-serial-bridge.sh&#039;&#039; file.  Afterwards a reboot may be in order.&lt;br /&gt;
&lt;br /&gt;
The GC100 serial port also needs to be setup for 4800 bauds. &lt;br /&gt;
&lt;br /&gt;
In some cases the gc100 may respond with &amp;quot;configuration is locked&amp;quot;. If that happens, you need to re-configure the gc100 manually from factory defaults. In the /usr/pluto/bin/gc100-conf.pl, modify the wget call in the &amp;quot;sub configure_webgc&amp;quot; function to add parameter &amp;quot;Y=0&amp;quot; which means &amp;quot;do not lock config&amp;quot;:&lt;br /&gt;
 sub configure_webgc {&lt;br /&gt;
    $local_ip = shift;&lt;br /&gt;
    system(&amp;quot;wget -q -T 3 --read-timeout=4 -t 1 \&amp;quot;http://192.168.1.70/commands.cgi?2=$local_ip&amp;amp;3=255.255.255.0&amp;amp;4=$gw$Y=0&amp;amp;7=submit\&amp;quot;&amp;quot;);&lt;br /&gt;
    system(&amp;quot;wget -q -T 3 --read-timeout=4 -t 1 \&amp;quot;http://192.168.1.101/commands.cgi?2=$local_ip&amp;amp;3=255.255.255.0&amp;amp;4=$gw&amp;amp;Y=0&amp;amp;7=submit\&amp;quot;&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
or if you do it all manually from the command line:&lt;br /&gt;
 wget -q -T 3 --read-timeout=4 -t 1 &amp;quot;http://192.168.1.70/commands.cgi?2=192.168.80.23&amp;amp;3=255.255.255.0&amp;amp;4=192.168.80.1&amp;amp;Y=0&amp;amp;7=submit&amp;quot;&lt;br /&gt;
and adapt to the desired IP address.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now edit the port speed with the browser. If your browser hangs when you submit, you can use this the following wget call instead:&lt;br /&gt;
 wget -q -T 3 --read-timeout=4 -t 1 &amp;quot;http://192.168.80.23/serial.cgi?C=1&amp;amp;B=5&amp;amp;F=0&amp;amp;A=submit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Firmware version 3.0 and later ====&lt;br /&gt;
&lt;br /&gt;
gc100 with firmware version 3.0 and later is Plug&amp;amp;Play, but not yet supported as such by LinuxMCE. It implements a DHCP client and also has a discovery beacon. Because it is able to get an IP address from the DHCP server, you won&#039;t be able to add it using the manual method describe here when using a default installation. You either have to use the completely manual installation procedure described on the [http://plutohome.com/wiki/index.php/Gc100#Complete_Manual_Install Plutohome Wiki for gc100], if you know what IP address the DHCP server gave it, or temporarily disable the DHCP server on the core (write down the DHCP settings, because they are erased from the database when you disable the DHCP server from Pluto-Admin - you can also /etc/init.d/dhcp3-server stop, add the gc100 and /etc/init.d/dhcp3-server start, without erasing the database).&lt;br /&gt;
&lt;br /&gt;
== Implementation details ==&lt;br /&gt;
In &#039;&#039;gc100.cpp&#039;&#039; there is a lot of code for format conversion and other stuff. Practically it&#039;s not a big deal it receives a command, find a proper IR sequence and sends it to gc100.&lt;br /&gt;
&lt;br /&gt;
==== Operating the relays, IR transmitters, and sensors ====&lt;br /&gt;
The gc100 software architecture uses two threads to communicate with the gc100 regarding relays, IR transmitters and sensors, one for sending messages (SocketThread) and one for receiving (EventThread). The reason for this is that the gc100 protocol isn&#039;t completely a request-reply protocol, even if it seems like that at first. The gc100 can initiate a transmission when a sensor is tripped, enough to break the request-reply paradigm. The program was designed to treat the communication as asynchronous. Messages are sent to the device without expecting a reply, and the replies are treated as independent events and state change reports, without linking a request to a reply in the program logic (except for the initialization phase).&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=EIB/KNX&amp;diff=5864</id>
		<title>EIB/KNX</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=EIB/KNX&amp;diff=5864"/>
		<updated>2007-09-28T08:15:04Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;KNX (EIB) is a standardised (EN 50090,ISO/IEC 14543), OSI-based network communications protocol for intelligent buildings. KNX is the successor to, and convergence of, three previous standards: the European Home Systems Protocol (EHS), BatiBUS, and the European Installation Bus (EIB).&lt;br /&gt;
&lt;br /&gt;
The KNX standard is administered by the Konnex Association. [http://www.konnex.org konnex.org]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to install and use EIB ==&lt;br /&gt;
&lt;br /&gt;
Connect your Core-Server with a serial cable to the EIB. Your BUS Connector has to have the FT1.2Protocol. (like [http://www.eibmarkt.com/cgi-bin/eibmarkt.storefront/46f9364200e19a48274450f3362b0652/Product/View/N434019 this]). You can use it from any Company (Gira, Berker, Siemens, ... ) but it is very important to have the correct protocol. (I bought the wrong one). &lt;br /&gt;
When you have connect it you have to add the EIB Interface in the WebAdmin. Go to Devices--&amp;gt;Interface and choose EIB, select the correct COM-Port, do a reload - router and you are ready to use it.&lt;br /&gt;
You can also go in a console and look into the log file (DeviceID_EIB.log) to see if everything works fine. &lt;br /&gt;
&lt;br /&gt;
== How to add devices ==&lt;br /&gt;
&lt;br /&gt;
In the Webadmin you have on the left side new menu buttons for Lights, Drapes, Sensors and Thermostats. At first you have to add the groupadresses. You have to upload a file with the correct information about your System. The format is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;LichtARschalt&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;1&amp;quot;&lt;br /&gt;
&amp;quot;Licht-SZ-schalt&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;10&amp;quot;&lt;br /&gt;
&amp;quot;Licht-SZ-dimm&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;11&amp;quot;&lt;br /&gt;
&amp;quot;Licht-SZ-wert&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;12&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lights ===&lt;br /&gt;
&lt;br /&gt;
Goto EIB Lights on the Webadmin. Give the Name of your Light and choose if it is dimmable or not. Click on the &amp;quot;Pick&amp;quot; Button -&amp;gt; choose the correct groupaddress for on/off and dim. In Webadmin-&amp;gt;Lights you can add the room and type of your light. After that you can put the EIB light on the floorplan. &lt;br /&gt;
&lt;br /&gt;
=== Thermostats ===&lt;br /&gt;
&lt;br /&gt;
In my house the thermostats have two states (cold and warm). I don&#039;t want to change the temperature with LinuxMCE, i only want to turn on and off the heating. When the temperature is reached the EIB turns off the heating by itself. &lt;br /&gt;
So, what did i do? &lt;br /&gt;
At first i allowed my thermostat to change the state (on/off) by the bus and gave it a groupaddress (like 2/0/10)&lt;br /&gt;
I go to the Webadmin-&amp;gt;Scenarios-&amp;gt;Climate and create for every room two scenarios (on and off). Then go to the Webadmin-&amp;gt;Advanced-&amp;gt;Configuration-&amp;gt;Scenarios-Climate and choose the first Scenario. Add the EIB Device and the Command  EIB_Write. &lt;br /&gt;
Now you have to insert the groupaddress, data string and data type. Insert the groupaddress (2/0/10), the data string (1=on, 2=off) and for the data type put 6 in the field. Press save and you can test it. &lt;br /&gt;
&lt;br /&gt;
This is a lot of work, but so you can write a very small php-page to execute one of the scenarios. That&#039;s very comfortable because you can turn on and off the heating from anywhere with the browser of a mobile phone.&lt;br /&gt;
&lt;br /&gt;
=== Drapes ===&lt;br /&gt;
&lt;br /&gt;
It&#039;s the same as the thermostats. I don&#039;t use the EIB-Drapes, I create my own scenarios and send the commands with EIB_Write to the bus. This works very well.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
I don&#039;t really have sensors. I only tried to create a sensor that is a light-switch. Every time I turn on the light the sensor was tripped and the Commands were executed.&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
&lt;br /&gt;
=== How to send the Time on the bus? ===&lt;br /&gt;
&lt;br /&gt;
I want to send the system time of the server every ten minutes to the bus. The reason is, the internal clocks of the thermostats don&#039;t have a real clock, so they need the correct time/date every hour to synchronize. &lt;br /&gt;
Has anyone tried this???&lt;br /&gt;
&lt;br /&gt;
=== Can&#039;t read from the bus ===&lt;br /&gt;
&lt;br /&gt;
I want to read data from the bus. Like how warm is it in the rooms or is a light on or off. &lt;br /&gt;
I think this function isn&#039;t implemented yet... I will try to implement it, but i don&#039;t know how to build a working development system.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=EIB/KNX&amp;diff=5863</id>
		<title>EIB/KNX</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=EIB/KNX&amp;diff=5863"/>
		<updated>2007-09-28T08:14:40Z</updated>

		<summary type="html">&lt;p&gt;Caiman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;KNX (EIB) is a standardised (EN 50090,ISO/IEC 14543), OSI-based network communications protocol for intelligent buildings. KNX is the successor to, and convergence of, three previous standards: the European Home Systems Protocol (EHS), BatiBUS, and the European Installation Bus (EIB).&lt;br /&gt;
&lt;br /&gt;
The KNX standard is administered by the Konnex Association. [http://www.konnex.org konnex.org]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to install and use EIB ==&lt;br /&gt;
&lt;br /&gt;
Connect your Core-Server with a serial cable to the EIB. Your BUS Connector has to have the FT1.2Protocol. (like [http://www.eibmarkt.com/cgi-bin/eibmarkt.storefront/46f9364200e19a48274450f3362b0652/Product/View/N434019 this]. You can use it from any Company (Gira, Berker, Siemens, ... ) but it is very important to have the correct protocol. (I bought the wrong one). &lt;br /&gt;
When you have connect it you have to add the EIB Interface in the WebAdmin. Go to Devices--&amp;gt;Interface and choose EIB, select the correct COM-Port, do a reload - router and you are ready to use it.&lt;br /&gt;
You can also go in a console and look into the log file (DeviceID_EIB.log) to see if everything works fine. &lt;br /&gt;
&lt;br /&gt;
== How to add devices ==&lt;br /&gt;
&lt;br /&gt;
In the Webadmin you have on the left side new menu buttons for Lights, Drapes, Sensors and Thermostats. At first you have to add the groupadresses. You have to upload a file with the correct information about your System. The format is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;LichtARschalt&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;1&amp;quot;&lt;br /&gt;
&amp;quot;Licht-SZ-schalt&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;10&amp;quot;&lt;br /&gt;
&amp;quot;Licht-SZ-dimm&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;11&amp;quot;&lt;br /&gt;
&amp;quot;Licht-SZ-wert&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;0&amp;quot;/&amp;quot;12&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lights ===&lt;br /&gt;
&lt;br /&gt;
Goto EIB Lights on the Webadmin. Give the Name of your Light and choose if it is dimmable or not. Click on the &amp;quot;Pick&amp;quot; Button -&amp;gt; choose the correct groupaddress for on/off and dim. In Webadmin-&amp;gt;Lights you can add the room and type of your light. After that you can put the EIB light on the floorplan. &lt;br /&gt;
&lt;br /&gt;
=== Thermostats ===&lt;br /&gt;
&lt;br /&gt;
In my house the thermostats have two states (cold and warm). I don&#039;t want to change the temperature with LinuxMCE, i only want to turn on and off the heating. When the temperature is reached the EIB turns off the heating by itself. &lt;br /&gt;
So, what did i do? &lt;br /&gt;
At first i allowed my thermostat to change the state (on/off) by the bus and gave it a groupaddress (like 2/0/10)&lt;br /&gt;
I go to the Webadmin-&amp;gt;Scenarios-&amp;gt;Climate and create for every room two scenarios (on and off). Then go to the Webadmin-&amp;gt;Advanced-&amp;gt;Configuration-&amp;gt;Scenarios-Climate and choose the first Scenario. Add the EIB Device and the Command  EIB_Write. &lt;br /&gt;
Now you have to insert the groupaddress, data string and data type. Insert the groupaddress (2/0/10), the data string (1=on, 2=off) and for the data type put 6 in the field. Press save and you can test it. &lt;br /&gt;
&lt;br /&gt;
This is a lot of work, but so you can write a very small php-page to execute one of the scenarios. That&#039;s very comfortable because you can turn on and off the heating from anywhere with the browser of a mobile phone.&lt;br /&gt;
&lt;br /&gt;
=== Drapes ===&lt;br /&gt;
&lt;br /&gt;
It&#039;s the same as the thermostats. I don&#039;t use the EIB-Drapes, I create my own scenarios and send the commands with EIB_Write to the bus. This works very well.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
I don&#039;t really have sensors. I only tried to create a sensor that is a light-switch. Every time I turn on the light the sensor was tripped and the Commands were executed.&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
&lt;br /&gt;
=== How to send the Time on the bus? ===&lt;br /&gt;
&lt;br /&gt;
I want to send the system time of the server every ten minutes to the bus. The reason is, the internal clocks of the thermostats don&#039;t have a real clock, so they need the correct time/date every hour to synchronize. &lt;br /&gt;
Has anyone tried this???&lt;br /&gt;
&lt;br /&gt;
=== Can&#039;t read from the bus ===&lt;br /&gt;
&lt;br /&gt;
I want to read data from the bus. Like how warm is it in the rooms or is a light on or off. &lt;br /&gt;
I think this function isn&#039;t implemented yet... I will try to implement it, but i don&#039;t know how to build a working development system.&lt;/div&gt;</summary>
		<author><name>Caiman</name></author>
	</entry>
</feed>