-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stops sending temp / sensors folder gone. #104
Comments
I had the same issue. There’s some messages in GitHub with regard to this. I have resolved this by getting the system to auto reboot the sensor. I wire the 3V supply from GPIO3 Pin5 with Pin7 the data pin GPIO4 and Pin9 the ground (all next to each other). GPIO3 by default is powered at start-up. I then have the python code (below) run every 10 minutes using Crontab. If it can’t find a 28- directory it powers down pin 3 from ½ second and appends to a log file the current time and date (allow you to track when it’s happening).
At the commandline type
CRONTAB –E
and then in the text editor that loads add to the end
*/10 * * * * sudo python /home/pi/Restart.py
Restart.py saved into your home directory (where you load into using SSH)
\\START
import RPi.GPIO as GPIO
import time
import glob
import os
import sys
import time
import datetime
def check_directory():
if glob.glob('/sys/devices/w1_bus_master1/28-*/w1_slave')==[]:
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(3,GPIO.OUT)
GPIO.output(3,GPIO.LOW)
time.sleep(0.5)
GPIO.output(3,GPIO.HIGH)
ts = time.time()
sttime = datetime.datetime.fromtimestamp(ts).strftime('%d/%m/%Y %H:%M:%S')
f=open("Restart_Log.txt","a+")
f.write(sttime + '\n')
f.close
check_directory()
\\END
…--
Regards,
Alistair Fielden
10 Caister Close, Seaham, County Durham, SR7 7WP
0753 800 1013
<mailto:[email protected]> [email protected]
From: Pliggen <[email protected]>
Sent: 10 July 2020 15:14
To: tobyweston/temperature-machine <[email protected]>
Cc: Subscribed <[email protected]>
Subject: [tobyweston/temperature-machine] Stops sending temp / sensors folder gone. (#104)
Hi! Installed this with a ds18b20 and a rpi zero, and got it running for some hours. But then suddenly it stops showing temperature and the graphs for 24 hours is not available.
I check the /sys/bus/w1/devices folder and now the 28xxxxx folder is gone.
Only way to get it running again is to pull the power and restart the raspberry pi. Just a restart in command line dont solve this.
Tried several ds18b20 sensor and they all do this.
Any ideas what can be the reason for this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#104> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMDBJD3UKG6VJEJWBE7IDD3R24OY7ANCNFSM4OWUGPXA> . <https://github.com/notifications/beacon/AMDBJD46F5HYQKYXVX7PBOTR24OY7A5CNFSM4OWUGPXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JYHUHOA.gif>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Installed this with a ds18b20 and a rpi zero, and got it running for some hours. But then suddenly it stops showing temperature and the graphs for 24 hours is not available.
I check the /sys/bus/w1/devices folder and now the 28xxxxx folder is gone.
Only way to get it running again is to pull the power and restart the raspberry pi. Just a restart in command line dont solve this.
Tried several ds18b20 sensor and they all do this.
Any ideas what can be the reason for this?
The text was updated successfully, but these errors were encountered: