From 8200c48dfc14915c96108118df07c0c5a3a752e9 Mon Sep 17 00:00:00 2001 From: manuel83 Date: Mon, 5 Aug 2019 20:51:20 +0200 Subject: [PATCH] log controller added --- .idea/workspace.xml | 1197 +++++++++--------------- cbpi/api/sensor.py | 14 +- cbpi/cli.py | 10 + cbpi/controller/log_file_controller.py | 119 +++ cbpi/controller/plugin_controller.py | 4 +- cbpi/controller/step_controller.py | 2 - cbpi/controller/system_controller.py | 160 +--- cbpi/craftbeerpi.py | 6 +- cbpi/extension/dummyactor/config.yaml | 3 +- cbpi/extension/dummylogic/config.yaml | 3 +- cbpi/extension/dummysensor/config.yaml | 3 +- cbpi/extension/dummystep/config.yaml | 3 +- cbpi/extension/mqtt/config.yaml | 3 +- cbpi/http_endpoints/http_plugin.py | 4 +- cbpi/http_endpoints/http_system.py | 111 +++ cbpi_cloud/run.py | 3 - config/plugin_list.txt | 8 +- craftbeerpi.db | Bin 53248 -> 53248 bytes sample.py | 70 +- setup.py | 3 +- tests/test_logger.py | 39 + tests/test_utils.py | 3 +- 22 files changed, 807 insertions(+), 961 deletions(-) create mode 100644 cbpi/controller/log_file_controller.py create mode 100644 cbpi/http_endpoints/http_system.py create mode 100644 tests/test_logger.py diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 077ed7f..897d6fb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,21 +3,24 @@ - + + - - - - - - - + + + + + + + - + + + - + - - + + - + + - + @@ -95,101 +99,37 @@ - + - - - - - + + - + - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -198,17 +138,34 @@ - + - - + + - + + + + + + + + + + + + + + + + + + @@ -220,12 +177,6 @@ - RUNNING - update - GOON - GO - TYPE CFG - OK JOB DONE get_ste print( @@ -250,6 +201,12 @@ LIST call handle_action + versio + Sensor1 + array + log + config + glob @@ -265,6 +222,7 @@ $PROJECT_DIR$ $PROJECT_DIR$/cbpi/extension/ui/react/src/views/hardware $PROJECT_DIR$/cbpi + $PROJECT_DIR$/cbpi/http_endpoints @@ -276,24 +234,7 @@ @@ -353,12 +311,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -370,303 +364,53 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +