Author Topic: weather depending goodbye  (Read 9455 times)

0 Members and 1 Guest are viewing this topic.

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
weather depending goodbye
« 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
« Last Edit: March 09, 2012, 10:46:03 AM by Dave »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: weather depending goodbye
« Reply #1 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.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: weather depending goodbye
« Reply #2 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. :-\

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: weather depending goodbye
« Reply #3 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!
« Last Edit: March 08, 2012, 05:38:27 AM by Dave »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: weather depending goodbye
« Reply #4 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

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: weather depending goodbye
« Reply #5 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!"
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: weather depending goodbye
« Reply #6 on: March 08, 2012, 03:12:15 PM »
 :biglaugh

You've been too long in the city.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: weather depending goodbye
« Reply #7 on: March 08, 2012, 03:53:21 PM »
No kidding!   :bonk
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: weather depending goodbye
« Reply #8 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!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: weather depending goodbye
« Reply #9 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 :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: weather depending goodbye
« Reply #10 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!
« Last Edit: March 09, 2012, 11:26:07 AM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: weather depending goodbye
« Reply #11 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.

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: weather depending goodbye
« Reply #12 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...

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: weather depending goodbye
« Reply #13 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
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: weather depending goodbye
« Reply #14 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