diff --git a/debian/postinst b/debian/postinst index c2035b4..a66ff5b 100755 --- a/debian/postinst +++ b/debian/postinst @@ -53,11 +53,18 @@ if not os.path.exists("/tmp/howdy_picked_device"): # Go through every setting in the old config and apply it to the new file for section in oldConf.sections(): for (key, value) in oldConf.items(section): + + # MIGRATION 2.3.1 -> 2.4.0 # If config is still using the old device_id parameter, convert it to a path if key == "device_id": key = "device_path" value = "/dev/video" + value + # MIGRATION 2.4.0 -> 2.5.0 + # Finally correct typo in "timout" config value + if key == "timout": + key = "timeout" + try: newConf.set(section, key, value) # Add a new section where needed diff --git a/src/compare.py b/src/compare.py index b42dc38..509d751 100644 --- a/src/compare.py +++ b/src/compare.py @@ -89,7 +89,7 @@ timings.append(time.time()) max_height = int(config.get("video", "max_height")) # Fetch config settings out of the loop -timeout = config.getint("video", "timout") +timeout = config.getint("video", "timeout") dark_threshold = config.getfloat("video", "dark_threshold") end_report = config.getboolean("debug", "end_report") diff --git a/src/config.ini b/src/config.ini index 1f577e9..9d68d5a 100644 --- a/src/config.ini +++ b/src/config.ini @@ -14,7 +14,7 @@ ignore_ssh = true # Auto dismiss lock screen on confirmation # Will run loginctl unlock-sessions after every auth -# Expirimental, can behave incorrectly on some systems +# Experimental, can behave incorrectly on some systems dismiss_lockscreen = false # Disable howdy in the PAM @@ -27,7 +27,7 @@ disabled = false certainty = 3.5 # The number of seconds to search before timing out -timout = 4 +timeout = 4 # The path of the device to capture frames from # Should be set automatically by the installer @@ -38,7 +38,7 @@ device_path = none max_height = 320 # Force the use of Motion JPEG when decoding frames, fixes issues with -# YUYV raw frame deconding +# YUYV raw frame decoding force_mjpeg = false # Set the camera input profile to this width and height