24288092cb
ansible: remove trailing whitespaces
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
a6ab10c208
ci: Makefile: improve Makefile
...
make it more robust.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
096bbdf4b7
ci: Makefile: let qemu_img be the main target
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
ac1bb73303
gitignore: add ci/out
...
Our artefacts go there -- ignore them
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
c5dd278274
add ansible vault password file to .gitignore
...
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
2e3c7e86f0
add ansible roles for automatic deployment to any arch linux system
2019-07-08 22:54:37 +02:00
639f36a35b
ci: Makefile: Automount /boot
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
2e8341381c
ci: Initial support for doorlock emulation in qemu arm
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00
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
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
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
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
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
8bc75bc0f6
PKGBUILD: add missing dependency pyserial
...
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-06-19 00:26:51 +02: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
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
caab43f4d3
Introduce etc directory
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:41:59 +02:00
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
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
e27f6d02da
pydoorlock: autogenerate Protocol.py
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:37:47 +02:00
becb21bbbc
Makefile: Add a proper clean rule
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:37:38 +02:00
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
b5154faecd
Makefile: Add a proper package rule
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-14 21:30:53 +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
5645ba22c9
Release v2.0
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-02-22 20:15:22 +01:00
209ccb3ba3
doorlockd: update copyright
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-02-22 20:13:32 +01:00
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
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
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
90ea795c1b
configs: fix RUN_HOOKS
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-18 02:56:28 +02:00
af647c0ae4
scripts: remove wol of cashdesk
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 22:05:55 +02:00
11998b9f8b
PKGBUILD: add python-pip as dependency
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 22:04:39 +02:00
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
95e578baf6
fix doorlockd config
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:48:13 +02:00
2ffa0e1b67
pydoorlock: install pydoorlock via pip
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:48:13 +02:00
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
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
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
bb65e38640
doorlockd: make {static,templates}_folder local
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:35 +02:00
ae358d403c
doorlockd: move sounds to DoorHandler
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:31 +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