Commit Graph

399 Commits

Author SHA1 Message Date
Thomas e50fe08267 WebApp: Api: "status" command without credentials
This allows the "status" command to be executed without credentials.

Signed-off-by: Thomas Schmid <tom@lfence.de>
2024-01-13 20:49:23 +01:00
Ralf Ramsauer ae989da661 Port doorstate to latest libgpiod python bindings
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2024-01-12 23:12:43 +01:00
Thomas 96fc3ba973 Doorlock.py: make eperm_insults a list
choose_insult fails with a dict, so make it a list.

Signed-off-by: Thomas Schmid <tom@lfence.de>
2023-11-04 22:30:47 +01:00
Ralf Ramsauer 1c403437b3 Authenticator: Add blacklist
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2022-12-08 21:14:03 +01:00
Markus 18264b0449 Makefile: use setup.py instead of pip
Abandons the strange 'dependency_links.txt'-bug.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2021-11-22 22:07:34 +01:00
Markus b086696879 setup: specify requirements 2021-11-22 22:06:12 +01:00
Ralf Ramsauer 5419d4587a setup.py: remove pending newline
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2021-11-22 22:05:30 +01:00
Markus 15ff2c0293 WebApp: remove duplicate function definition 2021-11-22 21:45:11 +01:00
Markus ebb0ea0527 Config: reformat whitespace according to PEP8 2021-11-22 21:45:11 +01:00
Markus 94ee9de2ee Authenticator: reformat whitespace accoring to PEP8 2021-11-22 21:45:11 +01:00
Markus aa5999203c WebApp: reformat whitespace according to PEP8 2021-11-22 21:45:11 +01:00
Markus 1f27ebafdb WebApp: remove unused import 2021-11-22 21:45:11 +01:00
Markus b7000388bc Door: mark from_string as static method 2021-10-18 18:06:51 +02:00
Thomas 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
Ralf Ramsauer f1c267dc94 doorstate: systemd: auto-restart failed doorstate
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2020-06-06 21:44:18 +02:00
Ralf Ramsauer 8c0ba51e9b doorstate: publish state on startup
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2020-06-06 21:26:59 +02:00
Ralf Ramsauer 58e93f4e15 systemd: add network-online target
Prevents crashes during bootup.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2020-01-09 01:12:08 +01:00
Ralf Ramsauer 8b49c2f332 doorstate: automatically reconnect if mqtt broker fails
We had a bug: doorstate didn't reconnect to the broker if it temporarily
disappeared.

Fix this by using start_loop() (which starts a thread that observes the
broker and automatically reconnects) instead of the synchronous loop()
method.

Thomas Basler <github.thomas@familie-basler.net>
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-07 23:16:18 +02:00
Ralf Ramsauer 71e55ec523 doorstate: reduce logging output
Remove unnecessary output

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-07 23:03:24 +02:00
Ralf Ramsauer c8503f46e8 VERSION: open 2.1 development cycle
Better late than never: open the 2.1 development cycle

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-23 23:41:29 +02:00
Ralf Ramsauer 7500a16fc1 gitignore: remove gpio-wait
gpio-wait is not existing any longer.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-23 23:40:29 +02:00
Ralf Ramsauer 07a0ac5307 doorstate: reimplement doorstate in python
Furthermore, add initial support for the alarm topic.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-23 23:17:31 +02:00
Thomas 8bc75bc0f6 PKGBUILD: add missing dependency pyserial
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-06-19 00:26:51 +02:00
Ralf Ramsauer 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
Ralf Ramsauer 1e5f7c3ec4 Config: allow multiple config topics
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:42:01 +02:00
Ralf Ramsauer 6fc923a371 doorstate: Use variable instead of constant value
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:42:01 +02:00
Ralf Ramsauer caab43f4d3 Introduce etc directory
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:41:59 +02:00
Ralf Ramsauer 95b6550e49 Makefile: introduce more variables
Instead of repeating things.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:33:31 +02:00
Ralf Ramsauer 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
Thomas bdfcf29075 move Config class to pydoorlock module
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-06-14 22:01:33 +02:00
Ralf Ramsauer 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
Ralf Ramsauer e27f6d02da pydoorlock: autogenerate Protocol.py
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:37:47 +02:00
Ralf Ramsauer becb21bbbc Makefile: Add a proper clean rule
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:37:38 +02:00
Ralf Ramsauer 6725555af6 avr: use a own header to define constants
We will soon share them with python

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:30:54 +02:00
Ralf Ramsauer b5154faecd Makefile: Add a proper package rule
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:30:53 +02:00
Ralf Ramsauer 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
Thomas 0511fac330 improve authentication log messages
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-06-14 00:29:03 +02:00
Ralf Ramsauer 5645ba22c9 Release v2.0
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-02-22 20:15:22 +01:00
Ralf Ramsauer 209ccb3ba3 doorlockd: update copyright
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-02-22 20:13:32 +01:00
Ralf Ramsauer f264fe803b doorlockd.cfg: move comment
It's at the wrong place...

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-02-22 20:11:36 +01:00
Ralf Ramsauer a942d2a71c certs: remove BKCA
We now have LE certificates.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-02-22 20:07:15 +01:00
Ralf Ramsauer 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
Ralf Ramsauer 90ea795c1b configs: fix RUN_HOOKS
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-18 02:56:28 +02:00
Ralf Ramsauer af647c0ae4 scripts: remove wol of cashdesk
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 22:05:55 +02:00
Ralf Ramsauer 11998b9f8b PKGBUILD: add python-pip as dependency
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 22:04:39 +02:00
Ralf Ramsauer b3715dc42f doorlockd.default.cfg: fall back to default settings
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:49:48 +02:00
Ralf Ramsauer 95e578baf6 fix doorlockd config
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:48:13 +02:00
Ralf Ramsauer 2ffa0e1b67 pydoorlock: install pydoorlock via pip
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:48:13 +02:00
Ralf Ramsauer bc23a8c122 Take version from VERSION
Preparation for pip

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:26:15 +02:00
Ralf Ramsauer 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