VWS export

Post Reply
somdweather

VWS export

Post by somdweather »

Hello,
I have created an yowindow.xml template with the VWS tags. It appears that it loaded up to my site just fine but when yowindow tries to retrieve it from my site, it gets an error.

Here is what I have in the XML file:

<response>
<current_weather>
<temperature unit="f">
<current value="^vxv007^"/>
</temperature>

<humidity value="^vxv005^{%}"/>

<pressure value="^vxv023^" unit="inchMerc"/>

<visibility value="^mtr011KNHK^" unit="mile"/>

<wind>
<speed value="^vxv002^" unit="mph"/>
<direction value="^vxv001^"/>
<gusts value="^vxv003^" unit="mph"/>
</wind>

<auto_update>
<interval value="30"/>
</auto_update>
</current_weather>
</response>




Here is the resultant file output on my website:


<response>
<current_weather>
<temperature
<current value="70.7"/>
</temperature>

<humidity value="82{%}"/>

<pressure value="30.04"

<visibility value="10"

<wind>
<speed value="0"
<direction value="S"/>
<gusts value="0"
</wind>

<auto_update>
<interval value="30"/>
</auto_update>
</current_weather>
</response>


So I need help in finding out what the error is..

Thanks,

Jim
User avatar
nico
Posts: 44
Joined: Sat Jan 02, 2010 11:40 pm
Location: Maurik, Netherlands
Contact:

Re: VWS export

Post by nico »

Hi Jim,

Code: Select all

<response>
  <current_weather>
    <temperature
      <current value="70.7"/>
    </temperature>
You are missing the unit="f"> following the temperature tag.

Code: Select all

<response>
  <current_weather>
    <temperature unit="f">
      <current value="70.7"/>
    </temperature>
Further down your file there are a few missing />

A good thing of YoWindow is that it will display values it recognises up until the error in the file. If you see nothing the first item is bad.
You can check by uploading a edited file with real values and see if that is working. Then you have to build that file and get the same resuly with VWS.

good luck
best regards
Nico
http://www.wsMaurik.nl/
somdweather

Re: VWS export

Post by somdweather »

Thanks Nico! I will try this out when I get home later....
somdweather

Re: VWS export

Post by somdweather »

Nico,
I just inserted the tag and I can't get YoWindow to grab the file from the server.... It looks like it's just pulling off the data from the nearest METAR (KNHK).
somdweather

Re: VWS export

Post by somdweather »

Ok, it's updating now in YoWindow but the "units" attribute in the XML file are causing wierd outputs to the screen....

XML file input

<?xml version="1.0" encoding="utf-8" ?>
<response>
<current_weather>
<humidity value="^vxv005^"/>
<pressure value="^vxv023^" units="inchMerc"/>
<wind>
<speed value="^vxv002^" />
<gusts value="^vxv003^" />
</wind>

</current_weather>
</response>

resultant output from VWS:

<?xml version="1.0" encoding="utf-8" ?>
<response>
<current_weather>
<humidity value="80"/>
<pressure value="30.10"
<wind>
<speed value="0" />
<gusts value="0" />
</wind>

</current_weather>
</response>


Confused....
RonParWX

Re: VWS export

Post by RonParWX »

Yes! it would nice if there was support for VWS users like myself. I've been using VWS software for over 6 years now and I'm not about to spent the money for Weather Display to just be able to use YoWindows. I tried every which way to create a xml.file to export VWS tags and it just didn't work. So I un-installed YoWindows. Hoping in the future that there will be a VWS version.
Also one more remark. I think it's too bad that there is not more PHP scripts written for VWS, and not so much in favor of Weather Display.
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: VWS export

Post by par »

We will support VWS as soon as I have more time for this task.
Get YoWindow weather app for your phone or tablet.

Image Image Image
alessandro
Posts: 9
Joined: Wed Dec 15, 2010 8:10 pm
Name: Alexandros
Location: Arachova Greece
Contact:

Re: VWS export

Post by alessandro »

Hello,
I am from Greece and I have a PWS Davis and I use VWS
http://www.meteoarachova.com

I have created an yowindow.xml template with the VWS tags.

<?xml version="1.0" encoding="UTF-8"?>
<response>
<current_weather>
<temperature>
<current value="^vxv007^" />
<feels_like value="^vxv027^" />
</temperature>
<humidity value="^vxv005^" />
<pressure value="^vxv023^" />
<pressure trend="^vst140^" />
<wind>
<speed value="^vxv002^" />
<direction value="^vxv001^" />
</wind>
<sky>
<clouds>
<description value="^climate_cconds1^"/>
</clouds>
<precipitation>
<rain>
<rate value="^vxv124^" unit="mmph" />
<daily_total value="^vxv121^" unit="mm" />
</rain>
</precipitation>
</sky>
<uv value="^vxv017^" />
<solar radiation="^vxv018^" />
</current_weather>
</response>

The xml file works fine.You can see it here:
http://www.meteoarachova.com/yowindow.xml

I use YoWindow weather widget and it works in colaboration with yowindow.xml
http://www.meteoarachova.com/weather/yo.html

Although there isn’t a forecast for my village but the Norwegian Meteorological Institute has a forecast about me.
Could you please add and my village to YoWindow weather widget??
Here is the forecast from yr.no: http://www.yr.no/place/Greece/Other/Ar%C3%A1chova/

Thank you in advance for all,
Alexandros ;)
Last edited by alessandro on Wed Dec 15, 2010 8:45 pm, edited 1 time in total.
User avatar
par
Posts: 8623
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: VWS export

Post by par »

Wow!
Alexandros, you are the man!

Thank you, when I find some free time I hope to create a tutorial for VWS.
Like this one.
http://yowindow.com/pws_weather_display.html

Hopefully with a little help on your side :)
Get YoWindow weather app for your phone or tablet.

Image Image Image
Post Reply