Attempt at stuff
This commit is contained in:
parent
2329d67d16
commit
c90590640f
|
@ -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()
|
||||||
|
|
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue