I have a text file put out by my weather station that looks like this:
9:08a,01/29/13,54.8,55.0,48.7, 96,29.856,Falling Slowly,11.3,WSW
(Yes, there is a space at the beginning, I don't know why.)
Text file is located in C:\weather\TIger.txt
I want to look at the date and time (first 2 fields), and if they are within the last 30 minutes, then look at the remaining fields. If the time is not within 30 minutes, send text box "WEATHER UPDATE FAILED"
If field 5 is between 37 and -17, I want to run the file
"c:\program files\dta\api.exe scenario 20"
If field 5 is between -18 and -29, I want to run the file
"c:\program files\dta\api.exe scenario 21"
I will use task scheduler to run this script every 30 minutes. In addition, I will probably add some other break points based on additional values, such as field 4 being >80, etc.
Is it even possible?