i managed to query the data i need but how do i plot it?
the tutorial i found loads data from a link and i dont think i could do that here
code so far
from typing import NamedTuple
from influxdb import InfluxDBClient
from influxdb.resultset import ResultSet
import pandas as pd
import matplotlib.pyplot as plt
INFLUXDB_ADDRESS =
INFLUXDB_USER =
INFLUXDB_PASSWORD =
INFLUXDB_DATABASE =
client = InfluxDBClient(INFLUXDB_ADDRESS, 8086, INFLUXDB_USER, INFLUXDB_PASSWORD, INFLUXDB_DATABASE)
rs: ResultSet = client.query("SHOW MEASUREMENTS")
print(rs.raw)
'battery'
'humidity'
'temperature'
query = 'SELECT * FROM temperature WHERE time >= now() - {start}d'
rs: ResultSet = client.query(query.format(start=input()))
print(rs.raw["series"]["columns"])