VoxCommando

Help and Support (Using VoxCommando) => Other Plugins => Topic started by: Wanilton on October 17, 2011, 08:22:29 PM

Title: GgWeather Plugin
Post by: Wanilton on October 17, 2011, 08:22:29 PM
Hello James, when I tested new plugin Google Weather, forecast days, ok, return values ok, but when press test, in Current Weather Format, i receive same text " {condition} and {temp_c}, in the box info, this is a bug???
or i don´t know how to use this for current weather format.
Any tip, is you have example command for use, please put in the topic, this help alot..
Title: GgWeather Plugin
Post by: jitterjames on October 17, 2011, 08:39:14 PM
not exactly a bug, but the default settings are wrong.  Put the attached file "Options.xml"  in .\plugins\GgWeather

current:
Code: [Select]
Current weather: {c.condition}, {c.temp} degrees, wind blowing from the {c.wind} km/h
0:
Code: [Select]
Today: {0.condition}, High of {0.high} degrees, Low of {0.low}
1:
Code: [Select]
Tomorrow: {1.day}, {1.condition}, High of {1.high} degrees, Low of {1.low}
2:
Code: [Select]
{2.day}:  {2.condition}, High of {2.high} degrees, Low of {2.low}
3:
Code: [Select]
{3.day}: High of {3.high} degrees, Low of {3.low}
Remember to click "Save Options"!

Sorry, I meant to upload some more explanations on this but I got sidetracked.  I have also attached a sample group.
Title: GgWeather Plugin
Post by: Wanilton on October 17, 2011, 09:13:12 PM
thanks, work great now.. ;D ;D

How i have info humidity data? other situation: how i remove after c.wind info the english word "at" X Km/h, this word "at" is no necessary in other languages I believe, because tts read in my native language Portuguese...






Title: GgWeather Plugin
Post by: jitterjames on October 17, 2011, 10:21:19 PM
{c.humidity}  but it is only available for current day.

you can't remove the "at" in the weather plugin itself (yet).

You can use another action though

Results.Replace  at   :

(first parameter is at and the second parameter is : or you could use - or , )  It does not work to use a space as the second parameter, I must check this.  I think VC considers this as a missing parameter.
Title: Re: GgWeather Plugin
Post by: jitterjames on October 17, 2011, 11:50:47 PM
Try this new version of the weather plugin.  You can enter custom find/replace values at the bottom of the plugin settings.  ;D
Title: Re: GgWeather Plugin
Post by: mparks on October 18, 2011, 09:58:08 AM
This is working well for me, one small step for VC one giant step closer to my dream, or star trek ;D
Title: Re: GgWeather Plugin
Post by: jitterjames on October 18, 2011, 10:07:58 AM
One thing to note about using replacements, although really this is probably common sense.

Replacements are performed after your string has been created, and the data values {var} filled in.
Replacements are performed in order starting with the first row of the table.

you should do your "big" word replacements first, and if you are going to replace a small word like "at" it is probably wise to include the spaces around it " at ", otherwise you will also be replacing the at in  Sat or  Saturday

You are allowed to replace a string with nothing, though you will often want to replace it with a space instead.  Both are allowed.
Title: Re: GgWeather Plugin
Post by: Wanilton on October 18, 2011, 12:56:42 PM
James, in city when I put Florianópolis, Santa Catarina, and refresh after ok, I save, restart vox, when I return to plugin setting, i have this Florian?polis, any problem here or it´s fine?

Thanks...
Title: Re: GgWeather Plugin
Post by: jitterjames on October 18, 2011, 01:22:05 PM
that's a bug.  I guess I need to check my character encoding when I save / load settings.  THanks.

I will see what I can do.
Title: Re: GgWeather Plugin
Post by: jitterjames on October 18, 2011, 01:30:03 PM
try with this...

I gotta say, it's GREAT to be able to just update a plugin and not the whole program !!!
Title: Re: GgWeather Plugin
Post by: Wanilton on October 18, 2011, 01:55:53 PM
thanks, work fine now...
Title: Re: GgWeather Plugin
Post by: Kalle on October 18, 2011, 04:20:40 PM
James, that plugin is a very good thing. It is also funny, when we use it with Logic blocks in editor. GREAT JOB  ::bow  :clap  I like this plugin - please more of this things

Kalle
Title: Re: GgWeather Plugin
Post by: jitterjames on August 28, 2012, 10:05:14 AM
Google does it again!  They have now closed down their weather api so our weather plugin is broken now too! >:( >:( >:(
Title: Re: GgWeather Plugin
Post by: Kalle on August 28, 2012, 10:43:15 AM
 ::yikes ::yikes ::club ::yikes ::yikes
Google does it again!  They have now closed down their weather api so our weather plugin is broken now too! >:( >:( >:(
::yikes ::yikes ::club ::yikes ::yikes
Title: Re: GgWeather Plugin
Post by: Siutsch on August 28, 2012, 11:36:29 AM
Same with Eventghost Weather and Sintracker Plugin.   ::confused
Title: Re: GgWeather Plugin
Post by: xtermin8r on August 28, 2012, 04:43:09 PM
Very sad iindeed.  :-[
Title: Re: GgWeather Plugin
Post by: MrWolf on September 02, 2012, 11:01:35 AM
Incredibly frustrating.

I lLOVED this function!  I'm going to replace this part of her morning routine with "I'm afraid Google have ruined everything because they're bastards, so I have no idea what the weather is like outside.  Please revert to looking out of the window"

I hope some kind of replacement comes along soon :(

-P
Title: Re: GgWeather Plugin
Post by: jitterjames on September 02, 2012, 12:00:04 PM
Incredibly frustrating.

I lLOVED this function!  I'm going to replace this part of her morning routine with "I'm afraid Google have ruined everything because they're bastards, so I have no idea what the weather is like outside.  Please revert to looking out of the window"

I hope some kind of replacement comes along soon :(

-P
I will create a replacement eventually.  I just don't have 10 odd hours to kill right now.  In the mean time if you folks want to do some research to figure out which is the best free (or very cheap) api available I will review your suggestions when the time comes.  Of course you can always hack something together yourself using either the robobrowser or scrape actions.

My primary criteria for a "good" weather api are, in order of importance.

1- Must work internationally.  Not just the USA and a couple of other countries, and preferably more than just the major cities.
2- Must provide at least 3 days of weather, not just current and a super short forecast.
3- Should allow you to specify units (i.e. celcius, farenheight, mph/ kmph etc.
3- Should hopefully have a decent api with xml or json that is not overly complicated to grab data from.

Here is one option, though I'm not sure it is the best in terms of 1.  Maybe you could look into that.  Otherwise it seems OK.
Title: Re: GgWeather Plugin
Post by: mparks on September 02, 2012, 09:36:18 PM
This is the service I have used for many years  ( http://www.timeanddate.com/ ) they do have XML/API, ( http://www.timeanddate.com/services/api/ ) but I can not find the pricing anywhere on the site.
Title: Re: GgWeather Plugin
Post by: Kalle on September 03, 2012, 03:07:14 AM
this looks interesting

http://www.wunderground.com/weather/api (http://www.wunderground.com/weather/api)
Title: Re: GgWeather Plugin
Post by: vulcanjedi on September 03, 2012, 03:35:38 AM
this looks interesting

http://www.wunderground.com/weather/api (http://www.wunderground.com/weather/api)
This is also the default provider for XBMC after they went through similar experiences, so perhaps a similar relationship can be struck

http://xbmc.org/theuni/2011/12/10/welcome-sponsor-weather-underground/
Title: Re: GgWeather Plugin
Post by: jitterjames on September 27, 2012, 03:45:18 PM
It's happening...

The new plugin is coming along nicely:

http://voxcommando.com/forum/index.php?topic=928.0
Title: Re: GgWeather Plugin
Post by: MrWolf on September 28, 2012, 05:47:48 AM
Very excited!!

I'll have a crack at this when I get some time.

-P