<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting your X10 CM17A Firecracker Module Working in Linux</title>
	<atom:link href="http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/</link>
	<description>Free tools and information maintained by an online entrepreneur.</description>
	<lastBuildDate>Sat, 14 Jan 2012 04:40:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marc Perkel</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-65477</link>
		<dc:creator>Marc Perkel</dc:creator>
		<pubDate>Thu, 28 Jul 2011 21:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-65477</guid>
		<description>I had to send a heyu freset command (USB Port) before it worked.</description>
		<content:encoded><![CDATA[<p>I had to send a heyu freset command (USB Port) before it worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: U-notez &#187; Automate Your Christmas Lights! - Unitz LLC</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-42456</link>
		<dc:creator>U-notez &#187; Automate Your Christmas Lights! - Unitz LLC</dc:creator>
		<pubDate>Thu, 17 Dec 2009 14:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-42456</guid>
		<description>[...] This same approach can be used with other operating systems. In Linux it can be done with bash scripts and cron jobs &#8211; the following explains how to control the CM17a in Linux. [...]</description>
		<content:encoded><![CDATA[<p>[...] This same approach can be used with other operating systems. In Linux it can be done with bash scripts and cron jobs &#8211; the following explains how to control the CM17a in Linux. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Wells</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-7322</link>
		<dc:creator>Andrew Wells</dc:creator>
		<pubDate>Tue, 01 Apr 2008 18:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-7322</guid>
		<description>Glad to see you were able to get it working.  I will update this post to recommend a system-wide configuration file to avoid problems such as this.</description>
		<content:encoded><![CDATA[<p>Glad to see you were able to get it working.  I will update this post to recommend a system-wide configuration file to avoid problems such as this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imali</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-7279</link>
		<dc:creator>imali</dc:creator>
		<pubDate>Mon, 31 Mar 2008 19:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-7279</guid>
		<description>Just an update on this....I managed to get the PHP example working. It was indeed user and groups issue. I didn&#039;t do the full HEYU reinstall but added  the user www-data to the tty group under linux and that seems to have resolved the issue.</description>
		<content:encoded><![CDATA[<p>Just an update on this&#8230;.I managed to get the PHP example working. It was indeed user and groups issue. I didn&#8217;t do the full HEYU reinstall but added  the user www-data to the tty group under linux and that seems to have resolved the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Wells</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-6778</link>
		<dc:creator>Andrew Wells</dc:creator>
		<pubDate>Fri, 21 Mar 2008 19:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-6778</guid>
		<description>Changing the ownership of the index.php file won&#039;t change the run-time user of the script unless you have suphp or suexec installed.  On most systems, web scripts are run as www-data.  You can verify that by running the following code in a php script:

&lt;?php echo shell_exec(&quot;whoami&quot;); ?&gt;
&lt;i&gt;You may have to change the quotes back to the non-fancy ones as Wordpress likes to mess with them.&lt;/i&gt;

I would recommend reinstalling heyu and specify the option for a global config file so it can be accessed under multiple users, or create another config file under the same user as your web interface.

Keep me updated :)</description>
		<content:encoded><![CDATA[<p>Changing the ownership of the index.php file won&#8217;t change the run-time user of the script unless you have suphp or suexec installed.  On most systems, web scripts are run as www-data.  You can verify that by running the following code in a php script:</p>
<p>< ?php echo shell_exec("whoami"); ?><br />
<i>You may have to change the quotes back to the non-fancy ones as WordPress likes to mess with them.</i></p>
<p>I would recommend reinstalling heyu and specify the option for a global config file so it can be accessed under multiple users, or create another config file under the same user as your web interface.</p>
<p>Keep me updated <img src='http://pr0gr4mm3r.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imali</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-6777</link>
		<dc:creator>imali</dc:creator>
		<pubDate>Fri, 21 Mar 2008 19:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-6777</guid>
		<description>Right, I&#039;m getting a bit further now. Added the full path as suggested and still nothing. So I echo $command and I get &quot;heyu -c /home/user/.heyu/x10config on A2 2&gt;&amp;1&quot; If I copy/paste this into the terminal it works fine. but nothing through the web interface.

echoing $output now gives &quot;Unable to write in Heyu directory &#039;/home/user/.heyu/&#039; HEYU: Can&#039;t open tty line. Check the permissions.&quot; so you&#039;re right it looks like a permissions problem.

I&#039;ve changed the ownership of the x10config file from user to root, and the same for the index.php as well. this hasn&#039;t helped.

Any further help would be appreciated :)</description>
		<content:encoded><![CDATA[<p>Right, I&#8217;m getting a bit further now. Added the full path as suggested and still nothing. So I echo $command and I get &#8220;heyu -c /home/user/.heyu/x10config on A2 2&gt;&amp;1&#8243; If I copy/paste this into the terminal it works fine. but nothing through the web interface.</p>
<p>echoing $output now gives &#8220;Unable to write in Heyu directory &#8216;/home/user/.heyu/&#8217; HEYU: Can&#8217;t open tty line. Check the permissions.&#8221; so you&#8217;re right it looks like a permissions problem.</p>
<p>I&#8217;ve changed the ownership of the x10config file from user to root, and the same for the index.php as well. this hasn&#8217;t helped.</p>
<p>Any further help would be appreciated <img src='http://pr0gr4mm3r.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Wells</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-6772</link>
		<dc:creator>Andrew Wells</dc:creator>
		<pubDate>Fri, 21 Mar 2008 15:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-6772</guid>
		<description>Hi imali, I&#039;m pretty sure your problem is that Apache &amp; PHP is running as a different user than what you normally run the command under, so it&#039;s not finding the config file in your home directory.

Try adding the full path to the config file in the Heyu command.  You can do that by passing the -c switch.  Put this option before the rest of the command, so it will look like this:

heyu -c /home/user/.heyu/x10config [rest of command]

If you still run into problems, output the $command variable as well.  Copy that into a terminal and see if it works there.

Let me know if that helps.</description>
		<content:encoded><![CDATA[<p>Hi imali, I&#8217;m pretty sure your problem is that Apache &#038; PHP is running as a different user than what you normally run the command under, so it&#8217;s not finding the config file in your home directory.</p>
<p>Try adding the full path to the config file in the Heyu command.  You can do that by passing the -c switch.  Put this option before the rest of the command, so it will look like this:</p>
<p>heyu -c /home/user/.heyu/x10config [rest of command]</p>
<p>If you still run into problems, output the $command variable as well.  Copy that into a terminal and see if it works there.</p>
<p>Let me know if that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imali</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-6770</link>
		<dc:creator>imali</dc:creator>
		<pubDate>Fri, 21 Mar 2008 14:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-6770</guid>
		<description>Hi Andrew, I&#039;m trying to get an x10 web interface working using tht PHP example. I&#039;m using a CM12u module through USB interface with Heyu. I can execute heyu commands direct from the command line but nothing happens when I try through the web interface. I&#039;ve modified your php file only slightly by changing &#039;fon&#039; and &#039;foff&#039; commands to &#039;on&#039; and &#039;off&#039; but other than this everything is the same. Any suggestions? By the way I&#039;m quite new to linux and php too.

Oh yes, I tried another thing also...at the top of the php file in the &#039;if&#039; brackets i tried putting an echo &quot;$output&quot;; and this returned &quot;unable to find Heyu configuration file&#039; in the webpage. I&#039;ve not changed the default location of the x10config that comes with heyu....it&#039;s in home/user/.heyu/x10config.</description>
		<content:encoded><![CDATA[<p>Hi Andrew, I&#8217;m trying to get an x10 web interface working using tht PHP example. I&#8217;m using a CM12u module through USB interface with Heyu. I can execute heyu commands direct from the command line but nothing happens when I try through the web interface. I&#8217;ve modified your php file only slightly by changing &#8216;fon&#8217; and &#8216;foff&#8217; commands to &#8216;on&#8217; and &#8216;off&#8217; but other than this everything is the same. Any suggestions? By the way I&#8217;m quite new to linux and php too.</p>
<p>Oh yes, I tried another thing also&#8230;at the top of the php file in the &#8216;if&#8217; brackets i tried putting an echo &#8220;$output&#8221;; and this returned &#8220;unable to find Heyu configuration file&#8217; in the webpage. I&#8217;ve not changed the default location of the x10config that comes with heyu&#8230;.it&#8217;s in home/user/.heyu/x10config.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Wells</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-5738</link>
		<dc:creator>Andrew Wells</dc:creator>
		<pubDate>Tue, 04 Mar 2008 03:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-5738</guid>
		<description>I haven&#039;t heard about domus.link - I will have to check that out.

At the top of the PHP file, where the $command variable is, try echoing that command, and then manually copy it to a terminal.  If the command runs, then you know it&#039;s a PHP problem.  If the command fails, then the script isn&#039;t formatting the command correctly.  The code may have to be altered accordingly.

Also, I never had to run the page as root, so that might be your problem.  It should work at the normal user level.

Let me know if you get anywhere, and thanks for commenting :).</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t heard about domus.link &#8211; I will have to check that out.</p>
<p>At the top of the PHP file, where the $command variable is, try echoing that command, and then manually copy it to a terminal.  If the command runs, then you know it&#8217;s a PHP problem.  If the command fails, then the script isn&#8217;t formatting the command correctly.  The code may have to be altered accordingly.</p>
<p>Also, I never had to run the page as root, so that might be your problem.  It should work at the normal user level.</p>
<p>Let me know if you get anywhere, and thanks for commenting <img src='http://pr0gr4mm3r.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laroseengineer</title>
		<link>http://pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/comment-page-1/#comment-5737</link>
		<dc:creator>laroseengineer</dc:creator>
		<pubDate>Tue, 04 Mar 2008 02:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://wp.pr0gr4mm3r.com/linux/getting-your-x10-cm17a-firecracker-module-working-in-linux/#comment-5737</guid>
		<description>I had the sample X10 php working (nice job by the way) and then I tried to use domus.link and I can no longer use the php web page to execute the commands.  I can execute the heyu command from the command line but it won&#039;t work through the web any more.  Any ideas?  I checked the web page and it is owned by root so it should work.  No php configuration changes were made.  The only thing that is different is I tried out domus.link.  There is a X10state file in the /etc/heyu directory that I don&#039;t believe was there before.</description>
		<content:encoded><![CDATA[<p>I had the sample X10 php working (nice job by the way) and then I tried to use domus.link and I can no longer use the php web page to execute the commands.  I can execute the heyu command from the command line but it won&#8217;t work through the web any more.  Any ideas?  I checked the web page and it is owned by root so it should work.  No php configuration changes were made.  The only thing that is different is I tried out domus.link.  There is a X10state file in the /etc/heyu directory that I don&#8217;t believe was there before.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

