Commit Graph

272 Commits

Author SHA1 Message Date
Ollo
a8837d3119 Check for NAN temperatures 2020-12-28 14:24:55 +01:00
Ollo
bd5fc9839f Used distance reading time to stabilize temperature sensors 2020-12-21 17:55:57 +01:00
Ollo
6f5c5536cc Removed repeating code 2020-12-21 17:07:15 +01:00
Ollo
f8052bd9b0 corrected code highlighting 2020-12-21 16:26:53 +01:00
Ollo
37c83ecef8 Described used ultra sonic sensor 2020-12-21 16:18:22 +01:00
Ollo
63708eeecc Comments included and code sorted 2020-12-21 16:12:46 +01:00
Ollo
b43e238293 Moved PCB stuff into the borad folder 2020-12-21 15:28:40 +01:00
23beebc4be pin fix 2020-12-20 17:00:44 +01:00
f4c935879b fix one wire detection, allow multiple sensors and set per setting which one is which 2020-12-13 17:17:54 +01:00
dd1b96374c fixed pin assignements for new revision 2020-12-12 17:26:18 +01:00
3bd77e0b57 prevent infinite loop on waiting for hall if not connected, fixed formating 2020-12-12 00:01:19 +01:00
Ollo
2b7840abf3 Added Cppcheck project file for static code analysis 2020-12-09 21:44:33 +01:00
Ollo
dd31122ed3 All static code analyis comments fixed, only TODOs are open 2020-12-09 21:43:07 +01:00
Ollo
303885fde5 Fixed wakeup due static code analysis 2020-12-09 21:39:48 +01:00
3bbcd24707 lcsc/jlcpcb order changes 2020-11-29 05:04:46 +01:00
5fcbf87671 startup reason mqtt notification 2020-11-28 01:45:57 +01:00
calculator
da00451de6 Merge branch 'master' of https://github.com/0110/PlantCtrl 2020-11-18 22:23:47 +01:00
calculator
48756874e5 replaced HC-SR04 with SR04M-2 2020-11-18 22:11:37 +01:00
Ollo
eb1650fed7 Moved upload port into seperate configuration file 2020-11-12 21:23:19 +01:00
c3ma
ade0a8b812 only read temperature multiple times, if it differs significantly to last measurement 2020-11-11 21:09:38 +01:00
Ollo
04bfaf4d94 Merged documents into ultrasonic sensor stuff 2020-11-11 21:42:29 +01:00
Ollo
8adf4d6f0d Read ultrasonnic sensor 5 times 2020-11-11 21:33:11 +01:00
Ollo
e583122a10 ultrasonic sensor is read 2020-11-11 21:28:03 +01:00
c3ma
398d832213 water sensor started 2020-11-11 20:13:15 +01:00
Ollo
6e6dec8d5f moved solar connector more to border 2020-11-07 17:13:24 +01:00
Ollo
3a1b8d6745 Raw ADC value of lipo added 2020-11-07 00:34:27 +01:00
Ollo
61171fb379 States described in doxygen 2020-11-06 23:29:46 +01:00
Ollo
7080fe306b Doxygen added 2020-11-06 22:19:16 +01:00
Ollo
9c83897fd9 Wakeup due to change temperature 2020-11-06 21:00:11 +01:00
Ollo
4303e248ff Upload script 2020-11-06 19:48:39 +01:00
Ollo
2d73925636 Added comments for the RTC struct 2020-11-06 19:18:28 +01:00
Ollo
3fbf3bdb84 Struct used for RTC memory 2020-11-06 19:15:43 +01:00
Ollo
2958976f0a Some comments 2020-11-06 18:52:38 +01:00
Ollo
39041ab091 Moved ESP32 information into its subdirectory 2020-11-06 17:51:22 +01:00
a14f599f5a missing sensor detection, delta trigger moisture working 2020-11-04 23:28:08 +01:00
1dcf4df740 improve mode3 not pumping 2020-11-04 22:12:00 +01:00
503c2b73b9 added raw moisture, improved pct calc , formating 2020-11-04 21:57:40 +01:00
fd28ffcfaf added rtc trigger vars 2020-11-04 21:55:51 +01:00
fb907f9b12 fixed wrong indes for pump determination
improved pump status output
fixed led blinking in  mode3 random
2020-11-04 21:10:22 +01:00
Ollo
329a228b2d Toggle Sensor LED to visualize mode 3 2020-11-01 20:42:45 +01:00
Ollo
89070806f7 NTP server is used from configuration setting 2020-11-01 20:29:24 +01:00
Ollo
e0de8dabe8 NTP Server can be set via configuration item 2020-11-01 20:17:21 +01:00
Ollo
e094221298 Publish only temperatur values, if a sensor was found 2020-11-01 14:30:26 +01:00
Ollo
6ba2f92fa7 Fixed plant loop in mode1 2020-11-01 13:26:38 +01:00
902b81ab3e :Merge branch 'master' of https://github.com/0110/PlantCtrl into master 2020-10-31 19:25:22 +01:00
f8658b78fd made deep sleep modes work and behave somewhat correctly, gave mqqt time to publish, gave ntp time to sync 2020-10-31 19:25:13 +01:00
83c26cc07c *cough* 2020-10-31 19:24:44 +01:00
Ollo
5b420ab904 Adapt time comment 2020-10-31 12:44:49 +01:00
Ollo
979baf5ff9 Adapt time comment 2020-10-31 12:44:32 +01:00
Ollo
8a2f320b1a Adapt time comment 2020-10-31 12:44:25 +01:00
fcaca7435f make shit work more 2020-10-31 03:51:35 +01:00
Ollo
a3cf5bfe8b Less temperature debugging output 2020-10-31 00:10:00 +01:00
Ollo
156e721691 Enable debugging of onewire lib 2020-10-30 22:53:24 +01:00
Ollo
8c840c599a Measure temperatur sensor multiple times 2020-10-30 22:51:32 +01:00
c3ma
a140383e32 Disable pumps while OTA running, mode2 is called only once 2020-10-28 21:20:46 +01:00
c3ma
0bd4aae258 Force the user to set something 2020-10-28 21:06:34 +01:00
c3ma
8657eedc43 Disable pumps while OTA running, mode2 is called only once 2020-10-28 20:31:18 +01:00
c3ma
58e3e3c652 Pump5 pin corrected 2020-10-28 20:14:52 +01:00
c3ma
48474cdba6 Power for Pump is disabled if no longer required 2020-10-28 20:00:24 +01:00
c3ma
0230cc2fe9 Deactivate all Pumps when pump power is deactivated 2020-10-23 19:32:12 +02:00
c3ma
8f21f58950 Handle default value of cooldown 2020-10-23 16:47:40 +02:00
c3ma
80ce95d5d6 More debug output 2020-10-23 16:32:05 +02:00
c3ma
3e3eaa96e4 Refactored code 2020-10-23 16:20:34 +02:00
Ollo
f29a5e3d0b Merge branch 'master' of https://github.com/0110/PlantCtrl 2020-10-22 20:20:23 +02:00
c3ma
6e9b7b29ff set pump output 2020-10-21 20:51:25 +02:00
c3ma
9b5bf90da9 settings gpio mode before deepsleep 2020-10-21 20:46:09 +02:00
c3ma
1485539a8b Deep sleep is set according daylight 2020-10-21 20:03:12 +02:00
c3ma
5591c6dba2 Deep sleep is set according daylight 2020-10-21 19:50:05 +02:00
c3ma
03be8a1bda Deep sleep is now working 2020-10-21 18:33:38 +02:00
c3ma
73759eec68 Sensor values are written and read in the same variable 2020-10-21 18:21:44 +02:00
c3ma
579e7daa93 onHomieEvent set 2020-10-21 18:14:51 +02:00
c3ma
04cb8bbaf0 Status LED for flashing 2020-10-21 16:57:57 +02:00
c3ma
9b27df7172 OTA flashing is disabling deepsleep at start 2020-10-21 16:43:26 +02:00
Ollo
0106641044 Merge branch 'master' of https://github.com/0110/PlantCtrl 2020-10-20 22:54:41 +02:00
94c78bd571 partitions with slightly more flash and smaller spiffs 2020-10-20 22:54:18 +02:00
0a473173f8 reduced settings 2020-10-20 22:52:03 +02:00
667eb0d275 slimmer website 2020-10-20 22:51:53 +02:00
Ollo
6883337700 Updated documentation for OTA flashing 2020-10-20 21:41:27 +02:00
100883f861 Merge branch 'master' of https://github.com/0110/PlantCtrl into master 2020-10-20 21:35:37 +02:00
7fef6c1e75 reduced flash useage by reducing strings 2020-10-20 21:35:28 +02:00
Ollo
c6acc467e2 Pump OFF as only one string 2020-10-20 21:31:39 +02:00
240652ccb9 ota works (for me) 2020-10-20 20:57:06 +02:00
Ollo
82d5343714 Added second environment for the Thinkpad dockingstation 2020-10-20 20:18:51 +02:00
b1fc885f4e ota debugging attempts 2020-10-20 20:12:27 +02:00
47aea7aee1 Merge branch 'master' of https://github.com/0110/PlantCtrl into master 2020-10-20 19:05:53 +02:00
Ollo
769cc52d61 Define library dependency for ArduinoJson 2020-10-20 19:05:37 +02:00
60c7fadc04 Merge branch 'master' of https://github.com/0110/PlantCtrl into master 2020-10-20 18:43:26 +02:00
Ollo
7fe6663bc7 Added timer library 2020-10-20 18:42:59 +02:00
af3d64cf12 Merge branch 'master' of https://github.com/0110/PlantCtrl into master 2020-10-20 18:41:44 +02:00
01e2839f30 mode cleanup 2020-10-20 18:41:41 +02:00
Ollo
c6871fc401 Timer added 2020-10-20 18:40:24 +02:00
b0829cba6b fixed compile errors 2020-10-20 18:06:37 +02:00
2f8e26b48d main decision flow cleanups 2020-10-19 01:39:56 +02:00
c3ma
9a1728bcfc Upgraded version number 2020-10-16 22:05:36 +02:00
c3ma
8e6a2a44e7 mode3 is controllable via MQTT 2020-10-16 21:50:42 +02:00
c3ma
b9ca98904d Read settings and store into non volatile memory 2020-10-16 21:12:25 +02:00
c3ma
6cf9771dcb device is running again 2020-10-16 20:42:21 +02:00
c3ma
0a91501dc5 Updated ignore files 2020-10-16 20:37:30 +02:00
c3ma
80018fc5d5 Modes still not working 2020-10-16 20:36:07 +02:00
c3ma
8d70f55548 bal 2020-10-16 19:26:05 +02:00
c3ma
8458912962 Configuration can be used with default values 2020-10-16 18:40:39 +02:00
c3ma
e95590ffd6 Setting works with default values 2020-10-16 18:25:02 +02:00
c3ma
4bdb82cecc uniq setting names 2020-10-16 16:47:36 +02:00
c3ma
ce498bc7f8 Controller is runing again 2020-10-16 16:22:48 +02:00
c3ma
a654b662e6 Settings moved into a seperate file 2020-10-16 16:10:36 +02:00
c3ma
368d7f050d Configuration moved into seperate header file 2020-10-16 15:03:51 +02:00
c3ma
67d1aa55de all new inside comment and everything works 2020-10-14 20:19:27 +02:00
c3ma
1a4cddc366 Plant object expanded with settings 2020-10-14 20:07:56 +02:00
c3ma
24b842f5a3 Default values in configuration set 2020-10-14 19:01:13 +02:00
c3ma
e1c4ca7e98 Empires Wunschliste 2020-10-14 17:50:13 +02:00
Ollo
089476facc Controller will stay alive if it has to 2020-10-13 21:47:56 +02:00
Ollo
7991a37d4d Configuration is flashable 2020-10-13 21:22:21 +02:00
Ollo
8599430458 Describe filesystem uploade 2020-10-13 21:09:20 +02:00
Ollo
b87cfdb772 Moved configuration and webserver 2020-10-13 20:24:08 +02:00
Ollo
8aa9a2147e Alive topic added 2020-10-13 20:16:28 +02:00
Ollo
a16c98d7c6 Expanded Plant-class with Settings and Node property 2020-09-21 19:40:01 +02:00
Ollo
ff33c58288 Controller is starting again 2020-09-21 20:42:24 +02:00
Ollo
4f7cc70bbd Cleanup old code 2020-09-20 19:49:29 +02:00
Ollo
158db3f31b Project is compiling again 2020-09-20 19:48:56 +02:00
Ollo
cb837a733b Updated GPIOs and added Settings for 7 plants 2020-09-20 19:18:47 +02:00
c3ma
1872e0a11c updated shematic for new version 2020-09-12 16:47:58 +02:00
Ollo
c8ebe2a6bc ESP32 based project 2020-09-07 18:18:46 +02:00