-
Notifications
You must be signed in to change notification settings - Fork 130
Elk M1
Lieven Hollevoet edited this page Sep 22, 2014
·
1 revision
This page will contain the information on integrating the Elk M1 into Misterhouse using ether the (built-in) serial port or the Ethernet interface (ELK-M1XEP).
This integration will require the Perl ElkM1::Control module (module support web page Elk M1 ).
To configure and use the Elk M1 just follow these directions:
Add the following to your //~mh/bin/mh.private.ini// file:
- Serial attached Elk M1
- Need info on Ethernet attached Elk M1
In your user code directory also create //~mh/code/elkm1.pl//: code format="perl"
# Category=ElkM1 #@ James A. Russo's ElkM1::Control Perl module
# create a new Elk M1 Device instance $ip_patio_light = new ElkM1_Device($myELK,"A1");
# Example use, turn the patio lamp at 10 minutes before sun set if(time_now("$Time_Sunset-0:10")) { $ip_patio_light->set("ON"); }
# Example use, turn the patio lamp off at midnight if(time_now "12:00 AM") { $ip_patio_light->set("OFF"); }
More to follow (12/17/2007)