I’m not sure if this is relevant or helpful to anyone but I have a small piece of IDE code below to send a 6 hour historical log file every 2 hours to an Email address.
Disclaimer: I have zero programming experience. I just picked this up two days ago and my rough code seems to work
Questions:
- I do get a syntax error on TSET1, 0 I’m thinking that it should be TSET 1=0? Either way it seems to work!
- Is there a limit to how long you can extend the timer in seconds? I.E. 86400 seconds per day
I also know that the length of historical log file (6H) and the interval of send (2H) is strange but I left it this way so that someone could grab it, easily identify where the times are, and change it to suit their own needs.
REM PROGRAM TO EXE A 6 HOUR HISTORICAL DAT FILE SEND EVERY 2 HOURS
Timer:
REM DECLARE A TIMER NAME AND A WAIT TIME IN SECONDS AKA 2 HOURS IN SEC
TSET 1, 7200
REM WHEN TIMER STATUS IS 1 GOTO FILESEND AND SEND DATAFILE
ONTIMER 1, "GOTO Filesend"
END
Filesend:
SENDMAIL "toanyemail@anyemail.com", " CCanyemail@anyemail.com, secondCCanyemail@anyemail.com ", "6 Hour Auto Log File", "6 Hour Log File Auto Send from Sender: &[$dtHT $ftT $st_h6 $et_m0]"
TSET 1, 0
END