<?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: iPhone Remote Control &#8211; For my Christmas lights</title>
	<atom:link href="http://www.intelliadmin.com/index.php/2008/11/iphone-remote-control-for-my-christmas-lights/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.intelliadmin.com/index.php/2008/11/iphone-remote-control-for-my-christmas-lights/</link>
	<description>Windows Network Administration Software</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:32:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Aaron Vanderbye</title>
		<link>http://www.intelliadmin.com/index.php/2008/11/iphone-remote-control-for-my-christmas-lights/comment-page-1/#comment-261</link>
		<dc:creator>Aaron Vanderbye</dc:creator>
		<pubDate>Tue, 25 Nov 2008 06:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.intelliadmin.com/blog/?p=402#comment-261</guid>
		<description>Thanks for the info. The MySQL table info gives me a nudge in the right direction, and some food for thought re: how to make it work. I&#039;ve been using the built-in web server pages off the X10 Dispatcher program and accessing them on my WinMo device through the browser, but have been looking for some way to make the interface a little nicer and finger-friendly for the small screen. Also been bothered that I couldn&#039;t seem to find a way to poll for status of the device, so the PHP/MySQL combo seemed an intriguing idea.

Best of luck to you, and happy holidays!</description>
		<content:encoded><![CDATA[<p>Thanks for the info. The MySQL table info gives me a nudge in the right direction, and some food for thought re: how to make it work. I&#8217;ve been using the built-in web server pages off the X10 Dispatcher program and accessing them on my WinMo device through the browser, but have been looking for some way to make the interface a little nicer and finger-friendly for the small screen. Also been bothered that I couldn&#8217;t seem to find a way to poll for status of the device, so the PHP/MySQL combo seemed an intriguing idea.</p>
<p>Best of luck to you, and happy holidays!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: intelliadmin</title>
		<link>http://www.intelliadmin.com/index.php/2008/11/iphone-remote-control-for-my-christmas-lights/comment-page-1/#comment-260</link>
		<dc:creator>intelliadmin</dc:creator>
		<pubDate>Tue, 25 Nov 2008 03:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.intelliadmin.com/blog/?p=402#comment-260</guid>
		<description>On the MySQL side I have 1 table in a database...it is called LIGHTS.

This table has 6 entries:

NAME, DESCRIPTION, LOCATION, HouseID, DeviceID, Status

The first three are obvious, the HouseID and DeviceID are X10 House, and Device identifiers. Status is a 0 or 1 value 0=Off 1=On

My situation is a little different, since the webserver that has the PHP and MySql is about 5000 miles from my house...so it would not be possible for the webserver to execute an app that sends the signals.

So with the above database I simply have a PHP script that accepts POST data with authentication and commands...LIKE ADD_ENTRY, or UPDATE_STATUS. These are sent from the iPhone. They look like regular web page posts from the PHP side, but they are hand crafted requests built into my iPhone app.

Then on the server that sits in my house, it has the FireCracker, and runs a C++ application (That I wrote) does a GET from the webserver with an action called GET_XML. This C++ app parses the XML, and then will take action based on status values. If it sees a zero, then it sends an off command to that HouseID and DeviceID.

3 parts are not totally necessary...you could bring it down to just a webserver and the iPhone, but since I don&#039;t have a public IP for the internet at my house...it is not workable.

I can&#039;t post any code yet, since It looks pretty bad, and I have passwords hardcoded (Don&#039;t want the entire net turning my christmas lights on and off :) )

If there is more interest I might post another article with more info...Plus I just got approval from iPhone for their dev program...may be able to let others play with this if I get the time.</description>
		<content:encoded><![CDATA[<p>On the MySQL side I have 1 table in a database&#8230;it is called LIGHTS.</p>
<p>This table has 6 entries:</p>
<p>NAME, DESCRIPTION, LOCATION, HouseID, DeviceID, Status</p>
<p>The first three are obvious, the HouseID and DeviceID are X10 House, and Device identifiers. Status is a 0 or 1 value 0=Off 1=On</p>
<p>My situation is a little different, since the webserver that has the PHP and MySql is about 5000 miles from my house&#8230;so it would not be possible for the webserver to execute an app that sends the signals.</p>
<p>So with the above database I simply have a PHP script that accepts POST data with authentication and commands&#8230;LIKE ADD_ENTRY, or UPDATE_STATUS. These are sent from the iPhone. They look like regular web page posts from the PHP side, but they are hand crafted requests built into my iPhone app.</p>
<p>Then on the server that sits in my house, it has the FireCracker, and runs a C++ application (That I wrote) does a GET from the webserver with an action called GET_XML. This C++ app parses the XML, and then will take action based on status values. If it sees a zero, then it sends an off command to that HouseID and DeviceID.</p>
<p>3 parts are not totally necessary&#8230;you could bring it down to just a webserver and the iPhone, but since I don&#8217;t have a public IP for the internet at my house&#8230;it is not workable.</p>
<p>I can&#8217;t post any code yet, since It looks pretty bad, and I have passwords hardcoded (Don&#8217;t want the entire net turning my christmas lights on and off <img src='http://www.intelliadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>If there is more interest I might post another article with more info&#8230;Plus I just got approval from iPhone for their dev program&#8230;may be able to let others play with this if I get the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Vanderbye</title>
		<link>http://www.intelliadmin.com/index.php/2008/11/iphone-remote-control-for-my-christmas-lights/comment-page-1/#comment-259</link>
		<dc:creator>Aaron Vanderbye</dc:creator>
		<pubDate>Mon, 24 Nov 2008 20:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.intelliadmin.com/blog/?p=402#comment-259</guid>
		<description>I&#039;d love to learn a little more about your PHP/MySQL solution. I dabble with both, but am really not proficient enough to set up something without seeing a sample in front of me from which to learn.

To tell you a little about my setup. I run an ActiveHome CM15A X10 device (USB interface versus the Firecracker&#039;s serial interface) and modules from a Black And Decker FreeWire set (X10 compatible). I did some searching around the &#039;Net and found X10 Dispatcher (http://x10dispatcher.com/) to replace the default ActiveHome software.

X10 Dispatcher allows you to program simple X10 commands or more complex macros, and allows the user to set up a locally-hosted web server that provides an interface to trigger commands and macros on demand, or set them on a schedule. The problem is that I can&#039;t seem to find the pages served by the application, so I don&#039;t know how they are triggered, whether it&#039;s through some sort of PHP or scripting, or through Windows APIs.

I&#039;ve set up simple PHP scripts to trigger the ahcmd.exe, which provides a command line interface for X10 commands, but can&#039;t figure out how to query for the status of devices. Your solution of using MySQL is, I assume, to store the status of the device by recording the last command sent to each X10 address.

I&#039;d love to hear about your methods, as I have thought about implementing something similar with a locally-hosted server and a Windows Mobile device.

Regards,
Aaron Vanderbye</description>
		<content:encoded><![CDATA[<p>I&#8217;d love to learn a little more about your PHP/MySQL solution. I dabble with both, but am really not proficient enough to set up something without seeing a sample in front of me from which to learn.</p>
<p>To tell you a little about my setup. I run an ActiveHome CM15A X10 device (USB interface versus the Firecracker&#8217;s serial interface) and modules from a Black And Decker FreeWire set (X10 compatible). I did some searching around the &#8216;Net and found X10 Dispatcher (<a href="http://x10dispatcher.com/" rel="nofollow">http://x10dispatcher.com/</a>) to replace the default ActiveHome software.</p>
<p>X10 Dispatcher allows you to program simple X10 commands or more complex macros, and allows the user to set up a locally-hosted web server that provides an interface to trigger commands and macros on demand, or set them on a schedule. The problem is that I can&#8217;t seem to find the pages served by the application, so I don&#8217;t know how they are triggered, whether it&#8217;s through some sort of PHP or scripting, or through Windows APIs.</p>
<p>I&#8217;ve set up simple PHP scripts to trigger the ahcmd.exe, which provides a command line interface for X10 commands, but can&#8217;t figure out how to query for the status of devices. Your solution of using MySQL is, I assume, to store the status of the device by recording the last command sent to each X10 address.</p>
<p>I&#8217;d love to hear about your methods, as I have thought about implementing something similar with a locally-hosted server and a Windows Mobile device.</p>
<p>Regards,<br />
Aaron Vanderbye</p>
]]></content:encoded>
	</item>
</channel>
</rss>

