From 8db6251fb76516eb75b95709af5764e66dcfcd50 Mon Sep 17 00:00:00 2001 From: manuel83 Date: Wed, 31 Jul 2019 07:58:54 +0200 Subject: [PATCH] changes in plugin controller --- .idea/workspace.xml | 1088 ++++++++++++++---------- cbpi/api/decorator.py | 32 +- cbpi/controller/plugin_controller.py | 129 ++- cbpi/controller/step_controller.py | 25 +- cbpi/controller/system_controller.py | 14 + cbpi/craftbeerpi.py | 8 +- cbpi/extension/dummysensor/__init__.py | 2 +- cbpi/extension/mqtt/__init__.py | 36 + cbpi/extension/mqtt/config.yaml | 2 + cbpi/http_endpoints/http_actor.py | 2 +- cbpi/http_endpoints/http_login.py | 1 - cbpi/http_endpoints/http_plugin.py | 86 ++ cbpi/http_endpoints/http_step.py | 37 +- cbpi/mqtt/__init__.py | 0 cbpi/mqtt/mqtt.py | 89 -- cbpi/mqtt/mqtt_matcher.py | 167 ---- cbpi_cloud/default_broker.yaml | 14 + cbpi_cloud/repo/plugins.yaml | 13 + cbpi_cloud/run.py | 65 ++ config/plugin_list.txt | 15 +- craftbeerpi.db | Bin 53248 -> 53248 bytes tests/test_step.py | 10 +- 22 files changed, 1028 insertions(+), 807 deletions(-) create mode 100644 cbpi/extension/mqtt/__init__.py create mode 100644 cbpi/extension/mqtt/config.yaml create mode 100644 cbpi/http_endpoints/http_plugin.py delete mode 100644 cbpi/mqtt/__init__.py delete mode 100644 cbpi/mqtt/mqtt.py delete mode 100644 cbpi/mqtt/mqtt_matcher.py create mode 100644 cbpi_cloud/default_broker.yaml create mode 100644 cbpi_cloud/repo/plugins.yaml create mode 100644 cbpi_cloud/run.py diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 17a4feb..077ed7f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,36 +3,20 @@ - - - - - - - - - - - + - + - - - - - - - + + - - + + + + - - - @@ -44,13 +28,14 @@ + - + @@ -66,9 +51,10 @@ - + +