Kriechi / Cura-DuetRRFPlugin

Cura plugin to print directly to a DuetRRF printer
GNU Affero General Public License v3.0
40 stars 11 forks source link

Question: Uploading Firmware via Plugin #19

Closed roseg0ld closed 4 years ago

roseg0ld commented 5 years ago

Do you think it would be possible/feasible to upload the firmware to a Duet via this plugin? I am including a modified version of this with a plugin for my printer (https://github.com/HydraResearchLLC/Nautilus-Cura-Plugin) and it would be awesome if we could include the latest firmware and allow users to upload new firmware from within Cura. With a little bit of guidance I could write it myself, this could become a useful feature for other printers that use the duet as well.

Kriechi commented 5 years ago

Usually new firmware releases also require modifications to the config files / macros / etc. So, I would be hesitant to "just upload" and hope for the best. At least for me, I still prefer looking at DWC to monitor and interact with the printer - after uploading files to it.

All the API endpoints to upload & flash the firmware are there - if you think this is valuable feature, feel free to implement it - and even send a PR - I'm happy to take a look and merge it, given a clear warning message about potential config mismatches.

roseg0ld commented 5 years ago

I'm hoping to create the functionality to upload firmware, configuration, macros, etc. all at once in a single zip file. Is this a feature you'd be willing to assist with at all? I'm happy to write the code, but I will likely have a few questions about interfacing with the Duet from Cura.

Kriechi commented 5 years ago

Unfortunately my time to provide assistence is limited at the moment - the only thing you need to interface with the Duet should be documented here https://github.com/chrishamm/DuetWebControl/blob/master/README.md#communication-to-the-firmware