mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 01:06:11 +02:00
* Added history charts to web and to Display_Mono_128x64
This commit is contained in:
parent
6fb0535939
commit
2b4de00a89
17 changed files with 694 additions and 100 deletions
10
src/app.cpp
10
src/app.cpp
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue