X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: EL34 on February 26, 2007, 10:48:40 AM

Title: Integrating AHP, 1 wire sensors, Perl and Wserver
Post by: EL34 on February 26, 2007, 10:48:40 AM
I have successfully blended Hobby Boards 1 wire sensors, Wserver weather program, the X10 Active home pro CM15A USB X10 controller and Perl.
Using the X10 AHP Software developers kit and writing Perl programs, I can control the X10 CM15A USB controller and all my X10 modules based on sensors on my 1 wire network.

Hobby Boards
http://www.hobby-boards.com/catalog/index.php

Arne's Wserver program writes a separate .txt data file to hard disk on every sensor that is detected on the 1-wire network.
http://www.henriksens.net/1-wire/

These Tab formatted .txt data files can be parsed easily, I do it with Perl.

Once the data is parsed you can make decisions and do things in X10 using the X10 SDK.
----------------------------------------
For example:
The crawl space under my house has a Dehumidifier installed to remove excess moisture. Previously, I just let the Dehumidifier run on it's own and make decisions of when to turn on and off. This was ok but not optimum.

I just replace the 3 prong power receptacle that the Dehumidifier plugs into with a X10 appliance module.

I then installed a Hobby Boards 1 wire Humidity/Temp sensor under my house.

Wserver reads the humidity sensor and then appends a new humidity reading to a data file for this sensor every 15 minutes.

I parse the last reading from this data file every 15 minutes.

My Perl script makes a decision to turn on or off an X10 appliance module.
------------------------------------------------------

So far, it is working great.
Now I can dream up new things to control using the Hobby Boards sensors on my one wire network and the SDK.
Title: Re: Integrating AHP, 1 wire sensors, Perl and Wserver
Post by: Brian H on February 26, 2007, 12:23:39 PM
Thank you for all the fine data and work to get it to work.
Title: Re: Integrating AHP, 1 wire sensors, Perl and Wserver
Post by: EL34 on February 26, 2007, 04:15:58 PM
I'll be doing some documentaion on my web site.

I post a link when that is ready.