Problems displaying PWS temp & rain

Registered users do not see the advertisments

Problems displaying PWS temp & rain

Postby hdultra103 » Thu Dec 30, 2010 8:13 am

Registered users do not see the advertisments
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&deg;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&deg;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 &deg;"/>
</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.




Share |

YoWindow - weather widget, weather screensaver, desktop weather
hdultra103
 
Registered users do not see the advertisments




Registered users do not see the advertisments

Re: Problems displaying PWS temp & rain

Postby ikarus1969 » Thu Dec 30, 2010 8:29 am

Hi hdultra103!

I don't know WeatherDisplay because i don't have it, BUT:
"NaN" means "Not-a-Number" so i guess in your customyowindow.txt you have to use another variable for the temperature that provides this value without the unit.

It should produce something like
Code: Select all
<current value="1.2"/>
instead of
Code: Select all
<current value="1.2&deg;C"/>
like now.

For the daily-rain-total-value you should try the same.

More detailed help will surely be provided by WD-Users soon!

Edit: i just saw that you already use the variable as it is used in the template from the tutorial - i'm sorry i should have been silent :oops:



Share |
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
User avatar
ikarus1969
 
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria
Registered users do not see the advertisments





Re: Problems displaying PWS temp & rain

Postby jmcmurry » Thu Dec 30, 2010 10:40 am

Yes, the problem is the &deg; that WD is adding which is an option within WD. Try going to Control Panel-Web Files/Web Page Setup then the Custom Web Page Setup tab. If the third item down "Include Units Used" is ticked, un-tick that.

Hopefully that's the right place, if not we'll have to look deeper. Let us know how it goes and if that's it we should probably add that to the WD setup instructions.

- Jim



Share |
jmcmurry
 
Posts: 365
Joined: Tue Oct 13, 2009 11:09 am
Location: Mauston, WI, USA
Registered users do not see the advertisments





Re: Problems displaying PWS temp & rain

Postby hdultra103 » Thu Dec 30, 2010 5:47 pm

Problem fixed Jim. Unticking the "include units used" worked. All data is reading correctly now. Thank you for the help. Great forum.

Michael



Share |
hdultra103
 
Registered users do not see the advertisments






Return to Weather Display

Who is online

Users browsing this forum: No registered users and 1 guest

Registered users do not see the advertisments