X10 Remote Access
-----------------
Ok I'm back again.
First of all I need to tell that this
information is for the ones whoa re
interested in building a web aplication for
X10.
- Install X10 SDK or the software comes
with CM15A.
- Install IIS on your Windows 2K Server.
- Find the file AHSCRIPT.DLL that comes
with SDK or the Smarthome.
-Register it in your server as a Service to
DO that... on your command prompt type
c:\> regsvr32 ahscript.dll <ENTER>
- Now when you register it you will ahve
the access to both the X10 Class ID or the
Program ID
X10 Class ID is -
CLSID:001000AF2DEF020810B6DC5BA692C858
X10 Prgram ID -
X10.ActiveHome
Why U need thees ID's
WHen U write the ASP code.. U will need th
create a sever object for X10 So then only
you can access the methods.
ASP CODE ON CREATING A SERVER OBJECT
------------------------------------
to create X10 Object-
Set X10=Server.Createobject
("X10.ActiveHome")
To Use the COmmand -
X10.Sendaction(sendplc,Cmdstr)
the "Cmdstr" is a string variable.
If you wanna test if its working in ASP
U can try initialsing Cmdstr to a command
string.. ex/-
cmdstr="A1 on"
if you ahve this in your code before the
command execution.. your device at A1 sould
go on as soon as your web page loads in the
IE
and the above code is writen in VB Script
ON how to write VB SCRIPT and more on ASP I
would recomend yall to visit
http://www.w3schools.com Try this and Let me know if this works for
you.