I want to start monitoring my Air Conditioner run time and I think the easiest way to do that is to monitor my ZWave thermostat, and simply log to a file whenever the AC turns on and off. I can easily create an event to call a script whenever the AC goes on or off, but I don't know how to actually append a line to my log file from within a script. Can someone give me an example of a script that will append a line to an existing file with the current time, date, and AC status. I'm thinking I'll try to do a comma delimited thing so I can pull it up in Excel. Something like:
7/22/08,9:21,ON
7/22/08,9:53,OFF
Thanks much,
Brett
7/22/08,9:21,ON
7/22/08,9:53,OFF
Thanks much,
Brett
Comment