forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into development
- Loading branch information
Showing
118 changed files
with
5,346 additions
and
2,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#include <TaskSchedulerDeclarations.h> | ||
#include <WString.h> | ||
#include <list> | ||
|
||
struct LanguageInfo_t { | ||
String code; | ||
String name; | ||
String filename; | ||
}; | ||
|
||
class I18nClass { | ||
public: | ||
I18nClass(); | ||
void init(Scheduler& scheduler); | ||
std::list<LanguageInfo_t> getAvailableLanguages(); | ||
String getFilenameByLocale(const String& locale) const; | ||
void readDisplayStrings( | ||
const String& locale, | ||
String& date_format, | ||
String& offline, | ||
String& power_w, String& power_kw, | ||
String& meter_power_w, String& meter_power_kw, | ||
String& yield_today_wh, String& yield_today_kwh, | ||
String& yield_total_kwh, String& yield_total_mwh); | ||
|
||
private: | ||
void readLangPacks(); | ||
void readConfig(String file); | ||
|
||
std::list<LanguageInfo_t> _availLanguages; | ||
}; | ||
|
||
extern I18nClass I18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#include "PowerLimiterInverter.h" | ||
|
||
class PowerLimiterBatteryInverter : public PowerLimiterInverter { | ||
public: | ||
PowerLimiterBatteryInverter(bool verboseLogging, PowerLimiterInverterConfig const& config); | ||
|
||
uint16_t getMaxReductionWatts(bool allowStandby) const final; | ||
uint16_t getMaxIncreaseWatts() const final; | ||
uint16_t applyReduction(uint16_t reduction, bool allowStandby) final; | ||
uint16_t applyIncrease(uint16_t increase) final; | ||
uint16_t standby() final; | ||
bool isSolarPowered() const final { return false; } | ||
|
||
private: | ||
void setAcOutput(uint16_t expectedOutputWatts) final; | ||
}; |
Oops, something went wrong.