Commit Graph

194 Commits

Author SHA1 Message Date
Gregor Reitzenstein
cda947a0e9 No more priority pls 2021-01-20 11:55:15 +00:00
Gregor Reitzenstein
53564b6bca Also point at the correct global config file... <.< 2020-12-16 14:47:13 +01:00
Gregor Reitzenstein
d4da25b0d7 Load passdb \o/ 2020-12-16 14:28:21 +01:00
Gregor Reitzenstein
d568d46212 Load roles into the accessdb 2020-12-16 14:04:50 +01:00
Gregor Reitzenstein
8f5cea673b Put the users in the db as well 2020-12-16 13:51:47 +01:00
Gregor Reitzenstein
78e7d45614 Users loading, noot noot! 2020-12-16 13:30:04 +01:00
Gregor Reitzenstein
a279a2ed48 Actually implement fill_info in a way that compiles. ^^' 2020-12-16 12:49:56 +01:00
Gregor Reitzenstein
cfa71f8be2 Implements fill_info 2020-12-16 12:42:14 +01:00
Gregor Reitzenstein
7bdbdac86b Properly stop api server 2020-12-16 12:27:34 +01:00
Gregor Reitzenstein
be73385758 Properly start api server 2020-12-16 12:24:19 +01:00
Gregor Reitzenstein
cca5bddbb8 Implement parts of the Machine API 2020-12-16 11:32:31 +01:00
Gregor Reitzenstein
ec20859f6d Pass Arc<Network> to everywhere 2020-12-15 13:12:22 +01:00
Gregor Reitzenstein
7b5d8de93f Pass network 2020-12-15 13:04:03 +01:00
Gregor Reitzenstein
6d5802c0a5 Fix dependency check error. Network now works. \o/ 2020-12-14 14:45:16 +01:00
Gregor Reitzenstein
1dc8dc4710 Even more improved init 2020-12-14 12:39:01 +01:00
Gregor Reitzenstein
5a42b34fe3 Better initialization 2020-12-14 11:02:46 +01:00
Gregor Reitzenstein
02570fea6f move config to Dhall 2020-12-12 13:58:04 +01:00
Gregor Reitzenstein
492aab630a Mark ToDo 2020-12-09 18:44:52 +01:00
Gregor Reitzenstein
fe6db0b045 Reimplements shelly 2020-12-09 11:14:45 +01:00
Gregor Reitzenstein
bb73b62722 Fixes that stupid error 2020-12-09 11:14:17 +01:00
Gregor Reitzenstein
21d6abda24 Move Sensor into initiator.rs 2020-12-09 10:51:47 +01:00
Gregor Reitzenstein
fc477d2d56 Move Actuator into actor.rs 2020-12-09 10:49:58 +01:00
Gregor Reitzenstein
a8af3b287e Move initialization and recon into network 2020-12-07 15:58:25 +01:00
Gregor Reitzenstein
81ea99405c Add EventNetwork manage struct 2020-12-07 14:39:35 +01:00
Gregor Reitzenstein
a16712c66f Load Machines 2020-12-07 12:27:53 +01:00
Gregor Reitzenstein
6fbf63a7b9 Remove unused handshake code 2020-12-07 12:13:50 +01:00
Gregor Reitzenstein
d0fe576d62 Status 2020-12-07 12:11:07 +01:00
Gregor Reitzenstein
c1c34aa703 Working statekeeping 2020-12-02 17:15:25 +01:00
Gregor Reitzenstein
c5d733d888 Make compile 2020-12-02 17:12:25 +01:00
Gregor Reitzenstein
5a4b03a16c Initiators first concept 2020-12-02 16:20:50 +01:00
Gregor Reitzenstein
fc1aea2f96 Shortcuts 2020-12-02 13:36:14 +01:00
Gregor Reitzenstein
8e3b8834c0 Async actor runs now 2020-12-02 11:46:46 +01:00
Gregor Reitzenstein
f4148d398f Sync Actor works now 2020-12-02 11:31:17 +01:00
Gregor Reitzenstein
6cf4b1d078 Turns out none of that works. 2020-12-01 16:06:39 +01:00
Gregor Reitzenstein
1041afd0ab Network'd 2020-12-01 10:21:39 +01:00
Gregor Reitzenstein
4ee94b260b Run the event network 2020-12-01 09:44:18 +01:00
Gregor Reitzenstein
8c1fbfd1a9 Machines refactor #2 2020-12-01 08:39:34 +01:00
Gregor Reitzenstein
737b05c012 Adds singleton machines 2020-11-30 16:12:52 +01:00
Gregor Reitzenstein
dcda1accfe Split out main further 2020-11-30 16:12:40 +01:00
Gregor Reitzenstein
a0d60a574f Main refactor #2 2020-11-30 15:05:25 +01:00
Gregor Reitzenstein
e08b9e43d8 Main refactor #1 2020-11-30 15:05:16 +01:00
Gregor Reitzenstein
cc40cde831 Refactor machines somewhat 2020-11-30 14:08:03 +01:00
Gregor Reitzenstein
65841f5046 Remove Handshake as C# can't handle it 2020-11-30 07:24:07 +01:00
Gregor Reitzenstein
7e9002aa94 Password DB and other shenanigans 2020-11-30 07:23:47 +01:00
Gregor Reitzenstein
7956616891 Actually make compile for once. 2020-11-24 15:57:23 +01:00
Gregor Reitzenstein
5c5a59a75c Make compile (well.. not really) 2020-11-24 14:41:19 +01:00
Gregor Reitzenstein
b203edf206 Status commit 2020-11-24 14:16:22 +01:00
Gregor Reitzenstein
9227b632e4 Ideas 2020-11-24 10:44:53 +01:00
Gregor Reitzenstein
2fbb1bb4b6 Whoops, forgot the handshake 2020-11-20 15:54:53 +01:00
Gregor Reitzenstein
cbb6242f89 Get an example to work — barely. 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
e7bbc7e001 Lots of changes for better API stuffs 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
f8b9874f08 Now with better file loading stuffs 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
4b9070fd17 Now with more better tests 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
3b63e654e5 Pushes code around until example loading compiles 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
5d9c1d5a64 Cleanup 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
5f75dd0925 Api restructure zum zweiten 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
220942b80a Session / Connection / Bootstrap split 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
a057ffa4d8 API cleanup 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
0fef683f41 Removes unused builtin.rs 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
378c184342 Module refactor for consistency 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
448cbbc98a Permission checking upgrades 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
5897161a3c Make compile 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
3a459fc098 Current state for tagging 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
8442a3d29d Slowly getting there 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
743de370ab Silences the dead cap'n proto code warnings 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
62e1e9276f Splits off MachineDB 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
7b9d3cd560 ununimpl API impl 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
4339537ec9 Make compile with tests 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
2027d9696e Make compile 2020-11-20 15:44:02 +01:00
Gregor Reitzenstein
d304ff40d4 Adds permission type 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
cd609df85f Further ideas on database restructure 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
72a9d8c639 Moves databases around a touch 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
c25983d48c Start Database restructure 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
f997c93c23 More work on the API implementation 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
87102b9f5d More Schema updates 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
91a17e6b57 Updates rsasl 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
36745683e0 Updates schema 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
691338aca7 Move signal handler away from tokio 2020-11-20 15:44:01 +01:00
Gregor Reitzenstein
ce8ba084d5 Remove in-promptu test code 2020-09-18 13:20:04 +02:00
Gregor Reitzenstein
9d7ba0eeda MachineDB dump/load 2020-09-18 13:14:24 +02:00
Gregor Reitzenstein
026aa40019 Look ma, an event network! 2020-09-18 12:34:18 +02:00
Gregor Reitzenstein
7a876a538d Status commit 2020-09-17 21:12:30 +02:00
Gregor Reitzenstein
e0c1ce868d Make Actuator trait non-async 2020-09-17 16:05:46 +02:00
Gregor Reitzenstein
173ef6d055 Ensure the task polling a shelly stream gets woken up if shelly is subscribed to something 2020-09-17 16:01:56 +02:00
Gregor Reitzenstein
33d9d76755 Cleanup 2020-09-17 15:47:41 +02:00
Gregor Reitzenstein
f4d5a70841 Actually make the shellies switch 2020-09-17 15:45:43 +02:00
Gregor Reitzenstein
4bd62216e2 Subscriber is Actuator now 2020-09-17 15:36:42 +02:00
Gregor Reitzenstein
0ea9177e14 Moves actuators to be coroutines 2020-09-17 15:34:35 +02:00
Gregor Reitzenstein
7e6748ad15 Error is not Send ¯\(ツ)/¯ 2020-09-17 14:34:57 +02:00
Gregor Reitzenstein
c943e78cc6 Move modules back to threadpool 2020-09-17 14:32:53 +02:00
Gregor Reitzenstein
267ff63016 Improves lifetimes to be more ergonomic 2020-09-17 11:57:45 +02:00
Gregor Reitzenstein
637490bd75 Add sensors registry to global registries 2020-09-17 11:46:05 +02:00
Gregor Reitzenstein
fc1480314f Adds Sensors registry 2020-09-17 11:43:55 +02:00
Gregor Reitzenstein
406cebadb8 Sensor implementation draft 2020-09-17 11:20:55 +02:00
Gregor Reitzenstein
2686ea112f Refines machines 2020-09-17 10:51:51 +02:00
Gregor Reitzenstein
5bd5cd57df Using events 2020-09-17 10:18:02 +02:00
Gregor Reitzenstein
053cf5498a rustc is forgiving but I still don't like it 2020-09-17 09:10:10 +02:00
Gregor Reitzenstein
f53b4eac8e Adds an event network draft 2020-09-17 09:01:00 +02:00
Gregor Reitzenstein
9e7b18e742 Writing down ideas for event networks and their handling 2020-09-15 17:17:00 +02:00
Gregor Reitzenstein
da5452f90f Signal deduping 2020-09-15 17:04:13 +02:00