Search found 1 match

by andrewmoore
Mon Oct 29, 2018 5:24 am
Forum: Open Source Nagios Projects
Topic: check_by_ssh issues running remote Python script
Replies: 1
Views: 1375

check_by_ssh issues running remote Python script

Hi All, I have a Raspberry Pi with a temperature sensor connected via GPIO. To pull the data from the sensor I use the following Python script (get-temp.py). #!/usr/bin/python3 import sys, Adafruit_DHT sensor = Adafruit_DHT.AM2302 pin = 4 temperature = round(Adafruit_DHT.read_retry(sensor, pin)[1],2...