Read the statement by Michael Teeuw here.
Bottle py - freezes raspberry pi
-
Hi,
I’m using Bottle: Python Web Framework to control a relay on the raspberry pi. When I start the python script everything runs fine, but after a certain time (half an our or so) the pi freezes completely.
from bottle import route, run import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.cleanup() GPIO.setmode(GPIO.BCM) GPIO.setup(5, GPIO.OUT) @route('/on') def on(): GPIO.output(5,GPIO.LOW) return("ON") @route('/off') def off(): GPIO.output(5,GPIO.HIGH) return("OFF") @route('/status') def status(): return GPIO.input(5) run(host="0.0.0.0", port=8070)anyone with more python experience that can give a helping hand?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login