yowindow.xml format update, pressure trend added.

Personnal Weather Station (PWS) support
User avatar
par
Posts: 8629
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

yowindow.xml format update, pressure trend added.

Post by par »

I have added a pressure trend support for PWS.
See the fresh build.
The format is the following.

<pressure value="num" trend="num" unit="[ hPa | inchMerc | mmMerc ]"/>

I just have added "trend" attribute.

I need to update the templates for all supported stations.
Friends, please let me know how should I change the templates to reflect pressure trend for your station.

Pasha
Get YoWindow weather app for your phone or tablet.

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

Re: yowindow.xml format update, pressure trend added.

Post by jmcmurry »

Pasha,

For the Weather Display template you would use the %pressurechangehourinmb% tag. I'll add this to Rainer's and my PHP script as soon as I get a chance.

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

Re: yowindow.xml format update, pressure trend added.

Post by par »

Thanks!
I have updated WD template at yowindow.com.
Get YoWindow weather app for your phone or tablet.

Image Image Image
JoseNeto

Re: yowindow.xml format update, pressure trend added.

Post by JoseNeto »

Hi Par.
I think I must wait for an update on WUHU in order to get the tendency running.
So my PWS is a LaCrosse WS 2810 and it is not supported directly, apart of the currdat.lst file generated still using
[weather_tendency]
comment1=-1=not valid, 0=no change of air pressure
comment2=1=air pressure rising, 2=air pressure falling
number=1
But I am not able to use it, must wait for WUHU.....
By the way do not forget to use (reuse) diferent collors for data comming from PWS in order to be more clear regardind data from metar.
Tanks
User avatar
par
Posts: 8629
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: yowindow.xml format update, pressure trend added.

Post by par »

Thanks, Jose!
Get YoWindow weather app for your phone or tablet.

Image Image Image
User avatar
Mallorca
Posts: 1757
Joined: Sun Jul 11, 2010 8:59 am
Name: Werner Heidotting
Location: Son Servera, Mallorca, Spain
Contact:

Re: yowindow.xml format update, pressure trend added.

Post by Mallorca »

Hi Pasha,
I added the pressure trend to my yowindow.txt for WsWin (see attachement).
Thanks for this new feature! :D
Unbenannt.JPG
Unbenannt.JPG (31.45 KiB) Viewed 10942 times
pressure trend.zip
(24.75 KiB) Downloaded 573 times
Werner
User avatar
par
Posts: 8629
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: yowindow.xml format update, pressure trend added.

Post by par »

Werner, I think the template you have modified will not work

This will not work :-(
<pressure value="num" trend="num" unit="[ hPa | inchMerc | mmMerc ]"/>

You need to find WsWin pressure-trend variable and pass it inside pressure tag.
Like this
<pressure value="%curval[33]%" trend="%curval[special-pressure-trend-id]%"/>

If you to find the value of "special-pressure-trend-id", please let me know.
Get YoWindow weather app for your phone or tablet.

Image Image Image
User avatar
Mallorca
Posts: 1757
Joined: Sun Jul 11, 2010 8:59 am
Name: Werner Heidotting
Location: Son Servera, Mallorca, Spain
Contact:

Re: yowindow.xml format update, pressure trend added.

Post by Mallorca »

Hi Pasha, sorry but I zipped the wrong file :(

In WsWin it is possible to set the trend in different hours, so I used the 24 hour trend.

the trend arrow is shown now on my pc
barotrend pc.JPG
barotrend pc.JPG (35.79 KiB) Viewed 10925 times
and on the widget
barotrend web.JPG
barotrend web.JPG (60.9 KiB) Viewed 10925 times
So I think it should be ok.
Werner
User avatar
par
Posts: 8629
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: yowindow.xml format update, pressure trend added.

Post by par »

OK, good to know you've made it work.
Can you give me the name of the tag used for pressure trend in WsWin?
Get YoWindow weather app for your phone or tablet.

Image Image Image
User avatar
Mallorca
Posts: 1757
Joined: Sun Jul 11, 2010 8:59 am
Name: Werner Heidotting
Location: Son Servera, Mallorca, Spain
Contact:

Re: yowindow.xml format update, pressure trend added.

Post by Mallorca »

Hi Pasha,
here are the tags for pressure trends setting:

pressure actual *%curval[33]%

pressure trend 1h %ws_baro1h%
pressure trend 2h %ws_baro2h%
pressure trend 3h %ws_baro3h%
pressure trend 6h %ws_baro6h%
pressure trend 12h %ws_baro12h%
pressure trend 24h %ws_baro24h%

I used the 24 h trend.
Werner
Post Reply