The dyslexia fix
This commit is contained in:
parent
359720e566
commit
1f0ed1267a
3 changed files with 11 additions and 4 deletions
7
debian/postinst
vendored
7
debian/postinst
vendored
|
|
@ -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
|
# Go through every setting in the old config and apply it to the new file
|
||||||
for section in oldConf.sections():
|
for section in oldConf.sections():
|
||||||
for (key, value) in oldConf.items(section):
|
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 config is still using the old device_id parameter, convert it to a path
|
||||||
if key == "device_id":
|
if key == "device_id":
|
||||||
key = "device_path"
|
key = "device_path"
|
||||||
value = "/dev/video" + value
|
value = "/dev/video" + value
|
||||||
|
|
||||||
|
# MIGRATION 2.4.0 -> 2.5.0
|
||||||
|
# Finally correct typo in "timout" config value
|
||||||
|
if key == "timout":
|
||||||
|
key = "timeout"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
newConf.set(section, key, value)
|
newConf.set(section, key, value)
|
||||||
# Add a new section where needed
|
# Add a new section where needed
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ timings.append(time.time())
|
||||||
max_height = int(config.get("video", "max_height"))
|
max_height = int(config.get("video", "max_height"))
|
||||||
|
|
||||||
# Fetch config settings out of the loop
|
# Fetch config settings out of the loop
|
||||||
timeout = config.getint("video", "timout")
|
timeout = config.getint("video", "timeout")
|
||||||
dark_threshold = config.getfloat("video", "dark_threshold")
|
dark_threshold = config.getfloat("video", "dark_threshold")
|
||||||
end_report = config.getboolean("debug", "end_report")
|
end_report = config.getboolean("debug", "end_report")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ ignore_ssh = true
|
||||||
|
|
||||||
# Auto dismiss lock screen on confirmation
|
# Auto dismiss lock screen on confirmation
|
||||||
# Will run loginctl unlock-sessions after every auth
|
# 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
|
dismiss_lockscreen = false
|
||||||
|
|
||||||
# Disable howdy in the PAM
|
# Disable howdy in the PAM
|
||||||
|
|
@ -27,7 +27,7 @@ disabled = false
|
||||||
certainty = 3.5
|
certainty = 3.5
|
||||||
|
|
||||||
# The number of seconds to search before timing out
|
# The number of seconds to search before timing out
|
||||||
timout = 4
|
timeout = 4
|
||||||
|
|
||||||
# The path of the device to capture frames from
|
# The path of the device to capture frames from
|
||||||
# Should be set automatically by the installer
|
# Should be set automatically by the installer
|
||||||
|
|
@ -38,7 +38,7 @@ device_path = none
|
||||||
max_height = 320
|
max_height = 320
|
||||||
|
|
||||||
# Force the use of Motion JPEG when decoding frames, fixes issues with
|
# Force the use of Motion JPEG when decoding frames, fixes issues with
|
||||||
# YUYV raw frame deconding
|
# YUYV raw frame decoding
|
||||||
force_mjpeg = false
|
force_mjpeg = false
|
||||||
|
|
||||||
# Set the camera input profile to this width and height
|
# Set the camera input profile to this width and height
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue