stdevel / check_dht Goto Github PK
View Code? Open in Web Editor NEWA Nagios / Icinga plugin for checking humidity and temperature of DHT sensors via GPIO
License: GNU General Public License v3.0
A Nagios / Icinga plugin for checking humidity and temperature of DHT sensors via GPIO
License: GNU General Public License v3.0
Hi,
i try to use your script but i get only errors :(
pi@bastel-pi:~/temperature/Adafruit_Python_DHT $ ./check_dht.py -s AM2302 -H -d -g 7 -W 25 -C 30
DEBUG:check_dht:{'warningHumiThres': 25, 'humiOnly': True, 'tempUnit': 'celsius', 'tempOnly': False, 'sensorType': 'AM2302', 'warningTempThres': 0, 'criticalHumiThres': 30, 'criticalTempThres': 0, 'debug': True, 'sensorPin': 7}
Traceback (most recent call last):
File "./check_dht.py.1", line 125, in <module>
humidity, temperature = Adafruit_DHT.read_retry(sensor, options.sensorPin)
File "/opt/temperature/Adafruit_Python_DHT/Adafruit_DHT/common.py", line 90, in read_retry
humidity, temperature = read(sensor, pin, platform)
File "/opt/temperature/Adafruit_Python_DHT/Adafruit_DHT/common.py", line 76, in read
platform = get_platform()
File "/opt/temperature/Adafruit_Python_DHT/Adafruit_DHT/common.py", line 48, in get_platform
from . import Raspberry_Pi
File "/opt/temperature/Adafruit_Python_DHT/Adafruit_DHT/Raspberry_Pi.py", line 22, in <module>
from . import Raspberry_Pi_Driver as driver
ImportError: cannot import name Raspberry_Pi_Driver
cloned yesterday the Adafruit_Python_DHT git. i think there was changes that make your script wont work any more.
do you still use your own script?
do you make an update?
Utilizing the nagiosplugin
python module would simplify maintaining the code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.