the simplest way is to just create a new template and let cheetah do the 
work for you

eg for example
crerate template called csvdata.txt.tmpl - this will create a file called 
csvdata.txt when the reports are run - or create a template called 
csvdata.csv.tmpl will create a file called csvdata.csv in the same way that 
index.html.tmpl creates index.html

Inside the template .tmpl file put whatever you wish to be in the csv file, 
separators, data tags etc etc etc

add an report to the skin to create the file by running the template

 

On Wednesday, 17 October 2018 15:40:55 UTC+3, Herwig Diessner wrote:
>
> Hello all,
>
> I need to export only 3 pieces of data from weewx into a file.
> The file should contain a single line of text in the following format:
> date;pressure;temperature
>
> The date is in the format "yyyy-MM-dd HH:mm:ss".
> The pressure and temperature are expressed in hPa and °C, respectively
>
> I tried to use the CSV extension and succeeded in
> - single line
> - time-format
>
> However, all sensor data is exported and the delimiter is fixed to , 
> instead of the required ;
>
> Is there any chance to succeed using the CSV extension (e.g. options to 
> define the delimiter as ; instead of , - and options which sensor data is 
> to be exported)?
> Or do I need another extension, or is there even another way?
>
> My searches on "export" and "csv" didn't bring any clues.
>
> In case of interest, this is my use case:
> I want to use temperature and pressure data to calculate "refraction" data 
> for astrophotography using a 10micron telescope mount.
> This mount allows to calculate refraction data automatically if fed with a 
> text file with the specifications above.
> Probably there are more users who might make use of this.
>
> Thank you for any hint,
>
> Herwig
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to