Page 1 of 4

Weather Display Template

Posted: Tue Jan 12, 2010 11:21 pm
by jmcmurry
This is a template that will work for some Weather Display users. To work correctly, your WD units in the "Web Page" portion of "Units/Other Settings" must be set to those that YoWindow expects, so this will only be useful for those who normally use those same units.

Using notepad, copy this template code into a file named wxlocal31.html and place that file in your wdisplay/webfiles/ folder. The number is unimportant, I chose a higher one so it probably wouldn't conflict with anything you are currently using. Then set to have the file created in "Internet File Creation & Uploads". Once that's working, you can point your YoWindow desktop version to the newly created wdisplay /webfiles/wx31.html for the current weather data. If you want to use the online version of YoWindow, then you'll also have to set WD to upload that file to your web site, and can have it renamed along the way if you wish. I had mine uploaded as yowindow.xml.

Edit 1/25/10 - The code has been removed from this post and will be maintained in this thread.

I'm not sure how %weatherreport% will work for the description and it may well be affected by your language translations. Those with solar sensors will probably find that %Currentsolardescription% will work better for them.

Weather Display has hundreds of tags, so feel free to let us know if you find a tag(s) that work better.

- Jim

Edited to use the tags provided by tph06784 below in case someone wants to try this. Having WD create the file should be better.

Re: PWS: Weather Display Template

Posted: Wed Jan 13, 2010 3:20 am
by tph06784
Jim thanks for this script. I've changed it some so it could be used by us American users.
[code<response>
<current_weather>
<temperature value="%tempinmetric%"/>
<humidity value="%hum%"/>
<pressure value="%baroinmetric%"/>
<wind>
<speed value="%avspeedinkmh%"/>
<direction value="%dirdeg%"/>
</wind>
<sky>
<icon id="%iconnumber%" format="wd"/>
<description value="%weatherreport%"/>
<precipitation>
<rain rate="%rainlasthourmm%"/>
</precipitation>
</sky>
</current_weather>
</response>][/code]
I had to fudge the rain rate some because I couldn't find current rain rate in mm when using inches but if this works I'm sure Brian would add it.
even with the file ending in XML it doesn't seem to work with the web based program but seems to work well in the desktop version.

Re: PWS: Weather Display Template

Posted: Wed Jan 13, 2010 12:07 pm
by jmcmurry
Excellent changes! I looked for metric tags like those, but apparently missed them. Guess the eyes are getting old.

Thanks for doing that. - Jim

Re: PWS: Weather Display Template

Posted: Wed Jan 13, 2010 1:19 pm
by par
Jim and Tom, thank you very much :)
I have marked this topic as "Sticky".
I'm going to mark all documentation bits "Sticky" to avoid loosing them in the see of comments.

Re: PWS: Weather Display Template

Posted: Thu Jan 14, 2010 2:28 pm
by tph06784
Weather Display author Brian Hamilton has added a yowindow xml file to be created in Weather Display and can be uploaded to your server (or not). It updates every 5 minutes. Easy to setup. Just go to http://www.weather-watch.com/smf/index. ... 925.0.html for the information.

Re: PWS: Weather Display Template

Posted: Thu Jan 14, 2010 2:40 pm
by par
Thank you, I will keep an eye on the thread.
tph06784 wrote:Weather Display author Brian Hamilton has added a yowindow xml file to be created in Weather Display and can be uploaded to your server (or not). It updates every 5 minutes. Easy to setup. Just go to http://www.weather-watch.com/smf/index. ... 925.0.html for the information.

Re: PWS: Weather Display Template

Posted: Thu Jan 14, 2010 10:00 pm
by Stillweather
Jim/Pasha,

I have tried your instructions however so far it won't grab my data. My page is here......http://stillweather.com/nuoutside.php The specific code is as follows...

Code: Select all

<object type="application/x-shockwave-flash" data="http://repkasoft.com/wimo/hpPal/hpPal.swf" width="700" height="245">
  <param name="movie" value="http://repkasoft.com/wimo/hpPal/hpPal.swf" />
    <param name="allowfullscreen" value="true" />
    <param name="bgcolor" value="#FFFFFF" />
    <param name="flashvars" value="location_id=gn:5283054&current_weather_url=http://stillweather.com/yowindow.xml&unit_system=us&background=#FFFFFF" />
    This feature requires the free Adoble Flash Player which you can <a href="http://get.adobe.com/flashplayer/">download here</a>.
</object>
The crossdomain.xml has been uploaded too. Does it take some time for this to take effect?

Thanks,

Jack

Re: PWS: Weather Display Template

Posted: Fri Jan 15, 2010 12:01 am
by tph06784
I uploaded the crossdomain file yesterday but it still isn't working for me either. One question is does it go in the root file directory or the directory the xml file is in?

Re: PWS: Weather Display Template

Posted: Fri Jan 15, 2010 4:36 pm
by weathergirl
I am also having difficulty with displaying my pws data in the yowindow on my webpage. It is still displaying my local metar's data. I have followed the directions carefully.

Re: PWS: Weather Display Template

Posted: Fri Jan 15, 2010 8:27 pm
by par
OK guys and girls, there are 2 important things you should know.

1. crossdomain.xml must be in the root directory, NOT in the weather-xml directory.
2. You should download crossdomain.xml propertly.
You have to click with right mouse button on the following link and choose "Saver Target As".
Only this way, otherwise you may occasionally save the file in a wrong format.
crossdomain.xml.

If you still have any problems, don't hesitate to ask.
I hope now YoWindow widget will show you the weather from your very personal station.