From: Mike S. <han...@co...> - 2004-03-31 11:06:29
|
if (time_greater_than("$Time_Sunset + 0:30")){ set_with_timer $bedroom_light '-60' ,5*60; } Produces: Bad checksum in cm11 send: cs1=112 cs2=85. Will retry 03/31/04 05:27 X10: Outgoing data=XAGA-60 Bad checksum in cm11 send: cs1=112 cs2=85. Will retry 03/31/04 05:28 X10: Outgoing data=XAGA-60 This is on MH version 2.86 perl 5.006001and repoduced at $Time_sunrise + 0:03 Mike Bruce Winter wrote: >>Yikes! I'm learning Linux (Debian) after window failed. I've got >>a month into trial and error with plenty >>of manual reading. On to the point; I read in a MH doc somewhere >>an example of coding ("$Time_Sunset + >>0:30"). Doing so spit out a constant stream of checksum errors >>after sunset. After digging around I pulled >>out the 0: ("$Time_Sunset + 30") and it seem to be okay. >> >> > >What was the function you were calling with that time string? I think the >0:30 should work, for adding 30 minutes to most time related tests. I just >tried this here and it worked ok: > > print "Yep, dark out\n" if new_second and time_greater_than "$Time_Sunset >+ 0:30"; > > > >>Different topic; where do I look for "play" program? I get sh: >>play: command not found. I think I get that >>as root: also? >> >>Mike >> >> > >On my RH 8 box, which shows it at /usr/bin/play . You can point to a >different program, or a specific path, with the mh.ini sound_program parm. > >Bruce > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >________________________________________________________ >To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > > > |