X10 Community Forum

💬General Category => Mac/Linux & Open Source and the X10 Home => Topic started by: dbemowsk on July 16, 2010, 07:24:11 PM

Title: linux x10 command line script
Post by: dbemowsk on July 16, 2010, 07:24:11 PM
I am wondering if anyone knows of a script for linux that works similar to the ahcmd.exe or the ahscript.dll file.  I would like to at some point, if possible, add a linux version of my RemoteWatch X10 (http://www.phpwebscripting.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=9&MMN_position=34:33) software.  If there was something like that available, I would only need to write a plugin to work with the linux script since there is plenty of PHP and MySql support for linux which would fully support the rest of the program.  I do realize at this point it would only work with the CM11A since there isn't a whole lot of support for the CM15A on linux as of yet, but I think that the programming needed to control the modules would be the same.

Any input is appreciated.
Title: deleted
Post by: sroberts on July 17, 2010, 08:14:47 AM
oops, deleted. 
Title: Re: linux x10 command line script
Post by: dbemowsk on July 17, 2010, 08:33:54 AM
heyu (www.heyu.org) has a command line x10 interface that works quite well on Linux.  I'm not familiar with the objects you mentioned so I can't compare.
The ahcmd.exe and ahscript.dll objects are just a way to send and receive x10 commands.  Here is an example using the ahcmd.exe command line tool.

ahcmd sendplc C5 ON

This is pretty self explanatory.  It tells the system to send a PLC command to turn H/U C5 on.  I would be looking for something similar with heyu or whatever other bash/shell scripting tool can do something similar to this. Part of my problem right now is I don't have a CM11A for testing, otherwise I would install heyu and give it a try.

Does anyone know if there has been any progress on the CM15A driver for linux?
Title: Re: linux x10 command line script
Post by: pconroy on July 18, 2010, 09:05:37 PM
Dan -- I don't think there's been much additional progress on the CM15A, last time I looked.
The basic stuff (on off PLCs) are working.

Charles will have to weigh in, but I think he'd say "Don't count on CM15A support in 'heyu' for a while." :)



Right now I have stopped using my own software and am using 'heyu' to send commands and listen for PLC commands.
Charles has some pretty powerful scripting options.

It's be wonderful if CM15A support we in there.
Title: Re: linux x10 command line script
Post by: Charles Sullivan on July 19, 2010, 04:35:50 AM
heyu (www.heyu.org) has a command line x10 interface that works quite well on Linux.  I'm not familiar with the objects you mentioned so I can't compare.
The ahcmd.exe and ahscript.dll objects are just a way to send and receive x10 commands.  Here is an example using the ahcmd.exe command line tool.

ahcmd sendplc C5 ON

This is pretty self explanatory.  It tells the system to send a PLC command to turn H/U C5 on.  I would be looking for something similar with heyu or whatever other bash/shell scripting tool can do something similar to this. Part of my problem right now is I don't have a CM11A for testing, otherwise I would install heyu and give it a try.

Does anyone know if there has been any progress on the CM15A driver for linux?

Dan,
Heyu supports commands for the CM17A "Firecracker" which have a similar syntax to those for the CM11A.  Since there's no way for software to determine whether a CM17A is actually connected, they will not generate an error if the CM17A is absent (as will happen with a CM11A command if the CM11A is absent).  Here are a few examples which illustrate the syntax:
    Heyu CM11A command                           Heyu CM17A command
    ----------------------------                          ----------------------------
     heyu on A1                                             heyu fon A1
     heyu off A1                                             heyu foff A1
     heyu dim A1  10                                      heyu fdim A1 10
     heyu alloff A                                            heyu falloff A

Running 'heyu help' will display the long list of all Heyu commands.

The optional Heyu Engine background process records the current state of each module based on X10 PLC signals sent and received via the CM11A.  The recently released Heyu version 2.9.0 has a configuration option for users with a CM17A but no CM11A whereby the current state is recorded based on the transmitted CM17A commands, blindly assuming that the user has a RR501 or TM751 Transceiver on the powerline.
Title: Re: linux x10 command line script
Post by: dbemowsk on July 19, 2010, 07:05:37 AM
Thanks for the very detailed description.  Now I will have to find me a CM11A.
Title: Re: linux x10 command line script
Post by: Brian H on July 19, 2010, 08:02:51 AM
You may also want to search for the RCA version of the CM11A. The HC60RX.
Automated Outlet seems to still be listing the RCA Version.
http://www.automatedoutlet.com/Home/Computer-Interfaces/CM11A-RCA
ftp://ftp.x10.com/pub/manuals/hc60rx_om.pdf

Since they seem to be in short supply these days. I thought Google actually found a site selling them for $118.00  :o  >*<
Title: Re: linux x10 command line script
Post by: Dan Lawrence on July 19, 2010, 04:06:14 PM
Thanks for the very detailed description.  Now I will have to find me a CM11A.

I still have mine, plus the last version of Active Home, unused since 2005.   Drop me an e-mail and I'll see if we can make a deal.