Closed Dronedale closed 1 month ago
Hi @Dronedale, that should be possible if the Bambu integration gives you the gcode at the current time in the print. The card would need to update the preview incrementally. There's a method processGCode
that does just that. It accepts lines of gcode that will get added to the current preview.
Don't know what framework Lovelace cards are written in but there are examples for react/vuejs/svelte to help you get started.
Hi @remcoder,
Thanks for your quick reply, I would just load the whole gcode via sftp from the printer when the print starts, load the model into gcode-viewer and set the the current endlayer provided by bambu integration. Just saw that it might be possible to use vuejs with custom cards in home assistant. I will take a closer look at this. Another approach would be to setup a webserver for gcode-viewer and use the home assistant rest api for fetching entity states. Then I could just put the webview into a webpage card in my dashboard. Btw your project is awesome!
It would be awesome to port this project into a home assistant lovelace card, where you could control inputs using home assistant entities! (For example showing curret print object and layer height using the Bambulab integration)
Would this be possible?