<?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=Justnulling2</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=Justnulling2"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Justnulling2"/>
	<updated>2026-05-11T05:41:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Use_my_own_pictures_in_the_Screen_Saver&amp;diff=11471</id>
		<title>Use my own pictures in the Screen Saver</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Use_my_own_pictures_in_the_Screen_Saver&amp;diff=11471"/>
		<updated>2008-05-18T08:46:23Z</updated>

		<summary type="html">&lt;p&gt;Justnulling2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The photo screen saver does a great job and ensures that media is displayed all the time, even if you just happen to be listening to music.&lt;br /&gt;
By default, the photos come from flickr and are downloaded regularly to your local drives.&lt;br /&gt;
&lt;br /&gt;
But it would be nice to use your own photos in this screen saver, perhaps alongside the flickr ones or perhaps as a replacement.&lt;br /&gt;
&lt;br /&gt;
This is a guide to do just that...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quick Update: In 710B4 it&#039;s possible to select photos for screensaver in much easier way. See Files &amp;amp; Media -&amp;gt; Screensaver option...&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
== Italic text ==&lt;br /&gt;
&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Background ===&lt;br /&gt;
All media on your linuxMCE system is catalogued and stored in a database. The database allows for attributes to be stored for each media file.&lt;br /&gt;
One such attribute is &amp;quot;Screen Saver For MD&amp;quot;. By setting this attribute this picture will be used as one of the pictures for the Media Director Screen Saver.&lt;br /&gt;
Photos are selected by random from all the photos that exist with the &amp;quot;Screen Saver For MD&amp;quot; attribute set.&lt;br /&gt;
&lt;br /&gt;
There are a number of ways to set this attribute for individual files. They are;&lt;br /&gt;
* Setting an attribute from the web admin screens&lt;br /&gt;
* Setting an attribute from the command line&lt;br /&gt;
* Assigning a picture to the screen saver from the Orbiter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting an attribute from the web admin screens ===&lt;br /&gt;
&#039;&#039;&#039;NOTE:  Pictures must be smaller than 1240 x 1240.     Hope this saves some a bit of fustration.  &#039;&#039;&#039;  &lt;br /&gt;
There is a section on the web admin screens that allow the setting of attributes for media.&lt;br /&gt;
It is available under Files &amp;amp; Media -&amp;gt; Media Files Sync&lt;br /&gt;
&lt;br /&gt;
The left hand window frame gives a tree view into the directory structure of home/public/data.&lt;br /&gt;
Typically photos will be stored under the pictures sub-directory.&lt;br /&gt;
The right hand window frame gives a view of the files found and their status with relation to linuxMCE&#039;s database.&lt;br /&gt;
&lt;br /&gt;
Firstly determine the pictures you wish to use, and locate them using the directory browser.&lt;br /&gt;
Then ensure that the files are ticked to indicate existing in both the database and on disk. If not then choose the type as &#039;LinuxMCE Pictures&#039; and press the &#039;Add to database&#039; button.&lt;br /&gt;
&lt;br /&gt;
Once they are added to the database you should be able to select them and see the details (metadata) associated with them.&lt;br /&gt;
&lt;br /&gt;
Part of the details include any currently set attributes for the file, which you can choose to Edit or Remove.&lt;br /&gt;
There is also a section to Add Attributes. Only attribute that have been associated with the particular file types can be selected from the drop down box.&lt;br /&gt;
&#039;&#039;Note: If you do not see &#039;Screen Saver For MD&#039; in this box then you will need to Associate the attribute.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select the attribute &#039;Screen Saver For MD&#039; and enter or select the Attribute name value of &#039;*&#039;. Then press the Add button next to the box and your done.&lt;br /&gt;
&lt;br /&gt;
A quick reload router should be enough to ensure that files are refreshed from the database and you should start to see your selected picture as one of the screen saver files.&lt;br /&gt;
&lt;br /&gt;
==== Associate the attribute ====&lt;br /&gt;
&lt;br /&gt;
Unfortunately by default this attribute has not been associated with the picture media type. Perhaps a bug, who knows. Anyway, to associate it you will need to run the following piece of SQL to put the required association into the database.&lt;br /&gt;
&lt;br /&gt;
You will need to get to the command prompt of your CORE machine and from the command prompt (your default user should be fine) run:&lt;br /&gt;
&lt;br /&gt;
 mysql -u root -D pluto_media -N -e &amp;quot;INSERT into MediaType_AttributeType(EK_MediaType, FK_AttributeType, Identifier, CombineAsOne) values(7,30,0,1)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Do a quick reload router and then the attribute should show up in the dropdown box under add attributes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If someone knows a better way to do this or can see some adverse side effects please update&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Setting an attribute from the command line ===&lt;br /&gt;
&lt;br /&gt;
There is functionality built into the system that allows an attribute to be set through a sequence of Command Messages sent to the right device. This is what the flickr.pl script uses to assign the downloaded files the right attributes.&lt;br /&gt;
The commands can be executed from anything that can send linuxMCE messages (including the web admin screens) but this method will utilise the MessageSend utility available from the linux command line.&lt;br /&gt;
&lt;br /&gt;
You will need to firstly determine the full filename and path for the file you wish to set the attribute for.&lt;br /&gt;
This method assumes that the file has already been sync&#039;d with linuxMCE and exists in the data base.&lt;br /&gt;
&lt;br /&gt;
The first command queries the database for the file ID of a particular filename.&lt;br /&gt;
&lt;br /&gt;
The second command assigns an attribute type/value to the returned file ID&lt;br /&gt;
&lt;br /&gt;
* Logon to your linuxMCE CORE and get to the linux command prompt&lt;br /&gt;
* execute the following command&lt;br /&gt;
 /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 &amp;lt;pathtofile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting your full path to the file where is says &amp;lt;pathtofile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;eg: /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 /home/public/data/pictures/sample.jpg&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should get a response something like this:&lt;br /&gt;
 0:OK&lt;br /&gt;
 145:11392&lt;br /&gt;
&lt;br /&gt;
The number next to the &#039;145:&#039; is the important part. This is the fileID. If this is zero then your command has not found a match in the database and you may need to take other measures to ensure that the database is sync&#039;d with your files.&lt;br /&gt;
&lt;br /&gt;
* Now execute the following command&lt;br /&gt;
 /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 &amp;lt;fileID&amp;gt; 122 30 5 &amp;quot;*&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Substituting the fileID that you just discovered where it says &amp;lt;fileID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;eg: /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 11392 122 30 5 &amp;quot;*&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* You can then repeat for any other files that you want to use&lt;br /&gt;
&lt;br /&gt;
Below is a simple script which takes all the jpg files in the current directory, resizes them&lt;br /&gt;
to a screensaver safe size, and then marks them as being usable by the screensaver. There is no error checking and it shrinks all the images in place, so make sure you make a copy of the images first and place them in another directory. Note: this would normally be run on a directory below /home/public/data/pictures.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 # Copyright 2008 (c) Daniel Kristjansson&lt;br /&gt;
 # You may use this for any purpose whatsoever, so long as you preserve the copyright notice.&lt;br /&gt;
 # You may relicense this and add your own contributions freely.&lt;br /&gt;
 # Use this at your own risk.&lt;br /&gt;
 &lt;br /&gt;
 MAX_SIZE=1024 #don&#039;t set it bigger than 1240&lt;br /&gt;
 &lt;br /&gt;
 for FILE in `ls *.jpg *.JPG` ; do&lt;br /&gt;
     PWD=`pwd`&lt;br /&gt;
     FILEID=`/usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 $PWD/$FILE | tail -n 1 | sed -e &#039;s/^.*://g&#039;`&lt;br /&gt;
     RES=`identify -verbose $FILE | head -n1 | awk &#039;{ print $3 }&#039;`&lt;br /&gt;
     WIDTH=`echo $RES | sed -e &#039;s/x.*//g&#039;`&lt;br /&gt;
     HEIGHT=`echo $RES | sed -e &#039;s/.*x//g&#039;`&lt;br /&gt;
 &lt;br /&gt;
     NEW_WIDTH=$WIDTH&lt;br /&gt;
     NEW_HEIGHT=$HEIGHT&lt;br /&gt;
     if [ $WIDTH -gt $MAX_SIZE -o $HEIGHT -gt $MAX_SIZE ] ; then&lt;br /&gt;
         if [ $WIDTH -gt $HEIGHT ] ; then&lt;br /&gt;
            NEW_WIDTH=$MAX_SIZE&lt;br /&gt;
            NEW_HEIGHT=`expr $NEW_WIDTH &amp;quot;*&amp;quot; $HEIGHT &amp;quot;/&amp;quot; $WIDTH`&lt;br /&gt;
         else&lt;br /&gt;
            NEW_HEIGHT=$MAX_SIZE&lt;br /&gt;
            NEW_WIDTH=`expr $NEW_HEIGHT &amp;quot;*&amp;quot; $WIDTH &amp;quot;/&amp;quot; $HEIGHT`&lt;br /&gt;
         fi&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
     if [ $WIDTH != $NEW_WIDTH -o $HEIGHT != $NEW_HEIGHT ] ; then&lt;br /&gt;
         echo file id: $FILEID old dim: $RES : w $WIDTH : h $HEIGHT \-\&amp;gt; new dim: $NEW_WIDTH $NEW_HEIGHT&lt;br /&gt;
         convert $FILE -resize ${NEW_WIDTH}x${NEW_HEIGHT}! resized_$FILE&lt;br /&gt;
         mv resized_$FILE $FILE&lt;br /&gt;
     else&lt;br /&gt;
         echo file id: $FILEID old dim: $RES : w $WIDTH : h $HEIGHT&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
     /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 ${FILEID} 122 30 5 &amp;quot;*&amp;quot;&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
=== Assigning a picture to the screen saver from the Orbiter ===&lt;br /&gt;
&lt;br /&gt;
Sounds like a good idea??? Unfortunately it is not currently possible, but I thought that this sounded like a logical thing to do so have put this placeholder in.&lt;br /&gt;
&lt;br /&gt;
Essentially, screens in the Orbiter have buttons that trigger message Command to be sent. So setting up a button in the Picture view screen &amp;quot;add to Screen Saver&amp;quot; should be quite straight forward.&lt;br /&gt;
&lt;br /&gt;
If you feel like getting involved maybe this is somewhere you can start.....&lt;br /&gt;
&lt;br /&gt;
NOTE:  Pictures must be smaller than 1240 x 1240.     Hope this saves some a bit of fustration.&lt;br /&gt;
&lt;br /&gt;
[[Category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Justnulling2</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Use_my_own_pictures_in_the_Screen_Saver&amp;diff=11470</id>
		<title>Use my own pictures in the Screen Saver</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Use_my_own_pictures_in_the_Screen_Saver&amp;diff=11470"/>
		<updated>2008-05-18T08:45:45Z</updated>

		<summary type="html">&lt;p&gt;Justnulling2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The photo screen saver does a great job and ensures that media is displayed all the time, even if you just happen to be listening to music.&lt;br /&gt;
By default, the photos come from flickr and are downloaded regularly to your local drives.&lt;br /&gt;
&lt;br /&gt;
But it would be nice to use your own photos in this screen saver, perhaps alongside the flickr ones or perhaps as a replacement.&lt;br /&gt;
&lt;br /&gt;
This is a guide to do just that...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quick Update: In 710B4 it&#039;s possible to select photos for screensaver in much easier way. See Files &amp;amp; Media -&amp;gt; Screensaver option...&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
== Italic text ==&lt;br /&gt;
&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Background ===&lt;br /&gt;
All media on your linuxMCE system is catalogued and stored in a database. The database allows for attributes to be stored for each media file.&lt;br /&gt;
One such attribute is &amp;quot;Screen Saver For MD&amp;quot;. By setting this attribute this picture will be used as one of the pictures for the Media Director Screen Saver.&lt;br /&gt;
Photos are selected by random from all the photos that exist with the &amp;quot;Screen Saver For MD&amp;quot; attribute set.&lt;br /&gt;
&lt;br /&gt;
There are a number of ways to set this attribute for individual files. They are;&lt;br /&gt;
* Setting an attribute from the web admin screens&lt;br /&gt;
* Setting an attribute from the command line&lt;br /&gt;
* Assigning a picture to the screen saver from the Orbiter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting an attribute from the web admin screens ===&lt;br /&gt;
&#039;&#039;&#039;NOTE:  Pictures must be smaller than 1240 x 1240.     Hope this saves some a bit of fustration.  &#039;&#039;&#039;  &lt;br /&gt;
There is a section on the web admin screens that allow the setting of attributes for media.&lt;br /&gt;
It is available under Files &amp;amp; Media -&amp;gt; Media Files Sync&lt;br /&gt;
&lt;br /&gt;
The left hand window frame gives a tree view into the directory structure of home/public/data.&lt;br /&gt;
Typically photos will be stored under the pictures sub-directory.&lt;br /&gt;
The right hand window frame gives a view of the files found and their status with relation to linuxMCE&#039;s database.&lt;br /&gt;
&lt;br /&gt;
Firstly determine the pictures you wish to use, and locate them using the directory browser.&lt;br /&gt;
Then ensure that the files are ticked to indicate existing in both the database and on disk. If not then choose the type as &#039;LinuxMCE Pictures&#039; and press the &#039;Add to database&#039; button.&lt;br /&gt;
&lt;br /&gt;
Once they are added to the database you should be able to select them and see the details (metadata) associated with them.&lt;br /&gt;
&lt;br /&gt;
Part of the details include any currently set attributes for the file, which you can choose to Edit or Remove.&lt;br /&gt;
There is also a section to Add Attributes. Only attribute that have been associated with the particular file types can be selected from the drop down box.&lt;br /&gt;
&#039;&#039;Note: If you do not see &#039;Screen Saver For MD&#039; in this box then you will need to Associate the attribute.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select the attribute &#039;Screen Saver For MD&#039; and enter or select the Attribute name value of &#039;*&#039;. Then press the Add button next to the box and your done.&lt;br /&gt;
&lt;br /&gt;
A quick reload router should be enough to ensure that files are refreshed from the database and you should start to see your selected picture as one of the screen saver files.&lt;br /&gt;
&lt;br /&gt;
==== Associate the attribute ====&lt;br /&gt;
&lt;br /&gt;
Unfortunately by default this attribute has not been associated with the picture media type. Perhaps a bug, who knows. Anyway, to associate it you will need to run the following piece of SQL to put the required association into the database.&lt;br /&gt;
&lt;br /&gt;
You will need to get to the command prompt of your CORE machine and from the command prompt (your default user should be fine) run:&lt;br /&gt;
&lt;br /&gt;
 mysql -u root -D pluto_media -N -e &amp;quot;INSERT into MediaType_AttributeType(EK_MediaType, FK_AttributeType, Identifier, CombineAsOne) values(7,30,0,1)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Do a quick reload router and then the attribute should show up in the dropdown box under add attributes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If someone knows a better way to do this or can see some adverse side effects please update&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Setting an attribute from the command line ===&lt;br /&gt;
&lt;br /&gt;
There is functionality built into the system that allows an attribute to be set through a sequence of Command Messages sent to the right device. This is what the flickr.pl script uses to assign the downloaded files the right attributes.&lt;br /&gt;
The commands can be executed from anything that can send linuxMCE messages (including the web admin screens) but this method will utilise the MessageSend utility available from the linux command line.&lt;br /&gt;
&lt;br /&gt;
You will need to firstly determine the full filename and path for the file you wish to set the attribute for.&lt;br /&gt;
This method assumes that the file has already been sync&#039;d with linuxMCE and exists in the data base.&lt;br /&gt;
&lt;br /&gt;
The first command queries the database for the file ID of a particular filename.&lt;br /&gt;
&lt;br /&gt;
The second command assigns an attribute type/value to the returned file ID&lt;br /&gt;
&lt;br /&gt;
* Logon to your linuxMCE CORE and get to the linux command prompt&lt;br /&gt;
* execute the following command&lt;br /&gt;
 /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 &amp;lt;pathtofile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting your full path to the file where is says &amp;lt;pathtofile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;eg: /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 /home/public/data/pictures/sample.jpg&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should get a response something like this:&lt;br /&gt;
 0:OK&lt;br /&gt;
 145:11392&lt;br /&gt;
&lt;br /&gt;
The number next to the &#039;145:&#039; is the important part. This is the fileID. If this is zero then your command has not found a match in the database and you may need to take other measures to ensure that the database is sync&#039;d with your files.&lt;br /&gt;
&lt;br /&gt;
* Now execute the following command&lt;br /&gt;
 /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 &amp;lt;fileID&amp;gt; 122 30 5 &amp;quot;*&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Substituting the fileID that you just discovered where it says &amp;lt;fileID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;eg: /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 11392 122 30 5 &amp;quot;*&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* You can then repeat for any other files that you want to use&lt;br /&gt;
&lt;br /&gt;
Below is a simple script which takes all the jpg files in the current directory, resizes them&lt;br /&gt;
to a screensaver safe size, and then marks them as being usable by the screensaver. There is no error checking and it shrinks all the images in place, so make sure you make a copy of the images first and place them in another directory. Note: this would normally be run on a directory below /home/public/data/pictures.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 # Copyright 2008 (c) Daniel Kristjansson&lt;br /&gt;
 # You may use this for any purpose whatsoever, so long as you preserve the copyright notice.&lt;br /&gt;
 # You may relicense this and add your own contributions freely.&lt;br /&gt;
 # Use this at your own risk.&lt;br /&gt;
 &lt;br /&gt;
 MAX_SIZE=1024 #don&#039;t set it bigger than 1240&lt;br /&gt;
&lt;br /&gt;
 for FILE in `ls *.jpg *.JPG` ; do&lt;br /&gt;
     PWD=`pwd`&lt;br /&gt;
     FILEID=`/usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 $PWD/$FILE | tail -n 1 | sed -e &#039;s/^.*://g&#039;`&lt;br /&gt;
     RES=`identify -verbose $FILE | head -n1 | awk &#039;{ print $3 }&#039;`&lt;br /&gt;
     WIDTH=`echo $RES | sed -e &#039;s/x.*//g&#039;`&lt;br /&gt;
     HEIGHT=`echo $RES | sed -e &#039;s/.*x//g&#039;`&lt;br /&gt;
 &lt;br /&gt;
     NEW_WIDTH=$WIDTH&lt;br /&gt;
     NEW_HEIGHT=$HEIGHT&lt;br /&gt;
     if [ $WIDTH -gt $MAX_SIZE -o $HEIGHT -gt $MAX_SIZE ] ; then&lt;br /&gt;
         if [ $WIDTH -gt $HEIGHT ] ; then&lt;br /&gt;
            NEW_WIDTH=$MAX_SIZE&lt;br /&gt;
            NEW_HEIGHT=`expr $NEW_WIDTH &amp;quot;*&amp;quot; $HEIGHT &amp;quot;/&amp;quot; $WIDTH`&lt;br /&gt;
         else&lt;br /&gt;
            NEW_HEIGHT=$MAX_SIZE&lt;br /&gt;
            NEW_WIDTH=`expr $NEW_HEIGHT &amp;quot;*&amp;quot; $WIDTH &amp;quot;/&amp;quot; $HEIGHT`&lt;br /&gt;
         fi&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
     if [ $WIDTH != $NEW_WIDTH -o $HEIGHT != $NEW_HEIGHT ] ; then&lt;br /&gt;
         echo file id: $FILEID old dim: $RES : w $WIDTH : h $HEIGHT \-\&amp;gt; new dim: $NEW_WIDTH $NEW_HEIGHT&lt;br /&gt;
         convert $FILE -resize ${NEW_WIDTH}x${NEW_HEIGHT}! resized_$FILE&lt;br /&gt;
         mv resized_$FILE $FILE&lt;br /&gt;
     else&lt;br /&gt;
         echo file id: $FILEID old dim: $RES : w $WIDTH : h $HEIGHT&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
     /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 ${FILEID} 122 30 5 &amp;quot;*&amp;quot;&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
=== Assigning a picture to the screen saver from the Orbiter ===&lt;br /&gt;
&lt;br /&gt;
Sounds like a good idea??? Unfortunately it is not currently possible, but I thought that this sounded like a logical thing to do so have put this placeholder in.&lt;br /&gt;
&lt;br /&gt;
Essentially, screens in the Orbiter have buttons that trigger message Command to be sent. So setting up a button in the Picture view screen &amp;quot;add to Screen Saver&amp;quot; should be quite straight forward.&lt;br /&gt;
&lt;br /&gt;
If you feel like getting involved maybe this is somewhere you can start.....&lt;br /&gt;
&lt;br /&gt;
NOTE:  Pictures must be smaller than 1240 x 1240.     Hope this saves some a bit of fustration.&lt;br /&gt;
&lt;br /&gt;
[[Category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Justnulling2</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Use_my_own_pictures_in_the_Screen_Saver&amp;diff=11469</id>
		<title>Use my own pictures in the Screen Saver</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Use_my_own_pictures_in_the_Screen_Saver&amp;diff=11469"/>
		<updated>2008-05-18T08:44:18Z</updated>

		<summary type="html">&lt;p&gt;Justnulling2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The photo screen saver does a great job and ensures that media is displayed all the time, even if you just happen to be listening to music.&lt;br /&gt;
By default, the photos come from flickr and are downloaded regularly to your local drives.&lt;br /&gt;
&lt;br /&gt;
But it would be nice to use your own photos in this screen saver, perhaps alongside the flickr ones or perhaps as a replacement.&lt;br /&gt;
&lt;br /&gt;
This is a guide to do just that...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quick Update: In 710B4 it&#039;s possible to select photos for screensaver in much easier way. See Files &amp;amp; Media -&amp;gt; Screensaver option...&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
== Italic text ==&lt;br /&gt;
&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Background ===&lt;br /&gt;
All media on your linuxMCE system is catalogued and stored in a database. The database allows for attributes to be stored for each media file.&lt;br /&gt;
One such attribute is &amp;quot;Screen Saver For MD&amp;quot;. By setting this attribute this picture will be used as one of the pictures for the Media Director Screen Saver.&lt;br /&gt;
Photos are selected by random from all the photos that exist with the &amp;quot;Screen Saver For MD&amp;quot; attribute set.&lt;br /&gt;
&lt;br /&gt;
There are a number of ways to set this attribute for individual files. They are;&lt;br /&gt;
* Setting an attribute from the web admin screens&lt;br /&gt;
* Setting an attribute from the command line&lt;br /&gt;
* Assigning a picture to the screen saver from the Orbiter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting an attribute from the web admin screens ===&lt;br /&gt;
&#039;&#039;&#039;NOTE:  Pictures must be smaller than 1240 x 1240.     Hope this saves some a bit of fustration.  &#039;&#039;&#039;  &lt;br /&gt;
There is a section on the web admin screens that allow the setting of attributes for media.&lt;br /&gt;
It is available under Files &amp;amp; Media -&amp;gt; Media Files Sync&lt;br /&gt;
&lt;br /&gt;
The left hand window frame gives a tree view into the directory structure of home/public/data.&lt;br /&gt;
Typically photos will be stored under the pictures sub-directory.&lt;br /&gt;
The right hand window frame gives a view of the files found and their status with relation to linuxMCE&#039;s database.&lt;br /&gt;
&lt;br /&gt;
Firstly determine the pictures you wish to use, and locate them using the directory browser.&lt;br /&gt;
Then ensure that the files are ticked to indicate existing in both the database and on disk. If not then choose the type as &#039;LinuxMCE Pictures&#039; and press the &#039;Add to database&#039; button.&lt;br /&gt;
&lt;br /&gt;
Once they are added to the database you should be able to select them and see the details (metadata) associated with them.&lt;br /&gt;
&lt;br /&gt;
Part of the details include any currently set attributes for the file, which you can choose to Edit or Remove.&lt;br /&gt;
There is also a section to Add Attributes. Only attribute that have been associated with the particular file types can be selected from the drop down box.&lt;br /&gt;
&#039;&#039;Note: If you do not see &#039;Screen Saver For MD&#039; in this box then you will need to Associate the attribute.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select the attribute &#039;Screen Saver For MD&#039; and enter or select the Attribute name value of &#039;*&#039;. Then press the Add button next to the box and your done.&lt;br /&gt;
&lt;br /&gt;
A quick reload router should be enough to ensure that files are refreshed from the database and you should start to see your selected picture as one of the screen saver files.&lt;br /&gt;
&lt;br /&gt;
==== Associate the attribute ====&lt;br /&gt;
&lt;br /&gt;
Unfortunately by default this attribute has not been associated with the picture media type. Perhaps a bug, who knows. Anyway, to associate it you will need to run the following piece of SQL to put the required association into the database.&lt;br /&gt;
&lt;br /&gt;
You will need to get to the command prompt of your CORE machine and from the command prompt (your default user should be fine) run:&lt;br /&gt;
&lt;br /&gt;
 mysql -u root -D pluto_media -N -e &amp;quot;INSERT into MediaType_AttributeType(EK_MediaType, FK_AttributeType, Identifier, CombineAsOne) values(7,30,0,1)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Do a quick reload router and then the attribute should show up in the dropdown box under add attributes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If someone knows a better way to do this or can see some adverse side effects please update&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Setting an attribute from the command line ===&lt;br /&gt;
&lt;br /&gt;
There is functionality built into the system that allows an attribute to be set through a sequence of Command Messages sent to the right device. This is what the flickr.pl script uses to assign the downloaded files the right attributes.&lt;br /&gt;
The commands can be executed from anything that can send linuxMCE messages (including the web admin screens) but this method will utilise the MessageSend utility available from the linux command line.&lt;br /&gt;
&lt;br /&gt;
You will need to firstly determine the full filename and path for the file you wish to set the attribute for.&lt;br /&gt;
This method assumes that the file has already been sync&#039;d with linuxMCE and exists in the data base.&lt;br /&gt;
&lt;br /&gt;
The first command queries the database for the file ID of a particular filename.&lt;br /&gt;
&lt;br /&gt;
The second command assigns an attribute type/value to the returned file ID&lt;br /&gt;
&lt;br /&gt;
* Logon to your linuxMCE CORE and get to the linux command prompt&lt;br /&gt;
* execute the following command&lt;br /&gt;
 /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 &amp;lt;pathtofile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting your full path to the file where is says &amp;lt;pathtofile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;eg: /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 /home/public/data/pictures/sample.jpg&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should get a response something like this:&lt;br /&gt;
 0:OK&lt;br /&gt;
 145:11392&lt;br /&gt;
&lt;br /&gt;
The number next to the &#039;145:&#039; is the important part. This is the fileID. If this is zero then your command has not found a match in the database and you may need to take other measures to ensure that the database is sync&#039;d with your files.&lt;br /&gt;
&lt;br /&gt;
* Now execute the following command&lt;br /&gt;
 /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 &amp;lt;fileID&amp;gt; 122 30 5 &amp;quot;*&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Substituting the fileID that you just discovered where it says &amp;lt;fileID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;eg: /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 11392 122 30 5 &amp;quot;*&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* You can then repeat for any other files that you want to use&lt;br /&gt;
&lt;br /&gt;
Below is a simple script which takes all the jpg files in the current directory, resizes them&lt;br /&gt;
to a screensaver safe size, and then marks them as being usable by the screensaver. There is no error checking and it shrinks all the images in place, so make sure you make a copy of the images first and place them in another directory. Note: this would normally be run on a directory below /home/public/data/pictures.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 # Copyright 2008 (c) Daniel Kristjansson&lt;br /&gt;
 # You may use this for any purpose whatsoever, so long as you preserve the copyright notice.&lt;br /&gt;
 # You may relicense this and add your own contributions freely.&lt;br /&gt;
 # Use this at your own risk.&lt;br /&gt;
 &lt;br /&gt;
 MAX_SIZE=1024 #don&#039;t see bigger then 1240&lt;br /&gt;
 for FILE in `ls *.jpg *.JPG` ; do&lt;br /&gt;
     PWD=`pwd`&lt;br /&gt;
     FILEID=`/usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 819 13 $PWD/$FILE | tail -n 1 | sed -e &#039;s/^.*://g&#039;`&lt;br /&gt;
     RES=`identify -verbose $FILE | head -n1 | awk &#039;{ print $3 }&#039;`&lt;br /&gt;
     WIDTH=`echo $RES | sed -e &#039;s/x.*//g&#039;`&lt;br /&gt;
     HEIGHT=`echo $RES | sed -e &#039;s/.*x//g&#039;`&lt;br /&gt;
 &lt;br /&gt;
     NEW_WIDTH=$WIDTH&lt;br /&gt;
     NEW_HEIGHT=$HEIGHT&lt;br /&gt;
     if [ $WIDTH -gt $MAX_SIZE -o $HEIGHT -gt $MAX_SIZE ] ; then&lt;br /&gt;
         if [ $WIDTH -gt $HEIGHT ] ; then&lt;br /&gt;
            NEW_WIDTH=$MAX_SIZE&lt;br /&gt;
            NEW_HEIGHT=`expr $NEW_WIDTH &amp;quot;*&amp;quot; $HEIGHT &amp;quot;/&amp;quot; $WIDTH`&lt;br /&gt;
         else&lt;br /&gt;
            NEW_HEIGHT=$MAX_SIZE&lt;br /&gt;
            NEW_WIDTH=`expr $NEW_HEIGHT &amp;quot;*&amp;quot; $WIDTH &amp;quot;/&amp;quot; $HEIGHT`&lt;br /&gt;
         fi&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
     if [ $WIDTH != $NEW_WIDTH -o $HEIGHT != $NEW_HEIGHT ] ; then&lt;br /&gt;
         echo file id: $FILEID old dim: $RES : w $WIDTH : h $HEIGHT \-\&amp;gt; new dim: $NEW_WIDTH $NEW_HEIGHT&lt;br /&gt;
         convert $FILE -resize ${NEW_WIDTH}x${NEW_HEIGHT}! resized_$FILE&lt;br /&gt;
         mv resized_$FILE $FILE&lt;br /&gt;
     else&lt;br /&gt;
         echo file id: $FILEID old dim: $RES : w $WIDTH : h $HEIGHT&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
     /usr/pluto/bin/MessageSend dcerouter -targetType template -r -o 0 2 1 391 145 ${FILEID} 122 30 5 &amp;quot;*&amp;quot;&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
=== Assigning a picture to the screen saver from the Orbiter ===&lt;br /&gt;
&lt;br /&gt;
Sounds like a good idea??? Unfortunately it is not currently possible, but I thought that this sounded like a logical thing to do so have put this placeholder in.&lt;br /&gt;
&lt;br /&gt;
Essentially, screens in the Orbiter have buttons that trigger message Command to be sent. So setting up a button in the Picture view screen &amp;quot;add to Screen Saver&amp;quot; should be quite straight forward.&lt;br /&gt;
&lt;br /&gt;
If you feel like getting involved maybe this is somewhere you can start.....&lt;br /&gt;
&lt;br /&gt;
NOTE:  Pictures must be smaller than 1240 x 1240.     Hope this saves some a bit of fustration.&lt;br /&gt;
&lt;br /&gt;
[[Category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Justnulling2</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Cisco_7970&amp;diff=11414</id>
		<title>Cisco 7970</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Cisco_7970&amp;diff=11414"/>
		<updated>2008-05-15T18:49:26Z</updated>

		<summary type="html">&lt;p&gt;Justnulling2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Hardware]]&lt;br /&gt;
[[Category: Phones]]&lt;br /&gt;
[[Category: Orbiters]]&lt;br /&gt;
&lt;br /&gt;
== Preface ==&lt;br /&gt;
[[Image:Cisco7909.JPG]]&lt;br /&gt;
&lt;br /&gt;
LinuxMCE allows the use of many devices as [[Orbiters]]. One of them is the [http://www.cisco.com/en/US/products/hw/phones/ps379/ps5440/index.html CISCO 7970]. You can use it to control your home as well as to make calls.&lt;br /&gt;
&lt;br /&gt;
To add a new CISCO 7970 phone as an Orbiter follow these simple instructions (from information in the [http://forum.linuxmce.org/ LinuxMCE support forum]).&lt;br /&gt;
&lt;br /&gt;
== Preparation ==&lt;br /&gt;
&lt;br /&gt;
CISCO 7970 phone is plug-in-play device; LinuxMCE adds it automatically when it is plugged into the network. But first, we have to make some preparations. Run an Orbiter. Be sure that no others tasks are running.&lt;br /&gt;
Check the DHCP setting of your phone. It should be something like that: &amp;quot;get IP via DHCP and no alternative servers&amp;quot;.&lt;br /&gt;
Check the range of MAC addresses:&lt;br /&gt;
#Go to Advanced --&amp;gt; Configuration --&amp;gt; Device Template.&lt;br /&gt;
#Chose manufacturer CISCO. You should see in the right list at least two models: 7970 and 7960.&lt;br /&gt;
#Press the button &#039;Show model&#039;.&lt;br /&gt;
#On the opened window check &#039;Range MAC addresses&#039;. The range contains two big decimal digits. To get correct range for your phone first see its MAC address. A MAC address is six groups of two hexadecimal digits, separated by hyphens (&amp;lt;strong&amp;gt;-&amp;lt;/strong&amp;gt;) or colons (&amp;lt;strong&amp;gt;:&amp;lt;/strong&amp;gt;). The first three groups identify a maker. You leave them and fill the rest by 0 and F. For example, if MAC is &amp;lt;strong&amp;gt;00:16:78:CD:01:D8&amp;lt;/strong&amp;gt; its range will be &amp;lt;strong&amp;gt;00:16:78:00:00:00&amp;lt;/strong&amp;gt; - &amp;lt;strong&amp;gt;00:16:78:FF:FF:FF&amp;lt;/strong&amp;gt;. After that you should convert those two values into LinuxMCE representation. To do that run a script &amp;lt;strong&amp;gt;/usr/pluto/bin/convert_mac&amp;lt;/strong&amp;gt; and pass the hexadecimal values as parameters:&lt;br /&gt;
 /usr/pluto/bin/convert_mac 00:16:78:00:00:00&lt;br /&gt;
 /usr/pluto/bin/convert_mac 00:16:78:FF:FF:FF&lt;br /&gt;
:As result you will get two big decimal digits. Add them to the phone template and store.&lt;br /&gt;
If you have problems with phone installation, it may be related to firmware. The phone should have the latest firmware upgrade. (I didn&#039;t have any problem with existing firmware on my CISCO 7970, though).&lt;br /&gt;
&lt;br /&gt;
Note for &#039;&#039;&#039;CISCO 7960 SIP&#039;&#039;&#039; users: if your phone fails to register with asterisk then edit /tftpboot/SIPDefault.cnf and append &lt;br /&gt;
 nat_enable: 1&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
#Plug the phone power and network cable.  Note if you have two network cards on your core you should plug network cable in the right switch.&lt;br /&gt;
#During boot of the phone after 2-3 minutes you should see on the Orbiter a message about new device with your phone MAC address was detected. You should click by caption &amp;quot;Cisco 7970&amp;quot; below that.&lt;br /&gt;
#After that the phone should be registered with asterisk and you can see a normal CISCO screen. &lt;br /&gt;
#However, it&#039;ll take another 2-3 minutes to generate a new Orbiter for CISCO7970. &lt;br /&gt;
#When this operation finishes you&#039;ll see a message on the Orbiter screen. Make a quick reload of router (Wizard -- Reboot -- Quick Reload Router. I also rebooted CISCO 7970 because I didn&#039;t see anything in the menu Services).&lt;br /&gt;
#Now go to menu Services on CISCO 7970 and chose Orbiter.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
*&amp;lt;u&amp;gt;Problem:&amp;lt;/u&amp;gt; Phone boots successfully but there is no any message on the Orbiter&#039;s screen.&lt;br /&gt;
*&amp;lt;u&amp;gt;Solution:&amp;lt;/u&amp;gt; If the message doesn&#039;t appear check MAC addresses range.&lt;br /&gt;
&lt;br /&gt;
== Some useful tips ==&lt;br /&gt;
*To reset a Network configuration of CISCO79xx go to menu &#039;Network Setting&#039; and press the following sequence of buttons: &lt;br /&gt;
 **#**&lt;br /&gt;
*To check network communications between CISCO7970 and CORE run tcpdump on the CORE:&lt;br /&gt;
 tcpdump -i eth1 [CISCO7970 IP Address]&lt;br /&gt;
or to see detailed packets information:&lt;br /&gt;
 tcpdump -i -vv eth1 [CISCO7970 IP Address]&lt;br /&gt;
&lt;br /&gt;
Email suggestions to: stepanov.michael [at] gmail [dot] com or leave a comment.&lt;br /&gt;
&lt;br /&gt;
==Add Directory buttons to Cisco IP Phone==&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
Download the files here: [http://www.unit-e.cc/~thom/Directory.zip http://www.unit-e.cc/~thom/Directory.zip] &lt;br /&gt;
&lt;br /&gt;
=== Synopsis ===&lt;br /&gt;
&lt;br /&gt;
This set of files adds a working Directory for your Cisco IP phone. It has been tested on my Cisco 7970 phone, but does not use any additional features, so it should work on any of the other Cisco IP phones that support XML services, such as the Cisco 7960. &lt;br /&gt;
&lt;br /&gt;
It adds the following Features:&lt;br /&gt;
&lt;br /&gt;
* Directory button now works!&lt;br /&gt;
* Works with Contacts from the Pluto phone directory&lt;br /&gt;
* Paginates them based on # of entries in phone book&lt;br /&gt;
* Shows the phone type.&lt;br /&gt;
&lt;br /&gt;
=== Installing this Patch ===&lt;br /&gt;
&lt;br /&gt;
* Unpack the files to the pluto-admin directory. (/var/www/pluto-admin/)&lt;br /&gt;
* edit the file /tftpboot/SEPDefault7970.cnf.xml (it just needs to be the default xml for your cisco phone, adjust as needed.)&lt;br /&gt;
** Find the &amp;lt;directoryURL&amp;gt;&amp;lt;/directoryURL&amp;gt; tags, and place &#039;&#039;&#039;http://192.168.80.1/pluto-admin/directory.php&#039;&#039;&#039; between them.&lt;br /&gt;
* Reboot the phone by pressing the settings button, and pressing the following button sequence &#039;&#039;&#039;**#**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the phone boots, try the directory by pressing the Directory button!&lt;br /&gt;
&lt;br /&gt;
If there are any problems, let me know --[[User:Tschak909|Tschak909]] ( thom.cherryhomes (at) gmail (dot) com ).&lt;/div&gt;</summary>
		<author><name>Justnulling2</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=SMB_/_Samba_NAS_Configurations&amp;diff=11413</id>
		<title>SMB / Samba NAS Configurations</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=SMB_/_Samba_NAS_Configurations&amp;diff=11413"/>
		<updated>2008-05-15T18:34:26Z</updated>

		<summary type="html">&lt;p&gt;Justnulling2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p&amp;gt;[[How to setup Samba with two workgroups?]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;[[How to setup Samba to follow symbolic links?]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Problem: we have shares for each users. if I want to access it from Windows, I have to enter password. if I don&#039;t this on first access, windows won&#039;t ask my anymore to enter password and just denies access. How can I force windows, to reenter password for share ???&lt;br /&gt;
&lt;br /&gt;
If your samba password doesn&#039;t work then run this on core to update your samba password:&lt;br /&gt;
 sudo smbpasswd pluto_USER&lt;br /&gt;
where USER is your username. For instance to change john&#039;s password run sudo smbpasswd pluto_john&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Justnulling2</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=9827</id>
		<title>Insteon - Setting Up PLM Template</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Insteon_-_Setting_Up_PLM_Template&amp;diff=9827"/>
		<updated>2008-04-02T20:50:28Z</updated>

		<summary type="html">&lt;p&gt;Justnulling2: /* Adding a Code Group */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials| ]]&lt;br /&gt;
[[Category:Automation| ]]&lt;br /&gt;
[[Category:GSD| ]]&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 11-MAR-08 Many bugs fixed, X10 fixes...&lt;br /&gt;
:&#039;&#039;&#039; UPDATED: 13-FEB-08 X10 Support fixed! &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
:--ddamron&lt;br /&gt;
:Bear with me, this is my first wiki..&lt;br /&gt;
:--ddamron 02:52, 6 January 2008 (MST)&lt;br /&gt;
Here are the steps to create an Insteon PLM Template.  This driver is written entirely in Ruby.  Please consider this driver Complete, and in Release Candidate 1.  I&#039;m sure there are still a few bugs(we&#039;ve ironed most of them out now).. The more people testing this code, the more bugs we can find, and get this to a release state.  Once it&#039;s in release state, it will be added to sqlcvs and offered via a &#039;quick&#039; update. (unless it makes it into the 0710 release!)&lt;br /&gt;
&lt;br /&gt;
==Supported Devices==&lt;br /&gt;
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC)&lt;br /&gt;
&lt;br /&gt;
 NOTE:  I am expecting a PLC to arrive in the mail in the next few days.  Support for that device will be sooner than later :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simplehomenet&#039;s EZBridge/EZServ products will be added once this code is stable.  These products are a &#039;wrapper&#039; for the PLM, and hence, use the same code.  Integration will be a matter of adding the &#039;wrapper&#039; code. (which is done)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the Template==&lt;br /&gt;
* Log into the webadmin&lt;br /&gt;
* select Interfaces(under Devices using the left hand menu), or by using Wizard&amp;gt;Devices&amp;gt;Interfaces (using the top menu)&lt;br /&gt;
* click Add device (loads Pick Device Template popup)&lt;br /&gt;
&lt;br /&gt;
===Adding Smarthome Manufacturer===&lt;br /&gt;
:with the Pick Device Template Popup:&lt;br /&gt;
:* click Add Manufacturer (loads Add Manufacturer popup)&lt;br /&gt;
&lt;br /&gt;
::with the Add Manufacturer popup:&lt;br /&gt;
::* type &#039;Smarthome&#039; and click Add&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding a New Template===&lt;br /&gt;
:* press F5 to refresh the page.&lt;br /&gt;
:* In the Manufacturer field, select &#039;Smarthome&#039;.&lt;br /&gt;
:* Under Device Category, select &#039;Lighting Interface &amp;lt; Interfaces&#039;.&lt;br /&gt;
:* Click Add device Template (popup changes to Add model)&lt;br /&gt;
:* select the LAST option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;It&#039;s a simple, generic serial device controlled by RS232, Ethernet or USB, which you&#039;ll control with Pluto&#039;s GSD and embedded Ruby snippets (very easy). Examples: Lighting control, alarm panels, surveillance cameras, thermostats, weather stations, a/v equipment with RS232 ports, etc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Type in &#039;Insteon PLM&#039; in the name or model#.&lt;br /&gt;
:* Click Add&lt;br /&gt;
There will not be a confirmation screen, instead the page will be blank&lt;br /&gt;
:* Close the Add device Template window.&lt;br /&gt;
&lt;br /&gt;
===modifying the new Template===&lt;br /&gt;
* In Webadmin, Select Advanced, Configuration, Device Templates (from the top menu)&lt;br /&gt;
* In the Device Template field, select &#039;Insteon PLM&#039;&lt;br /&gt;
* click &#039;Pick Device Template&#039; (loads Edit Device Template Popup)&lt;br /&gt;
:* NOTE the Template Number!  write this down. (it will be needed for Plug N Play)&lt;br /&gt;
:* Make sure &#039;Implements DCE&#039; is checked (should be)&lt;br /&gt;
:* In the Comm Method, select RS232&lt;br /&gt;
===Adding a Code Group===&lt;br /&gt;
:* Click &#039;Edit Ruby Codes&#039; ( loads Edit Ruby Codes Popup)&lt;br /&gt;
::* In the field to the LEFT of &#039;Create new group&#039;, type in &#039;Insteon PLM&#039;&lt;br /&gt;
::* click &#039;Create new group&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
b4 is broken have to run sql manually to add new group&lt;br /&gt;
close &#039;Edit Ruby codes&#039; page. Look at &#039;Edit Device Template&#039; popup page and&lt;br /&gt;
note &#039;&#039;&#039;Device_Category&#039;&#039;&#039; and &#039;&#039;&#039;Manufacturer&#039;&#039;&#039; you will need to set them in sql code below&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (&#039;&#039;&#039;Device_Category&#039;&#039;&#039;,&#039;&#039;&#039;Manufacturer&#039;&#039;&#039;,&amp;quot;Insteon PLM&amp;quot;,2,NULL,NULL,NULL,NULL,NULL,NULL);&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
run this sql and reload &#039;Edit Ruby codes&#039; page and you should see &#039;Insteon PLM&#039; in &#039;Uses Group/Codeset&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
::* If the &#039;Uses Group/Codeset&#039; does not change to &#039;Insteon PLM&#039;, repeat the previous 2 steps again.&lt;br /&gt;
::* Once the &#039;Uses Group/Codeset&#039; says &#039;Insteon PLM&#039; Check &#039;Discoverable Interfaces&#039;&lt;br /&gt;
::* Check &#039;Ruby Internal Commands&#039;&lt;br /&gt;
::* click Update&lt;br /&gt;
&lt;br /&gt;
===Adding Ruby Code===&lt;br /&gt;
::* In the #756 Report Child Devices field (the big one) copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 756]]&lt;br /&gt;
::* In the #776 Reset field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 776]]&lt;br /&gt;
::* In the #760 Send Command to Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 760]]&lt;br /&gt;
::* In the #788 StatusReport field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 788]]&lt;br /&gt;
::* In the #373 Private Method Listing field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 373]]&lt;br /&gt;
::* In the #351 Process IDLE field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 351]]&lt;br /&gt;
::* In the #350 Process Incoming Data field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 350]]&lt;br /&gt;
::* In the #355 Process Initialize field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 355]]&lt;br /&gt;
::* In the #384 Process Receive Command for Child field, copy and paste this code:&lt;br /&gt;
:::[[Insteon PLM Ruby Code 384]]&lt;br /&gt;
::* In the #356 Process Release, leave it blank. (no code for now)&lt;br /&gt;
::* Click Update&lt;br /&gt;
::* Click Close&lt;br /&gt;
===Adding Device Data===&lt;br /&gt;
:* Press F5 for refresh the &#039;Edit Device Template&#039; popup&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port on PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 COM Port&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 /dev/ttyS0&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Allowed to Modify&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;COM Port BaudRate&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Baud Rate&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 19200&lt;br /&gt;
:* check the &#039;Required&#039; and &#039;Use Master Device List Defaults&#039; boxes&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Only One Per PC&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Only One Per PC&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
:* In the &#039;Device data&#039; section, in &#039;Add a New Parameter&#039; select &#039;Auto-assign to parents room&#039; and click Add.&lt;br /&gt;
:* in the Comments Field, type &lt;br /&gt;
 Assign to Parents Room&lt;br /&gt;
:* in the Default Value field, type &lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
===Making the Driver Plug &amp;amp; Play===&lt;br /&gt;
:* Scroll down to the &#039;Plug &amp;amp; Play&#039; Section&lt;br /&gt;
:* Enter These values:&lt;br /&gt;
::From = &lt;br /&gt;
 0&lt;br /&gt;
::To = &lt;br /&gt;
 0&lt;br /&gt;
::Vendor Model ID = &lt;br /&gt;
 2412S &lt;br /&gt;
::PNP protocol = &lt;br /&gt;
 Proprietary&lt;br /&gt;
::Serial Number = &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
::Parms is blank&lt;br /&gt;
::PNP detection script is &lt;br /&gt;
 88_InsteonPLM.sh&lt;br /&gt;
::Comment is &lt;br /&gt;
 Insteon PLM&lt;br /&gt;
&lt;br /&gt;
:* Scroll down to the bottom of the popup window and click Save&lt;br /&gt;
:* Click Close&lt;br /&gt;
:* Modify the SECOND LAST LINE of this script (88_InsteonPLM.sh) and change the LAST number to your Template ID.&lt;br /&gt;
:* add this script file to /usr/pluto/pnp (88_InsteonPLM.sh)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Insteon Powerline Modem Detection Script queue $2&amp;quot;&lt;br /&gt;
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 19200 -t &amp;quot;\02\60&amp;quot;  -i 1 -s &amp;quot;\03\05&amp;quot;&lt;br /&gt;
if [[ &amp;quot;$?&amp;quot; -ne 0 ]]; then&lt;br /&gt;
echo &amp;quot;It&#039;s not an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;It is an Insteon Powerline Modem&amp;quot;&lt;br /&gt;
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 &amp;quot;$4&amp;quot; 44 1901&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* chmod 755 /usr/pluto/pnp/88_InsteonPLM.sh (make it executable)&lt;br /&gt;
=== Setting up the Generic Serial Device ===&lt;br /&gt;
:* on the top, select Wizard, Devices, Generic Serial Devices.  You should now see the InsteonPLM device.&lt;br /&gt;
:* select the room it&#039;s in.&lt;br /&gt;
:* in the Controlled By box, select CORE&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
:* Now, in the COM PORT ON PC, you can select the com port it&#039;s on.&lt;br /&gt;
:* select Update (at the bottom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are Done!&lt;br /&gt;
&lt;br /&gt;
==Next Steps==&lt;br /&gt;
go to [[Running the Insteon PLM Driver for the First Time]]&lt;/div&gt;</summary>
		<author><name>Justnulling2</name></author>
	</entry>
</feed>