Can some share a weather json sample
KC Hundere
khundere at gmail.com
Thu Feb 4 12:01:32 EST 2021
I used to do this. Here is a script example that gathered information from
Dean Davis' Weatherman and a local thermostat. It is set to say the
weather on the first motion in the bedroom after 5am.
=========================
set timestamp to last timestamp of "BedMotion"
set LastTime to (time of timestamp) / 3600
set theTime to (time of (current date)) / 3600
if theTime > 5 then
if LastTime < 5 then
tell application "WeatherMan"
set the weathercond to the Conditions of City "Phoenix"
set the dewpt to the Dewpoint of City "Phoenix"
end tell
set theTemp to the value of "PatioTemp"
set theMessage to "Good morning. The time is " & timeSpeak() & ". Currently
" & weathercond & "," & theTemp & " degrees."
if weekday of (current date) is Thursday then
set theMessage to theMessage & "Trash to the curb this morning."
end if
set theVoice to "Victoria"
set theIP to "audrey.hundere.org"
audreySay(theMessage, theVoice, theIP)
end if
end if
On Wed, Feb 3, 2021 at 6:40 PM SALVADOR CAMPOS <scampos at me.com> wrote:
> I would like my home xtension to say the Weather for the day every
> morning. Has any one managed to do this? Xtension in my home is connected
> to my home sound system and each morning it wake my wife and I with a quote
> of the day (random list I have typed). I would like for xtension to say the
> weather.
>
> Thanks
>
> Salvador Campos
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
>
--
KC Hundere
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20210204/1cb43c4b/attachment.html>
More information about the XTensionList
mailing list