The Best Way For XTension To Receive Data

Hendrik van Eeden hvaneeden at comcast.net
Mon Nov 16 16:52:01 EST 2015


Just put the Davis weather tracks on the Mini#2.  Way fewer problems.  That Mini is way overpowered for just Xtension.

Henk



> On Nov 16, 2015, at 4:40 PM, George Handley <ghandley at kc.rr.com> wrote:
> 
> Dear XTensioneers,
> 
> I am in the process of updating my system, and as Michael has always recommended, XTension will now be on it’s own machine (Mini #2) with nothing else running.
> 
> OTOH, I use another Mini for a content server for mainly iTunes and Photos, but I also have a Davis Weather Station and Dean Davis’s WeatherTracker now running on Mini #1, and need to get his data out of Mini #1 and into XTension on Mini #2. I will paste below my existing code I use to get and enter this data into XTension while it was on the same machine.
>  
> What I’m asking is for someone to give me one code example of how I rewrite the code below to send the same data to XTension on Mini #2 from Mini #1.
> 
> I presume I need to have file sharing on between the two machines, but with all the new security features build into the OS, I’m wondering if this is going to be as simple as I hoped.
> 
> Thank you in advance for your help,
> 
> George
> 
> 
> 
> --Global script Get Davis Values
> — Executed every 15 minutes as a scheduled event
> tell application "WeatherTracker"
> 	set AllConditions to All Conditions of Station "Cedar Weather"
> 	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 StormRain to Storm Rain of Station "Cedar Weather"
> 	set YearlyRain to Yearly Rain of Station "Cedar Weather"
> 	set CurrentRain to Rain Rate of Station "Cedar Weather"
> end tell
> 
> Once I get the data above, I save it to XTension with the following code, which I should think stay the same.
> 
> turnon "Davis All Weather Conditions" --This is necessary to update the "Last Activity" field
> Set Unit Property "AllWeatherConditions" to AllConditions in unit "Davis All Weather Conditions"
> set value of "Davis Outdoor Humidity" to rh
> turnon "Davis Forecast Text" --This is necessary to update the "Last Activity" field
> 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 value of "Davis Storm Rain" to StormRain
> set value of "Davis Current Rain Rate" to CurrentRain
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20151116/5e5d0eb7/attachment.html>


More information about the XTensionList mailing list