Gina Häußge
604d2f7811
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/views.py
# src/octoprint/templates/dialogs/settings/api.jinja2
2019-02-01 11:12:29 +01: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
38eff3fe6f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/api/system.py
2019-01-31 14:07:14 +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
df9617ac1e
🔀 Merge branch 'maintenance' into devel
2019-01-30 11:27:30 +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
970c867ee4
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/users.py
2018-11-28 16:33:11 +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
e522633c98
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/plugins/softwareupdate/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/server/util/tornado.py
# src/octoprint/static/js/app/client/base.js
# src/octoprint/users.py
2018-11-06 11:57:57 +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
90704e292b
Merge branch 'maintenance' into devel
2018-07-25 16:57:00 +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
fd4ff2bf37
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/plugin/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# tests/timelapse/test_timelapse_helpers.py
2018-07-16 15:29:02 +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
f8e6e4e3db
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/printer_safety_check/__init__.py
2018-06-05 11:12:42 +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
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