script debugging
George Handley
ghandley at kc.rr.com
Wed Jun 10 11:18:46 EDT 2015
James,
Since this subject is very close to the question or problem I have, and since you and Michael are the ONLY people who would know why I’m getting this error message, I’m resending my question directly to you and Michael, and hopefully you can give me an answer, because for two weeks, no one else has been able.
Specifically, after successfully running of the script below, I get in the log the line:
"Basement West Weeder Boards: no weeder configured for that address"
--Global script Get Davis Values
--This is a scheduled event running every minute
tell application "WeatherTracker"
set rh to Outdoor Humidity of Station "Cedar Weather"
set ft to Forecast Text of Station "Cedar Weather"
set ws to Wind Speed of Station "Cedar Weather"
set aws to Wind Speed 10 Min Avg of Station "Cedar Weather"
set wd to Wind Direction of Station "Cedar Weather"
set DavisOutdoorTemperature to Outdoor Temperature of Station "Cedar Weather"
set DailyRain to Daily Rain of Station "Cedar Weather"
set MonthlyRain to Monthly Rain of Station "Cedar Weather"
set YearlyRain to Yearly Rain of Station "Cedar Weather"
end tell
set value of "Davis Outdoor Humidity" to rh
Set Unit Property "Forecast Text" to ft in unit "Davis Forecast Text"
set value of "Davis Wind Speed" to ws
set value of "Davis 10 min ave wind speed" to aws
set value of "Davis Wind Direction" to wd
set value of "Davis Rain for Day" to DailyRain
set value of "Davis Rain for Month" to MonthlyRain
set value of "Davis Rain for Year" to YearlyRain
set value of "Davis Outdoor Temperature" to DavisOutdoorTemperature
set LowerLevel to value of "Current Lower Level Outside Temperature B2"
set DavisTemp to (value of "Davis Outdoor Temperature")
set AveTemp to (LowerLevel + DavisTemp) / 2.0
set value of "Current Temp Ave" to AveTemp
--for testing
write log "The Current Average Temperature is " & (value of "Current Temp Ave")
write log "The Current Lower Level Outside Temperature is " & (value of "Current Lower Level Outside Temperature B2")
write log "The Current Davis Temperature is " & (value of "Davis Outdoor Temperature”)
Here is the log, and it appears to have to do with averaging the two temperature sensors which does access the analog input West Weeder Board "Current Lower Level Outside Temperature B2." But, the equation is successfully resolved, but at the end tells me "no weeder configured for that address” when there obviously is!
6/4/15 3:21:09 PM Executing global script: Get Davis Values
6/4/15 3:21:09 PM Setting value of Davis Outdoor Humidity to 68
6/4/15 3:21:09 PM Setting value of Davis Wind Speed to 2
6/4/15 3:21:09 PM Setting value of Davis 10 min ave wind speed to 0
6/4/15 3:21:09 PM Setting value of Davis Wind Direction to 232
6/4/15 3:21:09 PM Setting value of Davis Rain for Day to 0.01
6/4/15 3:21:09 PM Setting value of Davis Rain For Month to 0.69
6/4/15 3:21:09 PM Setting value of Davis Rain for Year to 8.15
6/4/15 3:21:09 PM Set value of Davis Outdoor Temperature to 76.9
6/4/15 3:21:09 PM Setting value of Current Temp Ave to 73.45
6/4/15 3:21:09 PM The Current Average Temperature is 73.45
6/4/15 3:21:09 PM The Current Lower Level Outside Temperature is 70.0
6/4/15 3:21:09 PM The Current Davis Temperature is 76.9
6/4/15 3:21:09 PM Basement West Weeder Boards: no weeder configured for that address
It hasn’t stopped anything else from working, and up to now I’ve just ignored it, but wondered if anyone here knows why I’m getting this error, or if it’s more of a problem than I know.
Thanks,
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shed.com/pipermail/xtensionlist/attachments/20150610/85d05d9f/attachment.html>
More information about the XTensionList
mailing list