-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display Handler and Sunrise library added, platform ini updated
- Loading branch information
barakuda21
committed
Feb 13, 2023
1 parent
0a6f789
commit ad0fab1
Showing
3 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Function to setup the display | ||
|
||
void setup_display(); |
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,18 @@ | ||
|
||
|
||
// Function to setup the time client | ||
void setuptimeClient (); | ||
|
||
|
||
// setPVstartflag is a function that calculates start and end of the PV production | ||
// based on sunrise and sunset and a lag factor | ||
// the lag factor has to be determined by calculating the time from theoretical sunrise to first PV production | ||
|
||
//Variables: | ||
//float lagmorning=1.5;// time in decimal hours between real sunset and start of PV | ||
// float lagevening=2; // time in decimal hours between end of PV power production and real sunset | ||
|
||
// This function figures out wethere PV can produce power or not | ||
// flag pvstartflag is true at daytime when pv can procuce power and false when PV can not produce power | ||
bool setPVstartflag(float lagmorning, float lagevening); | ||
|
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