Compare commits

...

6 Commits

Author SHA1 Message Date
52a40dac7c „octoprint_estop/__init__.py“ ändern 2020-10-26 17:25:22 +00:00
ntoff
f8688d6415
Update README.md
remove colour from appearance code (it's not necessary for the plugin, it was just there as an example and may cause confusion)

update install instructions to include using the bundled plugin manager since the plugin is now registered
2017-12-05 10:23:28 +10:00
ntoff
d59d041b0b
Update readme appearance code
a couple of lines were using tabs instead of spaces
2017-12-05 09:36:13 +10:00
ntoff
175f13bbde increment version 2017-12-02 07:44:42 +10:00
ntoff
8a9a2fe401 icon tweak
not sure how I managed to screw that icon up so badly
2017-12-02 07:43:36 +10:00
ntoff
8a2e732663 repo info thing 2017-12-02 07:42:58 +10:00
4 changed files with 16 additions and 14 deletions

View File

@ -10,7 +10,7 @@ That's the point of an EMERGENCY stop!
## Setup ## Setup
Install manually using this URL: Install via the bundled plugin manager, or manually using this URL:
https://github.com/ntoff/OctoPrint-Estop/archive/master.zip https://github.com/ntoff/OctoPrint-Estop/archive/master.zip
@ -21,7 +21,6 @@ Once installed, you may wish to move the button to the top of the sidebar, you c
Find the "appearance" section, and add the plugin to the top of the sidebar order. If no other components have been previously rearranged, you may end up with only the plugin in the order list, this is fine, you don't need to add every item to the list (not adding them won't stop them from showing up). Find the "appearance" section, and add the plugin to the top of the sidebar order. If no other components have been previously rearranged, you may end up with only the plugin in the order list, this is fine, you don't need to add every item to the list (not adding them won't stop them from showing up).
appearance: appearance:
color: violet
components: components:
order: order:
sidebar: sidebar:

View File

@ -3,11 +3,11 @@ layout: plugin
id: estop id: estop
title: Emergency STOP! button title: Emergency STOP! button
description: Adds an emergency stop (gcode M112) button to the sidebar. description: Adds an emergency stop button to the sidebar.
author: ntoff author: ntoff
license: AGPLv3 license: AGPLv3
date: 2017-03-23 date: 2017-12-02
homepage: https://github.com/ntoff/OctoPrint-Estop homepage: https://github.com/ntoff/OctoPrint-Estop
source: https://github.com/ntoff/OctoPrint-Estop source: https://github.com/ntoff/OctoPrint-Estop
@ -21,10 +21,10 @@ tags:
screenshots: screenshots:
- /assets/img/plugins/estop/enabled.PNG - url: /assets/img/plugins/estop/enabled.PNG
alt: enabled alt: enabled
caption: Enabled (logged in and operational) caption: Enabled (logged in and operational)
- /assets/img/plugins/estop/disabled.PNG - url: /assets/img/plugins/estop/disabled.PNG
alt: disabled alt: disabled
caption: Disabled (logged out or non operational) caption: Disabled (logged out or non operational)
@ -42,4 +42,6 @@ compatibility:
- macos - macos
--- ---
Adds a nice big emergency stop button that sends M112 to the printer in the case of an emergency. Adds a nice big emergency stop button that (by default) sends M112 to the printer in the case of an emergency. If your printer uses a different E-Stop command, there's a settings page entry to allow changing the command sent.
Please do be aware that this button is no substitute for human interaction in the case of a real emergency. How your printer responds to M112 depends entirely on its firmware.

View File

@ -23,7 +23,7 @@ class EstopPlugin(octoprint.plugin.StartupPlugin,
) )
def get_template_configs(self): def get_template_configs(self):
return [ return [
dict(type="sidebar", name="Emergency STOP!", icon="fa fa-print", template="estop_sidebar.jinja2", styles=["display: none"], data_bind="visible: loginState.isUser"), dict(type="sidebar", name="Emergency STOP!", icon="close", template="estop_sidebar.jinja2", styles=["display: none"], data_bind="visible: loginState.isUser"),
dict(type="settings", name="E-Stop Settings", template="estop_settings.jinja2", custom_bindings=False) dict(type="settings", name="E-Stop Settings", template="estop_settings.jinja2", custom_bindings=False)
] ]
@ -45,6 +45,7 @@ class EstopPlugin(octoprint.plugin.StartupPlugin,
) )
__plugin_name__ = "Emergency Stop Button" __plugin_name__ = "Emergency Stop Button"
__plugin_pythoncompat__ = ">=2.7,<4"
def __plugin_load__(): def __plugin_load__():
global __plugin_implementation__ global __plugin_implementation__

View File

@ -14,7 +14,7 @@ plugin_package = "octoprint_estop"
plugin_name = "OctoPrint-Estop" plugin_name = "OctoPrint-Estop"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.1" plugin_version = "0.1.2"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module # module