Please login or register.

Login with username, password and session length

Author Topic: linux x10 command line script  (Read 15478 times)

dbemowsk

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 428
    • PHP Web Scripting
linux x10 command line script
« 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 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.
Logged
Dan Bemowski
Owner of PHP Web Scripting LLC
Programmer of RemoteWatch X10
User of any X10 products I can get my hands on.

sroberts

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 22
deleted
« Reply #1 on: July 17, 2010, 08:14:47 AM »

oops, deleted. 
« Last Edit: July 17, 2010, 08:24:37 AM by sroberts »
Logged

dbemowsk

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 428
    • PHP Web Scripting
Re: linux x10 command line script
« Reply #2 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?
Logged
Dan Bemowski
Owner of PHP Web Scripting LLC
Programmer of RemoteWatch X10
User of any X10 products I can get my hands on.

pconroy

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 294
Re: linux x10 command line script
« Reply #3 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.
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: linux x10 command line script
« Reply #4 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.
Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

dbemowsk

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 428
    • PHP Web Scripting
Re: linux x10 command line script
« Reply #5 on: July 19, 2010, 07:05:37 AM »

Thanks for the very detailed description.  Now I will have to find me a CM11A.
Logged
Dan Bemowski
Owner of PHP Web Scripting LLC
Programmer of RemoteWatch X10
User of any X10 products I can get my hands on.

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13259
Re: linux x10 command line script
« Reply #6 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  >*<
Logged

Dan Lawrence

  • Hero Member
  • *****
  • Helpful Post Rating: 68
  • Posts: 3991
Re: linux x10 command line script
« Reply #7 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.
Logged
I don't SELL this stuff... BUT I sure do ENJOY using it!!!
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.