e7955cab59
update nuki state handling
...
update state handling so that manual state changes of the nuki (key or
button press) are reflected to the internal doorlock state. Refactor
general state handling to support this
Signed-off-by: Thomas Schmid <tom@lfence.de>
2024-01-03 21:56:09 +01:00
03e27930ce
update nuki state handling
...
update state handling so that manual state changes of the nuki (key or
button press) are reflected to the internal doorlock state. Refactor
general state handling to support this
Signed-off-by: Thomas Schmid <tom@lfence.de>
2024-01-03 21:32:22 +01:00
4aac66d8e0
Doorlock Backends: Add license header
...
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-17 18:58:57 +01:00
530b324602
NukiBridge.py, Doorlock.py: Remove print statements
...
Remove some debug print statements or convert it to log.debug()
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-17 18:58:57 +01:00
e3f19ce0b1
DoorlockBackend.py: Fix newline
...
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-17 18:39:49 +01:00
08c9fd9697
Sort Imports
...
Sort imports for AvrDoorlock.py, DoorlockBackend.py, NukiBridge.py,
SimulationBackend.py
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-17 18:38:26 +01:00
94b95c04a7
Add nuki bridge backend
...
Add a backend to support nuki bridges
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-16 21:09:26 +01:00
4825c7346e
Refactor pydoorlock to support multiple backends
...
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-16 21:03:55 +01:00
b189fe7982
Config.py: Add topic support
...
Add support to parse keys under different topics
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-11-16 21:03:52 +01:00
15ff2c0293
WebApp: remove duplicate function definition
2021-11-22 21:45:11 +01:00
ebb0ea0527
Config: reformat whitespace according to PEP8
2021-11-22 21:45:11 +01:00
94ee9de2ee
Authenticator: reformat whitespace accoring to PEP8
2021-11-22 21:45:11 +01:00
aa5999203c
WebApp: reformat whitespace according to PEP8
2021-11-22 21:45:11 +01:00
1f27ebafdb
WebApp: remove unused import
2021-11-22 21:45:11 +01:00
b7000388bc
Door: mark from_string as static method
2021-10-18 18:06:51 +02:00
ed239fb284
Remove socket.io dependency and use http server sent events instead
...
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2020-11-13 00:05:07 +01:00
9828534eae
Config: Move SYSCONFDIR and PREFIX to Config
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:42:01 +02:00
1e5f7c3ec4
Config: allow multiple config topics
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:42:01 +02:00
a774262a3c
pydoorlock: Config: Only use one config file
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 22:49:40 +02:00
bdfcf29075
move Config class to pydoorlock module
...
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-06-14 22:01:33 +02:00
263fc0c687
pydoorlock: use definitions in Protocol.py
...
We now share definitions. Use them.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:37:48 +02:00
e69c314f97
pydoorlock: Doorlock: use run instead of Popen
...
Popen created an object that we need to wait for, run won't. Use a
pseudo-shell, and spawn the process in the background.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 00:49:53 +02:00
0511fac330
improve authentication log messages
...
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-06-14 00:29:03 +02:00
eaf2537d83
Authenticator: automatically choose authentication backend
...
and test other backends, if one fails.
Written-by: Rudolf Mayerhofer <rm@eightyfive.net>
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
[ralf: also remove the authentication method from any other code path]
2018-12-08 01:29:51 +01:00
4a0c096331
pydoorlock: Align API requests to latest changes
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:26:05 +02:00
f294617e7f
pydoorlock: Add license headers
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:26:04 +02:00
4609fa52f5
pydoorlock: minor stylistic fixups
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:56 +02:00
92b791a835
pydoorlock: doorlockd: make callbacks running again
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:51 +02:00
9e94d858ec
pydoorlock: Doorlock: remove redundant parentheses
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:44 +02:00
d6d90e9f70
doorlockd: move DoorHandler to Doorlock.py
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:40 +02:00
00f74d69f9
pydoorlock: Refactor LogicResponse to DoorlockResponse
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:23 +02:00
5b296b777d
pydoorlock: WebApp: outsource WebApp
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:17 +02:00
badeb1945b
pydoorlock: Authenticator: Move all auth-related logic to Authenticator
...
By passing the configuration
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:10 +02:00
aaaad9b6ef
pydoorlock: Extract WebApp pt. 1
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:02 +02:00
d1855bf77d
pydoorlock: extract DoorState
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:24:54 +02:00
55205ad247
doorlockd: First steps towards pydoorlock module
...
Extract Authenticator platform from doorlockd.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:24:51 +02:00