--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ba6c819d-a9c5-406e-9854-60af09e81b9b%40googlegroups.com.
If you want the results in metric, it would be best to convert the database first, then dump it to CSV. For how to convert the database, see the section Changing the database unit system in the Customizing Guide.You didn't say what kind of database, but if you use sqlite, the utility sqlite3 can export to CSV. You may need to download it firstsudo apt install sqlite3Thensqlite3 weewx.sdbsqlite> .headers onsqlite> .mode csvsqlite> .output weewx.csvsqlite> select * from archive;This will create a file weewx.csv with the data. It will be in whatever unit system your database is in. Hence, the need to convert first.
On Tue, Apr 21, 2020 at 12:24 PM Janne Prokkola <jannep...@gmail.com> wrote:
--helloI'd like to export my database to csv. Is there any easy way to export US format database to metrics units?I'm building my weather station set up. I'm thinking should I have the database in metrics format or should I stay in US. In Finland I have no use for imperial/US units.best regardsJanne Prokkola
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 weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/79f911de-a153-4968-9dd7-0e35b4c19ba6%40googlegroups.com.