Author Topic: GgWeather Plugin  (Read 8063 times)

0 Members and 1 Guest are viewing this topic.

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
GgWeather Plugin
« 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..
« Last Edit: March 09, 2012, 11:31:16 AM by jitterjames »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
GgWeather Plugin
« Reply #1 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.

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
GgWeather Plugin
« Reply #2 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...






« Last Edit: October 17, 2011, 10:04:09 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
GgWeather Plugin
« Reply #3 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #4 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

mparks

  • $upporter
  • Contributor
  • *****
  • Posts: 93
  • Karma: 0
    • View Profile
Re: GgWeather Plugin
« Reply #5 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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #6 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.

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: GgWeather Plugin
« Reply #7 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...
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #8 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #9 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 !!!

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: GgWeather Plugin
« Reply #10 on: October 18, 2011, 01:55:53 PM »
thanks, work fine now...
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: GgWeather Plugin
« Reply #11 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
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #12 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! >:( >:( >:(

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: GgWeather Plugin
« Reply #13 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
***********  get excited and make things  **********

Siutsch

  • $upporter
  • Contributor
  • *****
  • Posts: 53
  • Karma: 0
    • View Profile
Re: GgWeather Plugin
« Reply #14 on: August 28, 2012, 11:36:29 AM »
Same with Eventghost Weather and Sintracker Plugin.   ::confused

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: GgWeather Plugin
« Reply #15 on: August 28, 2012, 04:43:09 PM »
Very sad iindeed.  :-[
Neural Net Based Artificial Intelligence.

MrWolf

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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #17 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.

mparks

  • $upporter
  • Contributor
  • *****
  • Posts: 93
  • Karma: 0
    • View Profile
Re: GgWeather Plugin
« Reply #18 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.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: GgWeather Plugin
« Reply #19 on: September 03, 2012, 03:07:14 AM »
***********  get excited and make things  **********

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: GgWeather Plugin
« Reply #20 on: September 03, 2012, 03:35:38 AM »
this looks interesting

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/

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: GgWeather Plugin
« Reply #21 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

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: GgWeather Plugin
« Reply #22 on: September 28, 2012, 05:47:48 AM »
Very excited!!

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

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb