Nick Mattis
fcb9eaebda
✏️ Minor updates to plugin getting started tutorial docs (#4736 )
...
* some minor updates to plugin getting started tutorial docs
* fix helloworld to stay camelcase
2023-02-20 21:36:28 +00:00
Gina Häußge
f430257d70
Merge branch 'rc/maintenance'
2022-05-16 14:58:38 +02:00
Billy Richardson
64c21ba8f0
✏️ Documentation spelling fixes (#4497 )
2022-04-24 17:21:13 +01:00
Gina Häußge
0dee0dd703
Merge branch 'master' into maintenance
2022-02-21 10:34:40 +01:00
Gina Häußge
a62454acc2
📝 Switch Python doc links to Python 3 docs
2022-02-21 10:33:37 +01:00
GitHub Nightly Merge Action
1fd2764508
Merge branch 'master' into maintenance
2022-02-08 00:08:09 +00:00
OllisGit
116d164846
📝 Change description and example code to const-values (#4400 )
2022-02-07 17:30:52 +01:00
Gina Häußge
535dcb7109
⏪ Don't rename to_unicode to to_str after all
...
... at least not yet. to_str is currently a (deprecated)
synonym for to_bytes, and changing that behaviour
would be a breaking change. Better leave it to 2.0.
2022-02-07 15:31:16 +01:00
Gina Häußge
7fb9df9940
♻️ Migrate code base to Python 3 only
...
* pyupgrade
* various new codemods
* manual removal of Py2/3 compat imports
* manual adjustment of docs, examples, tests
* to_str is now the new to_unicode, deprecated
redirection to to_bytes has been removed
* to_native_str has been redirected to point to
to_str
* to_unicode has been redirected to point to
to_str
* atomic_write refactored to use
NamedTemporaryDirectory
* various other fixes/refactorings all over the
place
2022-02-01 12:57:01 +01:00
Gina Häußge
64fac66dff
Merge branch 'master' into maintenance
2021-11-30 13:54:06 +01:00
Gina Häußge
118eaa66b4
📝 Fix doc bug reported in #4251
...
Plugins get on_plugin_enabled called *before* injection.
Closes #4251
2021-11-30 13:53:35 +01:00
Gina Häußge
6011839f48
✨ New plugin lifecycle callback on_plugin_pending_uninstall
...
Will be called by the plugin manager when a plugin
is about to be uninstalled through it. Useful for
any cleanup tasks a plugin might want to do when it
gets uninstalled.
Note that this method does not HAVE to be called if
the plugin is uninstalled outside of OctoPrint by
deleting/pip uninstall'ing the plugin.
2021-10-08 16:42:59 +02:00
Gina Häußge
6618be9e84
📝 Document new (bundle only) hook
2021-07-06 16:39:06 +02:00
cp2004
e1657d5e3e
✏️ 🐛 Fix a bunch of general doc issues
...
Solves
2021-06-21 16:27:21 +02:00
Gina Häußge
c3a796ae4c
✨ New hook: octoprint.system.additional_commands
...
Allows to inject additional commands into the system menu from plugins.
Implements #4143
2021-06-15 19:44:52 +02:00
Gina Häußge
b0917feba7
✨ New frontend callback "onBeforePrintStart"
...
Can be used to hook into and prevent the start of a print job via click
on "Start" in the print state or click on select & print in the file
list.
2021-06-15 11:35:29 +02:00
Shawn Bruce
513b9b951c
Fix typo in docs for octoprint.server.api.before_request
2021-05-05 11:51:31 -04:00
Gina Häußge
43e5c65472
✨ Add hook "octoprint.printer.handle_connect"
...
Can be used to intercept connect command on Printer interface and
prevent or just hook into.
Closes #3984
2021-03-24 10:08:00 +01:00
Gina Häußge
cf1d6e6a32
Merge branch 'master' into maintenance
2021-01-19 11:44:09 +01:00
Gergő Törcsvári
fad6ee2904
✏️ Added plugin version management to documentation
2021-01-18 10:43:14 +01:00
Shawn Bruce
c8dbd89411
Add onbeforeusersettingsave
2021-01-12 19:41:32 -05:00
Gina Häußge
a84b5be104
📝 Remove some outdated documentation
2021-01-11 19:17:38 +01:00
Gina Häußge
5a86da1090
📝 Remove some outdated documentation
2021-01-11 16:02:33 +01:00
Gina Häußge
f291fa898e
Merge branch 'master' into maintenance
2020-10-08 13:01:32 +02:00
Gina Häußge
1688d8f22a
📝 Feedback controls only work if defined in config.yaml
...
Closes #3759
2020-10-08 12:56:55 +02:00
Gina Häußge
d98b793705
📝 Added version added info to all hooks
2020-09-23 19:10:07 +02:00
Gina Häußge
0d96f1b8ca
✨ New hook octoprint.printer.additional_state_data
...
Use to inject additional data into the regular state pushes to
PrinterCallbacks, including the push socket.
As requested in OctoPrint/plugins.octoprint.org#553
2020-09-23 18:55:29 +02:00
Gina Häußge
65eb45c56a
✨ backup: allow plugins to flag excludes among their data
...
Plugins may now implement the hook octoprint.plugin.backup.additional_excludes
to flag entries inside their data folder (or the whole data folder
in case of .) as to be excluded from backups. The list of currently
excluded folders is supplied to the hook handler as well in order
to make such a decision conditionally.
Implements #3720
2020-09-10 18:04:38 +02:00
Gina Häußge
98c7fc8197
🐛 Fix action command parsing
...
Introduce two new parameters `name` and `params` for hooks to use.
2020-09-03 13:12:39 +02:00
Gina Häußge
b1e2121682
✨ New recovery endpoint & refactoring
...
At /recovery/ there's now a (for now basic) recovery dialog that
currently allows the core functionality from the system command menu, so
shutting down and rebooting the system, restarting OctoPrint and
restarting OctoPrint in safe mode. The most important part here is the
ability to restart in safe mode, as that will allow to get OctoPrint
back into working order if an errant third party plugin or language
pack has made the standard UI non functional.
For that reason, no third party plugins are enabled or utilized on the
recovery dialog, even the theming hook is aggressively error resilient.
In order to still allow to authenticate the user (no one but ADMIN
should be allowed to use the recovery UI) the loginui plugin has been
merged into core as its own endpoint /login/ which coreui and recovery
can redirect to. This is a welcome change considering that the loginui
was absolutely necessary anyhow, and it being a plugin was merely a side
effect of backporting from forcelogin. This has now been cleaned up.
2020-07-20 17:00:31 +02:00
Charles Willis
22177092be
fix firmware capabilities hook name
2020-06-19 15:24:24 +01:00
Gina Häußge
0aed3c05cb
📝 Fix some intersphinx issues
2020-06-16 18:09:42 +02:00
Gina Häußge
2206b84f3e
✨ Add hook to extend serial port names
2020-06-04 18:58:09 +02:00
Gina Häußge
52f990b9cb
Merge branch 'master' into maintenance
2020-04-24 19:05:45 +02:00
Gina Häußge
403b638eb6
📝 Fix an error in the docs
2020-04-24 19:05:08 +02:00
Gina Häußge
63e915c8cc
📝 docs: Update install OctoPi instructions
2020-04-14 14:34:29 +02:00
Gina Häußge
bd2a72d178
📝 docs: Minor changes for version specific imports
...
Also fixed a section that got misplaced by the PR.
2020-04-14 14:33:42 +02:00
OllisGit
99efba4fc3
Update python3_migration.rst
...
Added "Explicit imports" description
2020-04-12 11:31:14 +02:00
Gina Häußge
014d32b83b
💬 foosel/OctoPrint => OctoPrint/OctoPrint
...
Also fixed some links while at it.
2020-04-03 15:00:53 +02:00
Gina Häußge
b818042fc5
📝 More work on the Py3 migration guide
2020-03-03 12:37:22 +01:00
Gina Häußge
f57afca557
📝 Add example to iterator point
2020-03-02 13:45:37 +01:00
Gina Häußge
230740708b
📝 Guide on migrating plugins to Python 3
2020-03-02 12:51:49 +01:00
Gina Häußge
770ebf2cf9
📝 Docs for new access control situation
2020-02-25 15:34:17 +01:00
Gina Häußge
58bc5171ee
✏ Adjusted plugin tutorial for py3
2019-12-13 13:43:29 +01:00
Gina Häußge
231a796200
☔ Limit legal plugin permission keys
2019-12-03 17:26:29 +01:00
Gina Häußge
fe755405e8
📝 Add docs for octoprint.access.permissions hook
...
As mentioned in #3365
2019-12-03 17:14:00 +01:00
Gina Häußge
d8c3063813
⬆️ Update 3rd party deps
2019-11-20 15:30:36 +01:00
Gina Häußge
c0096c41a0
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/cli/plugins.py
# src/octoprint/events.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/logging/__init__.py
# src/octoprint/plugins/announcements/__init__.py
# src/octoprint/plugins/appkeys/__init__.py
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/plugins/forcelogin/static/js/main.js
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/printer_safety_check/__init__.py
# src/octoprint/plugins/softwareupdate/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/__init__.py
# src/octoprint/printer/estimation.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/api/settings.py
# src/octoprint/server/api/system.py
# src/octoprint/server/apps/__init__.py
# src/octoprint/server/util/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/server/views.py
# src/octoprint/settings.py
# src/octoprint/slicing/__init__.py
# src/octoprint/static/js/app/helpers.js
# src/octoprint/static/js/app/main.js
# src/octoprint/static/js/app/viewmodels/settings.js
# src/octoprint/static/js/app/viewmodels/temperature.js
# src/octoprint/templates/dialogs/settings/accesscontrol.jinja2
# src/octoprint/templates/dialogs/settings/api.jinja2
# src/octoprint/templates/initscript.jinja2
# src/octoprint/templates/tabs/control.jinja2
# src/octoprint/timelapse.py
# src/octoprint/users.py
# src/octoprint/util/comm.py
# src/octoprint/util/gcodeInterpreter.py
# src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py
# src/octoprint/vendor/sockjs/tornado/transports/websocket.py
# translations/messages.pot
2019-05-10 17:13:55 +02:00
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
be4a931e32
✨ Add Python 3 compat control property
...
As discussed in #2722
2019-02-20 16:14:12 +01:00