I've just discovered the wonderful world of phidgets, which looks perfect for my winter project to instrument my new gas furnace. I want to capture events (state changes) from the burner and blower fan relays and save time-stamped records so I know how often/long the furnace is running. The data would get written to a CSV file, and eventually find its way into an Excel for analysis. I have an old Mac Mini w/OSX gathering dust which would work well as a headless server in the furnace room.
The 1011 interface board looks perfect. I'm an EE, and can easily condition the 24VAC relay voltages to something suitable for the 1011 digital inputs. But my programming skills are rusty, nay nonexistent. My last real-time programming project was an interrupt handler in PDP-11 assembler.
Using AppleScript is appealing since the price is right. But I have little experience with it. I've read a few tutorial articles, but can't find much guidance in using it for asynchronous events coming from 3rd-party hardware. I reviewed the sample code from phidget (PhidgetInterfaceKit with Events.scpt). At the present time, it's over my head, though I'm continue to study AppleScript documents.
This application seems pretty straightforward, and I'm hoping someone has already written a similar program to capture digital events with AppleScript. If so, I'd appreciate any hints, tips, (or even some sample code). On the other hand, if AppleScript is not suitable, recommendations on better approaches would be valuable (though I'm not sure I'm up to learning C++, Java, Ruby, etc).
Thank for your help.