109 Commits

Author SHA1 Message Date
cc1a5bb09d Change the UpdateListener API to me more ergonomic 2020-09-30 17:29:05 -06:00
6e596a2ef3 Split remaining mqtt stuff into sprinklers_mqtt 2020-09-30 16:16:31 -06:00
eff5e0c703 Split out actors into sprinklers_actors 2020-09-30 15:55:59 -06:00
ffef2eb50c Split out database stuff into sprinklers_database 2020-09-30 15:38:43 -06:00
3b96f2019d Split out core types into sprinklers_core 2020-09-30 15:31:31 -06:00
174d69fbcc Prepare for splitting things into separate packages
Move everything into a sprinklers_rs package and create cargo workspace
2020-09-30 15:05:45 -06:00
2eb64bbdc0 Implement cancelling program 2020-09-30 14:58:26 -06:00
f4c82ada2e Remove ad-hoc program modification
Now we can run from MQTT to test
2020-09-30 14:42:58 -06:00
4f030e7bcd Add ability to run program from MQTT 2020-09-30 14:42:23 -06:00
6043f4bac7 More consistent MQTT error messages 2020-09-30 14:42:05 -06:00
b8a9c24444 Improve program runner error 2020-09-30 14:41:45 -06:00
4e1e64d1b9 Improve mqtt request logging 2020-09-30 14:41:09 -06:00
c7941372bf Implement pausing section runner from MQTT 2020-09-30 14:13:06 -06:00
2ad00b4b69 Fix missing futures-util feature
The issue is actually in actix 0.10.0
2020-09-30 14:06:30 -06:00
2f53940ebe Remove actix DNS resolver 2020-09-30 14:05:14 -06:00
faae15509b Implement cancelling section runs over MQTT 2020-09-30 13:48:32 -06:00
b72d89e1dd Implement cancelling by section from MQTT 2020-09-30 11:59:59 -06:00
5f3f417040 Refactor out requests 2020-09-30 10:59:35 -06:00
af0998a719 Implement running sections through MQTT 2020-09-29 23:25:28 -06:00
9e8385d74d Refactor mqtt stuff 2020-09-29 19:23:33 -06:00
25987475dd Fix warning in section_runner.rs 2020-09-29 18:11:12 -06:00
1eb1d2b058 Use actix for MQTT interface 2020-09-29 18:10:49 -06:00
4eb03f2e22 Use actix for update_listener 2020-09-29 18:09:24 -06:00
709f8c2760 Use rumqtt 0.1.0 2020-09-29 13:43:21 -06:00
d79584eb65 Update rumqtt version 2020-09-28 20:16:39 -06:00
fc8821171a Use actix for program_runner 2020-09-28 20:15:43 -06:00
9643923428 Use actix for section runner 2020-09-28 15:27:34 -06:00
7541618ec8 Implement section runner state publishing 2020-09-28 13:21:56 -06:00
742a00892d Shorted MQTT publishing code 2020-09-27 22:20:15 -06:00
cc88083b19 Publish program running state 2020-09-27 22:12:24 -06:00
cf9a7a02ef Don't panic if events are lagged 2020-09-27 22:04:37 -06:00
244eea66eb Fix potential of deadlock with MQTT 2020-09-27 21:51:36 -06:00
794ecae2a1 Fix tests due to trace spans 2020-09-27 21:12:10 -06:00
9122bd8755 Fix trace spans 2020-09-27 21:11:09 -06:00
4e21e7b96a Use built in MQTT reconnection behavior 2020-09-27 20:41:42 -06:00
f9cdb0e57b Implement proper quit behavior for update_listener 2020-09-27 20:41:27 -06:00
387cc42331 Fix tests after changing span logs 2020-09-27 20:15:21 -06:00
4fc6d24de1 Change some logging 2020-09-27 20:14:22 -06:00
63fd0be100 Implement mqtt section states 2020-09-27 19:03:24 -06:00
46fab5b50f Use immutable collections in section_runner 2020-09-27 18:28:18 -06:00
cfde268603 Add publishing of section states 2020-09-27 18:27:14 -06:00
239a289e4e Publish programs 2020-09-27 17:05:29 -06:00
b5b87fe587 Fix json naming of ProgramItem section_id to use camelCase 2020-09-27 17:00:00 -06:00
2270c69f2b Add support for publishing sections 2020-09-27 16:54:40 -06:00
12c326ad86 Update rusqlite version 2020-09-27 16:00:01 -06:00
dc724ec2ba Remove unused import in schedule 2020-09-27 15:59:45 -06:00
68b303e32d Synchronous runner quit for determinism 2020-09-27 15:21:03 -06:00
effd3d8ec1 Add message on startup 2020-09-24 19:14:26 -06:00
7efb3b81bd Fix program sequences db view 2020-09-20 18:46:18 -06:00
10f1003b56 Move most db stuff to database module 2020-09-20 17:42:11 -06:00