Though this isn't as good as a built-in option to view recent log activity within the Indigo Touch app (and web interface), it does allow you to view the last 5 lines of the log (this is adjustable), updated every minute. Note that this will only work with Indigo Pro.
Here's how to set it up. Create a new Time/Date Action within the Indigo 4 Pro client with the following parameters:
- Name: Update Recent Activity Variables
Time/Date Trigger tab:- Time: Every 0 hours 1.00 minutes
Date: Every 1 days
Randomize by +/-: 0 minutes
Starts on: (make sure the date here is the current date).
CHECKED Suppress logging
NOT CHECKED Auto delete after trigger
- Upon trigger do actions Always
- Type: Execute AppleScript
EmbeddedNOT CHECKED Delay by ... minutes.Code: Select all
set the ActivityLog to do shell script "tail -5 \"/Library/Application Support/Perceptive Automation/Indigo 5/Logs/indigo_log.txt\"" set the TotalNumberOfLines to the count of paragraphs in the ActivityLog set the CurrentLine to 1 repeat while the CurrentLine is less than or equal to the TotalNumberOfLines set the TextOfTheCurrentLine to paragraph CurrentLine of the ActivityLog set the variableName to ("RecentActivity" & CurrentLine) as string if not (variable variableName exists) then make new variable with properties {name:variableName, value:TextOfTheCurrentLine} else set the value of the variable variableName to the TextOfTheCurrentLine end if set the CurrentLine to (the CurrentLine + 1) end repeat
- Time: Every 0 hours 1.00 minutes
Allow the trigger to run at least once (which should happen within a minute after clicking the OK button in the new Time/Date Action dialog). This will create a "RecentActivity#" variable for each of the lines of log data. You can then go into the Control Pages section and edit an existing page (or create a new one) and place a new Variable Value object for each line of the log anywhere you like on the page. The variables will be named "RecentActivity1" through "RecentActivity5" (or up to whatever number of lines you set above).
NOTE that text does not wrap on control pages, so be sure your control page is wide enough to show all of each line.