Commit Graph

379 Commits

Author SHA1 Message Date
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
Ralf Ramsauer f294617e7f pydoorlock: Add license headers
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:26:04 +02:00
Ralf Ramsauer 4609fa52f5 pydoorlock: minor stylistic fixups
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:56 +02:00
Ralf Ramsauer 92b791a835 pydoorlock: doorlockd: make callbacks running again
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:51 +02:00
Ralf Ramsauer 9e94d858ec pydoorlock: Doorlock: remove redundant parentheses
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:44 +02:00
Ralf Ramsauer d6d90e9f70 doorlockd: move DoorHandler to Doorlock.py
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:40 +02:00
Ralf Ramsauer aa3369baa8 doorlockd: move all scripting stuff to DoorHandler
Use this chance to get rid of most global variables.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:37 +02:00
Ralf Ramsauer bb65e38640 doorlockd: make {static,templates}_folder local
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:35 +02:00
Ralf Ramsauer ae358d403c doorlockd: move sounds to DoorHandler
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:31 +02:00
Ralf Ramsauer 00f74d69f9 pydoorlock: Refactor LogicResponse to DoorlockResponse
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:23 +02:00
Ralf Ramsauer 8d37886ee1 doorlockd: propagate cfg through Logic
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:19 +02:00
Ralf Ramsauer 5b296b777d pydoorlock: WebApp: outsource WebApp
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:17 +02:00
Ralf Ramsauer 2cdf9d1b27 pydoorlock: Condense locality of Flask stuff
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:13 +02:00
Ralf Ramsauer 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
Ralf Ramsauer faecb6b98f pydoorlock: switch to new config parser
We want to use doorlockd for more than just serving webapps. Get rid of the
Flask config parser and use python's own config parser.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:06 +02:00
Ralf Ramsauer aaaad9b6ef pydoorlock: Extract WebApp pt. 1
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:02 +02:00
Ralf Ramsauer d1855bf77d pydoorlock: extract DoorState
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:24:54 +02:00
Ralf Ramsauer 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
Ralf Ramsauer 7e26fa0cd6 doorlockd: remove superfluous code
No more users, drop it.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-08 00:24:36 +02:00
Ralf Ramsauer 147c4cff0c Bump version number: 2.0-rc1
Release 2.0-rc1

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 03:48:15 +02:00
Ralf Ramsauer 69cbf48bae Make sounds working again
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 03:47:34 +02:00