From 7a30acd4c4898e3a6abe7825dd05db39cd713837 Mon Sep 17 00:00:00 2001 From: Tijmen van den Brink Date: Sat, 27 Jun 2020 07:52:04 +0200 Subject: [PATCH] Added Influxdb_client --- contrib/enviroplus-exporter.service | 2 +- enviroplus_exporter.py | 2 +- requirements.txt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/enviroplus-exporter.service b/contrib/enviroplus-exporter.service index b912a73..53a680f 100644 --- a/contrib/enviroplus-exporter.service +++ b/contrib/enviroplus-exporter.service @@ -6,7 +6,7 @@ After=network.target User=pi Group=pi WorkingDirectory=/usr/src/enviroplus_exporter -ExecStart=python /usr/src/enviroplus_exporter/enviroplus_exporter.py --bind=0.0.0.0 --port=8000 +ExecStart=python3 /usr/src/enviroplus_exporter/enviroplus_exporter.py --bind=0.0.0.0 --port=8000 ExecReload=/bin/kill -HUP $MAINPID [Install] diff --git a/enviroplus_exporter.py b/enviroplus_exporter.py index 9b2075e..b69f31d 100755 --- a/enviroplus_exporter.py +++ b/enviroplus_exporter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import random import requests diff --git a/requirements.txt b/requirements.txt index ae031d7..8858a65 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -prometheus-client>=0.7.1 \ No newline at end of file +prometheus-client>=0.7.1 +influxdb-client>=1.8.0