|
@@ -23,7 +23,7 @@ from stddlib import daemon
|
|
|
from Adafruit_LED_Backpack import SevenSegment
|
|
|
|
|
|
|
|
|
-PARSER = OptionParser(prog="stdd", version="%prog 0.9.7", add_help_option=True)
|
|
|
+PARSER = OptionParser(prog="stdd", version="%prog 0.9.8", add_help_option=True)
|
|
|
PARSER.add_option("-d", "--daemon", action="store_true", dest="daemon",
|
|
|
help="run stdd as daemon")
|
|
|
PARSER.add_option("-u", "--user", dest="user", help="define an unprivileged \
|
|
@@ -125,7 +125,8 @@ if OPTIONS.daemon:
|
|
|
|
|
|
# Initialize the display object
|
|
|
DISPLAY = SevenSegment.SevenSegment(address=int(CONFIG.hw_address))
|
|
|
-LOGGER.debug("opened hardware address" % CONFIG.hw_address)
|
|
|
+DISPLAY.begin()
|
|
|
+LOGGER.debug("opened hardware address %s", CONFIG.hw_address)
|
|
|
|
|
|
# Set the brightness according to the configuration
|
|
|
if CONFIG.set_brightness_high < datetime.datetime.now().time()\
|