JimM has been helping me on the Weather Display forums get my weather station to talk to my Mac, and then output a report that can be turned into Indigo variables. He wrote an applescript that takes the txt file and populates Indigo variables with it, but it doesn't work for me. I'm wondering if anyone might be able to assist...
I've cut down the files to show just one variable. Weather Display updates this indigoreport.txt file every 5 minutes:
This is the applescript in a time/date action:
set filePath to "/Library/Application Support/wdisplay/webfiles/indigoreport.txt"
set bolIn to "OutsideHum:"
set eolIn to "<br>"
set varHum to "wxOutsideHum"
-- set [...] script "sed" [...] "//'" should be on one line
-- broken for legibility no other edits should be needed below
tell application "IndigoServer"
set value of variable varHum to do shell script "sed -n '/" & bolIn & "/p' " & filePath & " | sed 's/" & bolIn & "//' | sed 's/" & eolIn & "//'"
The variable has been created and displays in the variable list, but with no value.
Any notion why this doesn't work to populate it with 96, in this case?