From 061c92a26040d3d5015b5ebd9abd1e9bcdd68265 Mon Sep 17 00:00:00 2001 From: Robert Stein Date: Mon, 21 Dec 2020 09:09:28 +0100 Subject: [PATCH] Initial MultiPrinter --- html-ui/configureprinter.html | 397 ++++++++---- include/MemoryHelper.h | 25 + src/Clients/BasePrinterClient.h | 62 +- src/Clients/BasePrinterClientImpl.cpp | 194 ++---- src/Clients/BasePrinterClientImpl.h | 54 +- src/Clients/Clients.h | 9 - src/Clients/DuetClient.cpp | 163 ++--- src/Clients/DuetClient.h | 17 +- src/Clients/KlipperClient.cpp | 160 ++--- src/Clients/KlipperClient.h | 17 +- src/Clients/OctoPrintClient.cpp | 158 ++--- src/Clients/OctoPrintClient.h | 17 +- src/Clients/PrinterDataStruct.h | 55 +- src/Clients/RepetierClient.cpp | 36 ++ src/Clients/RepetierClient.h | 20 + src/Configuration.h | 39 +- src/Display/NextionDisplay.cpp | 2 +- src/Display/OledDisplay.cpp | 70 +-- src/Global/ClockDataStruct.h | 10 + src/Global/EspController.cpp | 27 + src/Global/EspController.h | 13 + src/Global/GlobalDataController.cpp | 755 ++++++++++++----------- src/Global/GlobalDataController.h | 136 ++-- src/Global/SystemDataStruct.h | 16 + src/Global/WeatherDataStruct.h | 12 + src/Includes.h | 28 +- src/Network/JsonRequestClient.cpp | 14 +- src/Network/TimeClient.cpp | 24 +- src/Network/TimeClient.h | 5 + src/Network/WebServer.cpp | 232 ++++--- src/Network/WebServer.h | 12 +- src/Network/WebserverMemoryVariables.cpp | 297 ++++++--- src/Network/WebserverMemoryVariables.h | 381 ++++++++---- src/main.cpp | 71 ++- 34 files changed, 1972 insertions(+), 1556 deletions(-) create mode 100644 include/MemoryHelper.h delete mode 100644 src/Clients/Clients.h create mode 100644 src/Global/ClockDataStruct.h create mode 100644 src/Global/EspController.cpp create mode 100644 src/Global/EspController.h create mode 100644 src/Global/SystemDataStruct.h create mode 100644 src/Global/WeatherDataStruct.h diff --git a/html-ui/configureprinter.html b/html-ui/configureprinter.html index 84a818c..5f7c4f0 100644 --- a/html-ui/configureprinter.html +++ b/html-ui/configureprinter.html @@ -2,7 +2,13 @@ - + + + + +
@@ -13,7 +19,9 @@
+ + +
- +
@@ -54,35 +72,106 @@
-
- +
+ - - - + - - - - + + + + + + + + + + + + + + + + + + +
Name TypeHostnameIP StateApi Key/User/Password
+ + I3 Mega Klipper--192.168.0.241:7125OfflineOffline +
+ Offline +
+
-
+ + AndererRepetier +
+ Online +
+
+
@@ -111,132 +202,155 @@ + - - - - - - - - - - - - - - - - - - - -
-
-
- - -
+