Gina Häußge
6d7f8a2a64
Don't raise error when trying to read from finished print
...
Could be caused by timing issues and one `continue_sending` too many, so
just ignore this but log a warning.
2018-04-09 15:56:35 +02:00
Gina Häußge
8869748ecc
Don't trigger ok timeout while heating or in long running command
...
Workaround for printers that don't send busy:processing during heatups
like they should.
2018-04-09 15:53:25 +02:00
Gina Häußge
e5caa3d0bf
Preparing release of 1.3.7rc4
2018-04-04 11:10:45 +02:00
Gina Häußge
a821346b07
Don't trigger PRINT_FAILED twice on disconnect
...
Fixes #2546
2018-04-04 11:10:43 +02:00
Gina Häußge
0ac9ea518c
SWU: Update "How to use release channels" link
2018-04-03 17:47:23 +02:00
Gina Häußge
9f80aefcc9
thaw_frozendict should be fully recursive
...
So far it was only deep-diving into frozendicts, not dicts (which might
contain frozendicts).
In principle we probably should also dive into tuples and lists and
other containers, but in our current application we don't put
frozendicts into those so let's not overdo it.
2018-04-03 16:56:59 +02:00
Gina Häußge
c1fe8f5a35
Fix RawWebsocketTransport of sockjs
...
Ran into issues due to session wrapping in order to support custom
Json encoding.
We now make sure to
* only wrap non-raw sessions (since only those have send_jsonified
defined which we overwrite)
* overwrite tornado.escape.json_encode to use our custom encoder as
fallback, since that is used for RawWebsocketTransport
Fixes an issue with the /sockjs/websocket endpoint hinted at in #2529
2018-04-03 16:45:14 +02:00
Gina Häußge
fcecb5c0f0
Fix heatup flag not resetting on external SD print start
...
If the start of the SD print could only be verified after the blocking
heatup was through, the start time was reset to None and hence the
heatup flag was not cleared on receival of the first ok, causing no
commands to be sent out and things to run into a timeout.
Fixes #2536
2018-04-03 15:41:13 +02:00
Gina Häußge
25005b547c
Virtual: Add some debug commands for sd printing
2018-04-03 15:38:43 +02:00
Gina Häußge
822f757f9d
Ignore wait if job is on hold
...
See #2524
2018-03-29 14:23:17 +02:00
Gina Häußge
b04aff7d5e
Fix command expansion for non-gcode commands
2018-03-28 15:24:50 +02:00
Gina Häußge
339d1df5a9
Preparing release of 1.3.7rc2
2018-03-23 15:29:00 +01:00
Gina Häußge
2abe67a24c
Logging: Discourage disabling this plugin
2018-03-23 15:27:12 +01:00
Gina Häußge
47267abcd1
Fix HTTP 500 in case of unconfigured slicer
...
Fixes #2508
2018-03-23 14:24:10 +01:00
Gina Häußge
23f130da58
Fix "undefined" settings values not saving
...
Fixes #2494
2018-03-23 14:17:23 +01:00
Gina Häußge
9af6b42bdd
Virtual: Fix queue clearing on reset
2018-03-22 17:50:48 +01:00
Gina Häußge
7cb910a69a
Forgot a monotonic.monotonic
2018-03-22 17:10:06 +01:00
Gina Häußge
c30db16085
Fire print failed event on error while printing
...
That will ensure to also stop timelapse
2018-03-22 16:17:25 +01:00
Gina Häußge
832a0c88aa
Virtual: also reset autoreporting & fix heatup
2018-03-22 16:15:56 +01:00
Gina Häußge
972c2823a0
Add missing _sprintf wrapper around messages
...
Fixes #2499
2018-03-22 14:21:20 +01:00
Gina Häußge
f10bfa67ca
Use "import pip" method of calling pip only as last resort
...
Doing that poses too much risk with pip's general "no API support", as
seen in #2499 .
2018-03-22 13:59:38 +01:00
Gina Häußge
fb834f81ee
Use pkg_resources to find out local pip version
...
Doing a "import pip; pip.__version__" or "from pip import __version__"
poses too much risk with pip's general "no API support", as seen in
#2499 .
2018-03-22 13:46:38 +01:00
Gina Häußge
957ba43320
Virtual: Support for simulated reset
2018-03-22 13:36:12 +01:00
Gina Häußge
133850f61c
Actually, make that a deepcopy
2018-03-22 13:08:01 +01:00
Gina Häußge
f782cfe83f
Thaw the frozendict on printer.get_current_data
...
We don't want calling code to run into trouble because of that.
Fixes #2506
2018-03-22 12:58:52 +01:00
Gina Häußge
70254e910c
Use octoprint.util.monotonic_time instead of monotonic
2018-03-22 11:41:31 +01:00
Gina Häußge
f981cca47e
Forgot a "global"
...
Fixes #2501
2018-03-22 11:34:39 +01:00
Gina Häußge
0224037478
Have OctoPrintJsonEncoder fall back to flask encoder
...
That supports some types we want to keep just in case.
2018-03-20 16:19:06 +01:00
Gina Häußge
da2c9632ea
Preparing release of 1.3.7rc1
2018-03-19 13:46:19 +01:00
Gina Häußge
8a3a87efac
Extract firmware safety check into bundled plugin
2018-03-19 13:22:59 +01:00
Daniele Forsi
709f7a76f1
Remove unused or duplicated imports
...
Fixes the following pylint's warnings:
W: 9, 0: Unused import io (unused-import)
W: 33, 1: Unused walk imported from os (unused-import)
W:308, 4: Reimport 're' (imported line 16) (reimported)
W: 17, 1: Reimport 'os' (imported line 8) (reimported)
2018-03-19 10:49:03 +01:00
Gina Häußge
3e24b68b45
Attach additionalClasses to all custom controls
...
Fixes #2489
2018-03-19 10:36:26 +01:00
Gina Häußge
46a0c3057f
Logging: At missing CSS file
...
Thanks @kantlivelong for the heads-up
2018-03-19 10:36:07 +01:00
Gina Häußge
ccbe9311d7
Add firmware safety warning
...
For now it only triggers for the Anet A8's stock firmware which for some
idiotic reason has thermal runaway protection disabled (it's 2018 ffs!)
2018-03-18 00:38:06 +01:00
Gina Häußge
82dffa50f7
Improve log output of PipHelper & LocalPipHelper
...
Should make it easier to detect the reason for a broken pip install in
the future (e.g. non writable install directories).
2018-03-16 17:23:56 +01:00
Gina Häußge
0d51e5bb1c
Hide connection refresh button if panel is collapsed
2018-03-16 14:34:09 +01:00
Gina Häußge
fd7fbcc113
CSS update
2018-03-16 14:12:52 +01:00
Gina Häußge
5791562c6a
[Doc] Some changes on the index & a fix
2018-03-16 14:12:39 +01:00
Gina Häußge
6582740a1e
http://faq... -> https://faq...
2018-03-16 11:15:22 +01:00
Gina Häußge
73ce6f43ab
bit.ly/octoserial -> faq.octoprint.org/serialerror
2018-03-16 11:14:19 +01:00
Gina Häußge
0eb441058e
Links to new forum & FAQ
2018-03-13 18:51:04 +01:00
Gina Häußge
32a31a7d4a
Hook for defining custom atcommands
2018-03-13 11:06:52 +01:00
Gina Häußge
01bae0c95c
_atcommand_abort_sending => _atcommand_abort_queuing
2018-03-12 18:37:43 +01:00
Gina Häußge
ada873be1d
First throw at native @ command support
...
For now the following commands are supported:
* @pause: Pauses the print
* @resume: Resumes the print
* @cancel or @abort: Cancels the print
As discussed in #2414 . Also implements #324 .
2018-03-12 18:33:40 +01:00
Gina Häußge
a95407c815
Fix flask_login._get_remote_addr
...
We can't easily upgrade to 0.3.0 right now due to backwards incompatible
changes in that version (some methods became properties). So for now
we simply backport the fix in question through a monkey patch.
Fixes #2296
2018-03-12 16:40:19 +01: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
e32aa3f2c8
text/plain mime type for log downloads
2018-03-12 12:38:39 +01:00
Gina Häußge
8e764e34ee
SWU: Refer to console log on update failure
2018-03-12 12:25:17 +01:00
Gina Häußge
cfb0eb84e2
Make sure that "method" is a function
...
It could be null or anything else really, so better be safe than sorry
;)
See comments in ntoff/OctoPrint-Estop#4
2018-03-09 19:12:26 +01:00
Gina Häußge
effefffe74
SWU: Better detection if an update is already running
2018-03-09 16:06:50 +01:00