Gina Häußge
fca626a3d6
✨ Support tags on GCODE script hook
...
Also add `plugin:<plugin id>` to script parts from plugins.
Implements #3101
2019-05-08 16:55:18 +02:00
Gina Häußge
1acf69cb6d
🐛 Add CORS headers to tornado endpoints (if enabled)
...
Fixes 1) of #3024
2019-01-31 17:38:10 +01:00
Gina Häußge
c36a378b60
Merge branch 'hotfix/documentation_error' into maintenance
2019-01-30 15:08:41 +01:00
Gina Häußge
9a7ebde76b
📝 Fix documentation for firmware info & capability plugin hooks
2019-01-30 15:02:32 +01:00
Gina Häußge
06a3baa588
Merge branch 'maintenance' into pr/2900
2019-01-16 17:52:06 +01:00
Gina Häußge
07934d26eb
Refactored some things and added more docs
...
There was still some redundancy due to how SD upload so far was
implemented. Things are now better reusable from hooks.
Also fixed the problem that OctoPrint would *always* use the first hook,
whether it actually handled the upload or not.
2019-01-16 17:51:53 +01:00
Gina Häußge
002802bb20
Deprecate appkey API in favor of Application Keys Plugin
...
Slated to be removed in 1.4.0. AFAIK nobody used it anyhow.
2019-01-15 17:25:58 +01:00
Gina Häußge
45b59494ca
Add new hook too allow plugins to register custom events
...
Implements #2965
2019-01-15 16:54:50 +01:00
Unknown
f8f461b804
add callback for on success/error for hook sdcopy
2018-12-18 19:07:15 +01:00
Unknown
054bbead72
clean doc + add default function + reduce parameter
2018-12-13 21:28:49 +01:00
Unknown
30294e9009
replace tab by space
2018-12-13 18:39:29 +01:00
Gina Häußge
6556d555bd
forcelogin: Keep message backlog while not authed
...
First part of the fix for #2898
2018-11-19 15:22:33 +01:00
Unknown
abb14dc17a
add hook for sdcard copy + documentation
2018-11-16 11:17:05 +01:00
Unknown
a45c86eed1
Revert "add self param to error_hook + update documentation"
...
This reverts commit c30380d423 .
2018-11-16 11:03:35 +01:00
Unknown
c30380d423
add self param to error_hook + update documentation
2018-11-16 11:02:15 +01:00
Gina Häußge
202006149c
forcelogin: documentation, incl. newly added hooks
2018-10-22 17:38:48 +02:00
Gina Häußge
2de2dc7c31
Allow further access restriction on API and Tornado routes through plugin hooks
2018-09-14 20:06:32 +02:00
Gina Häußge
4963a4b849
docs: warning re expensive code in gcode hooks
2018-07-24 17:44:59 +02:00
Gina Häußge
68f4ecefb0
Add hook to extend supported timelapse extensions
...
Implements #2729
2018-07-13 17:42:34 +02:00
Gina Häußge
a0cbc10ba7
Add two new hooks for firmware information
...
octoprint.comm.firmware.info - response to M115
octoprint.comm.firmware.capabilities - capability report lines
2018-05-29 15:13:25 +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
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
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
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
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
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
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
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
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
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
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