cangrow.sh - add python3 to apt packages
This commit is contained in:
parent
064db734d5
commit
a0f3db9a77
5 changed files with 27 additions and 5 deletions
|
@ -279,12 +279,19 @@ void loop() {
|
||||||
* - PumpInterval (int) in days
|
* - PumpInterval (int) in days
|
||||||
* - SoilmoistureLow (int) in %
|
* - SoilmoistureLow (int) in %
|
||||||
* - PumpLastOn (long) timestamp
|
* - PumpLastOn (long) timestamp
|
||||||
|
* - PumpMode (short) 1: Pump on every n days, 2: Pump on when Soilmoisture <= SoilmoistureLow, 3: Both
|
||||||
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void controlPUMP() {
|
||||||
|
// UsePump true?
|
||||||
|
if (UsePump == true) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,12 @@ bool UseFANrelais;
|
||||||
byte TemperatureSensor_Type;
|
byte TemperatureSensor_Type;
|
||||||
unsigned short MaintenanceDuration = 300;
|
unsigned short MaintenanceDuration = 300;
|
||||||
char Esp32CamIP[16];
|
char Esp32CamIP[16];
|
||||||
|
// PumpInterval (int) in days
|
||||||
|
byte PumpInterval;
|
||||||
|
// PumpLastOn (long) timestamp
|
||||||
|
unsigned long PumpLastOn;
|
||||||
|
// PumpMode (short) 1: Pump on every n days, 2: Pump on when Soilmoisture <= SoilmoistureLow, 3: Both
|
||||||
|
byte PumpMode;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Grow Stuff
|
// Grow Stuff
|
||||||
|
|
|
@ -104,7 +104,10 @@ bool loadEEPROM() {
|
||||||
* 218 SunFadeDuration
|
* 218 SunFadeDuration
|
||||||
* 219 MaintenanceDuration (2 byte)
|
* 219 MaintenanceDuration (2 byte)
|
||||||
* 221 Esp32CamIP (16 byte)
|
* 221 Esp32CamIP (16 byte)
|
||||||
* 237 ...
|
* 237 PumpInterval (1 byte)
|
||||||
|
* 238 PumpLastOn (4 byte)
|
||||||
|
* 242 PumpMode (1 byte)
|
||||||
|
* 243 ...
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -167,7 +170,13 @@ bool loadEEPROM() {
|
||||||
// size is 2 byte
|
// size is 2 byte
|
||||||
EEPROM.get(219, MaintenanceDuration);
|
EEPROM.get(219, MaintenanceDuration);
|
||||||
// size is 16 byte
|
// size is 16 byte
|
||||||
EEPROM.get(221, Esp32CamIP);
|
EEPROM.get(237, Esp32CamIP);
|
||||||
|
// size is 1 byte
|
||||||
|
EEPROM.get(237, PumpInterval);
|
||||||
|
// size is 4 byte
|
||||||
|
EEPROM.get(238, PumpLastOn);
|
||||||
|
// size is 1 byte
|
||||||
|
EEPROM.get(242, PumpMode);
|
||||||
}
|
}
|
||||||
// TODO auth does not work atm
|
// TODO auth does not work atm
|
||||||
// EEPROM.get(160, WebUiUsername);
|
// EEPROM.get(160, WebUiUsername);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* CanGrow_Version.h gets generated from cangrow.sh */
|
/* CanGrow_Version.h gets generated from cangrow.sh */
|
||||||
|
|
||||||
const char* CanGrowVer = "0.1-dev";
|
const char* CanGrowVer = "0.1-dev";
|
||||||
const char* CanGrowBuild = "25bf84e";
|
const char* CanGrowBuild = "064db73";
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ case $1 in
|
||||||
echo ""
|
echo ""
|
||||||
echo ":: installing Arduino IDE packages with apt, please enter sudo password:"
|
echo ":: installing Arduino IDE packages with apt, please enter sudo password:"
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install arduino
|
sudo apt install arduino python3
|
||||||
echo ""
|
echo ""
|
||||||
echo ":: Installing ESP8266 core for Arduino"
|
echo ":: Installing ESP8266 core for Arduino"
|
||||||
${ACLI_CMD} core install esp8266:esp8266
|
${ACLI_CMD} core install esp8266:esp8266
|
||||||
|
|
Loading…
Reference in a new issue