Weather Display Template

jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Weather Display Template

Post 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.
Last edited by jmcmurry on Sun Jan 17, 2010 3:06 pm, edited 8 times in total.
tph06784
Posts: 94
Joined: Sun Oct 25, 2009 3:52 pm

Re: PWS: Weather Display Template

Post 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.
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: PWS: Weather Display Template

Post 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
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: PWS: Weather Display Template

Post 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.
Get YoWindow weather app for your phone or tablet.

Image Image Image
tph06784
Posts: 94
Joined: Sun Oct 25, 2009 3:52 pm

Re: PWS: Weather Display Template

Post 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.
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: PWS: Weather Display Template

Post 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.
Get YoWindow weather app for your phone or tablet.

Image Image Image
Stillweather
Posts: 4
Joined: Thu Jan 14, 2010 9:54 pm
Location: Branford, Connecticut USA

Re: PWS: Weather Display Template

Post 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
Image
tph06784
Posts: 94
Joined: Sun Oct 25, 2009 3:52 pm

Re: PWS: Weather Display Template

Post 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?
weathergirl
Posts: 18
Joined: Thu Oct 15, 2009 3:01 am
Name: Ann-Marie
Location: Beamsville, Ontario, Canada
Contact:

Re: PWS: Weather Display Template

Post 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.
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: PWS: Weather Display Template

Post 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.
Get YoWindow weather app for your phone or tablet.

Image Image Image
Post Reply