Resolved [weewx-user] plot custom variable in select time frame using python matplotlib

2023-01-26 Thread mihec
With some web search, I have a code example that can plot from the weewx.sdb directly. Maybe this will help someone. import sqlite3, pandas , matplotlib.pyplot as plt from datetime import datetime conn = sqlite3.connect("weewx.sdb") c = conn.cursor() def ftoc(t): return float((t-32)/1.8) d

Re: [weewx-user] plot custom variable in select time frame using python matplotlib

2023-01-19 Thread mihec
Thanks, I'll have a look how to do that. Ĩetrtek, 19. januar 2023 ob 20:25:16 UTC+1 je oseba tke...@gmail.com napisala: > WeeWX does not use matplotlib. > > You would have to extract the data from the database, then use it. The > command-line tool "sqlite3 " can emi

Re: [weewx-user] plot custom variable in select time frame using python matplotlib

2023-01-19 Thread Tom Keffer
WeeWX does not use matplotlib. You would have to extract the data from the database, then use it. The command-line tool "sqlite3 " can emit CSV files. On Thu, Jan 19, 2023 at 9:15 AM mihec wrote: > Hi, > I would like to plot e.g. temperature and solar radiation from

[weewx-user] plot custom variable in select time frame using python matplotlib

2023-01-19 Thread mihec
Hi, I would like to plot e.g. temperature and solar radiation from my sqlite3 weewx's database file for the whole last year or just selected season. Is there a code example how to do that? The problem I have is actually to extract the data from the database file. The plotting part I can handle.