Select to view content in your preferred language

Displaying degrees Celsius with the Weather Underground Widget

10304
5
11-07-2010 10:53 PM
PrestigeMakanga
Deactivated User
I have changed tho configuration to display the wather results in degrees Celsius but the results are still returned in Fahrenheits. Below is the configuration. Any suggestions?

Also what is the purpose of the radar image. It does not return anything...

Regards
Prestige

<configuration>
<apquery>http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=[value]</apquery>
<obquery>http://api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=[value]</obquery>
<pwsquery>http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=[value]</pwsquery>
<forcastquery>http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=[value]</forcastquery>
<zoomscale>10000</zoomscale>
<outspatialref>102100</outspatialref>
<geometryservice>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
<!-- valid values are f for Fahrenheit and c for Celsius -->
<tempdefault>c</tempdefault>
<!-- enter either the zip code, airport code, or city and state to
enter in the search textbox when widget is opened. -->
<defaultsearch>Cape Town</defaultsearch>
<!-- if a defaultsearch value is entered do you want to automatically search for it? -->
<autosearchdefault>true</autosearchdefault>
<!-- if you do not want to allow the user to change the search then set to false. -->
<showsearchoption>true</showsearchoption>
<!-- if you to show personal weather station observations by default. -->
<showpwsdefault>True</showpwsdefault>
<!-- if you to show current temp at the observations along with the weather
condition icon by default. -->
<showtempsdefault>true</showtempsdefault>
<labels>
  <loadinglabel1>Retrieving List Of Weather Stations...</loadinglabel1>
  <loadinglabel2>Retrieving Airport Weather Observations...</loadinglabel2>
  <loadinglabel3>Retrieving Personal Weather Observations...</loadinglabel3>
</labels>
<info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Prestige,

    What the tempdefault element in the config file controls is the temperature label that is placed on the map. So if you set it to c the temperature label at the specific weather observation will be displayed in celsius. If you are not seeing this result I would try clearing your browsers cache. I have just verified that this is functioning as intended.
0 Kudos
PrestigeMakanga
Deactivated User
Hi Robert,

yes you are right. The units displayed on the map change. What i meant was the forecast units do not.

Regards
Prestige
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Prestige,

    Yes you are right the forecast does not currently honor the change. I will have to make this change and put out a new version.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Prestige,

   A new version is now available that fixes the bug you reported.
0 Kudos
PrestigeMakanga
Deactivated User
Hi Robert,

Thanks for the changes. Works well.

Regards
Prestige
0 Kudos