TXT file generation

Fragen, Anregungen zur PC-Wetterstations-Software

Moderatoren: Werner, Tex, weneu

Antworten
flax

TXT file generation

Beitrag von flax »

Hello!

I have only one question. I need to generate simple TXT file in this format:

======================================
DD.MM.YYYY|HH:MM|TT.T|VV|TTTT.T|RR.R|SSS|DD.D|

12.11.2006|14:54|14.2|58|1027.4|1.8|257|0.5|

Date|time|temperature|humidity|presure|wind speed|wind direction|precipitation per 1 hour|
======================================

Please is it possible to generate file in this format every 15 minutes. ?

Thank you for your help!
Benutzeravatar
weneu
Site Admin
Beiträge: 11572
Registriert: 22 Feb 2002 01:00
Wohnort: Donauwörth
Danksagung erhalten: 18 mal
Kontaktdaten:

Beitrag von weneu »

Hello,
either you take the "aktuell.txt" as it is, example here
24.02.2007;00:00;20,7;4,2;4,2;4,3;44;90;1009,9;0,000;0,0;96;0;0,000;0,0;0;2,7;4,2;0,0;100,00;0;5;45
24.02.2007;00:05;20,7;4,1;4,1;4,2;44;90;1009,9;0,000;0,0;0;0;0,000;0,0;0;2,6;4,1;0,0;100,00;0;0;45
or you use a user-defined template with the wswin-variables to get exactly, what you want.
flax

Beitrag von flax »

Yes I know that there is possibility to create custom template files, but i don't know how to use it. This program is so complex and not very user friendly, please can you explain me this in some step-by-step manual? :)
Benutzeravatar
weneu
Site Admin
Beiträge: 11572
Registriert: 22 Feb 2002 01:00
Wohnort: Donauwörth
Danksagung erhalten: 18 mal
Kontaktdaten:

Beitrag von weneu »

Hello,
You create a file containing the following:
<!-- %customfile=aktuellwert.txt% -->
%unit_off%%ws_date%;%ws_time%;%curval[0]%;%curval[-1]%;%curval[33]%;%curval[35]%;%curval[36]%;%rain1h%
This file you call for example "daten.txt" and store it in the programm-folder.
Then you open the file "wap.txt" (it's in th e programm-folder) and in the second line of this file you insert
<!-- %openfile=daten.txt% -->
and store the file again.
Then the following will happen:
Whenever wswin gets data from your station, it will look for the file "daten.txt" and open it.
Then it will create the file "aktuellwert.txt"
And in this file you will find the actual data.
Be sure that you have set a hook in WSWIN at "Internet - adjustments" and there at "update customized html files in recording mode"
Antworten