Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from __future__ import absolute_import, unicode_literals
- import octoprint.plugin
- class HofstraPlugin(
- octoprint.plugins.StartupPlugin,
- octoprint.plugins.TemplatePlugin,
- octoprint.plugins.SettingsPlugin,
- octoprint.plugin.AssetPlugin):
- def on_after_startup(self):
- self._logger.info("This is the hofstra C&C")
- def get_settings_defaults(self):
- return dict(url="https://yahoo.com")
- def get_template_configs(self):
- return[
- dict(type="navbar", custom_bindings=False),
- dict(type="settings", custom_bindings=False),
- dict(type="sidebar", custom_bindings=True)
- ]
- def get_assets(self):
- return dict(
- js=["js/hofstra.js"],
- css=["css/hofstra.css"],
- less=["less/hofstra.less"]
- )
- __plugin_name__ = "hofstra"
- __plugin_version__ = "1.0.0"
- __plugin_description__ = "Let's hofstra It together in OctoPrint"
- __plugin_pythoncompat__ = ">=2.7,<4"
- __plugin_implementation__ = HofstraPlugin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement