- Create
.octoprint/plugins/filetab
and.octoprint/plugins/filetab/templates
- Copy
__init__.py
to.octoprint/plugins/filetab
- Copy
filetab_tab.jinja2
to.octoprint/plugins/filetab/templates
- Modify
.octoprint/plugins/config.yaml
to includefiles
in thedisabled
values forsidebar
(see example) - Optional: Adjust the
order
fortab
if 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