Gina Häußge
55d5df7f14
Report CLOSED/CLOSED_WITH_ERROR states as "Offline"
...
Provide error string for the latter case in state as well.
2016-07-22 10:51:38 +02:00
Gina Häußge
6e73c31a68
Report correct printer state even after disconnecting
...
Error string on close with error would get lost, that happens no longer
2016-07-22 10:50:48 +02:00
Gina Häußge
d7ae147764
Tickle printer on timeout when idle and blocked
2016-07-22 09:46:58 +02:00
Gina Häußge
9eb1485e84
Add max timeouts configuration to settings
2016-07-21 18:46:54 +02:00
Gina Häußge
4f11f6362b
Saner defaults for max timeouts
...
10 max consecutive with 30s default communication timeout
is a bit too long to wait
2016-07-21 18:46:34 +02:00
Gina Häußge
4f1a55c2df
Added AWOL debug command to virtual printer
2016-07-21 16:25:49 +02:00
Gina Häußge
cfc5f45aa5
Merge branch 'maintenance' into fix/timeoutDetection
...
Conflicts:
src/octoprint/settings.py
src/octoprint/util/comm.py
2016-07-21 16:13:35 +02:00
Gina Häußge
2f26104b98
Better sleep debug command in virtual printer
2016-07-21 16:11:09 +02:00
Gina Häußge
b5e19f0676
Synchronize access to selected file
2016-07-21 16:10:57 +02:00
Gina Häußge
3614033b0d
No endless circles if we can't write any bytes to serial
2016-07-21 16:10:00 +02:00
Gina Häußge
44ec821294
Track consecutive timeouts
...
Should allow to detect if a device actually has gone missing.
See #1388
2016-07-21 16:02:28 +02:00
Gina Häußge
c6225aa834
Introduce single output method in virtual printer for easier debugging
2016-07-21 13:25:39 +02:00
Gina Häußge
5d21399a73
Custom markdown filter, 3rd party one wasn't thread safe
2016-07-21 11:50:29 +02:00
Gina Häußge
b4e91c3ff8
Merge branch 'maintenance' into devel
2016-07-18 12:13:50 +02:00
Gina Häußge
d61371a495
Make sure to include all md files in manifest
2016-07-18 12:13:16 +02:00
Gina Häußge
6cbf189104
Added some developer information
2016-07-18 12:00:04 +02:00
Gina Häußge
cba742a94f
Fix some more left-overs of py2<->py3 PRs
...
Related to #1411 , #1414 and #1415
2016-07-15 12:46:53 +02:00
Gina Häußge
7ed1f4cb9e
umask test also needs to use different octal syntax
...
Related to #1414
2016-07-15 12:37:11 +02:00
Gina Häußge
dc874d98ac
Merge branch 'dev/python3E' of https://github.com/ByReaL/OctoPrint into pr/ByReaL/dev/python3E
...
Conflicts:
src/octoprint/server/__init__.py
src/octoprint/users.py
src/octoprint/util/jinja.py
2016-07-15 12:32:24 +02:00
Gina Häußge
47b7acdfbc
Merge branch 'dev/python3A' of https://github.com/ByReaL/OctoPrint into pr/ByReaL/dev/python3A
...
Conflicts:
src/octoprint/plugins/virtual_printer/virtual.py
src/octoprint/printer/standard.py
2016-07-15 12:28:19 +02:00
Gina Häußge
e961234458
Explicitly use floor division where necessary
2016-07-15 11:42:01 +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
Gina Häußge
3cb045380e
Merge pull request #1414 from ByReaL/dev/python3D
...
python3: os.umask(002) to os.umask(0o002)
2016-07-15 11:14:11 +02:00
Gina Häußge
31d56c11c1
Merge pull request #1413 from ByReaL/dev/python3C
...
python3: xrange got removed from python 3
2016-07-15 11:13:54 +02:00
MirceaDan
a48241d45e
python3: iterators, bytes and next
...
iteritems got removed items is to be used for python 2 and 3
compatibility , it returns a view in python 3 and must be casted to a
list if the list is needed.
bytes form builtins
using builtin function next is the compatible way between python 2 and 3
2016-07-15 01:43:31 -07:00
MirceaDan
bf320a8c43
python3: os.umask(002) to os.umask(0o002)
...
os.umask(0o002) is the python 2/3 way
2016-07-15 01:18:11 -07: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
MirceaDan
149cc8c7c5
python 3 changes exceptions, queue and asesrtEqual
...
1) import Queue is now lower caps
2) exceptions
except KeyError as e:
3) assertEquals is deprecated but assertEqual does exactly same thing
2016-07-14 23:53:39 -07:00
Gina Häußge
c6a8e2beab
Merge remote-tracking branch 'origin/devel' into devel
2016-07-14 19:49:08 +02:00
Gina Häußge
28814db207
Merge branch 'maintenance' into devel
...
Conflicts:
setup.py
src/octoprint/plugins/virtual_printer/virtual.py
src/octoprint/printer/standard.py
2016-07-14 19:47:38 +02:00
Gina Häußge
92f9ed465e
Removed two unused locks from StateMonitor
2016-07-14 19:46:44 +02:00
Gina Häußge
0a8a7ba589
Fixed some imports
2016-07-14 19:43:22 +02:00
Gina Häußge
bfcd00e466
Fix: Send non-protocol messages from the printer to clients
...
Solves #1385
2016-07-14 19:42:43 +02:00
Gina Häußge
20fc7f25bc
Fix: Ensure log entries and messages from printer are unicode
...
Otherwise even one line that can't be converted while sending the
backlog to the client can kill the whole backlog.
2016-07-14 19:20:05 +02:00
Gina Häußge
297c434d64
Ease up a bit on the version pinning
2016-07-14 11:41:39 +02:00
Gina Häußge
7908f5226f
Merge pull request #1384 from docdawning/patch-2
...
Replaced broken link
2016-07-13 17:53:24 +02:00
Gina Häußge
1e7ea28195
Merge branch 'fix/serialRxBufferHandling' into maintenance
2016-07-13 17:24:13 +02:00
Gina Häußge
937487037a
Shorter timeout during heatup & no scary message on end
...
Set read timeout on serial port to a much shorter value (default 2.0s)
during a heatup. Firmware should usually send the current temperature
back every second, so if that stops we can consider the heatup to be finished
even if we don't see an ok.
That is important in cases such as SD printing, where we might see a
heatup sequence we didn't trigger ourselves, during which we shouldn't spam
the printer with commands it potentially can't process but after which we
still should take up normal communication again. In case of a heatup sequence
triggered by an SD print we won't see an ok and hence only can now through a
timeout that things are now done printer side. In such a case the user should not
get thrown a scary timeout message in their general direction either.
Solves #1409
2016-07-13 17:21:45 +02:00
Gina Häußge
9cd47bc5e2
Merge branch 'maintenance' into devel
2016-07-13 13:11:08 +02:00
Gina Häußge
2cc9631791
Reset printAfterSelect once it's triggered
...
Should solve #1407
2016-07-13 13:01:33 +02:00
Gina Häußge
27227e271d
Don't try to calculate min/max for empty bounding box
2016-07-13 12:50:16 +02:00
Gina Häußge
18243e49a6
Fix a failing unit test
2016-07-13 11:25:03 +02:00
Gina Häußge
99ec1efda7
Merge branch 'fix/serialRxBufferHandling' into devel
...
Conflicts:
src/octoprint/plugins/virtual_printer/virtual.py
2016-07-12 17:54:07 +02:00
Gina Häußge
2b9aef5874
Keep sending if serial line was only sent partially
...
So far the sending routine did not track the amount of bytes that were
actually sent. This is now fixed such that if the number of sent bytes
is less then the number of bytes of the whole message, the sending
rountine will continue to send the unsent parts of the message until
it succeeds (or a timeout occurs).
Also adjusted the virtual printer to imitate a real serial interface with
regards to having it return the written bytes and allowing a partial
sending (returning the number of bytes that actually were sent).
2016-07-12 17:48:47 +02:00
Gina Häußge
a33338684e
Merge branch 'fix/slicingDocs' into devel
2016-07-12 11:52:59 +02:00
Gina Häußge
0fec3aeca9
Merge branch 'patch-1' of https://github.com/cvignac/OctoPrint into maintenance
2016-07-12 11:52:27 +02:00
cvignac
12fcfda481
Typo correction in slicing.rst
...
In 'Retrieve all slicing profiles' :
'GET /api/slicing/profiles' -> 'GET /api/slicing'
2016-07-10 15:40:24 +03:00
Gina Häußge
58ee5f17f7
Fix simulation of moves on virtual printer
2016-07-08 16:44:40 +02:00
Gina Häußge
9b6b4a9228
Have path set for SD files and strip leading /
2016-07-08 15:45:13 +02:00