Raspian 11 update; python3
This commit is contained in:
parent
5d475701e6
commit
aadce7fb1a
@ -1,18 +1,17 @@
|
|||||||
#! /usr/bin/python
|
#! /usr/bin/python3
|
||||||
# vim: ts=2 sw=2 et
|
# vim: ts=2 sw=2 et
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
import time
|
import time
|
||||||
import urllib2
|
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import RPi.GPIO as gpio
|
import RPi.GPIO as gpio
|
||||||
import grp
|
import grp
|
||||||
from ConfigParser import SafeConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
#Read config
|
#Read config
|
||||||
parser = SafeConfigParser()
|
parser = ConfigParser()
|
||||||
parser.read('/etc/foodoord.conf')
|
parser.read('/etc/foodoord.conf')
|
||||||
|
|
||||||
doorapi = parser.get('doorstatus', 'status_url')
|
doorapi = parser.get('doorstatus', 'status_url')
|
||||||
|
Loading…
Reference in New Issue
Block a user