Compare commits

..
63 Commits
Author SHA1 Message Date
Gina Häußge 6393de8c7d Preparing release of 1.3.1 2017-01-25 08:24:07 +01:00
Gina Häußge adbd6b7fa1 Preparing release of 1.3.1rc2 2017-01-20 15:33:32 +01:00
Gina Häußge 3da3cfd8a0 Fixed passing of "daemon" legacy parameter on CLI
This time this hopefully really solves #1641
2017-01-20 15:33:24 +01:00
Gina Häußge 4c971a92db from ... import * is only allowed at module level 2017-01-13 14:17:39 +01:00
Gina Häußge 5b3a7bed93 Preparing release of 1.3.1rc1 2017-01-13 13:56:50 +01:00
Gina Häußge 1f0e67f85e Added FAQ link to footer 2017-01-13 13:42:53 +01:00
Noah Martin 74597483dc Added a mask icon for Safari pinned tab and touchbar
(cherry picked from commit ff02192)
2017-01-13 13:33:21 +01:00
Gina Häußge cb89509bb2 Fixed sorting in 3rd party licenses 2017-01-13 13:30:57 +01:00
Gina Häußge c194fdbb28 Added @noahsmartin to AUTHORS 2017-01-13 13:30:38 +01:00
Noah Martin b1057a4cc8 Simplified install process on Mac
(cherry picked from commit 726eec8)
2017-01-13 13:29:11 +01:00
Gina Häußge 20cd13904d Cura: Fix selection of which start/end gcode to choose
So far the plugin selected the gcode script corresponding to the number of
extruders configured in the printer profile. After a close look into the
implementation in Cura itself, prompted by #1708, it turns out that this is
in fact wrong.

Cura selects the gcode script to use based on the maximum of the number of
extruders needed for printing the models in the scene and the minimum number
of extruders needed for generating support (if support extruder is "both" or "first"
or there is only one extruder, that's 1, if it's "second" and there is more than one
extruder, it's 2).

This commit changes the plugin's implementation to mirror this implementation.
The difference to Cura is that we have the number of extruders needed for the
models in the scene hard coded to 1 since we only support STL right now which
can never contain more than one object. If we ever decide to support merging of
multiple STLs into one single multi-extruder print or other model files like AMF
or OBJ from OctoPrint's slicer support, we need to change this.
2017-01-13 12:54:01 +01:00
Gina Häußge 95e4ad82b4 Cura: Fix off-by-one error for placeholder replacement
Affected print_temperature and filament_diameter placeholders.

E.g. `print_temperature2` was wrongly attempting to fetch `print_temperatures[2]`
 instead of `print_temperatures[1]` (0-based-indexing!)

 Partially fixes #1708
2017-01-13 11:25:08 +01:00
Gina Häußge 9e3d2bed65 Merge branch 'improve/passwordManagers' into maintenance 2017-01-12 18:59:39 +01:00
Gina Häußge 7f3d4a8380 Allow configuration of analysis throttling via config.yaml 2017-01-12 18:16:50 +01:00
Gina Häußge e6dd37e26e Various analysis queue fixes
* Fix priority queue sorting (sorts ascending, not descending!)
  * Abort low priority jobs when a high priority job comes in
  * Utilize queue for tracking aborted jobs too
  * Abort analysis for items that are to be deleted/moved (also
    fixes issue under Windows where it was impossible to delete
    a file for which the analysis was still running).
2017-01-12 18:16:42 +01:00
Gina Häußge d69c166f10 Fix unanalysed files from subfolders to not be found on startup 2017-01-12 15:15:02 +01:00
Gina Häußge f6875c0df4 Update german translation 2017-01-12 14:34:00 +01:00
Gina Häußge 3ef7b37dc9 Hide login form when we are already logged in
Otherwise the Lastpass stuff will show up after all, despite
the positioning hack.
2017-01-12 14:23:44 +01:00
Gina Häußge 03085ab39b Fix width/height of login button in navbar 2017-01-12 14:22:34 +01:00
Gina Häußge de0ee08e05 Fix Lastpass input button handling in login form
* move hidden login form to the left to hide overlayed
    Lastpass context buttons
  * do dropdown toggling for login form manually to
    not only ignore clicks into form but also into overlayed
    Lastpass context buttons for closing the dropdown again;
    do close dropdown for included a and button elements
    though
2017-01-12 13:32:10 +01:00
Gina Häußge 881d3bb212 Merge branch 'maintenance' into main/supportPasswordManagers 2017-01-11 19:03:31 +01:00
Gina Häußge fb5d5682e6 Do not eat 0% progress
Fixes #1344 (this time for good I hope)
2017-01-11 17:57:45 +01:00
Gina Häußge 071c32fff1 Ported fix of solid layer count from Ultimaker/CuraEngine#140
Fixes #1692
2017-01-11 16:15:43 +01:00
Gina Häußge 7c74594f06 Adjusted Cura profile handling to match latest Cura Legacy version
* Added/changed mappings of profile to engine settings to
    match Cura Legacy mapping:
    * perimeterBeforeInfill: taken from perimeter_before_infill (new,
      fixes #1693)
    * skinSpeed: taken from solidarea_speed (new)
    * raftAirGapLayer0: sum of raft_airgap and raft_airgap_all
    * raftAirGap: taken from raft_airgap_all (new)
    * raftFanSpeed: changed to 0
    * raftSurfaceThickness: taken from raft_surface_thickness (new)
    * raftSurfaceLinewidth & raftSurfaceLineSpacing: taken from
      raft_surface_linewidth (new)
  * Mach3 Gcode Flavor replaces S parameter with P parameter in
    temperature commands within generated GCODE, like in Cura
    Legacy
2017-01-11 14:50:09 +01:00
Gina Häußge d83440d32d Use full path instead of only the file name for busy detection 2017-01-11 13:53:28 +01:00
Gina Häußge c0dff1359b Fix file_in_path for windows environments 2017-01-11 13:51:40 +01:00
Gina Häußge 2ab7fa4d3a Support volume calculate for S3D files 2017-01-11 12:11:16 +01:00
Gina Häußge f20e985d0d profile => slicing_profile & removed filament 0 check
If the slicer returns values for a tool we want it in our analysis
result, even if it's zero. That way the result will be the same as
if we have our own built in gcode analyser take a look at the
file.

(cherry picked from commit 818ae92)
2017-01-11 12:04:13 +01:00
derpicknicker1 58f934e2c1 Fix issue in getting file metadata after slicing
This fixes the issue that there were no informations about filament
usage in metadata after slicing with cura plugin. Trying to call
profile.get_float("filament_diameter") ended in en exception with
message " 'module' object has no attribute 'get_float' ". So i defined
profile before using profile and now it works.
See issue #1685
Also inserted a check to determine if filament usage is > 0 to exclude
tools with no filament usage in metadata.

(cherry picked from commit c9b38bd)
2017-01-11 12:04:02 +01:00
Gina Häußge 06eae381e4 Fixed an error in the dev env setup docs 2017-01-10 19:01:23 +01:00
Gina Häußge 50965d69ce Include info about setting up dev env in CONTRIBUTING.md 2017-01-10 19:00:58 +01:00
Gina Häußge 6e474d9096 Fix model size calculation during GCODE analysis
* Properly handle G0/G1 with no X, Y, Z coordinates in relative mode
    instead of duplicating coordinates - should fix #1675
  * Only take move commands with X, Y, Z coordinates into account for
    model size calculation - this makes our internal GCODE analysis behave
    like the GCODE viewer's analysis and produce the same model size. The
    downside is that extrusions on the origin are no longer taken into account
    for checking if a model is within bounds of the print bed, but that should
    hopefully not produce any issues in the real world.
2017-01-10 12:16:33 +01:00
Gina Häußge 63c588fce9 Update command line examples in README 2017-01-09 17:07:27 +01:00
Gina Häußge f3f60674fc Allow a retraction z hop of 0 in timelapse configuration
See comment by @markwal at
https://github.com/foosel/OctoPrint/pull/1148#pullrequestreview-14802655
2017-01-09 17:00:10 +01:00
Marc Hannappel dc3182c872 Fix folders doesn't get listed when performing a filtering in file section, issue #1667
(cherry picked from commit 8a8b88a)
2017-01-09 16:54:55 +01:00
Gina Häußge 6c9cac0eca Merge branch 'master' into maintenance 2017-01-09 14:10:04 +01:00
Gina Häußge 101471235c Pinning Jinja to <2.9 for now
Variables defined in an outer scope can no longer be set from an inner scope (see
pallets/jinja#641). Regardless of whether that is right or wrong, we can't control if
people are using such constructs in their plugins, which versions of Jinja >= 2.9 would
now break out of the blue, regardless of OctoPrint version. That is unacceptable sadly
and requires pinning for now, until plugin authors have had a chance to adapt
accordingly.

Also see #1697.
2017-01-09 14:09:49 +01:00
Paul de Vries 6cc84a1473 Make the login overlay always 'visible' in the DOM so that password managers can auto-submit their credentials 2016-12-31 13:13:01 +01:00
Paul de Vries ce1344eb0c Remove legacy onKeyUp and ignored autocomplete 2016-12-30 20:56:08 +01:00
Gina Häußge 84e8f8e1ca Fix terminal filter regexes & add filter for wait 2016-12-16 13:01:56 +01:00
Gina Häußge 2669e79778 Change wording of buttons in cancel confirmation
"Cancel" and "Proceed" is misleading.

Closes #1656
2016-12-16 12:31:07 +01:00
Gina Häußge 42e3922053 Don't care about common params on CLI
--basedir, --config, --verbose, --safe may now come before or after
subcommands and should still be evaluated.

For the server commands (legacy, "server" and "daemon"), the same
should now hold true for the related parameters --host, --port, --debug,
--logging, --iknowwhatimdoing and also --pid (for daemon command).

While having the parameters belong to the individual commands and only
there (which is click's basic approach) is way more cleaner, too many people
were running into issues with that strict approach after all.

I just hope the somewhat hackish approach with context injection needed to
get the less strict version to work won't backfire badly in the long run.

See also #1633 and #1657
2016-12-16 12:18:05 +01:00
Gina Häußge e121569e40 Fix BASEDIR & CONFIGFILE eval in init script & param order
Solves #1657
2016-12-16 10:30:56 +01:00
Gina Häußge a735bcc18d Take keyboard control setting into account for possible check
Solves #1660
2016-12-16 10:13:53 +01:00
Gina Häußge 726787e4db Merge branch 'fix-lsb-include' of https://github.com/tullo-x86/OctoPrint into pr/tullo-x86/fix-lsb-include 2016-12-14 16:15:43 +01:00
Daniel Tullemans ce4e04cabf Include LSB above first use in init script 2016-12-13 17:51:37 -06:00
Gina Häußge fcb0e382b5 Fix missing websocket-client dependency for octoprint client
See #1648
2016-12-13 14:55:43 +01:00
Gina Häußge 0560009204 Merge branch 'dev/supportPasswordManagers' into maintenance 2016-12-13 14:43:45 +01:00
Gina Häußge cb9fba73a2 Move cancel confirmation checkbox up a bit 2016-12-13 14:28:44 +01:00
Gina Häußge cbbfb4af20 Merge branch 'dev/cancelconfirm' of https://github.com/ntoff/OctoPrint into pr/ntoff/dev/cancelconfirm 2016-12-13 14:03:26 +01:00
Gina Häußge 50e55ed30d Do not have CLI interpret OCTOPRINT_VERSION env var
--version is a flag, not an actual parameter (wouldn't really make sense
too). I'm not sure why that isn't the default behaviour of the built-in
version_option decorator tbh.

See #1647
2016-12-12 10:59:22 +01:00
Gina Häußge d0ff9cb65e Fix octoprint --daemon backwards compatibility 2016-12-12 10:05:11 +01:00
ntoff e458e3dd18 cancel confirmation option
display or not the confirmation to cancel a print
2016-12-11 00:52:47 +10:00
Gina Häußge 6773ae221d Gracefully handle suddenly vanished files in storage listing 2016-12-09 14:34:40 +01:00
Gina Häußge ccbf71a96a Fix file that starts with same name as a folder being perceived as in folder
Solves #1637
2016-12-09 13:40:06 +01:00
Gina Häußge 102727b122 [Docs] Fix missing docs for recursive parameter on file API
Solves #1634
2016-12-09 10:50:53 +01:00
Gina Häußge d1f7d39ca9 Embarrassing mistake in .de translation :) 2nd try 2016-12-09 10:49:52 +01:00
Gina Häußge 81d426e5dd Merge branch 'devel' into maintenance
# Conflicts:
#	translations/de/LC_MESSAGES/messages.po
2016-12-09 10:16:57 +01:00
Gina Häußge 0e1f074634 Embarrassing mistake in .de translation :) 2016-12-08 17:11:16 +01:00
Gina Häußge 3b2b262420 Merge branch 'maintenance' into devel 2016-12-08 14:05:05 +01:00
Gina Häußge 3caac586fc Upped version numbers for branches 2016-12-08 14:04:28 +01:00
Paul de Vries 6d158cb0d0 Fix small bug on unreliable submit event + seperate onKeyUp event 2016-12-05 15:34:48 +01:00
Paul de Vries e52fbf061d Add support to save credentials to a password manager #1607 2016-12-05 13:56:19 +01:00
48 changed files with 1051 additions and 492 deletions

No files matched your search

+6 -6
View File
@@ -16,11 +16,11 @@ prerelease
HEAD
\(detached.*
# maintenance is currently the branch for preparation of maintenance release 1.2.17
# maintenance is currently the branch for preparation of maintenance release 1.3.1
# so are any fix/... and improve/... branches
maintenance 1.2.17 354042b84d488db38ac1917bb69bd164f4e7f750 pep440-dev
fix/.* 1.2.17 354042b84d488db38ac1917bb69bd164f4e7f750 pep440-dev
improve/.* 1.2.17 354042b84d488db38ac1917bb69bd164f4e7f750 pep440-dev
maintenance 1.3.1 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
fix/.* 1.3.1 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
improve/.* 1.3.1 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
# every other branch is a development branch and thus gets resolved to 1.3.0-dev for now
.* 1.3.0 198d3450d94be1a2 pep440-dev
# every other branch is a development branch and thus gets resolved to 1.4.0-dev for now
.* 1.4.0 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
+1
View File
@@ -74,6 +74,7 @@ date of first contribution):
* [Mathias Rangel Wulff](https://github.com/mathiasrw)
* [Clemens Niemeyer](https://github.com/clemniem)
* ["I-am-me"](https://github.com/I-am-me)
* [Noah Martin](https://github.com/noahsmartin)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
+56
View File
@@ -1,5 +1,61 @@
# OctoPrint Changelog
## 1.3.1 (2017-01-25)
### Note for upgraders
#### Change in stock terminal filter configuration
1.3.1 fixes an issue with the two terminal filters for suppressing temperature and SD status messages and adds a new filter for filtering out firmware `wait` messages. These changes will only be active automatically though for stock terminal filter configurations. If you have customized your terminal filters, you'll need to apply these changes manually under "Settings > Terminal filters":
- Changed "Suppress temperature messages" filter, new regex is `(Send: (N\d+\s+)?M105)|(Recv: ok (B|T\d*):)`
- Changed "Suppress SD status messages" filter, new regex is `(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)`
- New "Suppress wait responses" filter, regex is `Recv: wait`
### Improvements
- [#1607](https://github.com/foosel/OctoPrint/issues/1607) - Way better support for password managers (e.g. browser built-in, 1Password, Lastpass, Dashlane)
- [#1638](https://github.com/foosel/OctoPrint/issues/1638) - Make confirmation dialog when cancelling a print optional.
- [#1656](https://github.com/foosel/OctoPrint/issues/1656) - Make wording of buttons on print cancel dialog less confusing.
- [#1705](https://github.com/foosel/OctoPrint/pull/1705) - Simplified install process on Mac by removing dependency on pyobjc.
- [#1706](https://github.com/foosel/OctoPrint/pull/1706) - Added a mask icon for Safari pinned tab and touchbar.
- Support extraction of filament diameter for volume calculation from GCODE files sliced through Simplify3D.
- Abort low priority jobs in the file analysis queue when a high priority job comes in - should make file analysis and hence time estimates show up faster for newly uploaded files.
- Added a terminal filter for firmware `wait` messages to the stock terminal filters. If you did modify your terminal filter configuration, you might want to add this manually:
- New "Suppress wait responses" filter: `Recv: wait`
### Bug fixes
- [#1344](https://github.com/foosel/OctoPrint/issues/1344) - Fix ProgressBarPlugins to not correctly be triggered for 0% (second try, this time hopefully for good).
- [#1637](https://github.com/foosel/OctoPrint/issues/1637) - Fix issue preventing a folder to be deleted that has a name which is a common prefix of the file currently being printed.
- [#1641](https://github.com/foosel/OctoPrint/issues/1641) - Fix issue with `octoprint --daemon` not working.
- [#1647](https://github.com/foosel/OctoPrint/issues/1647) - Fix issue with `octoprint` command throwing an error if an environment variable `OCTOPRINT_VERSION` was set to its version number.
- [#1648](https://github.com/foosel/OctoPrint/issues/1648) - Added missing `websocket-client` dependency of `octoprint client` to install script.
- [#1653](https://github.com/foosel/OctoPrint/issues/1653) - Fix for an issue with the included init script on the BBB (see also [#1654](https://github.com/foosel/OctoPrint/issues/1654))
- [#1657](https://github.com/foosel/OctoPrint/issues/1657) - Fix init script regarding check for configured `CONFIGFILE` variable.
- [#1657](https://github.com/foosel/OctoPrint/issues/1657) - Don't care about ordering of common parameters (like `--basedir`, `--config`) on CLI.
- [#1660](https://github.com/foosel/OctoPrint/issues/1660) - Do not show hint regarding keyboard controls beneath webcam stream if keyboard control feature is disabled.
- [#1667](https://github.com/foosel/OctoPrint/issues/1667) - Fix for matching folders not getting listed in the results when performing a search in the file list.
- [#1675](https://github.com/foosel/OctoPrint/issues/1675) - Fix model size calculation in GCODE analysis, produced wrong values in some cases. Also adjusted calculation to match implementation in GCODE viewer, now both produce identical results.
- [#1685](https://github.com/foosel/OctoPrint/issues/1685) - Cura Plugin: Fix filament extraction from CuraEngine slicing output
- [#1692](https://github.com/foosel/OctoPrint/issues/1692) - Cura Plugin: Fix solid layer calculation (backport from [Ultimaker/CuraEngine#140](https://github.com/Ultimaker/CuraEngine/issues/140))
- [#1693](https://github.com/foosel/OctoPrint/issues/1693) - Cura Plugin: Support `perimeter_before_infill` profile setting. Additionally added support for `solidarea_speed`, `raft_airgap_all`, `raft_surface_thickness`, `raft_surface_linewidth` profile settings and adjusted mapping for engine settings `raftAirGapLayer0`, `raftFanSpeed`, `raftSurfaceThickness`and `raftSurfaceLinewidth` according to current mapping in Cura Legacy and adjusted Mach3 GCODE flavor to substitute `S` with `P` in temperature commands of generated start code, also like in Cura Legacy.
- [#1697](https://github.com/foosel/OctoPrint/issues/1697) - Pin Jinja to versions <2.9 for now due to a backwards compatibility issue with templates for versions newer than that. Also pushed as a hotfix to 1.3.0 (as 1.3.0post1).
- [#1708](https://github.com/foosel/OctoPrint/issues/1708) - Cura Plugin: Fixed selection of `start.gcode` for sliced file
- Allow a retraction z-hop of 0 in timelapse configuration.
- Fix files in sub folders to not be processed by the initial analysis backlog check during startup of the server.
- Various fixes in the file analysis queue:
- High priority items are now really high priority
- Abort analysis for items that are to be deleted/moved to get around an issue with file access under Windows systems.
- Fix stock terminal filters for suppressing temperature messages and SD status messages to also be able to deal with line number prefixes. If you have added additional terminal filters, you will have to apply this fix manually:
- Changed "Suppress temperature messages" filter: `(Send: (N\d+\s+)?M105)|(Recv: ok (B|T\d*):)`
- Changed "Suppress SD status messages" filter: `(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)`
- Fix issue in german translation.
### More information
- [Commits](https://github.com/foosel/OctoPrint/compare/1.3.0...1.3.1)
- Release Candidates:
- [1.3.1rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.1rc1)
- [1.3.1rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.1rc2)
## 1.3.0 (2016-12-08)
### Features
+7 -1
View File
@@ -12,6 +12,7 @@ or **[creating pull requests](#pull-requests)**.
* [Where can I find which version and branch I'm on?](#where-can-i-find-which-version-and-branch-im-on)
* [Where can I find those log files you keep talking about?](#where-can-i-find-those-log-files-you-keep-talking-about)
* [Where can I find my browser's error console?](#where-can-i-find-my-browsers-error-console)
* [Setting up a development environment](#setting-up-a-development-environment)
* [Pull requests](#pull-requests)
* [What do the branches mean?](#what-do-the-branches-mean)
* [How OctoPrint is versioned](#how-octoprint-is-versioned)
@@ -235,6 +236,10 @@ find information on how to do just that in the
See [How to open the Javascript Console in different browsers](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)
## Setting up a development environment
See [the corresponding chapter in the documentation](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment).
## Pull requests
1. If you want to add a new feature to OctoPrint, **please always first
@@ -315,7 +320,7 @@ There are three main branches in OctoPrint:
add a commit after release to this branch - `<x>.<y>.<z>.post<commits since x.y.z>`
(e.g. `1.2.9.post1`).
* `maintenance`: Improvements and fixes of the current release that make up
the next release go here. More or less continously updated. You can consider
the next release go here. More or less continuously updated. You can consider
this a preview of the next release version. It should be very stable at all
times. Anything you spot in here helps tremendously with getting a rock solid
next stable release, so if you want to help out development, running the
@@ -391,6 +396,7 @@ the local version identifier to allow for an exact determination of the active c
* 2016-09-09: New `rc/*` branches explained.
* 2016-09-23: Some more work on "How to file a bug report" based on recent
experiences
* 2017-01-25: Fixed a typo
## Footnotes
* [1] - If you are wondering why, the problem is that anything that you add
+4 -4
View File
@@ -86,27 +86,27 @@ following usage examples assume that said `octoprint` script is on your `PATH`.
You can start the server via
octoprint
octoprint serve
By default it binds to all interfaces on port 5000 (so pointing your browser to `http://127.0.0.1:5000`
will do the trick). If you want to change that, use the additional command line parameters `host` and `port`,
which accept the host ip to bind to and the numeric port number respectively. If for example you want the server
to only listen on the local interface on port 8080, the command line would be
octoprint --host=127.0.0.1 --port=8080
octoprint serve --host=127.0.0.1 --port=8080
Alternatively, the host and port on which to bind can be defined via the configuration.
If you want to run OctoPrint as a daemon (only supported on Linux), use
octoprint --daemon {start|stop|restart} [--pid PIDFILE]
octoprint daemon {start|stop|restart} [--pid PIDFILE]
If you do not supply a custom pidfile location via `--pid PIDFILE`, it will be created at `/tmp/octoprint.pid`.
You can also specify the configfile or the base directory (for basing off the `uploads`, `timelapse` and `logs` folders),
e.g.:
octoprint --config /path/to/another/config.yaml --basedir /path/to/my/basedir
octoprint serve --config /path/to/another/config.yaml --basedir /path/to/my/basedir
See `octoprint --help` for further information.
+2 -6
View File
@@ -11,12 +11,10 @@ thanks to everyone who contributed!
* Andrew Moorby
* Arnljot Arntsen
* Aurelio Bernal
* Bart Zudell
* Boris Hussein
* Brad Jackson
* Brent Fiegle
* Brian E. Tyler
* Charles Mitchell
* Christopher Day
* Christian Petropolis
* COLLE+McVOY
@@ -25,7 +23,6 @@ thanks to everyone who contributed!
* DeltaMaker 3D Printers
* Doug Johnson
* E3D BigBox
* Erik de Bruijn
* Ernesto Martinez
* Exovite
* Frank Sander
@@ -34,7 +31,6 @@ thanks to everyone who contributed!
* George Robles
* J. Eckert
* Jamie van Dyke
* Jason Galarneau
* Josh Daniels
* Joshua David Gregory
* Kaile Riser
@@ -59,7 +55,6 @@ thanks to everyone who contributed!
* Samer Najia
* SD3D
* SeeMeCNC
* Shane Ekerbicer
* Simon Hallam
* Stefan Krister
* Stephane Schittly
@@ -67,6 +62,7 @@ thanks to everyone who contributed!
* Sven Mueller
* Terrance Shaw
* Thomas Hatley
* Timeshell.ca
* Trent Shumay
and 972 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
and 1016 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
+1
View File
@@ -32,6 +32,7 @@
## Server
* [appdirs](http://github.com/ActiveState/appdirs): MIT
* [Awesome-Slugify](https://pypi.python.org/pypi/awesome-slugify): GPLv3
* [Click](http://click.pocoo.org/): BSD
* [feedparser](https://github.com/kurtmckee/feedparser): BSD
+2 -2
View File
@@ -286,9 +286,9 @@ Files
- Type
- Description
* - ``hash``
- 1
- 0..1
- String
- MD5 hash of the file
- MD5 hash of the file. Only available for ``local`` files.
* - ``size``
- 0..1
- Number
+149 -2
View File
@@ -16,9 +16,14 @@ Retrieve all files
Retrieve information regarding all files currently available and regarding the disk space still available
locally in the system.
By default only returns the files and folders in the root directory. If the query parameter ``recursive``
is provided and set to ``true``, returns all files and folders.
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
**Example**:
**Example 1**:
Fetch only the files and folders from the root folder.
.. sourcecode:: http
@@ -35,6 +40,10 @@ Retrieve all files
"files": [
{
"name": "whistle_v2.gcode",
"path": "whistle_v2.gcode",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"hash": "...",
"size": 1468987,
"date": 1378847754,
"origin": "local",
@@ -60,15 +69,140 @@ Retrieve all files
},
{
"name": "whistle_.gco",
"path": "whistle_.gco",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"origin": "sdcard",
"refs": {
"resource": "http://example.com/api/files/sdcard/whistle_.gco"
}
},
{
"name": "folderA",
"path": "folderA",
"type": "folder",
"typePath": ["folder"],
"children": [],
"size": 1334
}
],
"free": "3.2GB"
}
**Example 2**
Recursively fetch all files and folders.
Fetch only the files and folders from the root folder.
.. sourcecode:: http
GET /api/files?recursive=true HTTP/1.1
Host: example.com
X-Api-Key: abcdef...
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
{
"files": [
{
"name": "whistle_v2.gcode",
"path": "whistle_v2.gcode",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"hash": "...",
"size": 1468987,
"date": 1378847754,
"origin": "local",
"refs": {
"resource": "http://example.com/api/files/local/whistle_v2.gcode",
"download": "http://example.com/downloads/files/local/whistle_v2.gcode"
},
"gcodeAnalysis": {
"estimatedPrintTime": 1188,
"filament": {
"length": 810,
"volume": 5.36
}
},
"print": {
"failure": 4,
"success": 23,
"last": {
"date": 1387144346,
"success": true
}
}
},
{
"name": "whistle_.gco",
"path": "whistle_.gco",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"origin": "sdcard",
"refs": {
"resource": "http://example.com/api/files/sdcard/whistle_.gco"
}
},
{
"name": "folderA",
"path": "folderA",
"type": "folder",
"typePath": ["folder"],
"children": [
{
"name": "test.gcode",
"path": "folderA/test.gcode",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"hash": "...",
"size": 1234,
"date": 1378847754,
"origin": "local",
"refs": {
"resource": "http://example.com/api/files/local/folderA/test.gcode",
"download": "http://example.com/downloads/files/local/folderA/test.gcode"
}
},
{
"name": "subfolder",
"path": "folderA/subfolder",
"type": "folder",
"typePath": ["folder"],
"children": [
{
"name": "test.gcode",
"path": "folderA/subfolder/test2.gcode",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"hash": "...",
"size": 100,
"date": 1378847754,
"origin": "local",
"refs": {
"resource": "http://example.com/api/files/local/folderA/subfolder/test2.gcode",
"download": "http://example.com/downloads/files/local/folderA/subfolder/test2.gcode"
}
},
],
"size": 100,
"refs": {
"resource": "http://example.com/api/files/local/folderA/subfolder",
}
],
"size": 1334,
"refs": {
"resource": "http://example.com/api/files/local/folderA",
}
}
],
"free": "3.2GB"
}
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
:statuscode 200: No error
.. _sec-api-fileops-retrievelocation:
@@ -81,6 +215,9 @@ Retrieve files from specific location
Retrieve information regarding the files currently available on the selected `location` and -- if targeting
the ``local`` location -- regarding the disk space still available locally in the system.
By default only returns the files and folders in the root directory. If the query parameter ``recursive``
is provided and set to ``true``, returns all files and folders.
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
**Example**:
@@ -100,6 +237,10 @@ Retrieve files from specific location
"files": [
{
"name": "whistle_v2.gcode",
"path": "whistle_v2.gcode",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"hash": "...",
"size": 1468987,
"date": 1378847754,
"origin": "local",
@@ -130,6 +271,7 @@ Retrieve files from specific location
:param location: The origin location from which to retrieve the files. Currently only ``local`` and ``sdcard`` are
supported, with ``local`` referring to files stored in OctoPrint's ``uploads`` folder and ``sdcard``
referring to files stored on the printer's SD card (if available).
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
:statuscode 200: No error
:statuscode 404: If `location` is neither ``local`` nor ``sdcard``
@@ -196,6 +338,8 @@ Upload file or create folder
"local": {
"name": "whistle_v2.gcode",
"path": "whistle_v2.gcode",
"type": "machinecode",
"typePath": ["machinecode", "gcode"],
"origin": "local",
"refs": {
"resource": "http://example.com/api/files/local/whistle_v2.gcode",
@@ -324,6 +468,9 @@ Retrieve a specific file's or folder's information
If the file is unknown, a :http:statuscode:`404` is returned.
If the targeted path is a folder, by default only its direct children will be returned. If ``recursive`` is
provided and set to ``true``, all sub folders and their children will be returned too.
On success, a :http:statuscode:`200` is returned, with a :ref:`file information item <sec-api-datamodel-files-file>`
as the response body.
@@ -368,7 +515,7 @@ Retrieve a specific file's or folder's information
:param location: The location of the file for which to retrieve the information, either ``local`` or ``sdcard``.
:param filename: The filename of the file for which to retrieve the information
:param children: Whether to include children of folders (true, default) or not (false)
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
:statuscode 200: No error
:statuscode 404: If ``target`` is neither ``local`` nor ``sdcard``, ``sdcard`` but SD card support is disabled or the
requested file was not found
+1 -2
View File
@@ -145,7 +145,6 @@ You'll need a user account with administrator privileges.
cd OctoPrint
virtualenv venv
source venv/bin/activate
pip install -U pyobjc
pip install -e .[develop]
You can then start OctoPrint via ``~/devel/OctoPrint/venv/bin/octoprint`` or just ``octoprint`` if you activated the virtual
@@ -167,7 +166,7 @@ IDE Setup
PyCharm
.......
- "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint``)
- "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
- "File" > "Settings ..." > "Project: OctoPrint" > "Project Interpreter" > "Add local ...", select OctoPrint venv
folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint\venv``)
- Right click "src" in project tree, mark as source folder
+10 -9
View File
@@ -13,7 +13,7 @@
# /etc/default/octoprint.
### END INIT INFO
# Author: Sami Olmari
# Author: Sami Olmari & Gina Häußge
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="OctoPrint Daemon"
@@ -21,9 +21,14 @@ NAME="OctoPrint"
PKGNAME=octoprint
PIDFILE=/var/run/$PKGNAME.pid
SCRIPTNAME=/etc/init.d/$PKGNAME
DEFAULTS=/etc/default/$PKGNAME
# Read configuration variable file if it is present
[ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME
[ -r $DEFAULTS ] && . $DEFAULTS
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# Exit if the DAEMON is not set
if [ -z "$DAEMON" ]
@@ -38,10 +43,6 @@ fi
# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
if [ -z "$START" -o "$START" != "yes" ]
then
log_warning_msg "Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it."
@@ -55,12 +56,12 @@ then
fi
COMMAND_ARGS=
if [ -z "$BASEDIR" ]
if [ -n "$BASEDIR" ]
then
COMMAND_ARGS="--basedir $BASEDIR $COMMAND_ARGS"
fi
if [ -z "$CONFIGFILE" ]
if [ -n "$CONFIGFILE" ]
then
COMMAND_ARGS="--config $CONFIGFILE $COMMAND_ARGS"
fi
@@ -91,7 +92,7 @@ do_start()
if [ $RETVAL != 0 ]; then
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
--exec $DAEMON --chuid $OCTOPRINT_USER --user $OCTOPRINT_USER --umask $UMASK --nicelevel=$NICELEVEL \
-- $COMMAND_ARGS serve $DAEMON_ARGS
-- serve $COMMAND_ARGS $DAEMON_ARGS
RETVAL="$?"
fi
}
+8 -1
View File
@@ -15,6 +15,9 @@ import octoprint_setuptools
# Requirements for our application
INSTALL_REQUIRES = [
"flask>=0.9,<0.11",
"Jinja2>=2.8,<2.9", # Jinja 2.9 has breaking changes WRT template scope - we can't
# guarantee backwards compatibility for plugins and such with that
# version, hence we need to pin to a lower version for now. See #1697
"werkzeug>=0.8.3,<0.9",
"tornado==4.0.2", # pinned for now, we need to migrate to a newer tornado, but due
# to some voodoo needed to get large streamed uploads and downloads
@@ -43,9 +46,13 @@ INSTALL_REQUIRES = [
"feedparser>=5.2.1,<5.3",
"chainmap>=1.0.2,<1.1",
"future>=0.15,<0.16",
"scandir>=1.3,<1.4"
"scandir>=1.3,<1.4",
"websocket-client>=0.40,<0.41"
]
if sys.platform == "darwin":
INSTALL_REQUIRES.append("appdirs>=1.4.0")
# Additional requirements for optional install options
EXTRA_REQUIRES = dict(
# Dependencies for developing OctoPrint
+28 -14
View File
@@ -47,15 +47,25 @@ def hidden_option(*param_decls, **attrs):
return f
return decorator
#~~ helper for settings context options
#~~ helper for setting context options
def set_ctx_obj_option(ctx, param, value):
"""Helper for setting eager options on the context."""
if ctx.obj is None:
ctx.obj = OctoPrintContext()
if hasattr(ctx.obj, param.name):
if value != param.default:
setattr(ctx.obj, param.name, value)
elif param.default is not None:
setattr(ctx.obj, param.name, param.default)
#~~ helper for retrieving context options
def get_ctx_obj_option(ctx, key, default, include_parents=True):
if include_parents and hasattr(ctx, "parent") and ctx.parent:
fallback = get_ctx_obj_option(ctx.parent, key, default)
else:
fallback = default
return getattr(ctx.obj, key, fallback)
#~~ helper for setting a lot of bulk options
@@ -105,13 +115,13 @@ def standard_options(hidden=False):
#~~ helper for settings legacy options we still have to support on "octoprint"
legacy_options = bulk_options([
hidden_option("--host", type=click.STRING),
hidden_option("--port", type=click.INT),
hidden_option("--logging", type=click.Path()),
hidden_option("--debug", "-d", is_flag=True),
hidden_option("--daemon", type=click.Choice(["start", "stop", "restart"])),
hidden_option("--pid", type=click.Path(), default="/tmp/octoprint.pid"),
hidden_option("--iknowwhatimdoing", "allow_root", is_flag=True),
hidden_option("--host", type=click.STRING, callback=set_ctx_obj_option),
hidden_option("--port", type=click.INT, callback=set_ctx_obj_option),
hidden_option("--logging", type=click.Path(), callback=set_ctx_obj_option),
hidden_option("--debug", "-d", is_flag=True, callback=set_ctx_obj_option),
hidden_option("--daemon", type=click.Choice(["start", "stop", "restart"]), callback=set_ctx_obj_option),
hidden_option("--pid", type=click.Path(), default="/tmp/octoprint.pid", callback=set_ctx_obj_option),
hidden_option("--iknowwhatimdoing", "allow_root", is_flag=True, callback=set_ctx_obj_option),
])
"""Legacy options available directly on the "octoprint" command in earlier versions.
Kept available for reasons of backwards compatibility, but hidden from the
@@ -129,9 +139,9 @@ from .config import config_commands
sources=[server_commands, plugin_commands, dev_commands, client_commands, config_commands])
@standard_options()
@legacy_options
@click.version_option(version=octoprint.__version__)
@click.version_option(version=octoprint.__version__, allow_from_autoenv=False)
@click.pass_context
def octo(ctx, debug, host, port, logging, daemon, pid, allow_root):
def octo(ctx, **kwargs):
if ctx.invoked_subcommand is None:
# We have to support calling the octoprint command without any
@@ -140,16 +150,20 @@ def octo(ctx, debug, host, port, logging, daemon, pid, allow_root):
# But better print a message to inform people that they should
# use the sub commands instead.
def get_value(key):
return get_ctx_obj_option(ctx, key, kwargs.get(key))
daemon = get_value("daemon")
if daemon:
click.echo("Daemon operation via \"octoprint --daemon "
"start|stop|restart\" is deprecated, please use "
"\"octoprint daemon start|stop|restart\" from now on")
from octoprint.cli.server import daemon_command
ctx.invoke(daemon_command, debug=debug, pid=pid, daemon=daemon, allow_root=allow_root)
ctx.invoke(daemon_command, command=daemon, **kwargs)
else:
click.echo("Starting the server via \"octoprint\" is deprecated, "
"please use \"octoprint serve\" from now on.")
from octoprint.cli.server import serve_command
ctx.invoke(serve_command, debug=debug, host=host, port=port, logging=logging, allow_root=allow_root)
ctx.invoke(serve_command, **kwargs)
+4 -5
View File
@@ -9,7 +9,7 @@ import json
import octoprint_client
from octoprint.cli import pass_octoprint_ctx, bulk_options, standard_options
from octoprint.cli import get_ctx_obj_option
from octoprint import init_settings, FatalStartupError
@@ -35,13 +35,12 @@ def client_commands():
@click.option("--httppass", type=click.STRING)
@click.option("--https", is_flag=True)
@click.option("--prefix", type=click.STRING)
@pass_octoprint_ctx
@click.pass_context
def client(ctx, obj, host, port, httpuser, httppass, https, prefix):
def client(ctx, host, port, httpuser, httppass, https, prefix):
"""Basic API client."""
try:
obj.settings = init_settings(obj.basedir, obj.configfile)
octoprint_client.init_client(obj.settings, https=https, httpuser=httpuser, httppass=httppass, host=host, port=port, prefix=prefix)
ctx.obj.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None))
octoprint_client.init_client(ctx.obj.settings, https=https, httpuser=httpuser, httppass=httppass, host=host, port=port, prefix=prefix)
except FatalStartupError as e:
click.echo(e.message, err=True)
click.echo("There was a fatal error initializing the client.", err=True)
+21 -24
View File
@@ -9,7 +9,7 @@ import click
import logging
from octoprint import init_settings, FatalStartupError
from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options
from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options, get_ctx_obj_option
import yaml
import json
@@ -46,13 +46,12 @@ def config_commands():
pass
@config_commands.group(name="config")
@pass_octoprint_ctx
@click.pass_context
def config(ctx, obj):
def config(ctx):
"""Basic config manipulation."""
logging.basicConfig(level=logging.DEBUG if obj.verbosity > 0 else logging.WARN)
logging.basicConfig(level=logging.DEBUG if get_ctx_obj_option(ctx, "verbosity", 0) > 0 else logging.WARN)
try:
obj.settings = init_settings(obj.basedir, obj.configfile)
ctx.obj.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None))
except FatalStartupError as e:
click.echo(e.message, err=True)
click.echo("There was a fatal error initializing the client.", err=True)
@@ -73,7 +72,7 @@ def config(ctx, obj):
help="Parse value from json")
@pass_octoprint_ctx
@click.pass_context
def set_command(ctx, obj, path, value, as_bool, as_float, as_int, as_json):
def set_command(ctx, path, value, as_bool, as_float, as_int, as_json):
"""Sets a config path to the provided value."""
if as_json:
try:
@@ -90,16 +89,16 @@ def set_command(ctx, obj, path, value, as_bool, as_float, as_int, as_json):
elif as_int:
data_type = int
_set_helper(obj.settings, path, value, data_type=data_type)
_set_helper(ctx.obj.settings, path, value, data_type=data_type)
@config.command(name="remove")
@standard_options(hidden=True)
@click.argument("path", type=click.STRING)
@pass_octoprint_ctx
def remove_command(obj, path):
@click.pass_context
def remove_command(ctx, path):
"""Removes a config path."""
_set_helper(obj.settings, path, None)
_set_helper(ctx.obj.settings, path, None)
@config.command(name="append_value")
@@ -107,9 +106,8 @@ def remove_command(obj, path):
@click.argument("path", type=click.STRING)
@click.argument("value", type=click.STRING)
@click.option("--json", "as_json", is_flag=True)
@pass_octoprint_ctx
@click.pass_context
def append_value_command(ctx, obj, path, value, as_json=False):
def append_value_command(ctx, path, value, as_json=False):
"""Appends value to list behind config path."""
path = _to_settings_path(path)
@@ -120,7 +118,7 @@ def append_value_command(ctx, obj, path, value, as_json=False):
click.echo(e.message, err=True)
ctx.exit(-1)
current = obj.settings.get(path)
current = ctx.obj.settings.get(path)
if current is None:
current = []
if not isinstance(current, list):
@@ -128,7 +126,7 @@ def append_value_command(ctx, obj, path, value, as_json=False):
ctx.exit(-1)
current.append(value)
_set_helper(obj.settings, path, current)
_set_helper(ctx.obj.settings, path, current)
@config.command(name="insert_value")
@@ -137,9 +135,8 @@ def append_value_command(ctx, obj, path, value, as_json=False):
@click.argument("index", type=click.INT)
@click.argument("value", type=click.STRING)
@click.option("--json", "as_json", is_flag=True)
@pass_octoprint_ctx
@click.pass_context
def insert_value_command(ctx, obj, path, index, value, as_json=False):
def insert_value_command(ctx, path, index, value, as_json=False):
"""Inserts value at index of list behind config key."""
path = _to_settings_path(path)
@@ -150,7 +147,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False):
click.echo(e.message, err=True)
ctx.exit(-1)
current = obj.settings.get(path)
current = ctx.obj.settings.get(path)
if current is None:
current = []
if not isinstance(current, list):
@@ -158,7 +155,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False):
ctx.exit(-1)
current.insert(index, value)
_set_helper(obj.settings, path, current)
_set_helper(ctx.obj.settings, path, current)
@config.command(name="remove_value")
@@ -168,7 +165,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False):
@click.option("--json", "as_json", is_flag=True)
@pass_octoprint_ctx
@click.pass_context
def remove_value_command(ctx, obj, path, value, as_json=False):
def remove_value_command(ctx, path, value, as_json=False):
"""Removes value from list at config path."""
path = _to_settings_path(path)
@@ -179,7 +176,7 @@ def remove_value_command(ctx, obj, path, value, as_json=False):
click.echo(e.message, err=True)
ctx.exit(-1)
current = obj.settings.get(path)
current = ctx.obj.settings.get(path)
if current is None:
current = []
if not isinstance(current, list):
@@ -191,7 +188,7 @@ def remove_value_command(ctx, obj, path, value, as_json=False):
ctx.exit()
current.remove(value)
_set_helper(obj.settings, path, current)
_set_helper(ctx.obj.settings, path, current)
@config.command(name="get")
@@ -203,11 +200,11 @@ def remove_value_command(ctx, obj, path, value, as_json=False):
@click.option("--raw", "as_raw", is_flag=True,
help="Output value as raw string representation")
@standard_options(hidden=True)
@pass_octoprint_ctx
def get_command(obj, path, as_json=False, as_yaml=False, as_raw=False):
@click.pass_context
def get_command(ctx, path, as_json=False, as_yaml=False, as_raw=False):
"""Retrieves value from config path."""
path = _to_settings_path(path)
value = obj.settings.get(path, merged=True)
value = ctx.obj.settings.get(path, merged=True)
if as_json:
output = json.dumps(value)
+3 -3
View File
@@ -8,7 +8,7 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms
import click
import logging
from octoprint.cli import pass_octoprint_ctx, OctoPrintContext
from octoprint.cli import pass_octoprint_ctx, OctoPrintContext, get_ctx_obj_option
#~~ "octoprint plugin:command" commands
@@ -50,8 +50,8 @@ class OctoPrintPluginCommands(click.MultiCommand):
# context (basedir and configfile)
from octoprint import init_settings, init_pluginsystem, FatalStartupError
try:
self.settings = init_settings(ctx.obj.basedir, ctx.obj.configfile)
self.plugin_manager = init_pluginsystem(self.settings, safe_mode=ctx.obj.safe_mode)
self.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None))
self.plugin_manager = init_pluginsystem(self.settings, safe_mode=get_ctx_obj_option(ctx, "safe_mode", False))
except FatalStartupError as e:
click.echo(e.message, err=True)
click.echo("There was a fatal error initializing the settings or the plugin system.", err=True)
+54 -19
View File
@@ -9,7 +9,7 @@ import click
import logging
import sys
from octoprint.cli import pass_octoprint_ctx, bulk_options, standard_options
from octoprint.cli import bulk_options, standard_options, set_ctx_obj_option, get_ctx_obj_option
def run_server(basedir, configfile, host, port, debug, allow_root, logging_config, verbosity, safe_mode, octoprint_daemon=None):
"""Initializes the environment and starts up the server."""
@@ -69,51 +69,87 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi
#~~ server options
server_options = bulk_options([
click.option("--host", type=click.STRING,
click.option("--host", type=click.STRING, callback=set_ctx_obj_option,
help="Specify the host on which to bind the server."),
click.option("--port", type=click.INT,
click.option("--port", type=click.INT, callback=set_ctx_obj_option,
help="Specify the port on which to bind the server."),
click.option("--logging", type=click.Path(),
click.option("--logging", type=click.Path(), callback=set_ctx_obj_option,
help="Specify the config file to use for configuring logging."),
click.option("--iknowwhatimdoing", "allow_root", is_flag=True,
click.option("--iknowwhatimdoing", "allow_root", is_flag=True, callback=set_ctx_obj_option,
help="Allow OctoPrint to run as user root."),
click.option("--debug", is_flag=True, help="Enable debug mode.")
click.option("--debug", is_flag=True, callback=set_ctx_obj_option,
help="Enable debug mode.")
])
"""Decorator to add the options shared among the server commands: ``--host``, ``--port``,
``--logging``, ``--iknowwhatimdoing`` and ``--debug``."""
daemon_options = bulk_options([
click.option("--pid", type=click.Path(), default="/tmp/octoprint.pid", callback=set_ctx_obj_option,
help="Pidfile to use for daemonizing.")
])
"""Decorator to add the options for the daemon subcommand: ``--pid``."""
#~~ "octoprint serve" and "octoprint daemon" commands
@click.group()
@pass_octoprint_ctx
def server_commands(obj):
def server_commands():
pass
@server_commands.command(name="serve")
@server_options
@standard_options(hidden=True)
@pass_octoprint_ctx
def serve_command(obj, host, port, logging, allow_root, debug):
@click.pass_context
def serve_command(ctx, **kwargs):
"""Starts the OctoPrint server."""
run_server(obj.basedir, obj.configfile, host, port, debug,
allow_root, logging, obj.verbosity, obj.safe_mode)
def get_value(key):
return get_ctx_obj_option(ctx, key, kwargs.get(key))
host = get_value("host")
port = get_value("port")
logging = get_value("logging")
allow_root = get_value("allow_root")
debug = get_value("debug")
basedir = get_value("basedir")
configfile = get_value("configfile")
verbosity = get_value("verbosity")
safe_mode = get_value("safe_mode")
run_server(basedir, configfile, host, port, debug,
allow_root, logging, verbosity, safe_mode)
@server_commands.command(name="daemon")
@click.option("--pid", type=click.Path(), default="/tmp/octoprint.pid",
help="Pidfile to use for daemonizing.")
@server_options
@daemon_options
@standard_options(hidden=True)
@click.argument("command", type=click.Choice(["start", "stop", "restart", "status"]),
metavar="start|stop|restart|status")
@pass_octoprint_ctx
def daemon_command(octoprint_ctx, pid, host, port, logging, allow_root, debug, command):
@click.pass_context
def daemon_command(ctx, command, **kwargs):
"""
Starts, stops or restarts in daemon mode.
Please note that daemon mode is only supported under Linux right now.
"""
def get_value(key):
return get_ctx_obj_option(ctx, key, kwargs.get(key))
host = get_value("host")
port = get_value("port")
logging = get_value("logging")
allow_root = get_value("allow_root")
debug = get_value("debug")
pid = get_value("pid")
basedir = get_value("basedir")
configfile = get_value("configfile")
verbosity = get_value("verbosity")
safe_mode = get_value("safe_mode")
if sys.platform == "darwin" or sys.platform == "win32":
click.echo("Sorry, daemon mode is only supported under Linux right now",
file=sys.stderr)
@@ -144,9 +180,8 @@ def daemon_command(octoprint_ctx, pid, host, port, logging, allow_root, debug, c
self._allow_root, self._logging_config, self._verbosity, self._safe_mode,
octoprint_daemon=self)
octoprint_daemon = OctoPrintDaemon(pid, octoprint_ctx.basedir, octoprint_ctx.configfile,
host, port, debug, allow_root, logging, octoprint_ctx.verbosity,
octoprint_ctx.safe_mode)
octoprint_daemon = OctoPrintDaemon(pid, basedir, configfile, host, port, debug, allow_root, logging, verbosity,
safe_mode)
if command == "start":
octoprint_daemon.start()
+24 -5
View File
@@ -397,13 +397,10 @@ class FileManager(object):
if hook_file_object is not None:
file_object = hook_file_object
file_path = self._storage(destination).add_file(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite)
absolute_path = self._storage(destination).path_on_disk(file_path)
_, file_name = self._storage(destination).split_path(file_path)
if analysis is None:
file_type = get_file_type(absolute_path)
if file_type:
queue_entry = QueueEntry(file_name, file_path, file_type[-1], destination, absolute_path, printer_profile)
queue_entry = self._analysis_queue_entry(destination, file_path, printer_profile=printer_profile)
if queue_entry:
self._analysis_queue.enqueue(queue_entry, high_priority=True)
else:
self._add_analysis_result(destination, path, analysis)
@@ -412,6 +409,8 @@ class FileManager(object):
return file_path
def remove_file(self, destination, path):
queue_entry = self._analysis_queue_entry(destination, path)
self._analysis_queue.dequeue(queue_entry)
self._storage(destination).remove_file(path)
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
@@ -420,6 +419,8 @@ class FileManager(object):
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
def move_file(self, destination, source, dst):
queue_entry = self._analysis_queue_entry(destination, source)
self._analysis_queue.dequeue(queue_entry)
self._storage(destination).move_file(source, dst)
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
@@ -429,7 +430,10 @@ class FileManager(object):
return folder_path
def remove_folder(self, destination, path, recursive=True):
self._analysis_queue.dequeue_folder(destination, path)
self._analysis_queue.pause()
self._storage(destination).remove_folder(path, recursive=recursive)
self._analysis_queue.resume()
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
def copy_folder(self, destination, source, dst):
@@ -437,7 +441,10 @@ class FileManager(object):
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
def move_folder(self, destination, source, dst):
self._analysis_queue.dequeue_folder(destination, source)
self._analysis_queue.pause()
self._storage(destination).move_folder(source, dst)
self._analysis_queue.resume()
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
def get_metadata(self, destination, path):
@@ -542,3 +549,15 @@ class FileManager(object):
def _on_analysis_finished(self, entry, result):
self._add_analysis_result(entry.location, entry.path, result)
def _analysis_queue_entry(self, destination, path, printer_profile=None):
if printer_profile is None:
printer_profile = self._printer_profile_manager.get_current_or_default()
absolute_path = self._storage(destination).path_on_disk(path)
_, file_name = self._storage(destination).split_path(path)
file_type = get_file_type(absolute_path)
if file_type:
return QueueEntry(file_name, path, file_type[-1], destination, absolute_path, printer_profile)
else:
return None
+69 -26
View File
@@ -17,6 +17,7 @@ import collections
import time
from octoprint.events import Events, eventManager
from octoprint.settings import settings
import octoprint.util.gcodeInterpreter as gcodeInterpreter
@@ -40,6 +41,12 @@ class QueueEntry(collections.namedtuple("QueueEntry", "name, path, type, locatio
return "{location}:{path}".format(location=self.location, path=self.path)
class AnalysisAborted(Exception):
def __init__(self, reenqueue=True, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
self.reenqueue = reenqueue
class AnalysisQueue(object):
"""
OctoPrint's :class:`AnalysisQueue` can manage various :class:`AbstractAnalysisQueue` implementations, mapped
@@ -77,6 +84,16 @@ class AnalysisQueue(object):
self._queues[entry.type].enqueue(entry, high_priority=high_priority)
return True
def dequeue(self, entry):
if not entry.type in self._queues:
return False
self._queues[entry.type].dequeue(entry.location, entry.path)
def dequeue_folder(self, destination, path):
for queue in self._queues.values():
queue.dequeue_folder(destination, path)
def pause(self):
for queue in self._queues.values():
queue.pause()
@@ -112,8 +129,10 @@ class AbstractAnalysisQueue(object):
.. automethod:: _do_abort
"""
LOW_PRIO = 0
HIGH_PRIO = 100
LOW_PRIO = 100
LOW_PRIO_ABORTED = 75
HIGH_PRIO = 50
HIGH_PRIO_ABORTED = 0
def __init__(self, finished_callback):
self._logger = logging.getLogger(__name__)
@@ -123,11 +142,15 @@ class AbstractAnalysisQueue(object):
self._active = threading.Event()
self._active.set()
self._done = threading.Event()
self._done.clear()
self._currentFile = None
self._currentProgress = None
self._queue = queue.PriorityQueue()
self._current = None
self._current_highprio = False
self._worker = threading.Thread(target=self._work)
self._worker.daemon = True
@@ -153,7 +176,24 @@ class AbstractAnalysisQueue(object):
self._logger.debug("Adding entry {entry} to analysis queue with low priority".format(entry=entry))
prio = self.__class__.LOW_PRIO
self._queue.put((prio, entry))
self._queue.put((prio, entry, high_priority))
if high_priority and self._current is not None and not self._current_highprio:
self._logger.debug("Aborting current analysis in favor of high priority one")
self._do_abort()
def dequeue(self, location, path):
if self._current is not None and self._current.location == location \
and self._current.path == path:
self._do_abort(reenqueue=False)
self._done.wait()
self._done.clear()
def dequeue_folder(self, location, path):
if self._current is not None and self._current.location == location \
and self._current.path.startswith(path + "/"):
self._do_abort(reenqueue=False)
self._done.wait()
self._done.clear()
def pause(self):
"""
@@ -175,24 +215,23 @@ class AbstractAnalysisQueue(object):
self._active.set()
def _work(self):
aborted = None
while True:
if aborted is not None:
entry = aborted
aborted = None
self._logger.debug("Got an aborted analysis job for entry {entry}, processing this instead of first item in queue".format(**locals()))
else:
(priority, entry) = self._queue.get()
self._logger.debug("Processing entry {entry} from queue (priority {priority})".format(**locals()))
(priority, entry, high_priority) = self._queue.get()
self._logger.debug("Processing entry {} from queue (priority {})".format(entry, priority))
self._active.wait()
try:
self._analyze(entry, high_priority=(priority == self.__class__.HIGH_PRIO))
self._analyze(entry, high_priority=high_priority)
self._queue.task_done()
except gcodeInterpreter.AnalysisAborted:
aborted = entry
self._logger.debug("Running analysis of entry {entry} aborted".format(**locals()))
self._done.set()
except AnalysisAborted as ex:
if ex.reenqueue:
self._queue.put((self.__class__.HIGH_PRIO_ABORTED if high_priority else self.__class__.LOW_PRIO_ABORTED,
entry,
high_priority))
self._logger.debug("Running analysis of entry {} aborted".format(entry))
self._queue.task_done()
self._done.set()
else:
time.sleep(1.0)
@@ -202,10 +241,12 @@ class AbstractAnalysisQueue(object):
return
self._current = entry
self._current_highprio = high_priority
self._current_progress = 0
try:
self._logger.info("Starting analysis of {entry}".format(**locals()))
start_time = time.time()
self._logger.info("Starting analysis of {}".format(entry))
eventManager().fire(Events.METADATA_ANALYSIS_STARTED, {"name": entry.name,
"path": entry.path,
"origin": entry.location,
@@ -217,7 +258,7 @@ class AbstractAnalysisQueue(object):
result = self._do_analysis(high_priority=high_priority)
except TypeError:
result = self._do_analysis()
self._logger.debug("Analysis of entry {entry} finished, notifying callback".format(**locals()))
self._logger.info("Analysis of entry {} finished, needed {:.2f}s".format(entry, time.time() - start_time))
self._finished_callback(self._current, result)
finally:
self._current = None
@@ -237,7 +278,7 @@ class AbstractAnalysisQueue(object):
"""
return None
def _do_abort(self):
def _do_abort(self, reenqueue=True):
"""
Aborts analysis of the current entry. Needs to be overridden by sub classes.
"""
@@ -266,11 +307,11 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue):
def _do_analysis(self, high_priority=False):
try:
def throttle():
time.sleep(0.01)
throttle_callback = throttle
if high_priority:
throttle = settings().getFloat(["gcodeAnalysis", "throttle_highprio"]) if high_priority else settings().getFloat(["gcodeAnalysis", "throttle_normalprio"])
if throttle > 0:
def throttle_callback():
time.sleep(throttle)
else:
throttle_callback = None
self._gcode = gcodeInterpreter.gcode()
@@ -289,9 +330,11 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue):
"volume": self._gcode.extrusionVolume[i]
}
return result
except gcodeInterpreter.AnalysisAborted as ex:
raise AnalysisAborted(reenqueue=ex.reenqueue)
finally:
self._gcode = None
def _do_abort(self):
def _do_abort(self, reenqueue=True):
if self._gcode:
self._gcode.abort()
self._gcode.abort(reenqueue=reenqueue)
+13 -8
View File
@@ -473,10 +473,10 @@ class LocalFileStorage(StorageInterface):
if not metadata:
metadata = dict()
for entry in scandir(path):
if is_hidden_path(entry.name) or not octoprint.filemanager.valid_file_type(entry.name):
if is_hidden_path(entry.name):
continue
if entry.is_file():
if entry.is_file() and octoprint.filemanager.valid_file_type(entry.name):
if not entry.name in metadata or not isinstance(metadata[entry.name], dict) or not "analysis" in metadata[entry.name]:
printer_profile_rels = self.get_link(entry.path, "printerprofile")
if printer_profile_rels:
@@ -511,7 +511,7 @@ class LocalFileStorage(StorageInterface):
filepath = self.sanitize_path(filepath)
path = self.sanitize_path(path)
return filepath.startswith(path)
return filepath == path or filepath.startswith(path + os.sep)
def file_exists(self, path):
path, name = self.sanitize(path)
@@ -1123,11 +1123,16 @@ class LocalFileStorage(StorageInterface):
# no hidden files and folders
continue
entry_name = entry.name
entry_path = entry.path
entry_is_file = entry.is_file()
entry_is_dir = entry.is_dir()
entry_stat = entry.stat()
try:
entry_name = entry.name
entry_path = entry.path
entry_is_file = entry.is_file()
entry_is_dir = entry.is_dir()
entry_stat = entry.stat()
except:
# error while trying to fetch file metadata, that might be thanks to file already having
# been moved or deleted - ignore it and continue
continue
try:
new_entry_name, new_entry_path = self._sanitize_entry(entry_name, path, entry_path)
+29 -12
View File
@@ -246,11 +246,11 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
machinecode_path = path + ".gco"
if position and isinstance(position, dict) and "x" in position and "y" in position:
posX = position["x"]
posY = position["y"]
pos_x = position["x"]
pos_y = position["y"]
else:
posX = None
posY = None
pos_x = None
pos_y = None
if on_progress:
if not on_progress_args:
@@ -266,7 +266,24 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
working_dir = os.path.dirname(executable)
engine_settings = self._convert_to_engine(profile_path, printer_profile, posX, posY)
slicing_profile = Profile(self._load_profile(profile_path), printer_profile, pos_x, pos_y)
# NOTE: We can assume an extruder count of 1 here since the only way we currently
# support dual extrusion in this implementation is by using the second extruder for support (which
# the engine conversion will automatically detect and adapt accordingly).
#
# We currently do only support STL files as sliceables, which by default can only contain one mesh,
# so no risk of having to slice multi-objects at the moment, which would necessitate a full analysis
# of the objects to slice to determine amount of needed extruders to use here. If we ever decide to
# also support dual extrusion slicing (including composition from multiple STLs or support for OBJ or
# AMF files and the like), this code needs to be adapted!
#
# The extruder count is needed to decide which start/end gcode will be used from the Cura profile.
# Stock Cura implementation counts the number of objects in the scene for this (and also takes a look
# at the support usage, like the engine conversion here does). We only ever have one object.
engine_settings = self._convert_to_engine(profile_path, printer_profile,
pos_x=pos_x, pos_y=pos_y,
used_extruders=1)
# Start building the argument list for the CuraEngine command execution
args = [executable, '-v', '-p']
@@ -375,11 +392,11 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
if not tool_key in analysis["filament"]:
analysis["filament"][tool_key] = dict()
if profile.get_float("filament_diameter") != None:
if profile.get("gcode_flavor") == GcodeFlavors.ULTIGCODE or profile.get("gcode_flavor") == GcodeFlavors.REPRAP_VOLUME:
analysis["filament"][tool_key] = _get_usage_from_volume(filament, profile.get_float("filament_diameter"))
if slicing_profile.get_float("filament_diameter") is not None:
if slicing_profile.get("gcode_flavor") == GcodeFlavors.ULTIGCODE or slicing_profile.get("gcode_flavor") == GcodeFlavors.REPRAP_VOLUME:
analysis["filament"][tool_key] = _get_usage_from_volume(filament, slicing_profile.get_float("filament_diameter"))
else:
analysis["filament"][tool_key] = _get_usage_from_length(filament, profile.get_float("filament_diameter"))
analysis["filament"][tool_key] = _get_usage_from_length(filament, slicing_profile.get_float("filament_diameter"))
except:
pass
@@ -442,9 +459,9 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
with octoprint.util.atomic_write(path, "wb", max_permissions=0o666) as f:
yaml.safe_dump(profile, f, default_flow_style=False, indent=" ", allow_unicode=True)
def _convert_to_engine(self, profile_path, printer_profile, posX, posY):
profile = Profile(self._load_profile(profile_path), printer_profile, posX, posY)
return profile.convert_to_engine()
def _convert_to_engine(self, profile_path, printer_profile, pos_x=None, pos_y=None, used_extruders=1):
profile = Profile(self._load_profile(profile_path), printer_profile, pos_x, pos_y)
return profile.convert_to_engine(used_extruders=used_extruders)
def _sanitize_name(name):
if name is None:
+42 -30
View File
@@ -63,12 +63,14 @@ defaults = dict(
solid_top=True,
solid_bottom=True,
fill_overlap=15,
perimeter_before_infill=False,
# speeds
print_speed=50.0,
travel_speed=150.0,
bottom_layer_speed=20.0,
infill_speed=0.0,
solidarea_speed=0.0,
outer_shell_speed=0.0,
inner_shell_speed=0.0,
@@ -117,8 +119,11 @@ defaults = dict(
raft_base_linewidth=1.0,
raft_interface_thickness=0.27,
raft_interface_linewidth=0.4,
raft_airgap_all=0.0,
raft_airgap=0.22,
raft_surface_layers=2,
raft_surface_thickness=0.27,
raft_surface_linewidth=0.4,
# repairing
fix_horrible_union_all_type_a=True,
@@ -597,8 +602,8 @@ class Profile(object):
diameters = self._get("filament_diameter")
if not match.group(1):
return diameters[0]
index = int(match.group(1))
if index >= len(diameters):
index = int(match.group(1)) - 1
if index >= len(diameters) or index < 0:
return 0.0
return diameters[index]
@@ -610,8 +615,8 @@ class Profile(object):
temperatures = self._get("print_temperature")
if not match.group(1):
return temperatures[0]
index = int(match.group(1))
if index >= len(temperatures):
index = int(match.group(1)) - 1
if index >= len(temperatures) or index < 0:
return 0.0
return temperatures[index]
@@ -669,9 +674,7 @@ class Profile(object):
return default
return int(value * 1000)
def get_gcode_template(self, key):
extruder_count = self.get_int("extruder_amount")
def get_gcode_template(self, key, extruder_count=1):
if key in self._profile:
gcode = self._profile[key]
else:
@@ -731,7 +734,7 @@ class Profile(object):
return pre + str(f)
def get_gcode(self, key):
def get_gcode(self, key, extruder_count=1):
prefix = ""
postfix = ""
@@ -741,11 +744,11 @@ class Profile(object):
return ""
if key == "start_gcode":
contents = self.get_gcode_template("start_gcode")
contents = self.get_gcode_template("start_gcode", extruder_count=extruder_count)
prefix += self.get_start_gcode_prefix(contents)
else:
contents = self.get_gcode_template(key)
contents = self.get_gcode_template(key, extruder_count=extruder_count)
return unicode(prefix + re.sub("(.)\{([^\}]*)\}", self.replaceTagMatch, contents).rstrip() + '\n' + postfix).strip().encode('utf-8') + '\n'
@@ -754,9 +757,13 @@ class Profile(object):
prefix = ""
gcode_parameter_key = "S"
if self.get("gcode_flavor") == GcodeFlavors.MACH3:
gcode_parameter_key = "P"
e_steps = self.get_float("steps_per_e")
if e_steps > 0:
prefix += "M92 E{e_steps}\n" % (e_steps)
prefix += "M92 E{e_steps}\n".format(e_steps=e_steps)
temp = self.get_float("print_temperature")
bed_temp = 0
@@ -765,30 +772,30 @@ class Profile(object):
include_bed_temp = bed_temp > 0 and not "{print_bed_temperature}" in Profile.regex_strip_comments.sub("", contents)
if include_bed_temp:
prefix += "M140 S{bed_temp}\n".format(bed_temp=bed_temp)
prefix += "M140 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp)
if temp > 0 and not "{print_temperature}" in Profile.regex_strip_comments.sub("", contents):
if extruder_count > 0:
def temp_line(temp, extruder, template):
def temp_line(temp, extruder, param, template):
t = temp
if extruder > 0:
print_temp = self.get_float("print_temperature%d" % (extruder + 1))
if print_temp > 0:
t = print_temp
return template.format(extruder=extruder, temp=t)
return template.format(extruder=extruder, temp=t, param=param)
prefix_preheat = ""
prefix_waitheat = ""
for n in range(0, extruder_count):
if n > 0:
prefix_preheat += temp_line(temp, n, "M104 T{extruder} S{temp}\n")
prefix_waitheat += temp_line(temp, n, "M109 T{extruder} S{temp}\n")
prefix_preheat += temp_line(temp, n, gcode_parameter_key, "M104 T{extruder} {param}{temp}\n")
prefix_waitheat += temp_line(temp, n, gcode_parameter_key, "M109 T{extruder} {param}{temp}\n")
prefix += prefix_preheat + prefix_waitheat + "T0\n"
else:
prefix += "M109 S{temp}\n".format(temp=temp)
prefix += "M109 {param}{temp}\n".format(param=gcode_parameter_key, temp=temp)
if include_bed_temp:
prefix += "M190 S{bed_temp}\n".format(bed_temp=bed_temp)
prefix += "M190 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp)
return prefix
@@ -822,7 +829,7 @@ class Profile(object):
if layer_height == 0.0:
return 1
import math
return int(math.ceil(solid_thickness / (layer_height - 0.0001)))
return int(math.ceil((solid_thickness - 0.0001) / layer_height))
def calculate_minimal_extruder_count(self):
extruder_count = self.get("extruder_amount")
@@ -852,13 +859,14 @@ class Profile(object):
return int(self.get_float("machine_depth") / 2.0) if not self.get_boolean("machine_center_is_zero") else 0.0
def convert_to_engine(self):
def convert_to_engine(self, used_extruders=1):
edge_width, line_count = self.calculate_edge_width_and_line_count()
solid_layer_count = self.calculate_solid_layer_count()
extruder_count = self.get_int("extruder_amount")
minimal_extruder_count = self.calculate_minimal_extruder_count()
actual_extruder_count = max(minimal_extruder_count, used_extruders)
settings = {
"layerThickness": self.get_microns("layer_height"),
@@ -871,12 +879,14 @@ class Profile(object):
"downSkinCount": solid_layer_count if self.get_boolean("solid_bottom") else 0,
"upSkinCount": solid_layer_count if self.get_boolean("solid_top") else 0,
"infillOverlap": self.get_int("fill_overlap"),
"perimeterBeforeInfill": 1 if self.get_boolean("perimeter_before_infill") else 0,
"initialSpeedupLayers": int(4),
"initialLayerSpeed": self.get_int("bottom_layer_speed"),
"printSpeed": self.get_int("print_speed"),
"infillSpeed": self.get_int("infill_speed") if self.get_int("infill_speed") > 0 else self.get_int("print_speed"),
"inset0Speed": self.get_int("outer_shell_speed") if self.get_int("outer_shell_speed") > 0 else self.get_int("print_speed"),
"insetXSpeed": self.get_int("inner_shell_speed") if self.get_int("inner_shell_speed") > 0 else self.get_int("print_speed"),
"skinSpeed": self.get_int("solidarea_speed") if self.get_int("solidarea_speed") > 0 > 0 else self.get_int("print_speed"),
"moveSpeed": self.get_int("travel_speed"),
"fanSpeedMin": self.get_int("fan_speed") if self.get_boolean("fan_enabled") else 0,
"fanSpeedMax": self.get_int("fan_speed_max") if self.get_boolean("fan_enabled") else 0,
@@ -892,22 +902,23 @@ class Profile(object):
"retractionAmountExtruderSwitch": self.get_microns("retraction_dual_amount"),
"retractionZHop": self.get_microns("retraction_hop"),
"minimalExtrusionBeforeRetraction": self.get_microns("retraction_minimal_extrusion"),
"enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0),
"multiVolumeOverlap": self.get_microns("overlap_dual"),
"objectSink": max(0, self.get_microns("object_sink")),
"minimalLayerTime": self.get_int("cool_min_layer_time"),
"minimalFeedrate": self.get_int("cool_min_feedrate"),
"coolHeadLift": 1 if self.get_boolean("cool_head_lift") else 0,
"enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0),
# model positioning
"posx": self.get_pos_x() * 1000, # in microns
"posy": self.get_pos_y() * 1000, # in microns
# gcodes
"startCode": self.get_gcode("start_gcode"),
"endCode": self.get_gcode("end_gcode"),
"preSwitchExtruderCode": self.get_gcode("preSwitchExtruder_gcode"),
"postSwitchExtruderCode": self.get_gcode("postSwitchExtruder_gcode"),
"startCode": self.get_gcode("start_gcode", extruder_count=actual_extruder_count),
"endCode": self.get_gcode("end_gcode", extruder_count=actual_extruder_count),
"preSwitchExtruderCode": self.get_gcode("preSwitchExtruder_gcode", extruder_count=actual_extruder_count),
"postSwitchExtruderCode": self.get_gcode("postSwitchExtruder_gcode", extruder_count=actual_extruder_count),
# fixing
"fixHorrible": 0,
@@ -952,12 +963,13 @@ class Profile(object):
settings["raftInterfaceThickness"] = self.get_microns("raft_interface_thickness")
settings["raftInterfaceLinewidth"] = self.get_microns("raft_interface_linewidth")
settings["raftInterfaceLineSpacing"] = self.get_microns("raft_interface_linewidth") * 2
settings["raftAirGapLayer0"] = self.get_microns("raft_airgap")
settings["raftAirGapLayer0"] = self.get_microns("raft_airgap") + self.get_microns("raft_airgap_all")
settings["raftAirGap"] = self.get_microns("raft_airgap_all")
settings["raftBaseSpeed"] = self.get_int("bottom_layer_speed")
settings["raftFanSpeed"] = 100
settings["raftSurfaceThickness"] = settings["raftInterfaceThickness"]
settings["raftSurfaceLinewidth"] = int(edge_width * 1000)
settings["raftSurfaceLineSpacing"] = int(edge_width * 1000 * 0.9)
settings["raftFanSpeed"] = 0
settings["raftSurfaceThickness"] = self.get_microns("raft_surface_thickness")
settings["raftSurfaceLinewidth"] = self.get_microns("raft_surface_linewidth")
settings["raftSurfaceLineSpacing"] = self.get_microns("raft_surface_linewidth")
settings["raftSurfaceLayers"] = self.get_int("raft_surface_layers")
settings["raftSurfaceSpeed"] = self.get_int("bottom_layer_speed")
+1 -1
View File
@@ -168,7 +168,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
#~~ progress plugin reporting
def _reportPrintProgressToPlugins(self, progress):
if not progress or not self._selectedFile or not "sd" in self._selectedFile or not "filename" in self._selectedFile:
if progress is None or not self._selectedFile or not "sd" in self._selectedFile or not "filename" in self._selectedFile:
return
storage = "sdcard" if self._selectedFile["sd"] else "local"
+8 -8
View File
@@ -248,8 +248,8 @@ def _verifyFolderExists(origin, foldername):
def _isBusy(target, path):
currentOrigin, currentFilename = _getCurrentFile()
if currentFilename is not None and currentOrigin == target and fileManager.file_in_path(FileDestinations.LOCAL, path, currentFilename) and (printer.is_printing() or printer.is_paused()):
currentOrigin, currentPath = _getCurrentFile()
if currentPath is not None and currentOrigin == target and fileManager.file_in_path(FileDestinations.LOCAL, path, currentPath) and (printer.is_printing() or printer.is_paused()):
return True
return any(target == x[0] and fileManager.file_in_path(FileDestinations.LOCAL, path, x[1]) for x in fileManager.get_busy_files())
@@ -705,8 +705,8 @@ def deleteGcodeFile(filename, target):
return make_response("Trying to delete a file that is currently in use: %s" % filename, 409)
# deselect the file if it's currently selected
currentOrigin, currentFilename = _getCurrentFile()
if currentFilename is not None and currentOrigin == target and filename == currentFilename:
currentOrigin, currentPath = _getCurrentFile()
if currentPath is not None and currentOrigin == target and filename == currentPath:
printer.unselect_file()
# delete it
@@ -723,8 +723,8 @@ def deleteGcodeFile(filename, target):
return make_response("Trying to delete a folder that contains a file that is currently in use: %s" % filename, 409)
# deselect the file if it's currently selected
currentOrigin, currentFilename = _getCurrentFile()
if currentFilename is not None and currentOrigin == target and fileManager.file_in_path(target, filename, currentFilename):
currentOrigin, currentPath = _getCurrentFile()
if currentPath is not None and currentOrigin == target and fileManager.file_in_path(target, filename, currentPath):
printer.unselect_file()
# delete it
@@ -734,8 +734,8 @@ def deleteGcodeFile(filename, target):
def _getCurrentFile():
currentJob = printer.get_current_job()
if currentJob is not None and "file" in currentJob.keys() and "name" in currentJob["file"] and "origin" in currentJob["file"]:
return currentJob["file"]["origin"], currentJob["file"]["name"]
if currentJob is not None and "file" in currentJob.keys() and "path" in currentJob["file"] and "origin" in currentJob["file"]:
return currentJob["file"]["origin"], currentJob["file"]["path"]
else:
return None, None
+3 -1
View File
@@ -125,7 +125,8 @@ def getSettings():
"pollWatched": s.getBoolean(["feature", "pollWatched"]),
"ignoreIdenticalResends": s.getBoolean(["feature", "ignoreIdenticalResends"]),
"modelSizeDetection": s.getBoolean(["feature", "modelSizeDetection"]),
"firmwareDetection": s.getBoolean(["feature", "firmwareDetection"])
"firmwareDetection": s.getBoolean(["feature", "firmwareDetection"]),
"printCancelConfirmation": s.getBoolean(["feature", "printCancelConfirmation"])
},
"serial": {
"port": connectionOptions["portPreference"],
@@ -309,6 +310,7 @@ def _saveSettings(data):
if "ignoreIdenticalResends" in data["feature"]: s.setBoolean(["feature", "ignoreIdenticalResends"], data["feature"]["ignoreIdenticalResends"])
if "modelSizeDetection" in data["feature"]: s.setBoolean(["feature", "modelSizeDetection"], data["feature"]["modelSizeDetection"])
if "firmwareDetection" in data["feature"]: s.setBoolean(["feature", "firmwareDetection"], data["feature"]["firmwareDetection"])
if "printCancelConfirmation" in data["feature"]: s.setBoolean(["feature", "printCancelConfirmation"], data["feature"]["printCancelConfirmation"])
if "serial" in data.keys():
if "autoconnect" in data["serial"].keys(): s.setBoolean(["serial", "autoconnect"], data["serial"]["autoconnect"])
+1 -1
View File
@@ -230,7 +230,7 @@ def setTimelapseConfig():
except ValueError:
return make_response("Invalid value for retraction Z-Hop: %r" % data["retractionZHop"])
else:
if retractionZHop > 0:
if retractionZHop >= 0:
config["options"]["retractionZHop"] = retractionZHop
else:
return make_response("Invalid value for retraction Z-Hop: %d" % retractionZHop)
+1
View File
@@ -1297,6 +1297,7 @@ def collect_core_assets(enable_gcodeviewer=True, preferred_stylesheet="css"):
'js/app/bindings/slimscrolledforeach.js',
'js/app/bindings/toggle.js',
'js/app/bindings/togglecontent.js',
'js/app/bindings/valuewithinit.js',
'js/app/viewmodels/appearance.js',
'js/app/viewmodels/connection.js',
'js/app/viewmodels/control.js',
+4 -4
View File
@@ -154,12 +154,12 @@ class PrinterStateConnection(sockjs.tornado.SockJSConnection, octoprint.printer.
messages = self._messageBacklog
self._messageBacklog = []
busy_files = [dict(origin=v[0], name=v[1]) for v in self._fileManager.get_busy_files()]
busy_files = [dict(origin=v[0], path=v[1]) for v in self._fileManager.get_busy_files()]
if "job" in data and data["job"] is not None \
and "file" in data["job"] and "name" in data["job"]["file"] and "origin" in data["job"]["file"] \
and data["job"]["file"]["name"] is not None and data["job"]["file"]["origin"] is not None \
and "file" in data["job"] and "path" in data["job"]["file"] and "origin" in data["job"]["file"] \
and data["job"]["file"]["path"] is not None and data["job"]["file"]["origin"] is not None \
and (self._printer.is_printing() or self._printer.is_paused()):
busy_files.append(dict(origin=data["job"]["file"]["origin"], name=data["job"]["file"]["name"]))
busy_files.append(dict(origin=data["job"]["file"]["origin"], path=data["job"]["file"]["path"]))
data.update({
"serverTime": time.time(),
+10 -10
View File
@@ -178,7 +178,9 @@ default_settings = {
"sizeThreshold": 20 * 1024 * 1024, # 20MB
},
"gcodeAnalysis": {
"maxExtruders": 10
"maxExtruders": 10,
"throttle_normalprio": 0.01,
"throttle_highprio": 0.0
},
"feature": {
"temperatureGraph": True,
@@ -200,7 +202,8 @@ default_settings = {
"identicalResendsCountdown": 7,
"supportFAsCommand": False,
"modelSizeDetection": True,
"firmwareDetection": True
"firmwareDetection": True,
"printCancelConfirmation": True
},
"folder": {
"uploads": None,
@@ -292,8 +295,9 @@ default_settings = {
"apps": {}
},
"terminalFilters": [
{ "name": "Suppress M105 requests/responses", "regex": "(Send: M105)|(Recv: ok (B|T\d*):)" },
{ "name": "Suppress M27 requests/responses", "regex": "(Send: M27)|(Recv: SD printing byte)" }
{ "name": "Suppress temperature messages", "regex": "(Send: (N\d+\s+)?M105)|(Recv: ok (B|T\d*):)" },
{ "name": "Suppress SD status messages", "regex": "(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)" },
{ "name": "Suppress wait responses", "regex": "Recv: wait"}
],
"plugins": {
"_disabled": []
@@ -1486,12 +1490,8 @@ class Settings(object):
def _default_basedir(applicationName):
# taken from http://stackoverflow.com/questions/1084697/how-do-i-store-desktop-application-data-in-a-cross-platform-way-for-python
if sys.platform == "darwin":
from AppKit import NSSearchPathForDirectoriesInDomains
# http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains
# NSApplicationSupportDirectory = 14
# NSUserDomainMask = 1
# True for expanding the tilde into a fully qualified path
return os.path.join(NSSearchPathForDirectoriesInDomains(14, 1, True)[0], applicationName)
import appdirs
return appdirs.user_data_dir(applicationName, "")
elif sys.platform == "win32":
return os.path.join(os.environ["APPDATA"], applicationName)
else:
+1 -1
View File
@@ -1 +1 @@
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn.active,.btn.disabled,.btn:active,.btn:focus,.btn:hover,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn.active,.btn:active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:focus,.btn:hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class*=" icon-"],.btn-large [class^=icon-]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class*=" icon-"],.btn-small [class^=icon-]{margin-top:0}.btn-mini [class*=" icon-"],.btn-mini [class^=icon-]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary.active,.btn-primary.disabled,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary.active,.btn-primary:active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning.active,.btn-warning.disabled,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning.active,.btn-warning:active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeaLine truncated
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn.active,.btn.disabled,.btn:active,.btn:focus,.btn:hover,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn.active,.btn:active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:focus,.btn:hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class*=" icon-"],.btn-large [class^=icon-]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class*=" icon-"],.btn-small [class^=icon-]{margin-top:0}.btn-mini [class*=" icon-"],.btn-mini [class^=icon-]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary.active,.btn-primary.disabled,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary.active,.btn-primary:active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning.active,.btn-warning.disabled,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning.active,.btn-warning:active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeaLine truncated
+67
View File
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg4693"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="octoprint-favicon-apple.svg">
<defs
id="defs4695" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="31.678384"
inkscape:cx="11.852657"
inkscape:cy="8.0632297"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="1912"
inkscape:window-y="760"
inkscape:window-maximized="1" />
<metadata
id="metadata4698">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1036.3622)">
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30326968;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="m 8.4712216,1037.1861 c -2.1050908,0.04 -4.0163689,0.8056 -5.7487668,2.3398 -1.0712052,0.9142 -1.82198358,1.9725 -2.25345195,3.1787 -0.37398533,1.751 -0.40029296,3.4654 -0.0863535,5.0991 0.18720389,1.0348 0.58340878,2.2568 1.19251915,3.6886 l 4.2190532,0 c -0.293453,-0.8621 -0.577953,-1.5323 -0.8471012,-2.0232 -1.153287,-2.1277 -1.411065,-4.2066 -0.7607457,-6.2052 0.2367104,-0.6185 0.5586836,-1.2169 0.9581276,-1.7806 0.1426595,-0.2013 0.3287285,-0.4113 0.5345786,-0.588 0.268515,-0.2936 0.8787071,-0.6679 1.8463495,-1.1514 0.3797863,-0.1946 0.7802208,-0.3318 1.2254154,-0.4195 0.055375,-0.021 0.4121338,-0.071 1.0485963,-0.1439 0.4166658,-0.047 0.9826928,0.01 1.7024248,0.218 0.68338,0.202 1.192041,0.4217 1.554388,0.6785 0.46971,0.3328 0.860598,0.6899 1.196632,1.0691 0.08834,0.1029 0.152532,0.1851 0.217943,0.292 0.119092,0.1449 0.28643,0.3643 0.501681,0.6579 0.120782,0.086 0.202303,0.1674 0.217943,0.2591 0.04417,0.051 0.07097,0.072 0.115138,0.1233 0.109582,0.1583 0.220475,0.3159 0.316636,0.4647 0.07883,0.1164 0.137371,0.2581 0.193271,0.3783 0.07894,-0.3674 0.06507,-0.8608 -0.08636,-1.4721 -0.180483,-0.7126 -0.391176,-1.2047 -0.633269,-1.5174 -0.507116,-0.6215 -0.808763,-0.9976 -0.933455,-1.1062 -0.03075,-0.042 -0.311374,-0.2417 -0.834763,-0.6127 -0.48313,-0.3423 -0.991284,-0.6213 -1.496819,-0.8183 -0.992045,-0.4208 -2.1359359,-0.6284 -3.3596164,-0.6086 z"
id="path3017-7-8"
sodipodi:nodetypes="ccccccccscccccsccccccccccscc" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;stroke:#000000;stroke-width:0.30326967999999999;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;fill-opacity:1"
d="m 10.140749,1039.1641 c -0.122741,0 -0.2371399,0 -0.3413068,0.016 -0.6364625,0.073 -0.9932215,0.1227 -1.0485963,0.1439 -0.4451946,0.088 -0.8456291,0.2249 -1.2254154,0.4195 -0.9676424,0.4835 -1.5778345,0.8578 -1.8463495,1.1514 -0.2058501,0.1767 -0.3919191,0.3867 -0.5345786,0.588 -0.399444,0.5637 -0.7214172,1.1621 -0.9581276,1.7806 -0.6503193,1.9986 -0.3925413,4.0775 0.7607457,6.2052 0.2691482,0.4909 0.5536482,1.1611 0.8471012,2.0232 l 4.2601723,0 c -0.1550496,-0.4598 -0.3855015,-0.9829 -0.7113982,-1.5709 -0.2465293,-0.4771 -0.5321843,-0.9815 -0.8553245,-1.4927 -0.013422,-0.01 -0.00409,-0.021 -0.00409,-0.021 -0.051988,-0.097 -0.098669,-0.1734 -0.1562603,-0.2343 -0.030751,-0.042 -0.051492,-0.073 -0.082242,-0.1152 l -0.1809343,-0.2549 c -0.069319,-0.1298 -0.140197,-0.2592 -0.2056073,-0.366 -0.2460015,-0.3356 -0.4342851,-0.6086 -0.5880347,-0.8183 -0.1308197,-0.2137 -0.2609169,-0.4291 -0.3783173,-0.6333 -1.1170471,-1.6383 -1.0194278,-3.0575 0.2878496,-4.2478 0.3736582,-0.2997 0.8097656,-0.577 1.3405561,-0.7855 0.3188143,-0.1369 0.6574538,-0.2389 0.9745783,-0.3166 2.3182336,-0.3127 4.3630076,0.4721 6.1270826,2.3069 -0.09616,-0.1488 -0.207055,-0.3105 -0.316635,-0.4688 -0.04417,-0.051 -0.07097,-0.068 -0.115139,-0.1192 -0.01564,-0.092 -0.09716,-0.1735 -0.217944,-0.2591 -0.215251,-0.2936 -0.382589,-0.5131 -0.50168,-0.6579 -0.06541,-0.1069 -0.129604,-0.1891 -0.217944,-0.292 -0.336034,-0.3792 -0.726922,-0.7363 -1.196632,-1.0691 -0.362348,-0.2568 -0.871009,-0.4765 -1.554388,-0.6785 -0.539798,-0.1558 -0.992892,-0.2286 -1.361116,-0.2344 z"
id="path3101-4-0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

@@ -0,0 +1,11 @@
ko.bindingHandlers.valueWithInit = {
init: function(element, valueAccessor, allBindingsAccessor, context) {
var observable = valueAccessor();
var value = element.value;
observable(value);
ko.bindingHandlers.value.init(element, valueAccessor, allBindingsAccessor, context);
},
update: ko.bindingHandlers.value.update
};
@@ -41,7 +41,7 @@ $(function() {
self.keycontrolActive = ko.observable(false);
self.keycontrolHelpActive = ko.observable(false);
self.keycontrolPossible = ko.pureComputed(function () {
return self.isOperational() && !self.isPrinting() && self.loginState.isUser() && !$.browser.mobile;
return self.settings.feature_keyboardControl() && self.isOperational() && !self.isPrinting() && self.loginState.isUser() && !$.browser.mobile;
});
self.showKeycontrols = ko.pureComputed(function () {
return self.keycontrolActive() && self.keycontrolPossible();
@@ -708,11 +708,12 @@ $(function() {
return false;
}
if (entry["type"] == "folder" && entry["children"]) {
var success = entry["name"].toLocaleLowerCase().indexOf(query) > -1;
if (!success && entry["type"] == "folder" && entry["children"]) {
return _.any(entry["children"], recursiveSearch);
} else {
return entry["name"].toLocaleLowerCase().indexOf(query) > -1;
}
return success;
};
self.listHelper.changeSearchFunction(recursiveSearch);
@@ -76,6 +76,10 @@ $(function() {
self.loginUser("");
self.loginPass("");
self.loginRemember(false);
if (history && history.replaceState) {
history.replaceState({success: true}, document.title, window.location.pathname);
}
})
.fail(function() {
new PNotify({title: gettext("Login failed"), text: gettext("User unknown or wrong password"), type: "error"});
@@ -95,16 +99,11 @@ $(function() {
});
};
self.onLoginUserKeyup = function(data, event) {
if (event.keyCode == 13) {
self.elementPasswordInput.focus();
}
};
self.onLoginPassKeyup = function(data, event) {
if (event.keyCode == 13) {
self.login();
self.prepareLogin = function(data, event) {
if(event && event.preventDefault) {
event.preventDefault();
}
self.login();
};
self.onAllBound = function(allViewModels) {
@@ -120,6 +119,28 @@ $(function() {
self.elementUsernameInput = $("#login_user");
self.elementPasswordInput = $("#login_pass");
self.elementLoginButton = $("#login_button");
var toggle = $("li.dropdown#navbar_login");
var button = $("a", toggle);
button.on("click", function(e) {
$(this).parent().toggleClass("open");
});
$("body").on("click", function(e) {
var anyFormLinkOrButton = $("#login_dropdown_loggedout a, #login_dropdown_loggedin a, #login_dropdown_loggedout button, #login_dropdown_loggedin button");
var dropdown = $("li.dropdown#navbar_login");
var anyLastpassButton = $("#__lpform_login_user, #__lpform_login_pass");
var isLinkOrButton = anyFormLinkOrButton.is(e.target) || anyFormLinkOrButton.has(e.target).length !== 0;
var isDropdown = dropdown.is(e.target) || dropdown.has(e.target).length === 0;
var isLastpass = anyLastpassButton.is(e.target) || anyLastpassButton.has(e.target).length === 0;
if (isLinkOrButton || !(isDropdown || isLastpass)) {
toggle.removeClass("open");
}
});
if (self.elementUsernameInput && self.elementUsernameInput.length
&& self.elementLoginButton && self.elementLoginButton.length) {
self.elementLoginButton.blur(function() {
@@ -3,6 +3,7 @@ $(function() {
var self = this;
self.loginState = parameters[0];
self.settings = parameters[1];
self.stateString = ko.observable(undefined);
self.isErrorOrClosed = ko.observable(undefined);
@@ -255,8 +256,8 @@ $(function() {
self._processBusyFiles = function(data) {
var busyFiles = [];
_.each(data, function(entry) {
if (entry.hasOwnProperty("name") && entry.hasOwnProperty("origin")) {
busyFiles.push(entry.origin + ":" + entry.name);
if (entry.hasOwnProperty("path") && entry.hasOwnProperty("origin")) {
busyFiles.push(entry.origin + ":" + entry.path);
}
});
self.busyFiles(busyFiles);
@@ -288,18 +289,24 @@ $(function() {
};
self.cancel = function() {
showConfirmationDialog({
message: gettext("This will cancel your print."),
onproceed: function() {
OctoPrint.job.cancel();
}
});
if (!self.settings.feature_printCancelConfirmation()) {
OctoPrint.job.cancel();
} else {
showConfirmationDialog({
message: gettext("This will cancel your print."),
cancel: gettext("No"),
proceed: gettext("Yes"),
onproceed: function() {
OctoPrint.job.cancel();
}
});
}
};
}
OCTOPRINT_VIEWMODELS.push([
PrinterStateViewModel,
["loginStateViewModel"],
["loginStateViewModel", "settingsViewModel"],
["#state_wrapper", "#drop_overlay"]
]);
});
@@ -138,6 +138,7 @@ $(function() {
self.feature_ignoreIdenticalResends = ko.observable(undefined);
self.feature_modelSizeDetection = ko.observable(undefined);
self.feature_firmwareDetection = ko.observable(undefined);
self.feature_printCancelConfirmation = ko.observable(undefined);
self.serial_port = ko.observable();
self.serial_baudrate = ko.observable();
+26
View File
@@ -1139,3 +1139,29 @@ input[type=number] {
width: 100%;
}
}
// Navbar loginForm
// Make the overlay always visible so that extensions are able to auto-submit (i.e. password-managers)
#navbar_login:not(.open) #login_dropdown_loggedout {
display: block;
z-index: -1;
height: 0;
width: 0;
padding: 0 !important;
overflow: hidden;
border: 0;
box-shadow: none;
left: -9999px;
&.hide {
display: none;
}
}
#loginForm {
margin: 0;
button {
margin-top: 20px;
}
}
@@ -13,6 +13,13 @@
</label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: feature_printCancelConfirmation" id="settings-printCancelConfirmation"> {{ _('Confirm before cancelling a print') }}
</label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
@@ -34,7 +41,6 @@
</label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
+2
View File
@@ -4,6 +4,7 @@
<title data-bind="text: title">OctoPrint</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='img/tentacle-32x32.png') }}">
<link rel="mask-icon" href="{{ url_for('static', filename='img/favicon.svg') }}" color="#56BE37">
<link rel="apple-touch-icon" sizes="114x114" href="{{ url_for('static', filename='img/apple-touch-icon-114x114.png') }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ url_for('static', filename='img/apple-touch-icon-144x144.png') }}">
@@ -119,6 +120,7 @@
<li><a href="https://github.com/foosel/OctoPrint/" target="_blank" rel="noreferrer noopener"><i class="icon-github"></i> {{ _('Sourcecode') }}</a></li>
<li><a href="http://docs.octoprint.org" target="_blank" rel="noreferrer noopener"><i class="icon-book"></i> {{ _('Documentation') }}</a></li>
<li><a href="https://github.com/foosel/OctoPrint/issues" target="_blank" rel="noreferrer noopener"><i class="icon-flag"></i> {{ _('Bugs and Requests') }}</a></li>
<li><a href="https://github.com/foosel/OctoPrint/wiki/FAQ" target="_blank" rel="noreferrer noopener"><i class="icon-question-sign"></i> {{ _('FAQ') }}</a></li>
<li id="footer_about"><a href="javascript:void(0)" data-bind="click: show"><i class="icon-info-sign"></i> {{ _('About') }}</a></li>
</ul>
</div>
+11 -9
View File
@@ -1,16 +1,18 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<a href="#" class="dropdown-toggle">
<i class="icon-user"></i> <span data-bind="text: loginState.userMenuText">{{ _('Login') }}</span>
<b class="caret"></b>
</a>
<div id="login_dropdown_loggedout" style="padding: 15px" class="dropdown-menu" data-bind="css: {hide: loginState.loggedIn(), 'dropdown-menu': !loginState.loggedIn()}">
<label for="login_user">{{ _('Username') }}</label>
<input type="text" id="login_user" data-bind="value: loginState.loginUser, event: {'keyup': loginState.onLoginUserKeyup}" placeholder="{{ _('Username') }}" autocapitalize="none">
<label for="login_pass">{{ _('Password') }}</label>
<input type="password" id="login_pass" data-bind="value: loginState.loginPass, event: {'keyup': loginState.onLoginPassKeyup}" placeholder="{{ _('Password') }}">
<label class="checkbox">
<input type="checkbox" id="login_remember" data-bind="checked: loginState.loginRemember"> {{ _('Remember me') }}
</label>
<button class="btn btn-block btn-primary" id="login_button" data-bind="click: function() { loginState.login(); }">{{ _('Login') }}</button>
<form id="loginForm" data-bind="event: {'submit': loginState.prepareLogin }">
<label for="login_user">{{ _('Username') }}</label>
<input type="text" id="login_user" name="username" data-bind="valueWithInit: loginState.loginUser" placeholder="{{ _('Username') }}" autocapitalize="none">
<label for="login_pass">{{ _('Password') }}</label>
<input type="password" id="login_pass" name="password" data-bind="valueWithInit: loginState.loginPass" placeholder="{{ _('Password') }}">
<label class="checkbox">
<input type="checkbox" id="login_remember" data-bind="checked: loginState.loginRemember"> {{ _('Remember me') }}
</label>
<button type="submit" class="btn btn-block btn-primary" id="login_button">{{ _('Login') }}</button>
</form>
</div>
<ul id="login_dropdown_loggedin" class="hide" data-bind="css: {hide: !loginState.loggedIn(), 'dropdown-menu': loginState.loggedIn()}">
<li><a href="#" id="usersettings_button" data-bind="click: function() { usersettings.show(); }">{{ _('User Settings') }}</a></li>
@@ -1,14 +1,14 @@
# German translations for OctoPrint.
# Copyright (C) 2016 The OctoPrint Project
# Copyright (C) 2017 The OctoPrint Project
# This file is distributed under the same license as the OctoPrint project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2016-12-02 12:37+0100\n"
"PO-Revision-Date: 2016-12-02 12:38+0100\n"
"POT-Creation-Date: 2017-01-12 14:29+0100\n"
"PO-Revision-Date: 2017-01-12 14:30+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
@@ -159,16 +159,16 @@ msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45
#: src/octoprint/templates/navbar/login.jinja2:6
#: src/octoprint/templates/navbar/login.jinja2:7
#: src/octoprint/templates/navbar/login.jinja2:8
msgid "Username"
msgstr "Username"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
#: src/octoprint/templates/navbar/login.jinja2:8
#: src/octoprint/templates/navbar/login.jinja2:9
#: src/octoprint/templates/navbar/login.jinja2:10
msgid "Password"
msgstr "Passwort"
@@ -326,22 +326,22 @@ msgid ""
msgstr "<p>Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den korrekten <strong>Pfad zu FFMPEG</strong> wissen.</p>"
#: src/octoprint/plugins/cura/static/js/cura.js:176
#: src/octoprint/static/js/app/viewmodels/settings.js:296
#: src/octoprint/static/js/app/viewmodels/settings.js:297
msgid "The path doesn't exist"
msgstr "Der Pfad existiert nicht"
#: src/octoprint/plugins/cura/static/js/cura.js:178
#: src/octoprint/static/js/app/viewmodels/settings.js:298
#: src/octoprint/static/js/app/viewmodels/settings.js:299
msgid "The path is not a file"
msgstr "Der Pfad ist keine Datei"
#: src/octoprint/plugins/cura/static/js/cura.js:180
#: src/octoprint/static/js/app/viewmodels/settings.js:300
#: src/octoprint/static/js/app/viewmodels/settings.js:301
msgid "The path is not an executable"
msgstr "Der Pfad ist nicht ausführbar"
#: src/octoprint/plugins/cura/static/js/cura.js:183
#: src/octoprint/static/js/app/viewmodels/settings.js:303
#: src/octoprint/static/js/app/viewmodels/settings.js:304
msgid "The path is valid"
msgstr "Der Pfad ist valide"
@@ -1400,8 +1400,8 @@ msgid "The server is currently running in safe mode. Third party plugins are dis
msgstr "Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden."
#: src/octoprint/static/js/app/dataupdater.js:170
#: src/octoprint/static/js/app/viewmodels/files.js:848
#: src/octoprint/static/js/app/viewmodels/files.js:855
#: src/octoprint/static/js/app/viewmodels/files.js:849
#: src/octoprint/static/js/app/viewmodels/files.js:856
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)"
@@ -1569,7 +1569,7 @@ msgstr "Trennen"
#: src/octoprint/static/js/app/viewmodels/control.js:62
#: src/octoprint/static/js/app/viewmodels/files.js:589
#: src/octoprint/static/js/app/viewmodels/gcode.js:482
#: src/octoprint/static/js/app/viewmodels/printerstate.js:231
#: src/octoprint/static/js/app/viewmodels/printerstate.js:232
#: src/octoprint/static/js/app/viewmodels/temperature.js:62
msgid "Tool"
msgstr "Werkzeug"
@@ -1650,51 +1650,51 @@ msgstr "Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2
msgid "Object doesn't fit print volume"
msgstr "Objekt passt nicht in Druckvolumen"
#: src/octoprint/static/js/app/viewmodels/files.js:850
#: src/octoprint/static/js/app/viewmodels/files.js:851
msgid "Slicing ..."
msgstr "Slice ..."
#: src/octoprint/static/js/app/viewmodels/files.js:876
#: src/octoprint/static/js/app/viewmodels/files.js:877
msgid "Slicing done"
msgstr "Slicing abgeschlossen"
#: src/octoprint/static/js/app/viewmodels/files.js:877
#: src/octoprint/static/js/app/viewmodels/files.js:878
#, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/viewmodels/files.js:892
#: src/octoprint/static/js/app/viewmodels/files.js:893
#, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
#: src/octoprint/static/js/app/viewmodels/files.js:893
#: src/octoprint/static/js/app/viewmodels/files.js:894
msgid "Slicing failed"
msgstr "Slicing fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/files.js:910
#: src/octoprint/static/js/app/viewmodels/files.js:911
msgid "Streaming ..."
msgstr "Streaming ..."
#: src/octoprint/static/js/app/viewmodels/files.js:922
#: src/octoprint/static/js/app/viewmodels/files.js:923
msgid "Streaming done"
msgstr "Streaming abgeschlossen"
#: src/octoprint/static/js/app/viewmodels/files.js:923
#: src/octoprint/static/js/app/viewmodels/files.js:924
#, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/viewmodels/files.js:1019
#: src/octoprint/static/js/app/viewmodels/files.js:1020
#, python-format
msgid "Could not upload the file. Make sure that it is a valid file with one of these extensions: %(extensions)s"
msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s"
#: src/octoprint/static/js/app/viewmodels/files.js:1040
#: src/octoprint/static/js/app/viewmodels/files.js:1041
msgid "Saving ..."
msgstr "Speichere ..."
#: src/octoprint/static/js/app/viewmodels/files.js:1040
#: src/octoprint/static/js/app/viewmodels/files.js:1041
msgid "Uploading ..."
msgstr "Uploade ..."
@@ -1749,7 +1749,7 @@ msgstr "GCODE Befehle"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:26
#: src/octoprint/templates/navbar/login.jinja2:2
#: src/octoprint/templates/navbar/login.jinja2:13
#: src/octoprint/templates/navbar/login.jinja2:14
msgid "Login"
msgstr "Login"
@@ -1762,19 +1762,19 @@ msgstr "Login erfolgreich"
msgid "You are now logged in as \"%(username)s\""
msgstr "Du bist jetzt eingeloggt als \"%(username)s\""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
msgid "Login failed"
msgstr "Login fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
msgid "User unknown or wrong password"
msgstr "Nutzer unbekannt oder falsches Passwort"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
msgid "Logout successful"
msgstr "Logout erfolgreich"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
msgid "You are now logged out"
msgstr "Du bist jetzt ausgeloggt"
@@ -1867,83 +1867,91 @@ msgstr "Druckerprofil hinzufügen"
msgid "Edit Printer Profile \"%(name)s\""
msgstr "Druckerprofile \"%(name)s\" bearbeiten"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:46
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
msgid "Restarts the print job from the beginning"
msgstr "Started den Druckjob von vorne"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
msgid "Starts the print job"
msgstr "Startet den Druckjob"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
msgid "Resumes the print job"
msgstr "Setzt den Druckjob fort"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
#: src/octoprint/static/js/app/viewmodels/printerstate.js:50
msgid "Pauses the print job"
msgstr "Pausiert den Druckjob"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:82
#: src/octoprint/static/js/app/viewmodels/printerstate.js:83
msgid "Still stabilizing..."
msgstr "Noch zu ungenau..."
#: src/octoprint/static/js/app/viewmodels/printerstate.js:92
#: src/octoprint/static/js/app/viewmodels/printerstate.js:93
msgid "Based on a linear approximation (very low accuracy, especially at the beginning of the print)"
msgstr "Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, insbesondere zu Beginn eines Drucks)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:95
#: src/octoprint/static/js/app/viewmodels/printerstate.js:96
msgid "Based on the estimate from analysis of file (medium accuracy)"
msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:98
#: src/octoprint/static/js/app/viewmodels/printerstate.js:99
msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)"
msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:101
#: src/octoprint/static/js/app/viewmodels/printerstate.js:102
msgid "Based on the average total of past prints of this model with the same printer profile (usually good accuracy)"
msgstr "Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:104
#: src/octoprint/static/js/app/viewmodels/printerstate.js:105
msgid "Based on a mix of average total from past prints and calculation (usually good accuracy)"
msgstr "Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs und der Berechnung (normalerweise gute Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:107
#: src/octoprint/static/js/app/viewmodels/printerstate.js:108
msgid "Based on the calculated estimate (best accuracy)"
msgstr "Basiert auf der berechneten Schätzung (beste Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:145
#: src/octoprint/static/js/app/viewmodels/printerstate.js:146
msgid "Continue"
msgstr "Fortsetzen"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:147
#: src/octoprint/static/js/app/viewmodels/printerstate.js:148
#: src/octoprint/templates/sidebar/state.jinja2:24
msgid "Pause"
msgstr "Pause"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:158
#: src/octoprint/static/js/app/viewmodels/printerstate.js:159
#: src/octoprint/templates/tabs/timelapse.jinja2:11
msgid "On Z Change"
msgstr "Bei Ebenenwechsel"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
#: src/octoprint/templates/tabs/timelapse.jinja2:10
msgid "Timed"
msgstr "Nach Zeit"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
#: src/octoprint/templates/tabs/timelapse.jinja2:25
#: src/octoprint/templates/tabs/timelapse.jinja2:39
msgid "sec"
msgstr "Sek"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:268
#: src/octoprint/static/js/app/viewmodels/printerstate.js:269
msgid "This will restart the print job from the beginning."
msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen."
#: src/octoprint/static/js/app/viewmodels/printerstate.js:292
#: src/octoprint/static/js/app/viewmodels/printerstate.js:296
msgid "This will cancel your print."
msgstr "Das wird deinen Druck abbrechen."
#: src/octoprint/static/js/app/viewmodels/printerstate.js:297
msgid "No"
msgstr "Nein"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:298
msgid "Yes"
msgstr "Ja"
#: src/octoprint/static/js/app/viewmodels/settings.js:64
#: src/octoprint/static/js/app/viewmodels/settings.js:82
msgid "violet"
@@ -1958,27 +1966,27 @@ msgstr "weiß"
msgid "Autodetect from browser"
msgstr "Automatisch vom Browser erkennen"
#: src/octoprint/static/js/app/viewmodels/settings.js:230
#: src/octoprint/static/js/app/viewmodels/settings.js:231
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:236
#: src/octoprint/static/js/app/viewmodels/settings.js:237
msgid "Stream test"
msgstr "Stream Test"
#: src/octoprint/static/js/app/viewmodels/settings.js:249
#: src/octoprint/static/js/app/viewmodels/settings.js:250
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen"
#: src/octoprint/static/js/app/viewmodels/settings.js:250
#: src/octoprint/static/js/app/viewmodels/settings.js:251
msgid "Snapshot test failed"
msgstr "Snapshot Test fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/settings.js:272
#: src/octoprint/static/js/app/viewmodels/settings.js:273
msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok."
msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:274
#: src/octoprint/static/js/app/viewmodels/settings.js:275
msgid "Snapshot test"
msgstr "Snapshot Test"
@@ -2421,22 +2429,26 @@ msgid "Beta"
msgstr "Beta"
#: src/octoprint/templates/dialogs/settings/features.jinja2:19
msgid "Confirm before cancelling a print"
msgstr "Vor Abbruch eines Druckjobs bestätigen"
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
msgid "Enable SD support"
msgstr "SD-Unterstützung aktivieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
msgid "Enable Keyboard Control"
msgstr "Tastatursteuerung aktivieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
#: src/octoprint/templates/dialogs/settings/features.jinja2:40
msgid "Wait for <code>start</code> on connect"
msgstr "Bei der Verbindung auf <code>start</code> warten"
#: src/octoprint/templates/dialogs/settings/features.jinja2:41
#: src/octoprint/templates/dialogs/settings/features.jinja2:47
msgid "Enable automatic firmware detection"
msgstr "Automatische Firmwareerkennung einschalten"
#: src/octoprint/templates/dialogs/settings/features.jinja2:42
#: src/octoprint/templates/dialogs/settings/features.jinja2:48
msgid ""
"\n"
" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust a couple of communication parameters based on that.\n"
@@ -2444,52 +2456,52 @@ msgid ""
" "
msgstr "Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des Druckers automatisch zu erkennen und darauf basierend diverse Kommunikationsparameter zu konfigurieren.Falls das für dich nicht korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option aus und die entsprechenden Parameter werden zur manuellen Konfigurationeingeblendet."
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
msgid "Select SD files by relative path"
msgstr "SD Dateien per relativem Pfad addressieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
msgid "RepRap Firmware"
msgstr "RepRap Firmware"
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
msgid "Always assume SD card is present"
msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist"
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
msgid "Repetier"
msgstr "Repetier"
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
msgid "Ignore consecutive resend requests for the same line"
msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
#, python-format
msgid "Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target temperature format"
msgstr "<code>TargetExtr%%n</code>/<code>TargetBed</code> Zieltemperaturformat unterstützen"
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
msgid "Disable detection of external heatups"
msgstr "Detektierung externer Aufheizvorgänge deaktivieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:86
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
msgid "Send a checksum with the command"
msgstr "Eine Prüfsumme mit dem Befehl senden"
#: src/octoprint/templates/dialogs/settings/features.jinja2:89
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
msgid "When printing"
msgstr "Beim Drucken"
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
msgid "Always"
msgstr "Immer"
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
#: src/octoprint/templates/dialogs/settings/features.jinja2:101
msgid "Never"
msgstr "Nie"
@@ -2714,11 +2726,11 @@ msgstr "Nutze diese Einstellung um zusätzliche Baudraten zur Verbindung zu konf
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:98
msgid "Not only cancel ongoing prints but also disconnect on unhandled errors from the firmware."
msgstr "Bei unbehalten Firmwarefehlern nicht nur den Druckauftrag abbrechen, sondern auch die Verbindung zum Drucker trennen."
msgstr "Bei unbehandelten Firmwarefehlern nicht nur den Druckauftrag abbrechen, sondern auch die Verbindung zum Drucker trennen."
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:105
msgid "Ignore any unhandled errors from the firmware. Only use this if your firmware sends stuff prefixed with \"Error\" that is not an actual error. Might mask printer issues, be careful!"
msgstr "Alle unbehalten Firmwarefehler ignorieren. Nur nutzen wenn Deine Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. Könnte Druckerprobleme maskieren, vorsicht!"
msgstr "Alle unbehandelten Firmwarefehler ignorieren. Nur nutzen wenn Deine Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. Könnte Druckerprobleme maskieren, vorsicht!"
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113
msgid "Command to send to the firmware on first handshake attempt."
@@ -2863,15 +2875,15 @@ msgid ""
" get you printing in no time!\n"
msgstr "Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten."
#: src/octoprint/templates/navbar/login.jinja2:11
#: src/octoprint/templates/navbar/login.jinja2:12
msgid "Remember me"
msgstr "Login merken"
#: src/octoprint/templates/navbar/login.jinja2:16
#: src/octoprint/templates/navbar/login.jinja2:18
msgid "User Settings"
msgstr "Nutzereinstellungen"
#: src/octoprint/templates/navbar/login.jinja2:17
#: src/octoprint/templates/navbar/login.jinja2:19
msgid "Logout"
msgstr "Logout"
@@ -3479,7 +3491,7 @@ msgstr ""
"<p>\n"
" Du hast <strong data-bind=\"text: selectedFile.name\"></strong> zum Drucken ausgewählt das\n"
" <strong data-bind=\"text: formatSize(selectedFile.size())\"></strong> groß ist. Abhängig von Deinem\n"
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen. might be too large for rendering and cause your browser to become unresponsive or crash.\n"
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen.\n"
" </p>\n"
"\n"
" <p>\n"
@@ -3655,7 +3667,7 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgstr "Vorhandene Datei überschreiben"
#~ msgid ""
#~ msgstr ""
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
#~ msgid "Bundled"
#~ msgstr "Gebundled"
@@ -3695,9 +3707,3 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgid "Reboot"
#~ msgstr "Neustart"
#~ msgid ""
#~ "\n"
#~ " If you enjoy OctoPrint, please consider <a href=\"%(url)s\" target=\"_blank\">supporting its ongoing\n"
#~ " development</a>. It's fully funded by users like you! You can also find this link in the \"About\" dialog. <strong>Thank you!</strong>\n"
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
+37 -10
View File
@@ -172,7 +172,9 @@ class MinMax3D(object):
class AnalysisAborted(Exception):
pass
def __init__(self, reenqueue=True, *args, **kwargs):
self.reenqueue = reenqueue
Exception.__init__(self, *args, **kwargs)
class gcode(object):
@@ -185,6 +187,7 @@ class gcode(object):
self.filename = None
self.progressCallback = None
self._abort = False
self._reenqueue = True
self._filamentDiameter = 0
self._minMax = MinMax3D()
@@ -213,8 +216,9 @@ class gcode(object):
with codecs.open(filename, encoding="utf-8", errors="replace") as f:
self._load(f, printer_profile, throttle=throttle)
def abort(self):
def abort(self, reenqueue=True):
self._abort = True
self._reenqueue = reenqueue
def _load(self, gcodeFile, printer_profile, throttle=None):
filePos = 0
@@ -240,7 +244,7 @@ class gcode(object):
for line in gcodeFile:
if self._abort:
raise AnalysisAborted()
raise AnalysisAborted(reenqueue=self._reenqueue)
filePos += 1
readBytes += len(line)
@@ -260,6 +264,7 @@ class gcode(object):
if ';' in line:
comment = line[line.find(';')+1:].strip()
if comment.startswith("filament_diameter"):
# Slic3r
filamentValue = comment.split("=", 1)[1].strip()
try:
self._filamentDiameter = float(filamentValue)
@@ -269,6 +274,7 @@ class gcode(object):
except ValueError:
self._filamentDiameter = 0.0
elif comment.startswith("CURA_PROFILE_STRING") or comment.startswith("CURA_OCTO_PROFILE_STRING"):
# Cura 15.04.* & OctoPrint Cura plugin
if comment.startswith("CURA_PROFILE_STRING"):
prefix = "CURA_PROFILE_STRING:"
else:
@@ -280,6 +286,13 @@ class gcode(object):
self._filamentDiameter = float(curaOptions["filament_diameter"])
except:
self._filamentDiameter = 0.0
elif comment.startswith("filamentDiameter,"):
# Simplify3D
filamentValue = comment.split(",", 1)[1].strip()
try:
self._filamentDiameter = float(filamentValue)
except ValueError:
self._filamentDiameter = 0.0
line = line[0:line.find(';')]
G = getCodeInt(line, 'G')
@@ -294,15 +307,28 @@ class gcode(object):
e = getCodeFloat(line, 'E')
f = getCodeFloat(line, 'F')
if x is not None or y is not None or z is not None:
# this is a move
move = True
else:
# print head stays on position
move = False
oldPos = pos
newPos = Vector3D(x if x is not None else pos.x,
y if y is not None else pos.y,
z if z is not None else pos.z)
# Use new coordinates if provided. If not provided, use prior coordinates in absolute
# and 0.0 in relative mode.
newPos = Vector3D(x if x is not None else (pos.x if posAbs else 0.0),
y if y is not None else (pos.y if posAbs else 0.0),
z if z is not None else (pos.z if posAbs else 0.0))
if posAbs:
# Absolute mode: scale coordinates and apply offsets
pos = newPos * scale + posOffset
else:
# Relative mode: scale and add to current position
pos += newPos * scale
if f is not None and f != 0:
feedrate = f
@@ -310,10 +336,12 @@ class gcode(object):
if absoluteE:
# make sure e is relative
e -= currentE[currentExtruder]
# If move includes extrusion, calculate new min/max coordinates of model
if e > 0.0:
# extrusion -> relevant for print area & dimensions
# If move with extrusion, calculate new min/max coordinates of model
if e > 0.0 and move:
# extrusion and move -> relevant for print area & dimensions
self._minMax.record(pos)
totalExtrusion[currentExtruder] += e
currentE[currentExtruder] += e
maxExtrusion[currentExtruder] = max(maxExtrusion[currentExtruder],
@@ -417,7 +445,6 @@ class gcode(object):
if throttle is not None:
throttle()
if self.progressCallback is not None:
self.progressCallback(100.0)
+6
View File
@@ -171,9 +171,13 @@ class FileManagerTest(unittest.TestCase):
self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))
def test_remove_file(self):
self.local_storage.path_on_disk.return_value = "prefix/test.file"
self.local_storage.split_path.return_value = ("", "test.file")
self.file_manager.remove_file(octoprint.filemanager.FileDestinations.LOCAL, "test.file")
self.local_storage.remove_file.assert_called_once_with("test.file")
self.analysis_queue.dequeue.assert_called_once()
self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))
def test_add_folder(self):
@@ -199,11 +203,13 @@ class FileManagerTest(unittest.TestCase):
self.file_manager.remove_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder")
self.local_storage.remove_folder.assert_called_once_with("test_folder", recursive=True)
self.analysis_queue.dequeue_folder.assert_called_once_with(octoprint.filemanager.FileDestinations.LOCAL, "test_folder")
self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))
def test_remove_folder_nonrecursive(self):
self.file_manager.remove_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder", recursive=False)
self.local_storage.remove_folder.assert_called_once_with("test_folder", recursive=False)
self.analysis_queue.dequeue_folder.assert_called_once_with(octoprint.filemanager.FileDestinations.LOCAL, "test_folder")
@mock.patch("octoprint.util.atomic_write", create=True)
@mock.patch("yaml.safe_dump", create=True)
Binary file not shown.
+91 -85
View File
@@ -1,14 +1,14 @@
# German translations for OctoPrint.
# Copyright (C) 2016 The OctoPrint Project
# Copyright (C) 2017 The OctoPrint Project
# This file is distributed under the same license as the OctoPrint project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2016-12-02 12:37+0100\n"
"PO-Revision-Date: 2016-12-02 12:38+0100\n"
"POT-Creation-Date: 2017-01-12 14:29+0100\n"
"PO-Revision-Date: 2017-01-12 14:30+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
@@ -159,16 +159,16 @@ msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45
#: src/octoprint/templates/navbar/login.jinja2:6
#: src/octoprint/templates/navbar/login.jinja2:7
#: src/octoprint/templates/navbar/login.jinja2:8
msgid "Username"
msgstr "Username"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
#: src/octoprint/templates/navbar/login.jinja2:8
#: src/octoprint/templates/navbar/login.jinja2:9
#: src/octoprint/templates/navbar/login.jinja2:10
msgid "Password"
msgstr "Passwort"
@@ -326,22 +326,22 @@ msgid ""
msgstr "<p>Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den korrekten <strong>Pfad zu FFMPEG</strong> wissen.</p>"
#: src/octoprint/plugins/cura/static/js/cura.js:176
#: src/octoprint/static/js/app/viewmodels/settings.js:296
#: src/octoprint/static/js/app/viewmodels/settings.js:297
msgid "The path doesn't exist"
msgstr "Der Pfad existiert nicht"
#: src/octoprint/plugins/cura/static/js/cura.js:178
#: src/octoprint/static/js/app/viewmodels/settings.js:298
#: src/octoprint/static/js/app/viewmodels/settings.js:299
msgid "The path is not a file"
msgstr "Der Pfad ist keine Datei"
#: src/octoprint/plugins/cura/static/js/cura.js:180
#: src/octoprint/static/js/app/viewmodels/settings.js:300
#: src/octoprint/static/js/app/viewmodels/settings.js:301
msgid "The path is not an executable"
msgstr "Der Pfad ist nicht ausführbar"
#: src/octoprint/plugins/cura/static/js/cura.js:183
#: src/octoprint/static/js/app/viewmodels/settings.js:303
#: src/octoprint/static/js/app/viewmodels/settings.js:304
msgid "The path is valid"
msgstr "Der Pfad ist valide"
@@ -1400,8 +1400,8 @@ msgid "The server is currently running in safe mode. Third party plugins are dis
msgstr "Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden."
#: src/octoprint/static/js/app/dataupdater.js:170
#: src/octoprint/static/js/app/viewmodels/files.js:848
#: src/octoprint/static/js/app/viewmodels/files.js:855
#: src/octoprint/static/js/app/viewmodels/files.js:849
#: src/octoprint/static/js/app/viewmodels/files.js:856
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)"
@@ -1569,7 +1569,7 @@ msgstr "Trennen"
#: src/octoprint/static/js/app/viewmodels/control.js:62
#: src/octoprint/static/js/app/viewmodels/files.js:589
#: src/octoprint/static/js/app/viewmodels/gcode.js:482
#: src/octoprint/static/js/app/viewmodels/printerstate.js:231
#: src/octoprint/static/js/app/viewmodels/printerstate.js:232
#: src/octoprint/static/js/app/viewmodels/temperature.js:62
msgid "Tool"
msgstr "Werkzeug"
@@ -1650,51 +1650,51 @@ msgstr "Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2
msgid "Object doesn't fit print volume"
msgstr "Objekt passt nicht in Druckvolumen"
#: src/octoprint/static/js/app/viewmodels/files.js:850
#: src/octoprint/static/js/app/viewmodels/files.js:851
msgid "Slicing ..."
msgstr "Slice ..."
#: src/octoprint/static/js/app/viewmodels/files.js:876
#: src/octoprint/static/js/app/viewmodels/files.js:877
msgid "Slicing done"
msgstr "Slicing abgeschlossen"
#: src/octoprint/static/js/app/viewmodels/files.js:877
#: src/octoprint/static/js/app/viewmodels/files.js:878
#, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/viewmodels/files.js:892
#: src/octoprint/static/js/app/viewmodels/files.js:893
#, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
#: src/octoprint/static/js/app/viewmodels/files.js:893
#: src/octoprint/static/js/app/viewmodels/files.js:894
msgid "Slicing failed"
msgstr "Slicing fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/files.js:910
#: src/octoprint/static/js/app/viewmodels/files.js:911
msgid "Streaming ..."
msgstr "Streaming ..."
#: src/octoprint/static/js/app/viewmodels/files.js:922
#: src/octoprint/static/js/app/viewmodels/files.js:923
msgid "Streaming done"
msgstr "Streaming abgeschlossen"
#: src/octoprint/static/js/app/viewmodels/files.js:923
#: src/octoprint/static/js/app/viewmodels/files.js:924
#, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/viewmodels/files.js:1019
#: src/octoprint/static/js/app/viewmodels/files.js:1020
#, python-format
msgid "Could not upload the file. Make sure that it is a valid file with one of these extensions: %(extensions)s"
msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s"
#: src/octoprint/static/js/app/viewmodels/files.js:1040
#: src/octoprint/static/js/app/viewmodels/files.js:1041
msgid "Saving ..."
msgstr "Speichere ..."
#: src/octoprint/static/js/app/viewmodels/files.js:1040
#: src/octoprint/static/js/app/viewmodels/files.js:1041
msgid "Uploading ..."
msgstr "Uploade ..."
@@ -1749,7 +1749,7 @@ msgstr "GCODE Befehle"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:26
#: src/octoprint/templates/navbar/login.jinja2:2
#: src/octoprint/templates/navbar/login.jinja2:13
#: src/octoprint/templates/navbar/login.jinja2:14
msgid "Login"
msgstr "Login"
@@ -1762,19 +1762,19 @@ msgstr "Login erfolgreich"
msgid "You are now logged in as \"%(username)s\""
msgstr "Du bist jetzt eingeloggt als \"%(username)s\""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
msgid "Login failed"
msgstr "Login fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
msgid "User unknown or wrong password"
msgstr "Nutzer unbekannt oder falsches Passwort"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
msgid "Logout successful"
msgstr "Logout erfolgreich"
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
msgid "You are now logged out"
msgstr "Du bist jetzt ausgeloggt"
@@ -1867,83 +1867,91 @@ msgstr "Druckerprofil hinzufügen"
msgid "Edit Printer Profile \"%(name)s\""
msgstr "Druckerprofile \"%(name)s\" bearbeiten"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:46
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
msgid "Restarts the print job from the beginning"
msgstr "Started den Druckjob von vorne"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
msgid "Starts the print job"
msgstr "Startet den Druckjob"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
msgid "Resumes the print job"
msgstr "Setzt den Druckjob fort"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
#: src/octoprint/static/js/app/viewmodels/printerstate.js:50
msgid "Pauses the print job"
msgstr "Pausiert den Druckjob"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:82
#: src/octoprint/static/js/app/viewmodels/printerstate.js:83
msgid "Still stabilizing..."
msgstr "Noch zu ungenau..."
#: src/octoprint/static/js/app/viewmodels/printerstate.js:92
#: src/octoprint/static/js/app/viewmodels/printerstate.js:93
msgid "Based on a linear approximation (very low accuracy, especially at the beginning of the print)"
msgstr "Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, insbesondere zu Beginn eines Drucks)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:95
#: src/octoprint/static/js/app/viewmodels/printerstate.js:96
msgid "Based on the estimate from analysis of file (medium accuracy)"
msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:98
#: src/octoprint/static/js/app/viewmodels/printerstate.js:99
msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)"
msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:101
#: src/octoprint/static/js/app/viewmodels/printerstate.js:102
msgid "Based on the average total of past prints of this model with the same printer profile (usually good accuracy)"
msgstr "Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:104
#: src/octoprint/static/js/app/viewmodels/printerstate.js:105
msgid "Based on a mix of average total from past prints and calculation (usually good accuracy)"
msgstr "Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs und der Berechnung (normalerweise gute Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:107
#: src/octoprint/static/js/app/viewmodels/printerstate.js:108
msgid "Based on the calculated estimate (best accuracy)"
msgstr "Basiert auf der berechneten Schätzung (beste Genauigkeit)"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:145
#: src/octoprint/static/js/app/viewmodels/printerstate.js:146
msgid "Continue"
msgstr "Fortsetzen"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:147
#: src/octoprint/static/js/app/viewmodels/printerstate.js:148
#: src/octoprint/templates/sidebar/state.jinja2:24
msgid "Pause"
msgstr "Pause"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:158
#: src/octoprint/static/js/app/viewmodels/printerstate.js:159
#: src/octoprint/templates/tabs/timelapse.jinja2:11
msgid "On Z Change"
msgstr "Bei Ebenenwechsel"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
#: src/octoprint/templates/tabs/timelapse.jinja2:10
msgid "Timed"
msgstr "Nach Zeit"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
#: src/octoprint/templates/tabs/timelapse.jinja2:25
#: src/octoprint/templates/tabs/timelapse.jinja2:39
msgid "sec"
msgstr "Sek"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:268
#: src/octoprint/static/js/app/viewmodels/printerstate.js:269
msgid "This will restart the print job from the beginning."
msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen."
#: src/octoprint/static/js/app/viewmodels/printerstate.js:292
#: src/octoprint/static/js/app/viewmodels/printerstate.js:296
msgid "This will cancel your print."
msgstr "Das wird deinen Druck abbrechen."
#: src/octoprint/static/js/app/viewmodels/printerstate.js:297
msgid "No"
msgstr "Nein"
#: src/octoprint/static/js/app/viewmodels/printerstate.js:298
msgid "Yes"
msgstr "Ja"
#: src/octoprint/static/js/app/viewmodels/settings.js:64
#: src/octoprint/static/js/app/viewmodels/settings.js:82
msgid "violet"
@@ -1958,27 +1966,27 @@ msgstr "weiß"
msgid "Autodetect from browser"
msgstr "Automatisch vom Browser erkennen"
#: src/octoprint/static/js/app/viewmodels/settings.js:230
#: src/octoprint/static/js/app/viewmodels/settings.js:231
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:236
#: src/octoprint/static/js/app/viewmodels/settings.js:237
msgid "Stream test"
msgstr "Stream Test"
#: src/octoprint/static/js/app/viewmodels/settings.js:249
#: src/octoprint/static/js/app/viewmodels/settings.js:250
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen"
#: src/octoprint/static/js/app/viewmodels/settings.js:250
#: src/octoprint/static/js/app/viewmodels/settings.js:251
msgid "Snapshot test failed"
msgstr "Snapshot Test fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/settings.js:272
#: src/octoprint/static/js/app/viewmodels/settings.js:273
msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok."
msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:274
#: src/octoprint/static/js/app/viewmodels/settings.js:275
msgid "Snapshot test"
msgstr "Snapshot Test"
@@ -2421,22 +2429,26 @@ msgid "Beta"
msgstr "Beta"
#: src/octoprint/templates/dialogs/settings/features.jinja2:19
msgid "Confirm before cancelling a print"
msgstr "Vor Abbruch eines Druckjobs bestätigen"
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
msgid "Enable SD support"
msgstr "SD-Unterstützung aktivieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
msgid "Enable Keyboard Control"
msgstr "Tastatursteuerung aktivieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
#: src/octoprint/templates/dialogs/settings/features.jinja2:40
msgid "Wait for <code>start</code> on connect"
msgstr "Bei der Verbindung auf <code>start</code> warten"
#: src/octoprint/templates/dialogs/settings/features.jinja2:41
#: src/octoprint/templates/dialogs/settings/features.jinja2:47
msgid "Enable automatic firmware detection"
msgstr "Automatische Firmwareerkennung einschalten"
#: src/octoprint/templates/dialogs/settings/features.jinja2:42
#: src/octoprint/templates/dialogs/settings/features.jinja2:48
msgid ""
"\n"
" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust a couple of communication parameters based on that.\n"
@@ -2444,52 +2456,52 @@ msgid ""
" "
msgstr "Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des Druckers automatisch zu erkennen und darauf basierend diverse Kommunikationsparameter zu konfigurieren.Falls das für dich nicht korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option aus und die entsprechenden Parameter werden zur manuellen Konfigurationeingeblendet."
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
msgid "Select SD files by relative path"
msgstr "SD Dateien per relativem Pfad addressieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
msgid "RepRap Firmware"
msgstr "RepRap Firmware"
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
msgid "Always assume SD card is present"
msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist"
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
msgid "Repetier"
msgstr "Repetier"
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
msgid "Ignore consecutive resend requests for the same line"
msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
#, python-format
msgid "Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target temperature format"
msgstr "<code>TargetExtr%%n</code>/<code>TargetBed</code> Zieltemperaturformat unterstützen"
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
msgid "Disable detection of external heatups"
msgstr "Detektierung externer Aufheizvorgänge deaktivieren"
#: src/octoprint/templates/dialogs/settings/features.jinja2:86
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
msgid "Send a checksum with the command"
msgstr "Eine Prüfsumme mit dem Befehl senden"
#: src/octoprint/templates/dialogs/settings/features.jinja2:89
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
msgid "When printing"
msgstr "Beim Drucken"
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
msgid "Always"
msgstr "Immer"
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
#: src/octoprint/templates/dialogs/settings/features.jinja2:101
msgid "Never"
msgstr "Nie"
@@ -2714,11 +2726,11 @@ msgstr "Nutze diese Einstellung um zusätzliche Baudraten zur Verbindung zu konf
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:98
msgid "Not only cancel ongoing prints but also disconnect on unhandled errors from the firmware."
msgstr "Bei unbehalten Firmwarefehlern nicht nur den Druckauftrag abbrechen, sondern auch die Verbindung zum Drucker trennen."
msgstr "Bei unbehandelten Firmwarefehlern nicht nur den Druckauftrag abbrechen, sondern auch die Verbindung zum Drucker trennen."
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:105
msgid "Ignore any unhandled errors from the firmware. Only use this if your firmware sends stuff prefixed with \"Error\" that is not an actual error. Might mask printer issues, be careful!"
msgstr "Alle unbehalten Firmwarefehler ignorieren. Nur nutzen wenn Deine Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. Könnte Druckerprobleme maskieren, vorsicht!"
msgstr "Alle unbehandelten Firmwarefehler ignorieren. Nur nutzen wenn Deine Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. Könnte Druckerprobleme maskieren, vorsicht!"
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113
msgid "Command to send to the firmware on first handshake attempt."
@@ -2863,15 +2875,15 @@ msgid ""
" get you printing in no time!\n"
msgstr "Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten."
#: src/octoprint/templates/navbar/login.jinja2:11
#: src/octoprint/templates/navbar/login.jinja2:12
msgid "Remember me"
msgstr "Login merken"
#: src/octoprint/templates/navbar/login.jinja2:16
#: src/octoprint/templates/navbar/login.jinja2:18
msgid "User Settings"
msgstr "Nutzereinstellungen"
#: src/octoprint/templates/navbar/login.jinja2:17
#: src/octoprint/templates/navbar/login.jinja2:19
msgid "Logout"
msgstr "Logout"
@@ -3479,7 +3491,7 @@ msgstr ""
"<p>\n"
" Du hast <strong data-bind=\"text: selectedFile.name\"></strong> zum Drucken ausgewählt das\n"
" <strong data-bind=\"text: formatSize(selectedFile.size())\"></strong> groß ist. Abhängig von Deinem\n"
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen. might be too large for rendering and cause your browser to become unresponsive or crash.\n"
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen.\n"
" </p>\n"
"\n"
" <p>\n"
@@ -3655,7 +3667,7 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgstr "Vorhandene Datei überschreiben"
#~ msgid ""
#~ msgstr ""
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
#~ msgid "Bundled"
#~ msgstr "Gebundled"
@@ -3695,9 +3707,3 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgid "Reboot"
#~ msgstr "Neustart"
#~ msgid ""
#~ "\n"
#~ " If you enjoy OctoPrint, please consider <a href=\"%(url)s\" target=\"_blank\">supporting its ongoing\n"
#~ " development</a>. It's fully funded by users like you! You can also find this link in the \"About\" dialog. <strong>Thank you!</strong>\n"
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
+87 -75
View File
@@ -1,14 +1,14 @@
# Translations template for OctoPrint.
# Copyright (C) 2016 The OctoPrint Project
# Copyright (C) 2017 The OctoPrint Project
# This file is distributed under the same license as the OctoPrint project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.3.0.dev1608+gefb2f99.dirty\n"
"Project-Id-Version: OctoPrint 1.3.1.dev40+gfb5d568\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2016-12-02 12:37+0100\n"
"POT-Creation-Date: 2017-01-12 14:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -156,16 +156,16 @@ msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45
#: src/octoprint/templates/navbar/login.jinja2:6
#: src/octoprint/templates/navbar/login.jinja2:7
#: src/octoprint/templates/navbar/login.jinja2:8
msgid "Username"
msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
#: src/octoprint/templates/navbar/login.jinja2:8
#: src/octoprint/templates/navbar/login.jinja2:9
#: src/octoprint/templates/navbar/login.jinja2:10
msgid "Password"
msgstr ""
@@ -332,22 +332,22 @@ msgid ""
msgstr ""
#: src/octoprint/plugins/cura/static/js/cura.js:176
#: src/octoprint/static/js/app/viewmodels/settings.js:296
#: src/octoprint/static/js/app/viewmodels/settings.js:297
msgid "The path doesn't exist"
msgstr ""
#: src/octoprint/plugins/cura/static/js/cura.js:178
#: src/octoprint/static/js/app/viewmodels/settings.js:298
#: src/octoprint/static/js/app/viewmodels/settings.js:299
msgid "The path is not a file"
msgstr ""
#: src/octoprint/plugins/cura/static/js/cura.js:180
#: src/octoprint/static/js/app/viewmodels/settings.js:300
#: src/octoprint/static/js/app/viewmodels/settings.js:301
msgid "The path is not an executable"
msgstr ""
#: src/octoprint/plugins/cura/static/js/cura.js:183
#: src/octoprint/static/js/app/viewmodels/settings.js:303
#: src/octoprint/static/js/app/viewmodels/settings.js:304
msgid "The path is valid"
msgstr ""
@@ -1501,8 +1501,8 @@ msgid ""
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:170
#: src/octoprint/static/js/app/viewmodels/files.js:848
#: src/octoprint/static/js/app/viewmodels/files.js:855
#: src/octoprint/static/js/app/viewmodels/files.js:849
#: src/octoprint/static/js/app/viewmodels/files.js:856
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr ""
@@ -1674,7 +1674,7 @@ msgstr ""
#: src/octoprint/static/js/app/viewmodels/control.js:62
#: src/octoprint/static/js/app/viewmodels/files.js:589
#: src/octoprint/static/js/app/viewmodels/gcode.js:482
#: src/octoprint/static/js/app/viewmodels/printerstate.js:231
#: src/octoprint/static/js/app/viewmodels/printerstate.js:232
#: src/octoprint/static/js/app/viewmodels/temperature.js:62
msgid "Tool"
msgstr ""
@@ -1765,53 +1765,53 @@ msgstr ""
msgid "Object doesn't fit print volume"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:850
#: src/octoprint/static/js/app/viewmodels/files.js:851
msgid "Slicing ..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:876
#: src/octoprint/static/js/app/viewmodels/files.js:877
msgid "Slicing done"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:877
#: src/octoprint/static/js/app/viewmodels/files.js:878
#, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:892
#: src/octoprint/static/js/app/viewmodels/files.js:893
#, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:893
#: src/octoprint/static/js/app/viewmodels/files.js:894
msgid "Slicing failed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:910
#: src/octoprint/static/js/app/viewmodels/files.js:911
msgid "Streaming ..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:922
#: src/octoprint/static/js/app/viewmodels/files.js:923
msgid "Streaming done"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:923
#: src/octoprint/static/js/app/viewmodels/files.js:924
#, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1019
#: src/octoprint/static/js/app/viewmodels/files.js:1020
#, python-format
msgid ""
"Could not upload the file. Make sure that it is a valid file with one of "
"these extensions: %(extensions)s"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1040
#: src/octoprint/static/js/app/viewmodels/files.js:1041
msgid "Saving ..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1040
#: src/octoprint/static/js/app/viewmodels/files.js:1041
msgid "Uploading ..."
msgstr ""
@@ -1866,7 +1866,7 @@ msgstr ""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:26
#: src/octoprint/templates/navbar/login.jinja2:2
#: src/octoprint/templates/navbar/login.jinja2:13
#: src/octoprint/templates/navbar/login.jinja2:14
msgid "Login"
msgstr ""
@@ -1879,19 +1879,19 @@ msgstr ""
msgid "You are now logged in as \"%(username)s\""
msgstr ""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
msgid "Login failed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
msgid "User unknown or wrong password"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
msgid "Logout successful"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
msgid "You are now logged out"
msgstr ""
@@ -1990,89 +1990,97 @@ msgstr ""
msgid "Edit Printer Profile \"%(name)s\""
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:46
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
msgid "Restarts the print job from the beginning"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
msgid "Starts the print job"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
msgid "Resumes the print job"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
#: src/octoprint/static/js/app/viewmodels/printerstate.js:50
msgid "Pauses the print job"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:82
#: src/octoprint/static/js/app/viewmodels/printerstate.js:83
msgid "Still stabilizing..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:92
#: src/octoprint/static/js/app/viewmodels/printerstate.js:93
msgid ""
"Based on a linear approximation (very low accuracy, especially at the "
"beginning of the print)"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:95
#: src/octoprint/static/js/app/viewmodels/printerstate.js:96
msgid "Based on the estimate from analysis of file (medium accuracy)"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:98
#: src/octoprint/static/js/app/viewmodels/printerstate.js:99
msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:101
#: src/octoprint/static/js/app/viewmodels/printerstate.js:102
msgid ""
"Based on the average total of past prints of this model with the same "
"printer profile (usually good accuracy)"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:104
#: src/octoprint/static/js/app/viewmodels/printerstate.js:105
msgid ""
"Based on a mix of average total from past prints and calculation (usually"
" good accuracy)"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:107
#: src/octoprint/static/js/app/viewmodels/printerstate.js:108
msgid "Based on the calculated estimate (best accuracy)"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:145
#: src/octoprint/static/js/app/viewmodels/printerstate.js:146
msgid "Continue"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:147
#: src/octoprint/static/js/app/viewmodels/printerstate.js:148
#: src/octoprint/templates/sidebar/state.jinja2:24
msgid "Pause"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:158
#: src/octoprint/static/js/app/viewmodels/printerstate.js:159
#: src/octoprint/templates/tabs/timelapse.jinja2:11
msgid "On Z Change"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
#: src/octoprint/templates/tabs/timelapse.jinja2:10
msgid "Timed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
#: src/octoprint/templates/tabs/timelapse.jinja2:25
#: src/octoprint/templates/tabs/timelapse.jinja2:39
msgid "sec"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:268
#: src/octoprint/static/js/app/viewmodels/printerstate.js:269
msgid "This will restart the print job from the beginning."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:292
#: src/octoprint/static/js/app/viewmodels/printerstate.js:296
msgid "This will cancel your print."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:297
msgid "No"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerstate.js:298
msgid "Yes"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:64
#: src/octoprint/static/js/app/viewmodels/settings.js:82
msgid "violet"
@@ -2087,29 +2095,29 @@ msgstr ""
msgid "Autodetect from browser"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:230
#: src/octoprint/static/js/app/viewmodels/settings.js:231
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:236
#: src/octoprint/static/js/app/viewmodels/settings.js:237
msgid "Stream test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:249
#: src/octoprint/static/js/app/viewmodels/settings.js:250
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:250
#: src/octoprint/static/js/app/viewmodels/settings.js:251
msgid "Snapshot test failed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:272
#: src/octoprint/static/js/app/viewmodels/settings.js:273
msgid ""
"If you see your webcam snapshot picture below, the entered snapshot URL "
"is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:274
#: src/octoprint/static/js/app/viewmodels/settings.js:275
msgid "Snapshot test"
msgstr ""
@@ -2588,22 +2596,26 @@ msgid "Beta"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:19
msgid "Enable SD support"
msgid "Confirm before cancelling a print"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
msgid "Enable Keyboard Control"
msgid "Enable SD support"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
msgid "Enable Keyboard Control"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:40
msgid "Wait for <code>start</code> on connect"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:41
#: src/octoprint/templates/dialogs/settings/features.jinja2:47
msgid "Enable automatic firmware detection"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:42
#: src/octoprint/templates/dialogs/settings/features.jinja2:48
msgid ""
"\n"
" If enabled, OctoPrint will try to figure out your "
@@ -2615,54 +2627,54 @@ msgid ""
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
msgid "Select SD files by relative path"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
msgid "RepRap Firmware"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
msgid "Always assume SD card is present"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
msgid "Repetier"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
msgid "Ignore consecutive resend requests for the same line"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
#, python-format
msgid ""
"Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target "
"temperature format"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
msgid "Disable detection of external heatups"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:86
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
msgid "Send a checksum with the command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:89
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
msgid "When printing"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
msgid "Always"
msgstr ""
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
#: src/octoprint/templates/dialogs/settings/features.jinja2:101
msgid "Never"
msgstr ""
@@ -3100,15 +3112,15 @@ msgid ""
" get you printing in no time!\n"
msgstr ""
#: src/octoprint/templates/navbar/login.jinja2:11
#: src/octoprint/templates/navbar/login.jinja2:12
msgid "Remember me"
msgstr ""
#: src/octoprint/templates/navbar/login.jinja2:16
#: src/octoprint/templates/navbar/login.jinja2:18
msgid "User Settings"
msgstr ""
#: src/octoprint/templates/navbar/login.jinja2:17
#: src/octoprint/templates/navbar/login.jinja2:19
msgid "Logout"
msgstr ""