|
@@ -11,7 +11,7 @@ import numpy as np
|
|
|
import re
|
|
import re
|
|
|
import os
|
|
import os
|
|
|
from influxdb import InfluxDBClient
|
|
from influxdb import InfluxDBClient
|
|
|
-client = InfluxDBClient(host="localhost", port=8086, username="influxdb", password="influxdbTSGAMES")
|
|
|
|
|
|
|
+client = InfluxDBClient(host="localhost", port=8086, username="influxdb", password="influxdbTSGAMES", timeout=120_000)
|
|
|
client.create_database("influxdb")
|
|
client.create_database("influxdb")
|
|
|
client.switch_database('influxdb')
|
|
client.switch_database('influxdb')
|
|
|
class SolarMonitor:
|
|
class SolarMonitor:
|