<?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=Rolinda12</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=Rolinda12"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Rolinda12"/>
	<updated>2026-07-22T00:53:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=IR/GSD_codes_syncronization&amp;diff=21584</id>
		<title>IR/GSD codes syncronization</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=IR/GSD_codes_syncronization&amp;diff=21584"/>
		<updated>2009-11-04T15:51:53Z</updated>

		<summary type="html">&lt;p&gt;Rolinda12: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Programmer&#039;s Guide]]&lt;br /&gt;
To decrease the installation time, the infrared or Ruby codes (who are in fact records from the table pluto_main.InfraredGroup_Command) are fetched from our server through a syncronization script.&lt;br /&gt;
&lt;br /&gt;
  /usr/pluto/bin/WebDB_GetIR.sh [deviceID] [deviceTemplateID] [restriction flag]&lt;br /&gt;
&lt;br /&gt;
Called with deviceID parameter (PK_Device from Device table) will extract the device template from Device (FK_DeviceTemplate) and use it as second parameter. If Device template parameter is provided, device ID is ignored.&lt;br /&gt;
&lt;br /&gt;
The script will wget a mysqldump generated on our server with the codes with the same manufacturer and device category as the device template, and also the codes with the same FK_InfraredGroup as the device template. The output from server will also contain a list with the psc_id (unique key) of the codes, and those with psc_mod = 0 will be deleted and updated with server codes from sqldump.&lt;br /&gt;
&lt;br /&gt;
Restriction flag is used to retrieve the codes only for a specific set of commands (On, Off, 1, vol up, vol down and so on), those used in last step of &amp;quot;add A/V device&amp;quot; wizard.&lt;br /&gt;
&lt;br /&gt;
The synchronization script is called every time a device is created, and its device template had FK_InfraredGroup not null. If the internet connection is not available, the script can be called from LinuxMCE admin, by choosing &amp;quot;Resync codes&amp;quot; from &amp;quot;A/V equipment&amp;quot; or &amp;quot;generic serial devices&amp;quot; pages.&lt;br /&gt;
&lt;br /&gt;
The web interface had an checkbox, to allow the user to override the codes he changed manually. This also act as a backup, if user messed the codes, he can update them with correct versions.&lt;br /&gt;
&lt;br /&gt;
*Checkout quality written [http://www.bestessays.com/ custom term papers] from professional writer&lt;/div&gt;</summary>
		<author><name>Rolinda12</name></author>
	</entry>
</feed>