Here you will find details about Rapture application originally developed by Alan Moore TINIRapture
It is great application working on TINIBoard similarly to crontab utility in Linux. When Alan developed it, TINI board was in it's infancy, later we got the source code from his site and fixed it to work under current version of firmware of TINI board 1.17 as of this writing. Also, few bugs were fixed, and few lines of code were changed to conform to new TINIOS specifics. Some features were removed (like ADC, LCD and LED support) as they were specific to that board Alan was using when developing the application. Also, PPP support was removed as it was NOT needed for our use. Another feature was added though - @TCP command. It allowed the Rapture to send specific string (command) to some TCP server. I am using this to send specific commands to the room controllers inside the house but this could be used for anything at all.
Please, find below some simple example of @TCP command's use:
#turn the heaters on in the evenings in daughter's room on working days
#turn it on at 16:30, 16:31, 16:32 at Monday, Tuesday, Thursday
30-32 16 * * 2,3,5 @TCP 192.168.1.55 7000 \TurnOn
#turn the heaters off in the mornings in daughter's room on working days
#turn it off at 6:45, 6:46, 6:47 at Monday to Friday
45-47 6 * * 2-6 @TCP 192.168.1.55 7000 \TurnOff
First you set time to perform specific action, then you set the command's name @TCP, then IP address of the server, port and the string itself. Please, note the backslash before the actual string, you must add it but later when parsing the string it will be ignored and only the actual string will be sent - e.g. TurnOn, TurOff etc.
The application is run from command line e.g.:
java rapt.tini -f rapt.cfg >> rapt.log &
Please, note that the output to the log file is very limited because the size can grow very fast. If you want detailed output, please use -d option (for DEBUG) before -f option.
Alan made available extensive use of 1-wire interface and we left it as it was except for some minor changes. You can find full example config file in the .rar file which is available for download. Please, also check Alan's website for even more details but please note that many options will not work e.g. ADC, LED, LCD etc.
We'll make the source code available very soon as we're finishing documenting the code changes.
Today at 1st of January 2008 I found a small bug which was preventing any task being run at the first month of the year. I found it because I use Rapture to turn on/off the heating in my house and after New Year's party I expected some heaters to be turned off in the morning or noon rather :-) which never happened. This is how I found out about this bug, fixed it at once and published a new version. Enjoy it and Happy New Year 2008 to everybody!
Please, go to Downloads page and download the software again.
|