Browse Source

Update to Raspbian 11; using python3

master
Bandie 2 weeks ago
parent
commit
5d475701e6
Signed by: Bandie GPG Key ID: 843D7FA93BA46312
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      foodoord_oben

+ 3
- 4
foodoord_oben View File

@ -1,18 +1,17 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# vim: ts=2 sw=2 et
import os
import stat
import time
import pifacedigitalio
import urllib2
import signal
import sys
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')


Loading…
Cancel
Save