- Create
.octoprint/plugins/filetaband.octoprint/plugins/filetab/templates - Copy
__init__.pyto.octoprint/plugins/filetab - Copy
filetab_tab.jinja2to.octoprint/plugins/filetab/templates - Modify
.octoprint/plugins/config.yamlto includefilesin thedisabledvalues forsidebar(see example) - Optional: Adjust the
orderfortabif you want the "Files" tab to be placed somewhere else than after the regular tab components (see example) - Restart OctoPrint, verify in the log that it discovered the plugin
-
-
Save hiphopsmurf/d17f34c95381a1a0d8c12295768bdeba to your computer and use it in GitHub Desktop.
OctoPrint Filetab plugin & configuration instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import octoprint.plugin | |
| class FiletabPlugin(octoprint.plugin.TemplatePlugin): | |
| def get_template_configs(self): | |
| return [ | |
| dict(type="tab", name="Files") | |
| ] | |
| __plugin_implementations__ = [FiletabPlugin()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ... | |
| appearance: | |
| color: black | |
| components: | |
| disabled: | |
| sidebar: | |
| - files | |
| order: | |
| tab: | |
| - plugin_filetab | |
| - control | |
| - temperature | |
| - gcodeviewer | |
| - terminal | |
| - timelapse | |
| # ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="files_wrapper"> | |
| <div id="files"> | |
| {% include "sidebar/files.jinja2" %} | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
