Weewx and the Leuven template

969 views
Skip to first unread message

Luc Heijst

unread,
Aug 10, 2014, 8:42:48 PM8/10/14
to weewx...@googlegroups.com
The Leuven template is developed by Wim van der Kuil of weatherstation Leuven in Belgian. (http://www.weerstation-leuven.be/_template2/template.php?lang=en)
Like the Saratoga template it is a tool to present your weather data on a personal weather website.

Which one to use is a matter of taste. Personally I was very charmed by the excellent documentation and auxilary programs to setup and test the site.
The documentation is in Dutch and English. The setup handles three regions: Europe, America and Canada.

For me this was the first challenge: should I use the America settings or not? 
I live in Surinam, South-America. In South America we can't use the weather warnings of North America, neither the satelite pictures and much more.
Also I wanted the presentation in metric units.
I decided to change the program and added a fourth region 'southamerica'. It has the metric units of 'europe', but can't use the weather warnings of 'europe, 'america' and 'canada'.

The template can interface with a number of weather software. Unfortunately weewx is not in the list of supported software. Weather Display is. I could use weewx-WD to interface with weewx and the Leuven template setup for WD.

The next challenge was the live data to be send in a file called 'testtags.php'. 
"Good' you will think, weewx-WD can provide such a file. Unfortunately the contents of testtags-'saratoga'.php and testtags-'leuven'.php are not the same. 
I wrote a testtags_leuven.php.tmpl file which I added to skin.conf of Testtags of weewx-WD. For clarity I renamed the original testtags.php.tmpl into testtags_saratoga.php.tmpl.

The next problem to solve was the fact that weewx FTP sent the real time files as one of the last files in the list. I think the order is kind of alphabetic and WD/Testtags came at the end (one minute later than the first FTP'ed file).
To solve this problem I copied the live data to a directory /data on my webserver and the weeewx graphs and skin data to subdirectories /data/weewx and /data/weewx/'skin' respectively.

For the steelseries gauges (I have several on my website) i didn't want to use the file produced by weewx-wd which is created once per archive interval (5 minutes), but use the data of a file 'customclientrawsync.txt' which uses the data of the mesoWX archive and 'loop' data on the webserver. I wrote a program that creates such a file each loop (on my site: each 10 seconds).

The fun part of the Leuven template is the YoWindow presentation on the home page. You must see it yourself. 

The configuration of the Leuven templates on my site is not finished yet. The steelseries gauges popup screens don't show my weewx graphs right now. Also the menu structure contains links to non-existing data.

See yourself if you like the Leuven template. You can compare the Leuven and Saratoga templates side by side on my website.

All my weather programs: http://www.lucdesign.nl/weather
The Saratoga template: http://www.lucdesign.nl/weather1
The Leuven template: http://www.lucdesign.nl/weather2

Luc
 



 

Andrew Milner

unread,
Aug 10, 2014, 10:23:20 PM8/10/14
to weewx...@googlegroups.com
WOW WOW WOW - I just love the meteor shower on the YoWindow!!!!   No other words could describe that feature!!!!!  WOW

I can see myself becoming addicted to Yowindow!  

Seriously though that is a fabulous template and as I run meso anyway I am tempted to investigate this a lot more - even if I do run a useless FineOffset station that only updates every minute so do not really have a concept of realtime!!!

giuseppe branciaroli

unread,
Aug 11, 2014, 3:40:41 AM8/11/14
to weewx...@googlegroups.com
ci luc volevo sapere se parli l'Italiano xche ho un raspberry da configuraree io no l'ho so fare neanche metterci le mani se mi potevi dare una mano ad mettere lacrosse ws 2800 grazie spero che mi contatti a g.bran...@alice.it

Il giorno lunedì 11 agosto 2014 02:42:48 GMT + 2, Luc Heijst ha Scritto:
Il modello di Leuven è sviluppato da Wim van der Kuil meteorologica di Leuven in Belgio. ( http: //www.weerstation- . leuven.be/_template2/template php lang = it? )
Come il modello Saratoga è uno strumento per presentare i tuoi dati meteo su un sito web meteo personale.

Quale usare è una questione di gusto. Personalmente sono stato molto affascinato dalla eccellente documentazione e dei programmi AUSILIARI per impostare e testare il sito.
La documentazione è in olandese e inglese. La configurazione gestisce tre regioni: Europa, America e Canada.

Per me questa è stata la prima sfida: devo usare le impostazioni America o no? 
Io vivo in Suriname, in Sud-America. In Sud America non possiamo usare gli avvertimenti meteo del Nord America, né le immagini satellitari e molto altro ancora.
Anche io volevo la presentazione in unità metriche.
Ho deciso di cambiare il programma e aggiunto una quarta regione 'Sud America'. Ha le unità metriche di 'Europa', ma non può utilizzare gli avvertimenti meteo di 'Europa' America 'e' canada '.

Il modello può interfacciarsi con un numero di software tempo. Purtroppo weewx non è nella lista dei software supportati. Weather Display è. Potrei usare weewx-WD per interfacciarsi con weewx e la configurazione modello Leuven per WD.

La prossima sfida è stata i dati in tempo reale per essere inviati in un file chiamato 'testtags.php'. 
"Good 'penserete, weewx-WD può fornire questo tipo di file. Purtroppo il contenuto di testtags-'saratoga'.php e testtags-'leuven'.php non sono gli stessi. 
Ho scritto un file di testtags_leuven.php.tmpl che ho aggiunto al skin.conf di Testtags di weewx-WD. Per chiarezza ho rinominato la testtags.php.tmpl originale in testtags_saratoga.php.tmpl.

Il prossimo problema da risolvere era il fatto che weewx FTP inviato i file in tempo reale, come uno degli ultimi file nella lista. Credo che l'ordine è di tipo alfabetico e WD / Testtags arrivata alla fine (un minuto più tardi il primo file FTP'ed).
Per risolvere questo problema ho copiato i dati in tempo reale in una directory / dati sul mio webserver ed i grafici ei dati weeewx pelle a sottodirectory / data / weewx e / dati / weewx / 'pelle', rispettivamente.

Per i calibri SteelSeries (ho diversi sul mio sito), non ho voglia di utilizzare il file prodotto da weewx-wd che viene creato una volta per intervallo archivio (5 minuti), ma utilizzare i dati di un file 'customclientrawsync.txt' che utilizza i dati dell'archivio mesoWX e dati 'loop' sul server web. Ho scritto un programma che crea un file di ogni loop (sul mio sito: ogni 10 secondi).

La parte divertente del modello Leuven è la presentazione YoWindow sulla home page. Dovete vedere voi stessi. 

La configurazione dei modelli di Leuven sul mio sito non è ancora finito. SteelSeries calibri schermate pop-up non mostrano i miei grafici weewx adesso. Anche la struttura del menu contiene collegamenti a dati non esistenti.

Vedi te se ti piace il modello di Leuven. È possibile confrontare il Lovanio e Saratoga modelli fianco a fianco sul mio sito web.

Tutti i miei programmi meteo:  http:. // www lucdesign.nl/weather
Il modello di Leuven:  http:. // www lucdesign.nl/weather2

Luc
 



 

Luc Heijst

unread,
Aug 11, 2014, 8:13:19 AM8/11/14
to weewx...@googlegroups.com
On Monday, 11 August 2014 04:40:41 UTC-3, giuseppe branciaroli wrote:
ci luc volevo sapere se parli l'Italiano xche ho un raspberry da configuraree io no l'ho so fare neanche metterci le mani se mi potevi dare una mano ad mettere lacrosse ws 2800 grazie spero che mi contatti a g.bran...@alice.it

Hello Giuseppe,

No, I dot speak Italian. (That's why I love Italian-spoken opera's so much of Verdi, Puchini, Donizetti. The language on it's one sounds as music to me. Not distracted by the meaning of the text I enjoy the music even more...)

Back to your question. What i can remenber of installing weewx on the raspberry pi (more than a year ago) is that the installation was strait forward. Normally I make notes when I install or configure programs,but I my 'raspberry pi notes' are lost or somewhere 'hidden' on my 5 TB storage ;-)

I went back with weewx to my Synology platform begin this year, and the Rasberry PI stuff is mainly forgotten (I have a bad memory).

Sorry if I can't help you more.

Luc

Dave Webb KB1PVH

unread,
Aug 11, 2014, 8:21:08 AM8/11/14
to weewx...@googlegroups.com

I have a Weewx Raspberry Pi SD card image that you can burn to your card and you will just need to change the config settings to your particular location and station.

https://www.dropbox.com/s/f1fmn5u7zhsguqa/Weewx_Basic2.6.2_Pi.zip

Dave-KB1PVH

Sent from my Samsung S4

marcel everink

unread,
Aug 12, 2014, 5:45:45 PM8/12/14
to weewx...@googlegroups.com
Hello Luc,

Will you share the testtags_leuven.php.tmpl file?

Marcel

Op maandag 11 augustus 2014 02:42:48 UTC+2 schreef Luc Heijst:

Luc Heijst

unread,
Aug 12, 2014, 6:38:08 PM8/12/14
to weewx...@googlegroups.com
On Tuesday, 12 August 2014 18:45:45 UTC-3, marcel everink wrote:
Will you share the testtags_leuven.php.tmpl file?

Hello Marcel,

The file is not ready for production yet and right now I don't have plans to change this template any futrther. 

TO BE FIXED
- unnecessary code not removed yet
- data for sol-, uv-, soil-, moist- and leaf-sensors not implemented yet.

If you have any of these sensors and you understand the used concept, you might add the code yourself.

Luc

testtags_leuven.php.tmpl

marcel everink

unread,
Aug 13, 2014, 7:44:43 AM8/13/14
to weewx...@googlegroups.com
Hello Luc,

Thanks for the file. It gives me the necesarry insight how to produce/change the testtags.

Marcel

Op woensdag 13 augustus 2014 00:38:08 UTC+2 schreef Luc Heijst:

Luc Heijst

unread,
Aug 14, 2014, 9:58:42 AM8/14/14
to weewx...@googlegroups.com
On Sunday, 10 August 2014 23:23:20 UTC-3, Andrew Milner wrote:
WOW WOW WOW - I just love the meteor shower on the YoWindow!!!!   No other words could describe that feature!!!!!  WOW
I can see myself becoming addicted to Yowindow!  

Hello Andrew,

I've upadted the YoWindow gadget with the weather data of my weather station.
In weewx-WD I added a map YoWindow and placed the attached files skin.conf and yowindow.xml.tmpl in there.
Don't forget to add the following YoWindow section in weewx.conf
    # Generate WD yowindow file 
    [[YoWindow]]  
        skin = WD/YoWindow  
        HTML_ROOT = public_html/data (or any other place where you want to put the yowindow.xml file)

For more info about the Yowindow gadget in the Leuven template, see: http://wiki.leuven-template.eu/doku.php?id=yowindow
Pay attention to the section about file crossdomain.xml in the root of your website.

Note: You can change the YoWindow landscape in wsDashYowindow.php. Options are: airport, seaside and village

Luc

yowindow.jpg
skin.conf
yowindow.xml.tmpl
Reply all
Reply to author
Forward
0 new messages