VoxCommando
VoxNastics (User Guides and Mods) => Tips and Tricks => Topic started 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
-
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.
-
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. :-\
-
@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!
-
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
-
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!"
-
:biglaugh
You've been too long in the city.
-
No kidding! :bonk
-
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!
-
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 :)
-
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!
-
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.
-
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...
-
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
-
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)
-
Excellent. Thanks Dave! :)