Temperature is not being displayed

Asked by gabriell nascimento on 2011-05-31

I installed the my-weather-indicator and set my city on the preferences, but it didn't displayed the temperature. Only the moon phase, the sunset and the sunrise are displayed (and the location). I tried to set other cities and I got the same problem. I don't know if it's a bug, so I decided to ask here first. Maybe I configured something wrong? (Before I forget, I'm connected to the Internet :P)

Question information

Language:
English Edit question
Status:
Solved
For:
my-weather-indicator Edit question
Assignee:
No assignee Edit question
Solved by:
Pedro H N Silva
Solved:
2011-06-09
Last query:
2011-06-09
Last reply:
2011-06-08

What version do you have?

I have the My Wheater Indication version 0.4.0.5, running on a Natty 32 bits.

Thomas Queste (tomsquest) said : #3

Same here.
Same version (0.4.0.5) on Natty 32 bits.

Thomas, it's displaying the temperature or you got the same problem I got?

Thomas Queste (tomsquest) said : #5

I have the same problem. The applet is only displaying the icon, not the temperature.

Best Pedro H N Silva (ph-neves86) said : #6

I have the same problem, but when i tried to change my language, actually i forced to be 'us' on my-weather-indicator.py, the app worked. My app has the version 0.4.0.5 on a Ubuntu Natty 64 bits and my default language is pt_BR.

Thomas Queste (tomsquest) said : #7

For info, my current locales are :
LANG=en_GB.utf8
LANGUAGE=en_GB:en

Pedro:
It worked to me too, when i forced the language to be 'us'. My default was also pt_BR.

Looks like it works just with 'us'. Should we report it as a bug?

Thomas:
Try putting LANGUAGE='us' and see if it works.

Pedro, here I changed the language to 'us', but the applet is still with some words in portuguese, like it was before.

Is it happening to you too?

Gabriel and Pedro, what do you mean? if LANGUAGE = 'us' everything works ok?

atareao, that worked for me (but here the variable is IDIOMA instead of LANGUAGE, but I think it's because of my location).

Before, IDIOMA had the value 'getlocale()[:0][:2]' (I'm not sure about the numbers...).

Pedro H N Silva (ph-neves86) said : #12

First, sorry about the 'us' thing, i don't know how it worked, but worked on the browser too.

Second, i searched in the web and found that some languages need 4 chars to make the language code, 2 for the code followed by a hyphen and some other qualifier. In my case, putting IDIOMA='pt-br' on both the files, forecastw.py and my-weather-indicator.py, worked.

The problem with getlocale()[0][:2] is that it return only 'pt' and google doesn't know if you want pt-br or pt-pt. The reply for that was a empty xml file.

And Thomas, i can't figure why it's not working for you but, on my-weather-indicator.py and on forecastw.py try to set IDIOMA as empty string, that should tell google to use the default language, in this case English.

Pedro, the 'pt-br' worked too.

I'm gonna close this question, my problem was solved.

Thank you, atareao, Thomas and Pedro, for the help.

See ya.

Thanks Pedro H N Silva, that solved my question.

Well, I thought if I clicked the "My problem was solved" button, the question would be closed and nobody could post anymore or something like that (it's my first question... :S ).

But it doesn't matter. My problem was solved, so thank you all again and see ya.

Thomas Queste (tomsquest) said : #16

I filled another bug request, as it seems we were not talking of the same
topic.
See: https://bugs.launchpad.net/my-weather-indicator/+bug/795401

--
Tom

On Fri, Jun 10, 2011 at 01:30, Gabriell H. R. Nascimento <
<email address hidden>> wrote:

> Question #159816 on my-weather-indicator changed:
> https://answers.launchpad.net/my-weather-indicator/+question/159816
>
> Gabriell H. R. Nascimento posted a new comment:
> Well, I thought if I clicked the "My problem was solved" button, the
> question would be closed and nobody could post anymore or something like
> that (it's my first question... :S ).
>
> But it doesn't matter. My problem was solved, so thank you all again and
> see ya.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>