display information about last heating time in gui
restructurize some jsx classes
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user