Initial version

This commit is contained in:
Ben Roberts
2020-09-06 00:10:50 +01:00
commit 2b5c99e0cd
7 changed files with 263 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from influxdb import InfluxDBClient
class InfluxClient:
def __init__(self, server, port, database):
self.server = server
self.port = port
self.database = database
self.client = InfluxDBClient(
host=self.server,
port=self.port,
database=self.database)
def write_points(self, body):
self.client.write_points(body)