The measurement data is stored into a few local variables: str(timestamp), DBtemperatureString, DBhumidityString, DBairPressureString, DBco2String . You can add your own Python code in livDB.py and write that data into your csv file.
2) The data is stored into liv.db file under /home/pi/liv/livDB. You can look at the data with:
> select * from Measurements;
You can write your own code as a separate Python process that reads the data from the db and converts it into the format of your choice (csv file, etc...)
Thanks for that.
I will certainly look into option 1 and will post the code once it is working.
I find easier to process data afterwards as I need to import them in Libre office calc or similar software.
Thanks for pointing out the .py file and variables !