Problems displaying PWS temp & rain
Posted: Thu Dec 30, 2010 8:13 am
Hello, I'm new to YoWindow and I'm having problems getting the temperature and daily rain total to display on my YoWindow display. NaN isdisplayed for temp and NaN.NaN" is displayed for daily rain total. The rest of the data from my PWS appears to display correctly. I'm using WD 10.37Q bulid 10 and Win XP SP 3. When I open the yowindow.xml file I get an error message "The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
The operation completed successfully. Error processing resource 'file:///C:/wdisplay/webfiles/yowindow.xml'. Line 8, Position 35
<current value="1.2°C"/>
customyowindow.txt
<!-- %stationname% %date% %time% -->
<!-- Remove auto_update section if wanting the default, otherwise in seconds -->
<!-- Remove snow section if not inputting snow -->
<!-- Remove the uv and solar tags if those sensors aren't present -->
<response>
<current_weather>
<temperature>
<current value="%tempinmetric%"/>
<feels_like value="%feelslikeincelsius%"/>
</temperature>
<humidity value="%hum%"/>
<pressure value="%baroinmetric%"/>
<wind>
<speed value="%10minavspeedinm/s%"/>
<gusts value="%maxgustlastmininm/s%"/>
<direction value="%dirdeg%"/>
</wind>
<sky>
<icon id="%iconnumber%" format="wd"/>
<description value="%weatherreport%"/>
<precipitation>
<rain>
<rate value="%currentrainratemm%"/>
<daily_total value="%dayrnmm%"/>
</rain>
</precipitation>
</sky>
<uv value="%VPuv%"/>
<solar radiation="%currentsolarpctplain%" energy="%VPsolar%"/>
</current_weather>
</response>
yowindow.xml
<!-- Highridge Weather 12/29/10 11:05 PM -->
<!-- Remove auto_update section if wanting the default, otherwise in seconds -->
<!-- Remove snow section if not inputting snow -->
<!-- Remove the uv and solar tags if those sensors aren't present -->
<response>
<current_weather>
<temperature>
<current value="1.2°C"/>
<feels_like value=" 1"/>
</temperature>
<humidity value="74"/>
<pressure value="1010.3"/>
<wind>
<speed value="1.4"/>
<gusts value="1.5"/>
<direction value="355 °"/>
</wind>
<sky>
<icon id="13" format="wd"/>
<description value="mostly cloudy"/>
<precipitation>
<rain>
<rate value="0.0"/>
<daily_total value=" 3.8 mm"/>
</rain>
</precipitation>
</sky>
<uv value="0.0"/>
<solar radiation=" 0" energy="0"/>
</current_weather>
</response>
Any help or assistance would be greatly appreciated. Thank you.
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
The operation completed successfully. Error processing resource 'file:///C:/wdisplay/webfiles/yowindow.xml'. Line 8, Position 35
<current value="1.2°C"/>
customyowindow.txt
<!-- %stationname% %date% %time% -->
<!-- Remove auto_update section if wanting the default, otherwise in seconds -->
<!-- Remove snow section if not inputting snow -->
<!-- Remove the uv and solar tags if those sensors aren't present -->
<response>
<current_weather>
<temperature>
<current value="%tempinmetric%"/>
<feels_like value="%feelslikeincelsius%"/>
</temperature>
<humidity value="%hum%"/>
<pressure value="%baroinmetric%"/>
<wind>
<speed value="%10minavspeedinm/s%"/>
<gusts value="%maxgustlastmininm/s%"/>
<direction value="%dirdeg%"/>
</wind>
<sky>
<icon id="%iconnumber%" format="wd"/>
<description value="%weatherreport%"/>
<precipitation>
<rain>
<rate value="%currentrainratemm%"/>
<daily_total value="%dayrnmm%"/>
</rain>
</precipitation>
</sky>
<uv value="%VPuv%"/>
<solar radiation="%currentsolarpctplain%" energy="%VPsolar%"/>
</current_weather>
</response>
yowindow.xml
<!-- Highridge Weather 12/29/10 11:05 PM -->
<!-- Remove auto_update section if wanting the default, otherwise in seconds -->
<!-- Remove snow section if not inputting snow -->
<!-- Remove the uv and solar tags if those sensors aren't present -->
<response>
<current_weather>
<temperature>
<current value="1.2°C"/>
<feels_like value=" 1"/>
</temperature>
<humidity value="74"/>
<pressure value="1010.3"/>
<wind>
<speed value="1.4"/>
<gusts value="1.5"/>
<direction value="355 °"/>
</wind>
<sky>
<icon id="13" format="wd"/>
<description value="mostly cloudy"/>
<precipitation>
<rain>
<rate value="0.0"/>
<daily_total value=" 3.8 mm"/>
</rain>
</precipitation>
</sky>
<uv value="0.0"/>
<solar radiation=" 0" energy="0"/>
</current_weather>
</response>
Any help or assistance would be greatly appreciated. Thank you.