Gina Häußge
0949975fcd
Merge pull request #3750 from frenck/frenck-2020-0003
...
Cleanup encoding pragma headers and future imports
2020-09-28 11:46:41 +02:00
Franck Nijhof
025fb23fed
Cleanup encoding pragma headers and future imports
2020-09-25 22:56:25 +02:00
Gina Häußge
c0495d22c9
🐛 Remove default submit from settings forms
...
We only want explicitly defined form behaviour.
Otherwise stuff might be triggered by hitting
the enter key that should not be triggered.
Closes #3740
2020-09-23 11:25:32 +02:00
Gina Häußge
0dd43d7bcc
✨ virtual printer: format strings for temp report
2020-09-08 15:09:38 +02:00
Gina Häußge
f415010337
✨ virtual printer: M600 with busy wait & prompt
...
Needed for testing #3699
2020-09-03 17:46:46 +02:00
Gina Häußge
df66dd9abf
✨ Virtual: Support M33 & M20 w/ long name
2020-07-13 13:39:58 +02:00
Gina Häußge
0a9e9ef3a3
🐛 Fix handling of shared nozzle reporting w/ only T0
...
Fixes #3467
2020-06-12 13:55:57 +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
5cbba2b2b7
✨ virtual printer: fake port/baudrate properties
2020-06-05 12:28:21 +02:00
Gina Häußge
a4d6e24dad
♻ Isolate virtual printer fully into plugin
2020-06-04 19:02:25 +02:00
Gina Häußge
ed1b02dcb2
Merge branch 'pr/3553' into maintenance
2020-05-06 15:42:52 +02:00
Shawn Bruce
3bc4ae14cc
Fix issue where _simulateTemps may never reach target temp but instead be stuck within 0.5C(delta)
2020-05-05 12:24:05 -04: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
30a4b9e9ab
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/virtual_printer/virtual.py
2019-10-30 15:59:30 +01:00
Gina Häußge
81a259e51b
☔ virtual printer: parameter existence checks
...
Closes #3319
2019-10-30 15:45:36 +01:00
Gina Häußge
8df2a5436b
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/plugins/tracking/__init__.py
# src/octoprint/printer/standard.py
# src/octoprint/server/views.py
# src/octoprint/static/js/app/viewmodels/printerstate.js
# src/octoprint/static/js/app/viewmodels/users.js
# src/octoprint/timelapse.py
# src/octoprint/users.py
# src/octoprint/util/comm.py
2019-09-12 09:30:28 +02:00
Piotr Usewicz
ee93e25ffd
Rename currentLine to current_line
2019-07-16 11:02:52 +02:00
Gina Häußge
81342acccc
☔ Detect endless resend requests & abort
...
If the printer keeps requesting the same line over and over again,
something is either seriously wrong with the line or with the connection
In any case, log an error and disconnect.
2019-06-17 18:35:44 +02: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
a33a7b4d67
Merge branch 'staging/maintenance' into maintenance
2019-04-11 15:25:12 +02:00
Gina Häußge
132e2cb244
🐛 virtual printer: Fix handling of closed connection
...
Closes #3114
2019-04-08 12:24:24 +02:00
Gina Häußge
3574c2ddf9
🐛 virtual printer: Fix yet another unicode issue
...
Closes #3105
2019-04-04 19:05:17 +02:00
Gina Häußge
c879ad27f4
♻ Turn lines read from serial into unicode
...
Backported from devel branch.
Should also fix #3091
2019-04-01 13:56:19 +02:00
Gina Häußge
6e069211cc
Merge remote-tracking branch 'origin/maintenance' into maintenance
2019-03-18 17:06:26 +01:00
Gina Häußge
8d3befb01f
✨ Support for heated chamber fw capabilities
...
Chamber temperatures reported via M105 will only be parsed if the
fw reports chamber capabilities (through Cap:CHAMBER_TEMPERATURE:1) or
the currently selected printer profile has a heated chamber configured.
This is to avoid incompatibility issues with firmware variants that
might already use the C parameter for something else (which might be the
case since we don't have a reliable well defined standard that people
need to adhere to...)
Chamber temperature commands M141 and M191 will only be allowed to be
sent if the selected printer profile has a heated chamber configured.
This mirrors the behaviour for the bed temperature commands M140 and
M190 and heated bed configuration.
Display of chamber data in the graph will only happen if the printer
profile has a heated chamber configured.
Implements one workflow behind #321
2019-03-18 16:51:12 +01:00
Gina Häußge
d5eefcd1a5
🐛 virtual: fix homing
2019-03-16 09:40:55 +01:00
Gina Häußge
c1670d03c8
🐛 virtual: fix parsing of negative coordinates
...
Closes #3080
2019-03-16 09:29:04 +01: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
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
Matthias Urlichs
fe090cc6cc
Virtual printer: str vs. bytes
2019-02-05 14:29:27 +01:00
Matthias Urlichs
ab3c4ab66c
Don't compare with None
2019-02-05 14:29:04 +01:00
Matthias Urlichs
67c5a5e168
went through "except Exception:" with a fine comb
2019-02-03 16:39:01 +01:00
Matthias Urlichs
9fa20f0e52
rename to_str to to_bytes
2019-02-03 14:54:28 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Matthias Urlichs
7522dbed1d
serial readline: bytes
2019-02-03 14:06:06 +01:00
Matthias Urlichs
e03feeb7ac
checked "basestring"
2019-02-01 17:23:08 +01:00
Matthias Urlichs
f3fdac7e5a
Use raw strings for all regexps.
...
No exceptions please.
2019-01-28 14:14:23 +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
958fc7600d
Merge commit 'e0543de8ef5c1f67d4064e84a5e7ecacbdf1029e' into py23
2019-01-27 17:15:52 +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
f243a52823
all files start now with same 2 lines
...
# coding=utf-8
from __future__ import absolute_import, division, print_function
2018-12-02 02:13:12 -08:00
MirceaDan
c623e90ebc
chnaged teh default from binary to text mode
...
seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
2018-12-01 17:43:19 -08:00
MirceaDan
337e49208a
py23 compat: using io.open instead of open
...
for python3 and python2 to work teh same io.open must be used for file handling
2018-11-30 00:32:57 -08:00
Gina Häußge
fc97d0b424
Virtual: simulate some fatal errors
2018-09-29 14:38:35 +02:00
Gina Häußge
f3cfe2ba48
Virtual: add long running pseudo G33
...
Useful for testing busy protocol on commands.
2018-09-21 18:25:58 +02:00
Gina Häußge
e2f626d421
Virtual printer: select_sd command
2018-06-19 11:24:05 +02:00
Gina Häußge
17c6c83503
Fix SD printing
2018-06-15 17:02:53 +02:00
Gina Häußge
86b886ede7
Remove resend repetition code
...
It's apparently completely broken and the fact that no one noticed
and reported that means it never really gets used either from the looks
of it.
So instead of allowing it to introduce broken resend handling, we'll
rather remove it for now.
2018-06-15 13:15:27 +02:00