CM15A timers from VB

Started by adagio, July 06, 2008, 01:34:22 AM

Previous topic - Next topic

adagio

New X10 user here. Just installed a system to measure the weight of my septic pipe and shut off the water if a plug occurs. I wrote a program using VB5 to send the commands to the CM15A.

All is working well, but what I want to do is set a watchdog timer in the CM15A so if the program or PC dies, the CM15A will shut off the water after a time period. I've heard that the CM15A can run without a PC, so I know it can do it, but I can not find any information on how to program timers via a programming language.

Anyone know of any documentation that would help?

Thanks.

-Bill- (of wgjohns.com)

At present, there is no way to write to the CM15A except using Active Home Pro.

Many are trying however.
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

adagio

You mean no way to write timers and such, right? Because I am writing On, Off, Dim, etc. commands with no problems.

steven r

Quote from: adagio on July 06, 2008, 01:34:22 AM
...Just installed a system to measure the weight of my septic pipe and shut off the water if a plug occurs....
Creative solution that I, as a city dweller, didn't realize was a common problem for septic tanks.
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

-Bill- (of wgjohns.com)

Quote from: adagio on July 06, 2008, 11:47:46 AM
You mean no way to write timers and such, right? Because I am writing On, Off, Dim, etc. commands with no problems.

Correct, no way to save timers, macros, settings, etc. as AHP does.
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

HA Dave

Quote from: adagio on July 06, 2008, 01:34:22 AM
............I want to do is set a watchdog timer in the CM15A so if the program or PC dies, the CM15A will shut off the water after a time period.

IF...."your program" could be set to turn Off a monitored code/device. The CM15A could certainly be "taught" to turn the monitored code/device (real or imaginary) ON and then delay and later react with the same devices ON condition being a condition within the macro. So as long as "your program" turned the monitored code/device OFF before the end of the delay... there would be no further action (automatic water shut-off).

In other words: watchdog timer in the CM15A so if the program or PC dies, the CM15A will shut off the water after a time period
Home Automation is an always changing technology

adagio

Yes, that is what I want to do. So how do I program the CM15A with a timer? You mean use AHP to do that part? (Haven't actually used AHP yet.)

HA Dave

Quote from: adagio on July 07, 2008, 05:29:44 PM
You mean use AHP to do that part? (Haven't actually used AHP yet.)
Yep.... thats what I meant. The ONLY way to get the CM15A to remember ANYTHING... is via the AHP. So mixing and matching of the AHP and your program will be required.
Home Automation is an always changing technology

adagio

Hmmm. Looks like someone needs to reverse-engineer AHP.  :'

-Bill- (of wgjohns.com)

Quote from: adagio on July 07, 2008, 10:05:35 PM
Hmmm. Looks like someone needs to reverse-engineer AHP.  :'

Any takers?   :'
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

HA Dave

#10
Quote from: adagio on July 07, 2008, 10:05:35 PM
Hmmm. Looks like someone needs to reverse-engineer AHP.  :'

Quote from: -Bill- (of wgjohns.com) on July 07, 2008, 11:42:30 PM
Any takers?   :'

Well I certainly should have stayed out of this thread! Bill- (of wgjohns.com) has done more with the CM15A and AHP his BVC software than maybe anyone else (although there ARE OTHERS THAT HAVE DONE MUCH). I am a big fan of BVC and have found it to work VERY well with the AHP.
Home Automation is an always changing technology

SMF spam blocked by CleanTalk