loudambiance / yweather

Automatically exported from code.google.com/p/yweather
0 stars 0 forks source link

Temp not displaying in celsius #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I updated the script with my city (Toronto) and celsius (C)
So the two lines look like this for me:
my $zipcode = "CAXX0504";
my $unit = "C";
2. executed ./yweather.pl -ct && ./yweather.pl -ut right after installing the 
script

What is the expected output? What do you see instead?
I was expecting to see the following in the terminal:
18
C

but instead I got:
64
C

Which is clearly the same temperature but in the undesired unit.

What version of the product are you using? On what operating system?
0.7.6 on Mac OS X 10.5.7

I've attached my file for you to overlook just incase I ruined something 
without noticing it.

Original issue reported on code.google.com by sysopgr...@gmail.com on 5 Jun 2009 at 4:32

Attachments:

GoogleCodeExporter commented 9 years ago
Yahoo is finicky, It has to be a lower case c, any thing else and it defaults to
Fahrenheit.

Original comment by loudambiance on 8 Jun 2009 at 2:45

GoogleCodeExporter commented 9 years ago
unfortunately a lower case c doesn't do the trick either :(
i have another script on hand that gets just the temp. i guess i'll only use 
this version of yweather for the image 
and other weather datas

i've attached the other script just in case, i believe its actually an older 
version of yweather that i came across on 
lifehacker weeks ago

Original comment by sysopgr...@gmail.com on 8 Jun 2009 at 6:35

Attachments:

GoogleCodeExporter commented 9 years ago
alright, i figured it out now... i just had to run --update
thanks for putting up with me loudambiance!

Original comment by sysopgr...@gmail.com on 8 Jun 2009 at 6:40

GoogleCodeExporter commented 9 years ago
No problem, that's what I'm here for :-)

Original comment by loudambiance on 9 Jun 2009 at 5:22