From aadce7fb1a90f96e1219bc356fab04b27031d3cb Mon Sep 17 00:00:00 2001 From: Bandie Date: Sat, 13 Nov 2021 17:23:46 +0100 Subject: [PATCH] Raspian 11 update; python3 --- foodoord_unten | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/foodoord_unten b/foodoord_unten index 14e70ef..a6d02e2 100755 --- a/foodoord_unten +++ b/foodoord_unten @@ -1,18 +1,17 @@ -#! /usr/bin/python +#! /usr/bin/python3 # vim: ts=2 sw=2 et import os import stat import time -import urllib2 import signal import sys import RPi.GPIO as gpio import grp -from ConfigParser import SafeConfigParser +from configparser import ConfigParser #Read config -parser = SafeConfigParser() +parser = ConfigParser() parser.read('/etc/foodoord.conf') doorapi = parser.get('doorstatus', 'status_url')