* Added history charts to web and to Display_Mono_128x64

This commit is contained in:
VArt67 2024-01-07 23:25:50 +01:00
parent 6fb0535939
commit 2b4de00a89
17 changed files with 694 additions and 100 deletions

View file

@ -7,7 +7,7 @@
#include "app.h"
#include "utils/sun.h"
#include "plugins/history.h"
//-----------------------------------------------------------------------------
app::app() : ah::Scheduler {} {}
@ -91,6 +91,11 @@ void app::setup() {
#endif
#endif
mTotalPowerHistory = new TotalPowerHistory();
mTotalPowerHistory->setup(this, &mSys, mConfig);
mYieldDayHistory = new YieldDayHistory();
mYieldDayHistory->setup(this, &mSys, mConfig);
mPubSerial.setup(mConfig, &mSys, &mTimestamp);
#if !defined(ETHERNET)
@ -148,6 +153,9 @@ void app::regularTickers(void) {
#if !defined(ETHERNET)
//everySec([this]() { mImprov.tickSerial(); }, "impro");
#endif
everySec(std::bind(&TotalPowerHistory::tickerSecond, mTotalPowerHistory), "totalPowerHistory");
everySec(std::bind(&YieldDayHistory::tickerSecond, mYieldDayHistory), "yieldDayHistory");
}
#if defined(ETHERNET)