Gina Häußge
7b773f6fd2
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/templates/dialogs/settings/accesscontrol.jinja2
# src/octoprint/templates/sidebar/files_header.jinja2
2018-05-18 13:45:42 +02:00
Gina Häußge
cec1bc6c0f
Allow plugins to override analysis & print time estimation
...
Using two new hooks, plugins may now provide alternative implementations
for the GCODE analysis and the live print time estimation.
Should allow people to get creative with regards to #1203 , #1905 , #2281 ,
#2445 , #2514
Implements #1797 , #1905
2018-05-17 18:58:15 +02:00
Gina Häußge
c84d39a803
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
2018-04-13 17:23:42 +02:00
Vitor de Miranda Henrique
58bbbc2ad9
Update hooks.rst
...
Fix Software Update plugin link, it was pointing to an old github page --> https://github.com/OctoPrint/OctoPrint-SoftwareUpdate
instead of the bundled plugin--> https://github.com/foosel/OctoPrint/tree/master/src/octoprint/plugins/softwareupdate
2018-04-10 16:19:55 -05:00
Gina Häußge
047b9f544a
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/__init__.py
# src/octoprint/server/util/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/users.py
2018-03-19 17:24:11 +01:00
Gina Häußge
c04fade9a7
docs: Fix two issues pointed out by @dforsi
...
Thanks!
2018-03-19 10:46:20 +01:00
Daniele Forsi
2ecbd9f8c8
Fix typos in docs
2018-03-19 10:43:08 +01:00
Gina Häußge
32a31a7d4a
Hook for defining custom atcommands
2018-03-13 11:06:52 +01:00
Gina Häußge
02c42ecdc0
[doc] Fix an error
2018-03-08 18:09:44 +01:00
Gina Häußge
b8e4ac21d0
Example and copy-paste-fix for new comm error handler hook
2018-02-28 17:14:06 +01:00
Gina Häußge
d42c74d34a
Hook for custom error handling by plugins
...
Implements #2208
2018-02-28 16:50:08 +01:00
Gina Häußge
4fd641dc74
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
2018-02-20 12:55:55 +01:00
Gina Häußge
55f5c472a0
[Docs] Some fixes
2018-02-16 22:03:54 +01:00
Gina Häußge
00e6a3856f
Allow tagging of GCODE commands throughout their lifecycle
...
Commands injected/extended/rewritten through one of the phase hooks or
sent by a plugin through self._printer.commands will also be tagged with
"plugin:<plugin identifier>", allowing other code to detect these tags
and handle such commands differently.
That will be interesting for plugins that need to differentiate between
commands originating from the printed file vs the user vs the system vs
other plugins.
2018-02-16 18:41:17 +01:00
Shawn Bruce
6545f9a816
Allow plugins to define gcode script variables using the octoprint.comm.protocol.scripts hook
2018-01-12 13:05:45 -05:00
Gina Häußge
e9fb3a3ebb
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/util/__init__.py
2017-10-25 09:32:38 +02:00
Gina Häußge
e7b455f880
New hook octoprint.accesscontrol.keyvalidator
...
Allows plugins to provide their own API keys which then can be
validated/translated into a User instance via this hook.
2017-10-19 13:15:18 +02:00
Gina Häußge
adbcc07bae
Merge branch 'maintenance' into devel
2017-08-25 14:57:00 +02:00
Gina Häußge
bfe5bc179c
New hook octoprint.comm.protocol.temperatures.received
...
Allows preprocessing/sanitizing temperatures as received from the
printer.
Workaround for printers that occasionally report garbage temperature
data, e.g. #2050
2017-08-22 11:32:47 +02:00
Daniele Forsi
edb4d0fe04
Fix warnings about duplicated names in rst files
...
Replacing a single underscore (which creates a named target) with a double
underscore creates an anonymous target.
Fixes:
/home/daniele/OctoPrint/docs/bundledplugins/cura.rst:4: WARNING: Duplicate explicit target name: "here".
/home/daniele/OctoPrint/docs/plugins/hooks.rst:370: WARNING: Invalid caption: /home/daniele/OctoPrint/docs/plugins/hooks.rst:4: (INFO/1) Duplicate explicit target name: "custom_action_command.py".
2017-07-30 23:18:08 +02:00
Gina Häußge
cd6009c180
Merge branch 'maintenance' into devel
...
# Conflicts:
# docs/plugins/hooks.rst
# src/octoprint/server/__init__.py
2017-07-26 14:31:08 +02:00
Gina Häußge
a6d3299b91
Add user manager factory hook
2017-07-20 20:03:05 +02:00
Gina Häußge
ee2d644239
Remove support for multi command expansion in sending phase
...
We won't support this after all, it's too much of a headache with
regards to the sending queue. Pausing takes longer, cancelling takes
longer, resends get more complicated and so on.
Command expansion in the queuing phase needs to suffice.
2017-07-17 16:26:32 +02:00
Gina Häußge
4147ffa503
Merge branch 'maintenance' into devel
2017-07-14 11:29:49 +02:00
Gina Häußge
f8d225a768
Support for parsing GCODE subcodes
...
Hook handlers will get any parsed subcode as optional keyword argument
"subcode".
2017-07-05 17:56:46 +02:00
Gina Häußge
2e6d65378f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/util/flask.py
# src/octoprint/static/js/app/main.js
# src/octoprint/users.py
2017-07-05 09:30:00 +02:00
Gina Häußge
35c45df86c
Allow multi line commands in sending phase
...
(cherry picked from commit 1018946)
2017-06-23 14:55:34 +02:00
Gina Häußge
3e5d82c665
Merge branch 'maintenance' into devel
2017-05-19 18:18:59 +02:00
Gina Häußge
39c87d19b7
Fixed a left-over typo.
2017-05-17 17:47:58 +02:00
Gina Häußge
d029abc8f3
Updated docs with an example of multi command expansion
2017-05-17 17:47:58 +02:00
Goswin von Brederlow
917c9e54ba
Allow octoprint.comm.protocol.gcode.queuing hook to return a list of commands
2017-05-17 17:46:58 +02:00
Shawn Bruce
d1d9462423
Add octoprint.timelapse.capture.[pre/post] hooks ( #1854 )
...
* Add octoprint.timelapse.capture.pre and octoprint.timelapse.capture.post hooks
* Adjust underline length
2017-04-11 18:29:52 +02:00
Gina Häußge
f7eb12a3ee
Docs for {Reload|Restart}NeedingPlugin
2016-10-14 14:15:33 +02:00
Gina Häußge
0ac3881897
Use better name than "hook" for various plugin hook documentation
2016-09-20 10:29:53 +02:00
Gina Häußge
7b4b638a2b
Merge branch 'fix/pluginDocs' into dev/bundledPluginsDocs
2016-09-19 17:15:20 +02:00
Gina Häußge
4ff869c2fa
Docs for settings overlay & improved hook docs
2016-08-19 15:40:43 +02:00
Gina Häußge
b41c1d89f4
Docs for octoprint.printer.factory hook
2016-06-28 12:58:08 +02:00
Gina Häußge
ee185230a4
Refactored plugin docs + improved docs on sortables
2016-03-24 16:42:41 +01:00
Gina Häußge
1d3dfffc67
Some documentation fixes
2016-03-23 10:40:36 +01:00
Gina Häußge
780794c466
Merge branch 'development' of https://github.com/bwgan/OctoPrint into pr/bwgan/development
...
Conflicts:
src/octoprint/daemon.py
2016-01-29 09:04:58 +01:00
bwgan
f8c0df4e78
Typo and spelling fixes
...
Fixes various spelling issues and typos.
2016-01-28 18:59:38 +00:00
Gina Häußge
c6f1088ccf
<plugin identifier>:<command> => plugin:<plugin identifier> command
2015-10-30 10:14:21 +01:00
Gina Häußge
3c2d2b579d
Documention for CLI and its development
2015-10-29 17:37:05 +01:00
Gina Häußge
aeb4c21657
Started documenting octoprint.cli.commands hook
2015-10-27 12:18:01 +01:00
Nicanor Romero Venier
74b0056095
Added info to the hook's docs
2015-09-07 10:52:03 +02:00
Nicanor Romero Venier
fa95507177
Included an early return if ret is None
...
Also corrected typos, received instead of recieved.
2015-09-07 10:04:06 +02:00
Nicanor Romero Venier
ced18c86e0
Added docs for the gcode.recieved hook
2015-09-03 18:43:07 +02:00
Gina Häußge
3995a65f6c
WIP: Moving bundled plugin docs to official docs
...
The wiki is not a prominent enough location for these kind of
things apparently.
2015-07-14 21:26:07 +02:00
Gina Häußge
592cad5b99
Deprecated AppPlugin mixin and introduced octoprint.accesscontrol.appkey hook instead
...
Plugins implementing the mixin will automatically be migrated to providing the single mixin method as hook handler.
2015-06-09 18:50:55 +02:00
Gina Häußge
fde543f19e
[doc] octoprint.ui.web.templatetypes hook is now documented
2015-06-08 12:05:29 +02:00