X10 Community Forum
🖥️ActiveHome Pro => SDK => Topic started by: frasierman on March 14, 2008, 08:40:27 PM
-
Hi everyone, I'm kinda new to all this and I was wondering if there was any possible way that the public can control my X10 online?
If you tech geniuses could post something for turning A1 on and off that would be GREAT!
-
Hi everyone, I'm kinda new to all this and I was wondering if there was any possible way that the public can control my X10 online?
If you tech geniuses could post something for turning A1 on and off that would be GREAT!
The only way somebody else could control your X10 system is when a neighbor who's electricity is on the same transformer as you and using the same house and unit codes as you are.
I've had X10 since the middle 1980's and nobody else on my street even knows about X10. X10 is never mass marketed, the only way you find out about it is for a friend who is an X10 user to "turn you on" to it. That's how I was introduced to X10.
-
...I've had X10 since the middle 1980's and nobody else on my street even knows about X10. X10 is never mass marketed, the only way you find out about it is for a friend who is an X10 user to "turn you on" to it. That's how I was introduced to X10.
Ditto! I've never had a neighbor that had any idea what X10 was. Other than hearing about it from someone else or a pop-up or pop-under ad it's unlikely that any of your neighbors are using X10.
-
No offense, but I think the point of the original post was to find a way to control an x10 system over the internet (hence x10 online).
To answer the original question, the answer is YES! I know that Geek505 does this with some simple programming and the SDK available from the x10 website. Don't know the exact mechanics of the operation, but plenty of people out there can help with that.
Geek505 has a webcam set up on his house around christmas and all the decorations are hooked into x10. In this way, someone from 2000 miles away (me) can control the display. VERY COOL!
-
frasierman
Doing what I and Knightrider think you want to do is very easy ( if you have a CM15A)!
IF you have AHP get the SDK (http://www.x10.com/activehomepro/sdk/index.html)
There are samples for most programing languages included!
Another way would be to get the free thirdparty program X10dispatcher (http://x10dispatcher.com/) (you still need a CM15A) it has a built in server!
-
Do any of you know if its possible for the public to control my lights online. I have the USB transmitter and ActiveHome.
-
I saw this thing over the holidays at komar.org/christmas where you click A1 ON or A1 OFF. It's not awctive right now though so I can't pull the code.
-
Do any of you know if its possible for the public to control my lights online. I have the USB transmitter and ActiveHome.
Yes! As stated beforefrasierman
Doing what I and Knightrider think you want to do is very easy ( if you have a CM15A)!
IF you have AHP get the SDK (http://www.x10.com/activehomepro/sdk/index.html)
There are samples for most programing languages included!
Another way would be to get the free thirdparty program X10dispatcher (http://x10dispatcher.com/) (you still need a CM15A) it has a built in server!
Another way is to get the My House plug-in for ActiveHome Pro!
I saw this thing over the holidays at komar.org/christmas where you click A1 ON or A1 OFF. It's not awctive right now though so I can't pull the code.
Even if you could pull the code you'd still need the SDK Redistributable components if the SDK isn't installed! ;)
Maybe you should be asking for someone to supply you with Sample code although the SDK comes with some! ;)
-
To sum up what everyone else has said since they might of missed your possible concerns...
Yes AHP can be controlled remotely but it requires that you set up passwords for others to use through AHP. It doesn't work like the amusing clip on "The Big Bang" TV show. No one is going to be able to just search to internet for your house and start blinking your lights or controlling your remote control cars.
Also as mentioned already, since X10 components are primarily controlled by a signal sent over your power line someone could plug a controller into an outside outlet and control your lights. This really doesn't happen in real life. Most of the times you'll be the only person on your block that has even heard of X10.
I've attempted to restate the above for you under the assumtion that we as long term users might of missed the perspective that you as a newbie might be having.
-
Does anyone have the code then?
As I said, I'm new to all this.
-
What programing Language do you want?
Some here only program in one luggage! :(
Your best to get the SDK (http://www.x10.com/activehomepro/sdk/index.html) it has some working examples!
Give it a shot then come back with where your having problems! There are plenty willing to help you over the bumps! ;)
Depending on how simple\complicated you wish your web application to be will depend on the code!
Sending a simple A1 off is as simple as AHCMD sendplc a1 off
if your using the AHCMD.exe file in the SDK! ;)
-
What X10 products do you have already? Do you have AHP?
-
Since frasierman is looking for an example of turning on\off a device from a web page!
I'll post this from the SDK Samples samples\vbscript\AHVBView viewing the source code for the file ahvbview.html reveals this:<HTML>
<HEAD>
<TITLE>ActiveHome VB Scripting</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" >
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<CENTER><H2>ActiveHome VB Scripting</H2></CENTER>
<FONT FACE="verdana,arial,helvetica" SIZE=1>
<A href="#" onclick=self.close() CLASS="clsDemo">Close This Test</A>
</FONT><HR>
<OBJECT ID="ActiveHome1" width=0 height=0
classid="CLSID:001000AF-2DEF-0208-10B6-DC5BA692C858"
codebase="ahscript.dll"
standby="Loading X10 net components..."
type="application/x-oleobject">
</OBJECT>
<FORM NAME="myForm">
Send Status
<BR>
<INPUT TYPE="text" NAME="sendstatus" size="50">
<BR>
Receive Status
<BR>
<INPUT TYPE="text" NAME="recv1">
<INPUT TYPE="text" NAME="recv2">
<INPUT TYPE="text" NAME="recv3">
<INPUT TYPE="text" NAME="recv4">
<INPUT TYPE="text" NAME="recv5">
<INPUT TYPE="text" NAME="recv6">
<BR>
</FORM>
<SCRIPT LANGUAGE="vbscript">
Function doCommand( Command )
if Command = 1 then
myForm.sendstatus.value = "e8 On sent"
ActiveHome1.SendAction "sendplc", "e8 on"
elseif Command = 2 then
myForm.sendstatus.value = "e8 Off sent"
ActiveHome1.SendAction "sendplc", "e8 off"
end if
End Function
Function ActiveHome1_RecvAction( bszRecv, vParm1, vParm2, vParm3, vParm4, vParm5, vReserved )
myForm.recv1.value = bszRecv
myForm.recv2.value = vParm1
myForm.recv3.value = vParm2
myForm.recv4.value = vParm3
myForm.recv5.value = vParm4
myForm.recv6.value = vParm5
End function
</SCRIPT>
<FORM NAME="myButtons">
<BR>
<CENTER>
<INPUT NAME="btnSendOn" TYPE="Button" VALUE="Send e8 on" onclick="doCommand( 1 );">
<INPUT NAME="btnSendOff" TYPE="Button" VALUE="Send e8 off" onclick="doCommand( 2 );">
</CENTER>
<BR>
</FORM>
<P>
<HR>
<FONT FACE="Arial" SIZE="1" COLOR="BLACK">
© 2004 <A TARGET="_blank" HREF="http://www.x10.com">X10</A>. All rights reserved.
</FONT>
</BODY>
</HTML>
Of coarse this turns on/off E8 not A1 and you'll still want\need the SDK files;)
-
Thanks!
-
By the way anyone heard of Komar.org/cristmas
Go there during the holidays, it's off right now