Implement NEOFLUX LED Controller#7
Conversation
- Added `neoflux.css` and `neoflux_ui.js` for the new Cyberpunk UI and Canvas preview. - Created `livegcodecontrol_tab.jinja2` to host the new NEOFLUX tab. - Refactored `__init__.py` to include `LedWorker` thread for safe G-code injection. - Implemented `SimpleApiPlugin` to handle `update_led_config` commands. - Updated `livegcodecontrol.js` to bridge the frontend and backend. - Ensured adaptive frequency and bandwidth safety for print jobs.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
- Fixed DOM race condition by moving frontend initialization to `onAfterBinding`. - Added explicit DOM availability checks for `NeoFluxController`. - Implemented `threading.Lock` in `LedWorker` for thread-safe configuration updates. - Added G-code command deduplication to reduce serial traffic. - Removed redundant command key from API payload.
Refactor NEOFLUX implementation for thread safety and race condition fix
- Added `neoflux_presets` and `neoflux_events` to settings. - Implemented API endpoints for saving, deleting, and fetching presets. - Added `EventHandlerPlugin` mixin to support `on_event` hook for automation. - Updated frontend UI with preset dropdown, save/delete buttons, and automation settings. - Refactored `LiveGCodeControlViewModel` to handle preset logic and event mappings. - Added `flask` dependency to `__init__.py`.
NeoFlux Preset Management and Event Automation
This PR implements the NEOFLUX LED controller as a new tab in the OctoPrint-LiveGCodeControl plugin. It features a custom Cyberpunk-styled frontend with a 60fps canvas preview and a robust backend thread that safely manages G-code injection, preventing serial buffer saturation during prints.
PR created automatically by Jules for task 1200575039556000061 started by @VisualBoy