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