Commit Graph

171 Commits

Author SHA1 Message Date
Jan Philipp Ecker
b991f2ee27 Fixes compiler warnings in nfc
Replaces the depricated function call containsKey() with is<T>() of JsonDocument.
2025-07-26 22:52:10 +02:00
Jan Philipp Ecker
faaffee391 Memory leak fixes in api and nfc, location tag fix
Fixes multiple potential memory leaks in API and NFC. Also fixes an issue in the new locaiton tag feature that could lead to multiple parallel API requests. This could cause memory leak issues but also result in wrong weights being registered for a spool.
2025-07-26 22:36:04 +02:00
Jan Philipp Ecker
d536181a73 Introduces new heap debugging feature and fixes some memory leaks in website feature
Introduces a new define HEAP_DEBUG_MESSAGE(location) that can be used to instrument the code to get heap information output on the Serial output. It can be enabled via the define ENABLE_HEAP_DEBUGGING. Also fixes some memory leaks in the website part of the project.
2025-07-26 22:14:58 +02:00
68fa1e77a1 Merge pull request #39 from janecker/location_tags
Adds new feature to write and read location tags
2025-07-22 06:32:44 +02:00
Jan Philipp Ecker
69d6ba4bcb Adds new feature to write and read location tags
Location tags can be written via the website. If a location tag is read after reading a spool tag, the location of the spool will be updated in spoolman to the location from the tag.
2025-07-21 21:03:55 +02:00
Jan Philipp Ecker
21ec4e0ff3 Adds slight debouncing to the scale loop weight logic
Adds slight debouncing to the scale loop to prevent jitter of the
weight displayed on the screen.
2025-06-19 10:08:15 +02:00
3f2beb6f54 fix: update spool weight conditionally based on NFC ID 2025-04-25 15:52:38 +02:00
aa2eb91d64 fix: add remaining weight logging for PUT requests and improve error reporting in sendToApi function 2025-04-23 14:51:31 +02:00
35d2445c6c fix: add remaining weight logging and display after successful spool update 2025-04-23 11:33:07 +02:00
537607ed40 fix: update weight field in update payload to only include values greater than 10 2025-04-23 11:08:32 +02:00
7e330dca1a fix: add weight field to update payload in updateSpoolTagId function 2025-04-23 11:07:30 +02:00
d943d15c0a fix: increase stack size for sendToApi task to improve stability 2025-04-15 16:38:16 +02:00
a345b76cd2 fix: adjust tare weight tolerance to ignore deviations of 2g 2025-03-31 10:59:54 +02:00
836e48bde2 fix: improve weight stability check before sending to API 2025-03-31 10:08:26 +02:00
ddb4cd8e53 chore: update version to 1.5.1 and improve OTA update handling with task management 2025-03-30 16:38:23 +02:00
7613effccf feat: add auto-tare functionality and update scale handling based on touch sensor connection 2025-03-30 16:01:17 +02:00
e32aa6ec51 fix: update touch sensor connection logic to correctly identify connection status 2025-03-30 12:59:51 +02:00
a2eb57cd7a fix: add touch sensor connection check and update logic 2025-03-30 12:55:26 +02:00
5c4ba9f0ba Merge branch 'main' of github.com:ManuelW77/Filaman 2025-03-30 12:21:04 +02:00
f22a01127c fix: update TTP223 pin configuration and adjust touch sensor logic 2025-03-30 12:19:07 +02:00
92d377713d fix: add manual tare functionality for scale 2025-03-29 14:44:33 +01:00
8732c81bb9 Merge pull request #31 from janecker/nfc_rework
Introducing enum for handling the NFC state to improve code readability
2025-03-29 14:25:20 +01:00
e7bbf45a9f fix: add debounce handling for TTP223 touch sensor 2025-03-29 14:23:55 +01:00
a8ce964add feat: add TTP223 touch sensor support and wiring configuration 2025-03-29 14:18:58 +01:00
Jan Philipp Ecker
69f01d1e57 Renamed states of NFC state machine and introduced new state machine for spoolman API 2025-03-29 13:21:47 +01:00
Jan Philipp Ecker
99231786a5 Introducing enum for handling the NFC state to improve code readability 2025-03-29 11:45:38 +01:00
2a60e149b9 fix: enhance HTTP method handling in sendToApi function 2025-03-29 10:03:17 +01:00
629b4276cf Merge branch 'testing' into main 2025-03-29 07:55:33 +01:00
cb15dae87e fix: improve HTTP client configuration and clear update documents after API calls 2025-03-29 07:52:49 +01:00
Jan Philipp Ecker
abed1c9806 Fixes memory leak in HTTPClient by disabling connection reuse 2025-03-28 22:40:50 +01:00
f44173824f feat: add functionality to remove Bambu credentials and update API handling 2025-03-27 18:01:15 +01:00
169d73bfc0 fix: handle Bambu connection state by introducing bambuDisabled flag 2025-03-27 11:18:04 +01:00
c78f36d21a feat: add rfid_bambu.html and update bambu connection handling 2025-03-27 10:35:10 +01:00
d2c85018f5 refactor: remove unused request_topic subscription and reduce MQTT task stack size 2025-03-25 12:05:34 +01:00
tugsi
4abe9d6d33 Fix BufferSize for larger JSONs from X-Series 2025-03-24 12:17:28 +01:00
e5d0334714 refactor: rename report_topic to topic and update MQTT subscription logic, switched publish topic to request 2025-03-23 18:01:53 +01:00
a490b77860 fix: adjust weight threshold for tare check to allow negative values 2025-03-23 15:03:37 +01:00
e5e14dfc99 fix: use unique client ID for MQTT connection to avoid conflicts 2025-03-23 11:24:46 +01:00
69675f3c06 fix: increase WiFi connection timeout from 5 to 10 seconds 2025-03-23 11:05:10 +01:00
2ae3df1aab fix: ensure valid URL format and remove trailing slash in setupWebserver 2025-03-23 11:03:57 +01:00
3910da9fb5 fix: add WiFi connection check and restart Bambu if not connected 2025-03-23 11:03:51 +01:00
26d53929ac increase stack size for BambuMqtt task 2025-03-23 10:41:28 +01:00
f500f8bd11 remove commented-out subscription topic in MQTT setup 2025-03-10 17:41:14 +01:00
a328fbc6a6 Merge pull request #15 from ManuelW77/main
set to main state
2025-03-03 17:10:35 +01:00
c1122ad87d refactor: remove unnecessary delay in MQTT setup and add delay before restart 2025-03-03 16:58:24 +01:00
Jan Philipp Ecker
1aeced76a2 Reworks the scale calibration handling
Fixes some issues in the scale handling. Prevents a wdg reset after
after scale calibration. Also makes sure that after calibration all
tasks are started again that have been suspsended before.
2025-03-03 16:50:46 +01:00
63a7398979 refactor: remove redundant scale calibration checks and enhance task management 2025-03-01 18:50:20 +01:00
40cb504251 refactor: enhance AMS data handling and streamline spool auto-setting logic 2025-03-01 18:44:35 +01:00
41a4f8af4a refactor: adjust stack size and improve scale calibration logic 2025-03-01 18:44:29 +01:00
33e4b371ed add OctoPrint integration with configurable fields and update functionality 2025-03-01 12:18:33 +01:00