54 Commits
Author SHA1 Message Date
Manuel Weiser 1096585b56 fix: ensure UID strings are zero-padded for consistent formatting in Bambu tag detection 2026-03-08 20:17:23 +01:00
Manuel Weiser 01b8ced7e9 fix: reduce delay times for API tasks and NFC scanning to improve responsiveness 2026-02-21 20:33:43 +01:00
Manuel Weiser 5f9ad13ea9 feat: enhance RFID handling for Bambu tags and update API interactions 2026-02-21 20:04:05 +01:00
Manuel Weiser 9875e85e31 feat: enhance weight handling and display feedback in API and NFC modules 2026-02-20 17:39:49 +01:00
Manuel Weiser f29e6aeded Add RFID result handling: implement API for sending RFID write results and integrate with NFC task 2026-02-20 10:24:50 +01:00
Manuel Weiser 13a0acf2ac Remove deprecated HTML files and scripts, refactor API to support asynchronous requests, and improve WebSocket handling for scale actions. 2026-02-19 17:00:21 +01:00
Manuel Weiser 823d1f8c7e Add setup page for device registration and configuration
- Created a new HTML file for device setup with a form for API URL and registration code.
- Implemented JavaScript for handling registration and displaying status messages.
- Updated upgrade and WiFi pages to include navigation to the new setup page.
- Refactored display functions to improve readability and consistency.
- Replaced occurrences of `oledShowMessage` with `oledDisplayText` for uniformity.
- Updated WebSocket handling in the upgrade and WiFi pages for better connection management.
- Adjusted delays in various functions to use `pdMS_TO_TICKS` for better timing accuracy.
- Removed unused routes and cleaned up the website code for improved maintainability.
2026-02-19 11:40:42 +01:00
Manuel Weiser 1d0b01ba6e Refactor API to FilaMan: Update API structure, remove Spoolman references, and implement new FilaMan functions for device registration, heartbeat, weight, and location updates. Adjust web server routes and configurations accordingly. Remove unused Bambu-related code and streamline NFC handling for FilaMan integration. 2026-02-19 10:57:40 +01:00
Manuel Weiser 33cae3f47e Remove Bambu integration: delete Bambu-related source files and references, including MQTT setup and credential management. Clean up configuration and main application logic to eliminate unused variables and functions related to Bambu printers. 2026-02-19 10:36:35 +01:00
Manuel Weiser 66eef2242b feat: add weight check and update spool weight in writeJsonToTag function 2025-09-01 13:39:41 +02:00
Manuel Weiser 602642c203 feat: add fast-path JSON reading for web interface display 2025-08-30 11:27:22 +02:00
Manuel Weiser 7bf9868d79 feat: implement robust page reading with error recovery for NFC tags 2025-08-30 10:17:30 +02:00
Manuel Weiser 4d84169b29 feat: enhance NFC tag reading with robust error recovery and JSON optimization for fast-path detection 2025-08-30 10:09:22 +02:00
Manuel Weiser 79eacae225 feat: implement robust page reading and safe tag detection with error recovery 2025-08-30 09:27:57 +02:00
Manuel Weiser ac91e71c14 refactor: optimize page limit detection and remove redundant verification code 2025-08-29 17:20:44 +02:00
Manuel Weiser fef7e5aa4b Refactor NFC interface handling and improve error diagnostics
- Removed unused function for getting current date in ISO8601 format.
- Updated JSON key names in filament and spool creation to use shorter identifiers.
- Enhanced NFC interface reset procedure with detailed logging and retry mechanisms.
- Improved stability checks after write operations to ensure NFC interface readiness.
- Added comprehensive error handling and diagnostics for NFC read/write operations.
- Streamlined the quick spool ID check to optimize performance and reliability.
2025-08-29 17:04:33 +02:00
Manuel Weiser 2a0f999f3b refactor: enhance NFC write operation diagnostics and improve error handling 2025-08-29 16:02:51 +02:00
Manuel Weiser c89adb6256 refactor: enhance NFC write operation handling and prevent tag operations during write 2025-08-29 15:52:16 +02:00
Manuel Weiser 1f880fc8f1 refactor: optimize JSON payload structure and enhance NFC tag validation process 2025-08-29 15:33:06 +02:00
Manuel Weiser 47bdf022ec refactor: reorganize clearUserDataArea function for improved clarity and safety 2025-08-29 14:17:10 +02:00
Manuel Weiser bff6e72219 fix: reset NFC state on API send failure to allow retry 2025-08-29 14:10:49 +02:00
Manuel Weiser de39892f64 fix: update vendor and filament ID handling to use NULL and add delays for stability 2025-08-29 12:55:51 +02:00
Manuel Weiser f1cdd3f41d feat: enhance NDEF decoding with detailed validation and debugging output 2025-08-29 09:46:08 +02:00
Manuel Weiser a2816da654 feat: enhance NDEF decoding to validate structure and extract JSON payload 2025-08-29 09:06:37 +02:00
Manuel Weiser 6bed3b086c feat: add logging for decoded JSON data in NFC processing 2025-08-29 08:54:53 +02:00
Manuel Weiser 1f01af4da9 feat: implement filament and spool creation in Spoolman API 2025-08-28 15:17:42 +02:00
Manuel Weiser 9d406e3428 Merge branch 'main' into recyclingfabrik 2025-08-27 17:54:32 +02:00
Jan Philipp Ecker 0e00fd8b91 Introduces periodic Spoolman Healthcheck
Introduces a spoolman healthcheck that is executed every 60 seconds. Also fixes a bug with the periodic wifi update.
2025-08-08 18:00:25 +02:00
Jan Philipp Ecker d7ee52ba1f Improves init - NFC reading now only starts after boot is finished
NFC tags that are on the scale during startup will only be read after the boot sequence is finished.
2025-08-08 15:39:10 +02:00
Jan Philipp Ecker 0a02912e4a Improves NFC writing workaround and removes debug output
Improved version of the NFC writing workaround. The task is no longer suspended. There is now a suspend request and a suspend state variable that is used to communicate between the writing and the reading task. The reading is stopped gracefully to prevent resets during writing.
2025-08-08 15:33:08 +02:00
Jan Philipp Ecker f133a1b321 Further improvements on NFC writing
Fixes some issues related to tag writing. Allos writing of tags that are already on the scale when pressing the write button, but introduces a confirmation dialog before doing so. Also first test to fix reset issue when trying to write tags.
2025-08-07 21:12:01 +02:00
Manuel Weiser 765cb5319d Add vendor and filament management to API; implement recycling factory handling in NFC 2025-08-06 17:27:11 +02:00
Jan Philipp Ecker 5b04c2eb80 Fixes types and some issues in the new graphics
Fixes further issues with the new graphics. Fixes some typos. Adds progress bar for upgrade process.
2025-08-05 19:43:05 +02:00
Jan Philipp Ecker d815733550 Graphic rework of the NFC writing process
Introduces the new graphics for the NFC writing process. Also fixes some minor display bugs. Hides the service status icons during boot time. Fixes bugs in NFC write process where mutliple parallel API calls a created. Fixes a bug where spoolman is updated if a location tag is written (which is not required or correct).
2025-08-05 17:44:59 +02:00
Jan Philipp Ecker afef544c66 Reworks graphics of tag reading and some api fixes
Reworks the graphics of the NFC-Tag reading process of spool and location tags. Introduces progress bar for reading process. Also first re-work of the spoolman availability (not fixed completly yet). Also fixes an issue where the API request to spoolman and octoprint was sent in parallel. This now happens sequentially to reduce heap load.
2025-08-03 16:51:09 +02:00
Jan Philipp Ecker 6b6aec07b3 Remove unused parameter of sendNfcData()
Removes unused client parameter of the sendNfcData function.
2025-08-02 23:05:56 +02:00
Jan Philipp Ecker 4b81703e38 Reworks startup graphics and timings
Reworks the graphics during the startup. Introduces a progress bar to visualize how much of the boot is completed. Also changes the the optics of the bambu, spoolman and wifi icons. They are now always displayed but they will be striked out if not working and they will start blinking. Also removes some unnessesary waits.
2025-08-02 22:52:19 +02:00
ManuelW 73c3457f40 Merge branch 'main' into configuration_nvs_storage 2025-07-28 09:31:23 +02:00
Jan Philipp Ecker b583ef71ad Changes configuration storage of spoolman and bambu values
Change that moves configuration values of spoolman and bambu credentials to use NVS storage. Also fixes some typos and missing translation.
2025-07-27 17:33:09 +02:00
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 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 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
Manuel Weiser c0e213a4ac remove unused version and protocol fields from JSON output; add error message for insufficient memory 2025-03-01 10:42:06 +01:00
Jan Philipp Ecker 0eff29ef4a Improves NFC Tag handling
Fixes memory underflow when reading tags. Reads tags with their actual data size and uses actual size instead of constnat value for tag size when writing a tag.
2025-02-28 22:35:34 +01:00
Manuel Weiser fd8f7685a1 fix: optimiere Verzögerungen und Stackgrößen in NFC-Task-Funktionen 2025-02-27 21:54:32 +01:00
Manuel Weiser 1ade007473 fix: remove debug output from splitTextIntoLines and update weight display logic in scanRfidTask 2025-02-24 19:14:45 +01:00
Manuel Weiser dd905b6c6e fix: remove redundant buffer size setting in NFC initialization 2025-02-22 11:47:35 +01:00
Manuel Weiser 77b9eda110 fix: update SPIFFS binary creation and enhance NFC buffer size 2025-02-22 11:46:17 +01:00