Removed lab4.json (now constants in influxdb.py), config.ini to influx.ini
This commit is contained in:
@@ -533,7 +533,7 @@ class SeaInfluxInstrument(SeaInstrument):
|
||||
def __init__(self, inst_name, instrument_config):
|
||||
super().__init__(inst_name, instrument_config)
|
||||
self.db = InfluxDB()
|
||||
self.influx_data_getter = InfluxDataGetter(self.db, json.load(open("./graphs/lab4.json", "r"))["influx"])
|
||||
self.influx_data_getter = InfluxDataGetter(self.db, inst_name)
|
||||
self.device = self.influx_data_getter.get_device_name(int(datetime.now().timestamp()))
|
||||
|
||||
def newClient(self):
|
||||
@@ -545,7 +545,7 @@ class InfluxInstrument(Instrument):
|
||||
|
||||
def __init__(self, instr_name):
|
||||
self.db = InfluxDB()
|
||||
self.influx_data_getter = InfluxDataGetter(self.db, json.load(open("./graphs/lab4.json", "r"))["influx"])
|
||||
self.influx_data_getter = InfluxDataGetter(self.db, inst_name)
|
||||
self.clients = {}
|
||||
self.title = instr_name
|
||||
self.device = self.influx_data_getter.get_device_name(int(datetime.now().timestamp()))
|
||||
|
||||
Reference in New Issue
Block a user