From d13934e3d43037d5c8b6c26041fd9f318b45bf4c Mon Sep 17 00:00:00 2001 From: dbsqp <5895806+dbsqp@users.noreply.github.com> Date: Sat, 29 Jul 2023 20:45:29 +0200 Subject: [PATCH] Update nut-influxdbv2-exporter.py --- nut-influxdbv2-exporter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nut-influxdbv2-exporter.py b/nut-influxdbv2-exporter.py index c91280a..6a6ee03 100644 --- a/nut-influxdbv2-exporter.py +++ b/nut-influxdbv2-exporter.py @@ -7,6 +7,10 @@ from influxdb_client import InfluxDBClient, Point, WriteOptions from influxdb_client.client.write_api import SYNCHRONOUS import json, socket +import requests +from requests.packages.urllib3.exceptions import InsecureRequestWarning + +requests.packages.urllib3.disable_warnings(InsecureRequestWarning) # NUT related variables