How to connect WsWin and YoWindow?

Locked
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

How to connect WsWin and YoWindow?

Post by par »

This document explains how to export Ws-Win weather to YoWindow XML format.

Hi,

here is a beta-file how to include your pws-data to YoWindow.
EDIT:It was the first template, so don´t copy the following code .
Please read the introduction first.

Code: Select all

<!-- %customfile=yowindow.xml% --> 
<!-- %openfile=ws_variables.txt% -->
%unit_off% %alwaysseppoint_on%

<response>
   <current_weather>
       <temperature value="%curval[0]%"/>
       <humidity value="%curval[19]%"/>
       <pressure value="%curval[33]%"/>
       <visibility value="%horiz_view%"/>
       <wind>
          <speed value="%curval[35]%"/>
          <direction value="%curval[36]%"/>
       </wind>
       <sky>
          <clouds value ="%suneighth%"/>
       <precipitation mode="yes"/>
          <precipitation>
            <snow height="%snowheight%">
            </snow>                           
       </precipitation>
        </sky>   
   </current_weather>
</response>
How to ?
At first you should save the file in the primary directory of WsWin (e.g. c:\programme\wswin) and let it open with "openfile".
Look, if it generates the "yowindow.xml" file. You should find it in the html-directory (e.g. c:\programme\wswin\html\yowindow.xml). For testing, open it with Internet explorer to check if the xml-file is displayed "properly" as you can see it here http://acknet.vs120010.hl-users.com/yowindow.xml.
Then, you have to download the latest YoWindow Version. You can find it here http://repkasoft.com/rc.html.
After installation, go to Place (Ort), Place-Character (Ortseigenschaft) and then to setup.
There you have to enter your geo-data and the url where the xml-file generated by the file above is published. You can choose both - a local path or an url on your webserver -.

At the moment there are still some small things we have to work on (e.g. humidity and View). It´s just a beta !
Actual rain (%curval[34]%) and rainrate per hour (%rainrate%) have to be added.
I just couldn´t solve that. Adding these variables, the xml-file is not shown properly. Couldn´t find the reason yet.

EDIT: Now, while we are working on a documentation, you should look at the WsWin thread http://yowindow.com/forum/viewtopic.php?f=11&t=372 to finde new code.

Now have fun !
Andreas
http://www.acknet.de


When you are done you may connect YoWindow to your station, follow these instructions.
Get YoWindow weather app for your phone or tablet.

Image Image Image
Locked