Gina Häußge
38a321e175
✨ Add configurable list of blocked and pausing commands
...
Instead of a boolean option to block sending of M0 *and* M1 and
hardcoding them and M25 to pause an ongoing print, we now have two lists
for blocked commands and pausing commands respectively.
Blocked by default: M0 and M1.
Pausing by default: M0, M1 and M25.
Implements #2970
2019-03-12 12:16:23 +01:00
Gina Häußge
32050c31ae
🐛 Only process pause if we aren't already pausing
...
Also don't process a pause if we are cancelling. "isPrinting" is too
broad here, so we use explicit states.
2019-03-12 12:12:24 +01:00
Gina Häußge
f020fc1bc6
✨ Add ipv4- and ipv6-only command line flags
...
-4 or --ipv4 will behave as if "--host 0.0.0.0" (or any other specific
v4 address) was supplied and only bind the server socket to v4. It will
be ignored if a v6 address is set to bind to.
-6 or --ipv6 will only bind the server socket to v6 instead of dual
stack on both v4 and v6. It will be ignored if a v4 address is set to
bind to.
Implements #2904
2019-03-11 17:21:28 +01:00
Gina Häußge
a1e8694073
🐛 Don't change to PRINTING state on resume if not RESUMING
...
See #2955
2019-03-11 16:02:20 +01:00
Gina Häußge
e748b52098
🐛 Don't change to PAUSED state if not PAUSING
...
Fixes #2955
2019-03-11 15:34:11 +01:00
Gina Häußge
aab629d80e
🎨 except: => except Exception:
2019-03-06 15:10:38 +01:00
Gina Häußge
4e2afbc170
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/filemanager/storage.py
# src/octoprint/util/__init__.py
# src/octoprint/util/comm.py
2019-03-06 14:49:42 +01:00
Gina Häußge
8668c6200a
✨ Decorator for timing methods
...
Probably mostly helpful during development...
2019-03-06 13:53:53 +01:00
Gina Häußge
e01f391b30
⚡ More intelligent use of copy & deepcopy
...
Improves performance of file manipulation, especially in cases with a
lot of files in the folder, without the added complexity of fully
decoupling metadata file serialization from general processing.
Better fix for #3057
2019-03-06 13:44:45 +01:00
Gina Häußge
92618362e1
💚 Forgot to adjust the tests for d071684
2019-03-05 17:01:10 +01:00
Gina Häußge
d071684d41
♻ Remove old metadata.yaml files
...
Were deprecated and supposed to be removed with 1.3.10, we'll do it with
1.3.11.
2019-03-05 16:53:30 +01:00
Gina Häußge
7d0bd6a339
☔ Remove stale entries from metadata
...
If a file no longer exists on disk for whatever reason it also doesn't
need to be kept in metadata.json.
See also #3057
Cherry-picked from 15d3b2ca
2019-03-05 16:20:13 +01:00
Fabi0San
1b5a654a2d
Hide Tool section in Control for machines with no extruders. Such as Lasers.
2019-03-04 19:00:08 -08:00
FabioSan
f0ee7f343e
Hides temperature tab if the machine has no heated bed nor extruders.
2019-03-04 18:34:55 -08:00
Gina Häußge
3e16f0901a
Merge remote-tracking branch 'origin/maintenance' into maintenance
2019-03-01 11:21:01 +01:00
Gina Häußge
8866ed716d
☔ Better resilience against invalid SD status reports
2019-03-01 11:20:45 +01:00
Gina Häußge
cf16392e18
💚 Ignore vendor path for tests & fix 2.7 tests
2019-02-28 17:05:13 +01:00
Gina Häußge
34e4a20866
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/__init__.py
# src/octoprint/plugins/tracking/__init__.py
2019-02-28 16:40:04 +01:00
Gina Häußge
0f157d3747
♻ Load bundled plugins under octoprint.plugins.*
...
Makes more sense than putting them into sys.modules as <identifier>,
which also can cause conflicts (e.g. in the case of octoprint.plugins
.logging which then suddenly gets found instead of the built-in crucial
logging module).
2019-02-28 16:37:09 +01:00
Gina Häußge
1b3a8acf0d
♻ Work around deprecation of imp
...
After two days of trying to make the plugin loading work completely,
including loading bundled templates etc, using only native importlib
methods, I've finally given up and bundled the (deprecated) imp module
for Python 3+ which relies on importlib but does some magic I've yet to
figure out which makes stuff just work.
Replacing imp completely with something more slim is something for
another day, for now we want to get stuff to work under Py3 with as
little warnings as possible.
2019-02-28 16:07:07 +01:00
Gina Häußge
fdb4e75241
Merge pull request #3066 from fieldOfView/fix_docs_job_state
...
Add missing documentation about state in `jobs` endpoint
2019-02-28 12:34:35 +01:00
Gina Häußge
4dbb24ecd7
📝 state is not a sub data model but a string
2019-02-28 12:26:25 +01:00
fieldOfView
a15e2de251
Fix datamodel structure
2019-02-28 12:17:35 +01:00
fieldOfView
c652bed871
Add missing documentation about state in jobs endpoint
2019-02-28 11:40:22 +01:00
Gina Häußge
1ed6730400
🔊 Improved logging in case of plugin syntax errors
2019-02-27 16:11:00 +01:00
Gina Häußge
dde99736e4
📝 Fix an error in the docs
2019-02-27 14:32:37 +01:00
Gina Häußge
334f2c35f9
✨ Allow to ignore compatibility for plugins
...
Adding a plugin's identifier to the list plugins._forcedCompatible in
config.yaml will make OctoPrint ignore its python compatibility status,
e.g.
plugins:
_forcedCompatible:
- myplugin
This might be helpful for plugin authors during development but should
NOT be used in production!
See also #2722
2019-02-27 14:28:35 +01:00
Gina Häußge
aacd59ae78
☔ Log exceptions while parsing the AST
2019-02-27 13:43:01 +01:00
Gina Häußge
253a38c32d
♻ gcode => printables
2019-02-26 15:31:22 +01:00
Gina Häußge
e08becbb4c
Merge pull request #3055 from AndyQ/show_current_layer
...
Added ability to preview the current layer to be drawn
2019-02-26 13:54:43 +01:00
Gina Häußge
09a043b393
🐛 tracking: fix handling of missing print time
...
See also #3063
2019-02-26 13:50:35 +01:00
Gina Häußge
058dbd0c2e
🐛 virtual: fix regexes again
2019-02-22 18:46:45 +01:00
Gina Häußge
54c8923087
🐛 virtual: fix some str/bytes issues
...
Threw some type annotations into it while at it. Should make the IDE
become angry at such problems in the future.
2019-02-22 18:29:36 +01:00
Gina Häußge
1025f0be43
💚 Revert "🎨 Remove unnecessary import"
...
This reverts commit 295b96f259 .
2019-02-22 13:31:36 +01:00
Gina Häußge
295b96f259
🎨 Remove unnecessary import
...
Already included in the next line
2019-02-22 12:53:18 +01:00
Gina Häußge
adea0db344
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/util/__init__.py
2019-02-22 12:48:52 +01:00
Gina Häußge
0c4f4383e3
♻ Introduce type hints
...
For now we'll only use them to have our IDEs scream at us...
2019-02-22 11:44:45 +01:00
Gina Häußge
9f2821fe96
👷 ALLOW_UNICODE and custom pretty printer in doctests
...
We could also have set ALLOW_UNICODE globally, but this way we might
catch situations where we definitely do not expect mixed results between
py2 and py3.
2019-02-21 15:36:10 +01:00
Gina Häußge
dcc1148863
👷 Switching from nose to pytest
2019-02-21 15:34:07 +01:00
Gina Häußge
e972026ad0
🚸 PMGR: show message if plugin repo list is empty
...
E.g. due to filters or compatibility issues.
2019-02-20 18:11:08 +01:00
Gina Häußge
6592be63f8
✨ PMGR: Support python compatibility flag in plugin repo
2019-02-20 18:10:59 +01:00
Gina Häußge
8b5626e49c
💚 Fix unit tests under Py3
2019-02-20 16:28:06 +01:00
Gina Häußge
be4a931e32
✨ Add Python 3 compat control property
...
As discussed in #2722
2019-02-20 16:14:12 +01:00
Gina Häußge
548da0d64f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/environment.py
2019-02-20 15:33:15 +01:00
Gina Häußge
45aa26f13e
♻ Add central methods for getting python version
2019-02-20 15:32:07 +01:00
Gina Häußge
25f26170ff
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/plugins/printer_safety_check/__init__.py
# tests/filemanager/test_filemanager.py
2019-02-20 15:10:25 +01:00
Gina Häußge
4a64bc6023
Merge branch 'improve/moreFlexiblePrinterSafetyChecks' into maintenance
...
# Conflicts:
# src/octoprint/plugins/printer_safety_check/__init__.py
2019-02-20 14:41:09 +01:00
Gina Häußge
8e6773d19f
🐛 printer_safety_check: Fix some issues with new implementation
2019-02-20 14:39:21 +01:00
Gina Häußge
dfcddea581
🎨 Fix some whitespace issues
2019-02-19 13:28:15 +01:00
Gina Häußge
ff59e275bf
Merge branch 'improve/errortracking_plugin' into maintenance
2019-02-19 13:11:38 +01:00