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:
Last query:
Last reply:
Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) said :
#1

What version do you have?

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#2

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

Revision history for this message
Thomas Queste (tomsquest) said :
#3

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

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#4

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

Revision history for this message
Thomas Queste (tomsquest) said :
#5

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

Revision history for this message
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.

Revision history for this message
Thomas Queste (tomsquest) said :
#7

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

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#8

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.

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#9

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?

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) said :
#10

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

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#11

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...).

Revision history for this message
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.

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#13

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.

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#14

Thanks Pedro H N Silva, that solved my question.

Revision history for this message
gabriell nascimento (gabriellhrn) said :
#15

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.

Revision history for this message
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.
>