Rotzbua
cfd36beaa1
💬 Change docs & license links to https (#4320 )
2021-11-30 16:09:17 +01:00
Gina Häußge
d41feaec6d
✨ discovery: Allow address/interface restriction
...
Implements #3791
2020-11-02 12:02:42 +01:00
Gina Häußge
b5be8f3eae
🎨 Add codemods to pre-commit, fix flake8
2020-10-07 16:27:11 +02:00
Gina Häußge
fbfb34df58
🎨 Switch to use of isort
2020-10-07 13:15:52 +02:00
Gina Häußge
1f93b2355a
🎨 Switch to black formatting
2020-10-07 13:13:06 +02:00
Gina Häußge
af60fd6428
🎨 Change dict constructors to literals
2020-10-06 14:57:47 +02:00
Gina Häußge
559c9b4e52
🐛 discovery: Send three SSDP notify as defined in spec
2020-10-05 11:45:50 +02:00
Franck Nijhof
cf16ce6e64
Add unique ID TXT record to ZeroConf service
2020-09-23 13:42:45 +02:00
Gina Häußge
abbbd926bc
🐛 discovery: fix an exception during shutdown
2020-08-05 11:51:50 +02:00
Gina Häußge
05cd917693
♻ Remove no longer needed compatibility layer
2020-07-31 15:12:51 +02:00
Gina Häußge
ffde393c66
♻ Use vendored zeroconf only on Py2
...
Adjusted vendored version to match (used) signatures of current py3
only versions. Use official builds under Py3
2020-07-31 15:05:40 +02:00
Gina Häußge
fb8fcb0685
♻ Vendor bundle python-zeroconf
...
We need to use an older version for Python 2 compatibility reasons but
need to fix some things on that.
2020-07-31 13:13:41 +02:00
Gina Häußge
65937a9244
💚 Make flake 8 happy
2020-07-31 12:50:02 +02:00
Gina Häußge
06637280e5
♻ Discovery: Switch to python-zeroconf
...
Pybonjour is no longer maintained and Python 2 only.
Closes #3664
2020-07-31 12:45:23 +02:00
Gina Häußge
eef51b1cb9
🐛 Mark all bundled plugins py3 compatible
...
That somehow got forgotten. Wasn't needed since bundled always get
loaded, however now that we display that kind of information in the
plugin manager it should reflect reality.
2020-06-10 15:02:46 +02:00
Gina Häußge
7f2eb470e4
Merge branch 'maintenance' into devel
2019-11-08 14:52:20 +01:00
Daniele Forsi
2b60dbc7e1
Fix typos
...
Those typos were found with codespell which is available from
https://github.com/lucasdemarchi/codespell.git
2019-11-07 00:02:05 +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
76ad332287
♻ Use monotonic_time for relative times
...
Timeouts, durations and such shouldn't depend on the non-monotonic
system clock but instead use a monotonic time source.
2019-03-12 16:03:58 +01:00
Gina Häußge
cc6f61c62e
🐛 discovery: fix unicode vs bytes issues in SSDP
2019-02-06 12:00:16 +01:00
Matthias Urlichs
6bf8384c35
Kill of u"" (visual clutter)
2019-02-03 14:25:41 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Matthias Urlichs
a1a15e40e0
Replace all bare "except:" handlers
...
These are never what we want, as they swallow KeyboardInterrupt.
TODO: many of these handlers really should be more specific and/or
log that they replaced an unparseable value with a default.
2019-01-28 07:50:55 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +01:00
Matthias Urlichs
f993f744ba
Merge commit 'c623e90ebc59b90b4f4cf582ab8185b2872acff4'; commit 'f416e96414f33fb31afdf4dfbf3c863e3db35543'; commit '9ecf39febe31a44e5f5db28249ebbf006ac1580c'; commit '582b03f21fe3d808bf4e11bbba90af54b6651b34'; commit 'f5c8b04958170f19f1806b1722bf5e857ded3dce'; commit '36818057a3b4769a77731f3be8bc661437db7132'; commit 'd987cb23c119132b287f70f1c979aac8c9fff7d2' into py23
2019-01-27 17:10:01 +01:00
MirceaDan
f5c8b04958
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
...
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2018-12-01 15:07:04 -08:00
Gina Häußge
8e39eac207
discovery: start name counter at 1
...
We want our second instance with the same name to show up as (2) not (1)
2018-10-19 14:17:16 +02:00
Gina Häußge
36b07b2337
discovery: enumerate zeroconf service names on collision
...
Fixes #2852
2018-10-19 13:58:37 +02:00
Gina Häußge
f82d50b0f6
Some compatibility fixes
2018-07-13 18:41:50 +02:00
Gina Häußge
e0722e6c28
flask.ext.* => flask_*
...
And some refactoring in the server class
2018-03-12 16:39:35 +01:00
Gina Häußge
ca7aa322c3
Some cleanup, refactoring & docs
2017-11-29 15:55:33 +01:00
Gina Häußge
f1cf482919
Adjusted metadata of bundled plugins
2017-03-30 14:09:12 +02:00
Gina Häußge
76a04cbe9d
Merge branch 'dev/python3B' of https://github.com/ByReaL/OctoPrint into pr/ByReaL/dev/python3B
2016-07-15 11:28:55 +02:00
MirceaDan
3dae8d90d7
python3: xrange got removed from python 3
...
python3 range is = python2 xrange
to make python 2 range = with python3 range i used teh future package
and did
from builtins import range
2016-07-15 00:56:45 -07:00
MirceaDan
c33a9f9aa2
from __future__ import absolute_import, division, print_function
...
changed the behavior to import division and print to be consistent
across all app and similar with python 3.x
2016-07-15 00:16:58 -07:00
Gina Häußge
2aa31024e6
Finalizing first version of plugin lifecycle management
2015-04-14 17:55:46 +02:00
Gina Häußge
8ff0096eb6
Fix & Docs: Plugins may only have one mixin implementation
...
Multiple mixins are allowed of course. Allowing multiple implementations lead to too many problems due to plugin names for referring to the APIs of SimpleApiPlugins or the assets of AssetPlugins.
Hence __plugin_implementations__ has been deprecated in favor of __plugin_implementation__. The plugin subsystem will automatically copy the first implementation from __plugin_implementations__ to __plugin_implementation__ and log a deprecation warning.
Adjusted documentation accordingly. Also added docs for helpers.
2015-03-30 16:50:06 +02:00
Gina Häußge
974e19fa3a
Removed version numbers from bundled plugins
...
Missing version numbers will not be displayed as "(unknown)" anymore, and bundled plugins don't necessarily need their own version.
2015-03-25 18:56:59 +01:00
Gina Häußge
4997814abe
Moved PluginSettings interface from CamelCase to snake_case (backwards compatible)
...
Added wrappers to ensure existing plugins being able to work, although them using the old camel case method names now causes a deprecation warning being logged
2015-02-26 13:43:01 +01:00
Gina Häußge
8bfa3ef250
Adjusted discovery plugin to new blueprint and settings functionality for plugins
2015-01-30 22:22:39 +01:00
Gina Häußge
c3bb575b48
Added plugin metadata to bundled plugins
2015-01-26 22:22:19 +01:00
Gina Häußge
3d5fdf2a91
Fixed bug that caused SSDP discovery not to work anymore
...
Blueprint was protected by API key which lead to the discovery.xml
file not being retrievable.
2015-01-01 01:52:41 +01:00
Gina Häußge
c1f0c76d17
Properly handle non-ASCII instance names
2014-09-21 18:14:01 +02:00
Gina Häußge
e69c1e8e93
Added some comments to discovery plugin
2014-09-12 11:22:06 +02:00
Gina Häußge
d1c34a9c88
Try to reconnect to backend when switching from ap to wifi
...
netconnectd now regularly pings hostname it got from backend (defaults to <systemname>.local) while switching to wifi from ap mode and reloads page to that if host comes up.
This requires the browser the client is currently running in to be able to resolve local domains as broadcasted via avahi. Windows systems will need to install the Bonjour for Windows client for this to work.
2014-09-11 15:40:04 +02:00
Gina Häußge
65263a8b74
Made what is registered for discovery more configurable
...
- Additional zeroconf services may now be added via config
- Exposed zeroconf_register method as helper for plugins
- Vendor specifics may be added to service registrations via config
2014-09-11 12:19:10 +02:00
Gina Häußge
56b1705df4
Added plugin helpers, added ssdp/zeroconf browsing in discovery plugin as first helpers
2014-09-10 22:28:03 +02:00
Gina Häußge
08e4c05129
Plugins can now also be retrieved via entry_points, also added EventPlugin and afterStartup handler in StartupPlugin
2014-09-10 15:46:14 +02:00
Gina Häußge
80486d644d
Better logging for NOTIFY messages
2014-09-07 17:32:02 +02:00
Gina Häußge
1bdc167f7a
Also install plugins from setup.py and don't log notify as info level
2014-09-07 17:28:50 +02:00