display information about last heating time in gui

restructurize some jsx classes
This commit is contained in:
2020-12-27 15:41:06 +00:00
parent 6291c9311a
commit c185fb7a8e
13 changed files with 253 additions and 113 deletions

View File

@@ -6,6 +6,7 @@
#include "GeneralInfoService.h"
#include "SettingsService.h"
#include "Timer.h"
#include "HeatingInfoService.h"
bool allow;
bool error = false;
@@ -24,7 +25,8 @@ uint32_t turnontime = 0;
AsyncWebServer server(80);
ESP8266React esp8266React(&server);
GeneralInfoService generalinfo = GeneralInfoService(&server, mHeat.getLastHum(), mHeat.getLastTemp());
GeneralInfoService generalinfo = GeneralInfoService(&server);
HeatingInfoService heatinginfo = HeatingInfoService(&server);
SettingsService settingsservice = SettingsService(&server, esp8266React.getSecurityManager());
void pumpeSchalten(bool on) {
@@ -180,7 +182,7 @@ void setup() {
// initialize heating control
Serial.println("initializing heating service");
mHeat.init(Heating::HUMIDITY, settingsservice.getSettings());
mHeat.init(Heating::HUMIDITY, settingsservice.getSettings(), &heatinginfo);
Serial.println("startup sequence complete!\n");
}