Commit Graph

158 Commits

Author SHA1 Message Date
921171cb5a move all mqtt publishing functions to mqtt module 2026-05-10 19:49:38 +02:00
54a2f2d9e5 refctor: TankInfo structure (consistent layout)
- fix: use tagged enum serialization for TankError
- fix: rename TankInfo fields for consistent naming (volume_ml, pct, water_temp_c)
- renamed some fields for better clarity on contained value
2026-05-10 19:48:02 +02:00
2df120f73b refactor: BatteryInfo structure (consistent layout)
- use tagged enum serialization for BatteryError
- flatten BatteryInfo telemetry with consistent field names and typed error
2026-05-10 19:47:58 +02:00
58aa55fd12 fix: serialize firmware/state as JSON instead of Debug format 2026-05-10 19:47:56 +02:00
f71ca7ec6d activate plant watering code again
for some idiotic the most critical part of the code was disabled and
commited that should not have happend!
2026-05-10 19:41:51 +02:00
7497a8c05d refactor: create util module with shared mk_static
- use crate::util::mk_static in network module
- use crate::util::mk_static in mqtt module
- use crate::util::mk_static in hal module
- remove dead mk_static macro from esp module
2026-05-10 14:01:57 +02:00
6889ba4561 refactor: move try_connect_wifi_sntp_mqtt to network module 2026-05-10 13:34:34 +02:00
18095349f3 refactor: move wifi to network module 2026-05-10 13:34:32 +02:00
3d8fd893f5 refactor: move wifi_ap to network module 2026-05-10 13:34:30 +02:00
1bea7ef2f4 refactor: move sntp to network module 2026-05-10 13:34:28 +02:00
1d8af1b6c4 refactor: create network module
- move NetworkMode and SntpMode enums
2026-05-10 13:33:52 +02:00
53819484fb refactor: move Solar struct to mqtt module 2026-05-10 01:48:22 +02:00
1151d099cf refactor: move PumpInfo struct to mqtt module 2026-05-10 01:48:20 +02:00
3feaacd460 refactor: create mqtt module with core MQTT statics and tasks 2026-05-10 01:48:10 +02:00
e15e78cc26 rename deepsleep to deep_sleep_ms for clarity on expected duration
in main deep sleep was larger than required by a factor of 1000, fixed
this an renamed function to make expected duration count size obvious
from the name
2026-05-05 22:02:46 +02:00
db401aac55 get most stuff working again, by upgrading to newer esp-hal version
this involved adding a lot of code from the develop branch step by step
there are still some bugs, but at least i can get into the web interface
and configure stuff again \o/ … measuring and pumping is working as well
2026-05-04 23:46:27 +02:00
cf58486cf5 we should be feature compatible with main version now! 2025-09-30 22:37:45 +02:00
cfe23c8a09 mqtt via mcutie 2025-09-29 01:00:11 +02:00
3d18b0dbf6 split webserver into submodules 2025-09-28 19:08:43 +02:00
7ebc147f51 v3 wip 2025-09-28 13:42:30 +02:00
f0bda32d7a use rom linked functions for pin keeping 2025-09-26 23:32:41 +02:00
76f59b093d enable deepsleep and gpio1 + timer wake 2025-09-26 22:07:48 +02:00
7fc8d0c882 sta config mode 2025-09-26 01:13:08 +02:00
6d5bb5b966 sntp and wifi sta mode working 2025-09-26 00:44:40 +02:00
336961f0a0 not working wip of station mode 2025-09-25 22:32:10 +02:00
e20b474dfd bring selftest online, bring tz online, fix set_config/get_config race 2025-09-24 22:29:58 +02:00
5b009f50e5 tanksensor and rtc sync 2025-09-23 22:59:08 +02:00
d010c5d12a get more functions online 2025-09-23 20:51:59 +02:00
1f3349c348 add pump expander 2025-09-23 00:26:05 +02:00
5b0e2b6797 i2c working, rtc working, eeprom working 2025-09-22 23:44:33 +02:00
1791f463b7 remove anyhow 2025-09-22 01:49:25 +02:00
c94f5bdb45 get log to work, make time accessible 2025-09-20 11:31:51 +02:00
584d6df2d0 file up & download and delete 2025-09-18 01:39:32 +02:00
cd63e76469 set read config initial somewhat ready 2025-09-17 03:50:21 +02:00
1397f5d775 keep ota around for alter queries to it 2025-09-16 01:41:38 +02:00
65f6670ca4 adda lot of basic webserver back 2025-09-15 01:21:50 +02:00
4aa25c687b minimal startup running 2025-09-14 13:19:30 +02:00
b3cc313139 initial webserver stub running 2025-09-14 05:29:23 +02:00
be3c4a5095 startup and ota state detection working, now wifi_ap next 2025-09-13 20:56:11 +02:00
4160202cdc more changes and linking 2025-09-13 02:47:53 +02:00
9de85b6e37 it's alive 2025-09-13 01:39:47 +02:00
79087c9353 more async migration 2025-09-12 16:30:35 +02:00
0d495d0f56 probalby found most of the import related stuff, now the real refactor begins 2025-09-12 00:05:52 +02:00
242e748ca0 started cleanup and moving from std to no_std 2025-09-11 22:47:11 +02:00
4faae86a6b reduce amount of warnings 2025-09-11 20:17:18 +02:00
a8e17cda3b wip min 2025-08-29 17:14:15 +02:00
d650358bab Add flowsensor prototype, add canbus to backplane 2025-07-27 13:38:53 +02:00
5d91daf23d add pump current configuration 2025-06-26 02:39:32 +02:00
6b711e29fc extract rtc module, extract tank module, fix backupview refresh, switch to embedded storage for eeprom 2025-06-25 01:18:36 +02:00
5fb8705d9a split rtc module out to reduce repreated exactly same code 2025-06-24 20:59:12 +02:00