Attempt at stuff

This commit is contained in:
Geoffrey Frogeye 2024-07-30 20:24:44 +02:00
parent 2329d67d16
commit c90590640f
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 6 additions and 3 deletions

View file

@ -145,6 +145,9 @@ class Desk:
delta_s = now - self.last_est delta_s = now - self.last_est
if delta_s > self.MAX_EST_INTERVAL: if delta_s > self.MAX_EST_INTERVAL:
# Attempt at fixing the issue of
# the service not working after the night
self._initialize()
self.log.warning( self.log.warning(
"Too long without getting a report, " "Too long without getting a report, "
"assuming the desk might be anywhere now." "assuming the desk might be anywhere now."
@ -262,7 +265,7 @@ class Desk:
if __name__ == "__main__": if __name__ == "__main__":
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
desk = Desk() desk = Desk()

View file

@ -62,7 +62,7 @@ in
description = "Path to the password store entry"; description = "Path to the password store entry";
}; };
selector = lib.mkOption { selector = lib.mkOption {
type = lib.types.str; type = lib.types.nullOr lib.types.str;
default = null; default = null;
description = "If set, will parse the password metadata as YML and use selector (yq) instead of the password."; description = "If set, will parse the password metadata as YML and use selector (yq) instead of the password.";
}; };

View file

@ -23,7 +23,7 @@
actions.update-props = { actions.update-props = {
"session.suspend-timeout-seconds" = 0; "session.suspend-timeout-seconds" = 0;
"dither.method" = "wannamaker3"; "dither.method" = "wannamaker3";
"dither.noise" = 2; "dither.noise" = 4;
}; };
} }
]; ];