Whether you have created a template or a PHP script for a new weather station, please share with us!
This document describes YoWindow XML format for PWS stations.
Follow the link and read the document carefully.
YoWindow XML format
Should you encounter any difficulties in adapting your weather station data to YoWindow format, please, don't hesitate to contact me or our friendly community here.
For each weather station we may have
- a plain/simple text XML template file;
- a PHP script (if one is available and is needed).
One of the main reason developing an XML template in addition to a PHP script for YoWindow:
- a user wants to keep the file locally on his/her personal computer;
- then a plain text XML template file can be used on that user's personal computer.
To use a PHP script to generate the required XML file, a user would have to install a server software as well as the PHP software, and that would be a problem for most users.
yowindow.xml extentions for some weather stations
You may provide weather icon id to indicate sky conditions.
<icon> is a child of <sky> tag.
<icon> is replaced inside YoWindow to a combination of <clouds>, <precipitation>, <thunder> and <mist> tags.
However <description> tag is not added.
You have to provide <description> tag manually inside the template.
(This is to avoid unnecessary description translations.)
Code: Select all
<icon> @id - icon id @format = "wd" - let YoWindow know the icon id is from Weather Display station YoWindow will pick sky parameters represented by the icon. @include - [always, daylight] Example. <sky> <icon id="21" format="wd"/> <description value="Heavy Rain"> </sky>
You may provide weather icon id to indicate clouds-coverage.
You have to add <icon> tag inside <clouds>, and assign sky-code to @id attribute of <icon> tag.
Code: Select all
Example. <sky> <clouds> <icon id="2" format="ws-win"/> </clouds> <description value="Fair"/> <precipitation mode="rain"> <rate value="4"/> </precipitation> </sky>