51 Commits

Author SHA1 Message Date
7fc7661dad fix: Adjust memory threshold for Discord message sending and add debug logging for RAM usage 2025-11-15 12:02:50 -05:00
3b7982a3a3 fix: Adjust memory threshold for Discord message sending to improve reliability 2025-11-15 11:58:32 -05:00
697f0bf31e fix: Improve Discord message sending logic and memory management 2025-11-15 11:52:54 -05:00
ac860207d9 fix: Increase memory thresholds for Discord message sending and adjust garbage collection logging 2025-11-15 10:27:26 -05:00
5a8d14eb4d fix: Enable debug logging in send_discord_message for better memory tracking 2025-11-15 10:03:15 -05:00
4400fb5a74 fix: Adjust memory thresholds for Discord message sending to match device capabilities 2025-11-15 09:46:22 -05:00
c6f46e097b fix: Increase memory thresholds and backoff duration for Discord message sending 2025-11-15 09:42:16 -05:00
d2c0f68488 fix: Enhance Discord message sending with memory checks and scheduling 2025-11-15 09:36:44 -05:00
13e3a56fa6 fix: Add low-memory guard and cooldown for Discord message sending
This isn't quite the fix though just want to save my position till tomorrow and see what changes come up before and after
2025-11-14 21:48:19 -05:00
8363406647 fix: Move discord_webhook import to after config loading and update WiFi connection comment. Save on ram usage 2025-11-14 17:19:44 -05:00
d95f212d2e Add example configuration file, moved everything from secrets.py to here.
Feat: Also refactored some of the logic in discord_webhook.py and networking.py to be more friendly towards the pico with ram usage.

Fixes #26
2025-11-14 17:18:17 -05:00
1016e96b58 feat: Add static IP configuration options to config and main files. Also remove creation of config from web_server.py because I was already doing it in main.py like it should be done, somewhere first.
Fixes #25
2025-11-11 16:55:27 -05:00
b346be9431 feat: Implement immediate application of active schedule on startup and enhance schedule resume handling
Fixes #24
2025-11-09 12:25:16 -05:00
229bde85e9 feat: Add temperature validation in TemperatureMonitor and implement aggressive garbage collection in main loop 2025-11-09 11:54:12 -05:00
dae6971112 feat: Implement NTP sync function with garbage collection and improve schedule handling in web server
reduce ram usage bascically.
Fixes #22 (more garbage collection all it needed, but went further to try and cut more memory usage)
Fixes #21 (Just forgot to already marke this one as completed. Possibly in this commit too)
2025-11-09 11:29:18 -05:00
9da21f7c89 feat: Implement temporary hold management with config integration and improved notifications
fixes #19
2025-11-09 10:11:00 -05:00
b6aae121bb feat: Add dynamic config reload and timezone offset handling in web server
Fixes #18
Already Fixed #13
after long hours of tedious back and forth coding to figure out wtf was happening jesus
2025-11-09 09:24:21 -05:00
24b53b9446 Removed stuff from the try block so it doesn't loop. just initialize in the beginning 2025-11-09 01:18:16 -05:00
b018b427f6 feat: Enhance NTP synchronization with timeout and error handling 2025-11-08 19:28:00 -05:00
99d92a6e90 feat: Add type ignore comments for imports in multiple scripts 2025-11-08 18:38:11 -05:00
64a5d0ae7e feat: Reset hold modes to automatic on boot and save configuration 2025-11-08 16:39:49 -05:00
299a0abbc9 feat: Enhance main loop with error handling and graceful shutdown 2025-11-08 16:15:22 -05:00
988bec521f fix: Update watchdog timer configuration and enable garbage collection 2025-11-08 16:12:59 -05:00
f4c9e20836 feat: Implement watchdog timer and enhance NTP time synchronization with retry logic 2025-11-08 15:47:55 -05:00
39a4952426 refactor: Remove MemoryMonitor import and instance from scheduler setup 2025-11-06 18:12:37 -05:00
1c9f1d731e feat: Enhance configuration loading with default schedules and add memory check on startup 2025-11-06 18:01:36 -05:00
6482965edc Add garbage collection to main loop for memory management 2025-11-05 23:36:16 -05:00
5d162f3971 Enhance configuration loading and WiFi setup with detailed comments; implement NTP time synchronization for accurate scheduling 2025-11-05 22:55:05 -05:00
db34c25bb4 Add NTP time synchronization after WiFi connection 2025-11-05 22:54:17 -05:00
2817273ba4 Enhance web server to handle schedule updates and configuration loading 2025-11-05 21:42:27 -05:00
f4be1a7f7d Add schedule management to web server and configuration loading 2025-11-05 21:33:19 -05:00
121bb31f6e assign the static IP so it don't change and we can access web page for it. 2025-11-05 16:35:23 -05:00
e82fcf46aa was having issues trying to pull wifi data, but I think it was stupid vs code issue 2025-11-05 16:23:32 -05:00
93b68098ea Add HeaterController and HeaterMonitor for improved climate control 2025-11-05 16:06:55 -05:00
5694ed18c9 Refactor sensor configuration and initialization for improved clarity and maintainability 2025-11-05 15:24:02 -05:00
41760411a9 Update ACMonitor target temperature to 77.0 for improved climate control 2025-11-05 15:03:11 -05:00
4f4d28720f Fix ACMonitor temp_swing value to 1.0 for accurate temperature control 2025-11-05 14:19:28 -05:00
07e84819cb Refactor ACController initialization to improve readability and maintainability 2025-11-05 13:56:15 -05:00
0cd2bb1d64 Add ACMonitor initialization to main.py for temperature control 2025-11-05 13:50:42 -05:00
1753966cf7 Refactor main.py: update TemperatureMonitor initialization to use check_interval and report_interval for improved monitoring 2025-11-04 20:13:23 -05:00
4ef7b00b74 Refactor main.py: replace manual temperature sensor initialization with dynamic configuration from SENSOR_CONFIG 2025-11-04 19:57:40 -05:00
295576857f Refactor main.py: initialize temperature sensors and update TemperatureMonitor setup for clarity 2025-11-04 19:34:18 -05:00
0ceeb3ba41 Refactor main.py: remove connection monitoring callback and streamline monitor setup for WiFi and temperature 2025-11-04 19:06:51 -05:00
f2e610e62e Refactor network and temperature monitoring scripts: implement structured classes for network scanning and temperature monitoring, enhance error handling, and integrate Discord notifications for temperature alerts. 2025-11-04 18:55:10 -05:00
15d1f4cfc3 throttle connects a simpler way than claude suggested. and also sending discord message if connected and reconnects. 2025-11-03 20:09:39 -05:00
815e3b175f fix wifi issue, also want flashing light while wifi is connected. Fixed it. 2025-11-03 19:52:23 -05:00
c3779ee4a4 Refactor WiFi connection logic and clean up commented code 2025-11-03 19:37:08 -05:00
fe5d724afa editing variable with proper key 2024-03-29 17:11:12 -04:00
2160b6b9c6 wrong variable name 2024-01-24 20:08:49 -05:00
e2378da17c add comments on wifi not working and what to do next 2024-01-24 15:28:59 -05:00