läuft
This commit is contained in:
BIN
__pycache__/data_base_influx.cpython-311.pyc
Normal file
BIN
__pycache__/data_base_influx.cpython-311.pyc
Normal file
Binary file not shown.
@@ -8,7 +8,7 @@ class DataBaseInflux:
|
|||||||
self.org = org
|
self.org = org
|
||||||
self.bucket = bucket
|
self.bucket = bucket
|
||||||
self.client = InfluxDBClient(url=self.url, token=self.token, org=self.org)
|
self.client = InfluxDBClient(url=self.url, token=self.token, org=self.org)
|
||||||
self.write_api = self.client.write_api(write_options=None)
|
self.write_api = self.client.write_api()
|
||||||
|
|
||||||
def store_data(self, data: dict):
|
def store_data(self, data: dict):
|
||||||
measurement = "messungen" # Fest auf "messungen" gesetzt
|
measurement = "messungen" # Fest auf "messungen" gesetzt
|
||||||
@@ -30,4 +30,4 @@ db = DataBaseInflux(
|
|||||||
token="Cw_naEZyvJ3isiAh1P4Eq3TsjcHmzzDFS7SlbKDsS6ZWL04fMEYixWqtNxGThDdG27S9aW5g7FP9eiq5z1rsGA==",
|
token="Cw_naEZyvJ3isiAh1P4Eq3TsjcHmzzDFS7SlbKDsS6ZWL04fMEYixWqtNxGThDdG27S9aW5g7FP9eiq5z1rsGA==",
|
||||||
org="allmende",
|
org="allmende",
|
||||||
bucket="allmende_db"
|
bucket="allmende_db"
|
||||||
)
|
)
|
||||||
|
|||||||
52759
terminal_log
52759
terminal_log
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user