Browse Source

Raspian 11 update; python3

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

+ 3
- 4
foodoord_unten View File

@ -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')


Loading…
Cancel
Save