From: scott r. <sc...@th...> - 2002-04-05 19:22:16
|
steve - have you set up your own code_dir entry in your ini? if you keep all of your personal files out of the MH path, you'll be protected from over-writes. the exact details are covered at the end of the install.html (or install.txt). when MH starts up, it'll automatically add all of the files in your code_dir to its loop. you can play around with example code by moving it in and out of your code_dir and reloading MH. s:r scott reston sc...@th... http://scott.therestons.com/ On Fri, 5 Apr 2002 13:57:05 -0500 (EST), Steve Switzer wrote: >Bruce, > Sorry about the previous blank message! >I'm in PINE, and just hit the wrong keys... > >My questions was this: Because of this message, I decided to upgrade to >2.66 from 2.65. I used the RPM method, and ended up loosing everything, >except the changes to mh.private.ini. I expect the mh.ini to be >overwritten, but I didn't think about the X10_Test.mh? file being >recreated. I lost all of my light and motion sensor definitions. >To avoid this in the future, How should I go about customizations (any >customizations) so that my upgrades go as smoothly as possible? > >Thank you. > >-Steve > >On Fri, 5 Apr 2002, Bruce Winter wrote: > >> >> If you have the lates mh 2.66, you can try: >> >> set $bedroom_light '40%' if time_now '10:00 pm'; >> >> If off, it should turn it on first, then dim it 60%. >> >> When you say it doesn't work, what happens? >> >> I have no idea what I was doing with that code example you posted :) I >> couldn't find it in my code. Which file was it in? >> >> Bruce >> >> -----Original Message----- >> Can someone please explain what I am doing wrong? Im trying to setup so >> that if the time becomes 10pm and my bedroom light is on, it dims it to -60. >> I originally had this code: >> >> set $bedroom_light '-60' if time_now '10:00 pm'; >> >> >> But if the light was off, it turned it on dimming to -60. I looked at >> Bruces light code and changed it to: >> >> >> if ($bedroom_light->{state_now} eq ON and time_now '10:00 pm') { >> set $bedroom_light '-60'; >> } >> >> This code will not work. I cant see where Im going wrong. Any ideas? >> >> >> ________________________________________________________ >> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 >> > >-- > > > >________________________________________________________ >To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |