octoprint-LCD1602
octoprint-LCD1602 copied to clipboard
Question: Open for other plugins
Related to this OP-Forum entry; https://community.octoprint.org/t/display-line-number-on-an-led-display-on-pi/42337 I'd like to know, if you can imagine to open you plugin for other plugins?
This could be done in different ways:
- Listen for other events that are fired by other plugins. E.g.
if event in "DisplayLayerProgress_layerChanged":
mylcd.clear()
mylcd.write_string('Completed: ' + str(self.currentProgress) + '%')
mylcd.cursor_pos = (1,0)
mylcd.write_string('Layer: ' + str(payload["currentLayer"]) + "/" + str(payload["totalLayer"]))
- Implement an api that could be directly used by other plugins, see https://docs.octoprint.org/en/master/plugins/helpers.html
What do you thing? If you deceide this is not the scope of this plugin, it's totally fine! But if it's a way you want to go, I can start with some conceptual work (e.g. Plugin-Settings Section for configuring the behaviour of the plugin)