4 Replies Latest reply on Jan 30, 2007 12:40 AM by andyreed78

    Weather Portlet - temp in deg C

    andyreed78

      Has anyone had any success forcing the weather portlet to display the temperature in degrees centigrade rather than fahrenheit? Yahoo weather supports this by adding "_c" to the zip code/location however when I tried this, the portal retrieves no data. Any help appreciated as us British types don't understand fahrenheit! ;-)

      Thx,

      Andy.

      OS: Win XP SP2
      DB: MySQL 5.0.2.7-community
      mysql-connector-java-5.0.4
      JBoss 4.0.4-GA
      JBoss Portal v. 2.4.1-GA

        • 1. Re: Weather Portlet - temp in deg C
          shawdav1

          This used to work under 2.2. You were able to edit the preferences? I just tried under 2.4.1-SP1 and the 'edit' button displays but doesn't activate for me. Same with the news portlet.

          • 2. Re: Weather Portlet - temp in deg C
            dexxa

            I'm using 2.4.1 and I have been able to get the edit button to work although the _c doesn't work for me either. I get the actual temperature to display in C by adding &u=c to the end of the "zipcode". The degrees are then displayed in Celcius however an F still appears beside each of the numbers. I had to then edit the XSL file..\portal-samples.war\WEB-INF\xsl\weather\rss.xsl to get rid of the hard coded F's in the file.

            If anyone has a better way, I'd be interested too!

            • 3. Re: Weather Portlet - temp in deg C
              kukeltje

              Yeah, I have a better idea... lets ditch Fahrenheit, Miles, ounces, NTSC, driving left, speaking english (sorry, american english that is ;-)) all together and create a new ice-age so GB is finally part of main land europe

              sorry... just joking

              • 4. Re: Weather Portlet - temp in deg C
                andyreed78

                lol. I've spoken with the Queen and as an alternative, she suggested that the US would be welcome back into the commonwealth if they are willing to start spelling things correctly (e.g. colour) and stop stealing our places names and prefixing them with 'New'!

                I hope this is taken as the joke it's meant and I don't get flamed! :-D

                Thanks for the pointers, I'll give that a try.