/* * Copyright 1986 by Larry Campbell, 73 Concord Street, Maynard MA 01754 USA * (maynard!campbell). You may freely copy, use, and distribute this software * subject to the following restrictions: * * 1) You may not charge money for it. * 2) You may not remove or alter this copyright notice. * 3) You may not claim you wrote it. * 4) If you make improvements (or other changes), you are requested * to send them to me, so there's a focal point for distributing * improved versions. * * John Chmielewski (tesla!jlc until 9/1/86, then rogue!jlc) assisted * by doing the System V port and adding some nice features. Thanks! */ /* * updated by Daniel Suthers, dbs@tanj.com 1996 -- 2000 */ #include #include "x10.h" char *E_2MANY = EM_2MANY; char *E_INVCN = EM_INVCN; char *E_WNA = EM_WNA; char *E_NMA = EM_NMA; char *E_NOCMD = EM_NOCMD; void exit(); int usage(s) char *s; { char RCSID[]= "@(#) $Id: message.c,v 1.12 1999/12/26 20:37:17 dbs Exp dbs $\n"; /* * Don't combine the two calls to fputs or my compiler will * gag with "token too long" */ display(RCSID); if( s != NULL ) (void) fprintf(stderr, "Command error: %s\n", s); (void) fputs("Usage:\n\ heyu help Display new commands in heyu ALPHA\n\ heyu date Return date in date(1) input format\n", stderr); (void) fputs("\ heyu erase Zero CM11a EEPROM, erasing all events and macros\n\ heyu help Print this message and exit\n\ heyu info Display current CM11a registers and clock\n\ heyu monitor Monitor X10 activity (end with )\n", stderr); (void) fputs("\ heyu preset ann vv Set unit to level vv for next dim/bright\n\ heyu reset [housecode] Reset interface to 'A' or specified housecode\n\ heyu setclock Set CM11a clock to system clock (per schedule)\n\ heyu status ann[,nn...] Return status of smart modules (rr501...)\n\ heyu stop Stop the current relay daemon\n", stderr); (void) fputs("\ heyu turn ann[,nn...] on|off|dim|bright [vv]\n\ Change state of housecode a, unit nn by vv\n\ heyu upload [check|croncheck|status|cronstatus]\n\ Upload schedule to CM11a or check schedule file\n\ or display status of uploaded schedule\n\ heyu utility