VoxCommando

VoxNastics (User Guides and Mods) => Tips and Tricks => Topic started by: Dave on March 07, 2012, 08:19:41 PM

Title: weather depending goodbye
Post by: Dave on March 07, 2012, 08:19:41 PM
Do you remeber the good old days, when your mum lovingly remebered you to wear a jacket everytime you went out as soon as it became a little colder outside?

Vox can do this, too!  :bonk

I wrote a command that reminds you on your jacket / umbrella / sunglasses / ... depending on the temperature and weather condition using the google calendar plugin.

Probably I'm the only one thinking this is somehow cool, but if not I would be happy to hear your ideas for more tts phrases (or a correction of mine), different or more temperature ranges or a better solution for connecting my tts depending on the temperature and tts depending on the condition.
If you like to add tts for further conditions, here's a list with all possible conditions:
http://www.webdesignlondon-tristar.co.uk/goodies/all-google-weather-api-conditions

Edit: New version with a command for wind.

Edit 2: fixed current conditions
Title: Re: weather depending goodbye
Post by: nime5ter on March 07, 2012, 10:29:04 PM
Genius. I love this. There are definitely days when I know James could use the reminder about sunglasses, and I'm constantly forgetting my umbrella.

It's too bad they don't seem to include wind-related weather conditions. That would be especially useful in places like the Midwest of the U.S.
Title: Re: weather depending goodbye
Post by: jitterjames on March 07, 2012, 10:44:55 PM
Fun stuff.  I will check out your xml tomorrow Dave.

N: you can get wind speed and direction, but only for the current weather, not the forecast. :-\
Title: Re: weather depending goodbye
Post by: Dave on March 08, 2012, 05:13:07 AM
@nime5ter:
glad to hear you like it  :yay
I added a third command with tts responses depending on the speed of the wind, but I'm not very creative and my english is not the best, so I would love to hear your suggestions for tts phrases and maybe an idea how the third tts response could be connected with the first and second one, so it sounds "fluent"

Updated Version in the first post!
Title: Re: weather depending goodbye
Post by: jitterjames on March 08, 2012, 01:47:45 PM
The only change I would make is in your "goodbye cond" command.

If you change "Rain" to "ain" it will work for both "Rain" and "Light rain".  (It's case sensive).

Otherwise, it's pretty perfect as it is.  I think the English is good enough.  People can always customize that part pretty easily by themselves to suit their own private sense of humour...

e.g. It's colder than a witch's *** out there!  :o
Title: Re: weather depending goodbye
Post by: nime5ter on March 08, 2012, 02:42:08 PM
I agree. The phrases all sound fluent to me; it's really something that different users will want to customize, or even combine with other features such as day of the week conditions. For example, if it's really windy on garbage day (the day of the week that the city picks up trash), you might want your digital Mommy to warn you: "Beware of flying garbage out there!"
Title: Re: weather depending goodbye
Post by: jitterjames on March 08, 2012, 03:12:15 PM
 :biglaugh

You've been too long in the city.
Title: Re: weather depending goodbye
Post by: nime5ter on March 08, 2012, 03:53:21 PM
No kidding!   :bonk
Title: Re: weather depending goodbye
Post by: Dave on March 09, 2012, 10:52:56 AM

If you change "Rain" to "ain" it will work for both "Rain" and "Light rain".  (It's case sensive).


I know that it's case sensitive, but I think Googles conditions are "Light Rain" and "Chance of Rain" so there is no need for a change.
Couldn't find a city with one of these conditions, but for example I know its "Partly Cloudy" and not "Partly cloudy".

But I noticed that  gg.weather.getcustom command doesn't check the actual weather but uses the result from the last check.
So I added a getcurrent command  in the first place.

Updated version in my first post!
Title: Re: weather depending goodbye
Post by: jitterjames on March 09, 2012, 10:59:07 AM
OK.  For me it is "Light rain".  With a lower case r.

Otherwise I would not have suggested it.  Maybe it depends on your location.

Vancouver, BC is a good place to find rain :)
Title: Re: weather depending goodbye
Post by: jitterjames on March 09, 2012, 11:13:38 AM
But I noticed that  gg.weather.getcustom command doesn't check the actual weather but uses the result from the last check.
So I added a getcurrent command  in the first place.
Yes good point.  This of course makes more sense than doing a web request for every different variable since google returns everything at once, but I actually forgot that I set it up this way!  Good catch!
Title: Re: weather depending goodbye
Post by: jitterjames on March 09, 2012, 11:27:44 AM
Thinking about this.  Maybe it makes sense to keep track of the last update.  Whenever you request data from the plugin it could check the current time and if it has been more than 15 minutes do an automatic update.
Title: Re: weather depending goodbye
Post by: Dave on March 11, 2012, 12:17:16 PM
I don't think this is necessarily needed, but it would be good if you could add a note in the command description, that the getcustom command doesn't update the conditions...
Title: Re: weather depending goodbye
Post by: MrWolf on April 09, 2012, 06:29:12 AM
This is a fantastic addition thank you!

I've set it so that she finished your script, then gives the current weather and then says "and later on today" folllowed by Today's forecast.

She works like a charm :D

-P
Title: Re: weather depending goodbye
Post by: Dave on October 02, 2012, 06:25:07 AM
Now works (or at least should work) with the new Wundergroud-Plugin!
for further possible current conditions look here:
http://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary (http://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary)
Title: Re: weather depending goodbye
Post by: jitterjames on October 02, 2012, 08:18:22 AM
Excellent.  Thanks Dave!  :)