Compare commits

...
133 Commits
Author SHA1 Message Date
alfrix f6e4e231b1 translation: update all translations 2022-10-27 23:42:23 -03:00
alfrix d536b054b8 translation: update hebrew (Tal Rahav) close #766 2022-10-27 23:40:59 -03:00
alfrix 5d539d0059 translation: update spanish 2022-10-27 23:36:30 -03:00
AntoszHUN 8a82590829 Update Hungarian Language (#762) 2022-10-27 23:19:21 -03:00
alfrix f588571bdd fix PEP E303 2022-10-27 23:18:21 -03:00
northcoastam d27227aede Update fine_tune.py (#765)
Fix for custom z_babystep_values from KlipperScreen.conf not respected
2022-10-27 23:15:45 -03:00
alfrix 7666a91872 splash_screen and job_status title translation 2022-10-27 22:47:01 -03:00
alfrix 51ddee28c3 printer_select: hide action_bar on startup and translate name 2022-10-27 21:24:23 -03:00
alfrix 0620d660f5 Change how the printer state is handled 2022-10-27 20:54:13 -03:00
alfrix b988c3c8c9 limits: fix sliders rescaling and not restoring values when set lower than the max configured value 2022-10-27 12:15:18 -03:00
alfrix d3d7104ec4 languages: refactor
- No full restart requirement just reload
- Fix some systems not loading the language
- Fix RTL not applied if the lang was not set by the system
2022-10-26 22:36:52 -03:00
alfrix 93457b2961 temperature: select all extruders while not printing and the active extruder if printing 2022-10-26 22:36:52 -03:00
alfrix b36e75ec1a temperature: fix #763 2022-10-26 22:36:52 -03:00
alfrix d6e4ad0a35 base_panel: fix macro shorcut not hiding at startup if configured to off 2022-10-26 22:36:52 -03:00
alfrix 0de49ee0cd base_panel: calculate the amount of titlebar items to be shown 2022-10-26 22:36:52 -03:00
alfrix 8cc86dfd7c config: add width and height for development purposes
Do not use this when KS is meant to be fullscreen, this should be used for window size on a desktop
2022-10-26 22:36:52 -03:00
alfrix da9051a9b2 base_panel: create get_icon for show_heaters 2022-10-26 22:36:52 -03:00
alfrix 32fab0482f gtk: add .png icons support close #733 2022-10-26 22:36:52 -03:00
alfrix 792e1bf8bf print: improve initialization performance with async. load of images 2022-10-26 22:36:52 -03:00
alfrix b346d765a2 base_panel: clock simplify also increase margin 2022-10-26 22:36:52 -03:00
alfrix c5413e51c9 config: add printer_data to default config search locations
close #759
2022-10-26 22:36:52 -03:00
alfrix 2121d4a6aa system: updater: hide the end button until the update completes
it's already not sensitive but that is not intuitive sometimes
2022-10-26 22:36:52 -03:00
alfrix 17e4bb704e exclude: fix vertical mode, fix last object cancel and make it exit 2022-10-26 22:36:52 -03:00
alfrix d3281379ee gtk: change scaling of images
This reduces the amount of magic numbers used, some images will scale to bigger sizes, most of the icons and images in vertical mode will be bigger, thumbnails should be bigger in both modes.
2022-10-26 22:36:52 -03:00
alfrix 62fd6b96f8 job_status: change filename max characters
now it's more consistent and takes into account font size
2022-10-26 22:36:52 -03:00
alfrix b9effb5447 screensaver: fix dialogs not hiding 2022-10-26 22:36:52 -03:00
alfrix 70b5532695 bed_mesh: fix issues and improve
Fix sometimes not showing the current mesh
Remove calibrate from the list, (use the top bar)
Minimum Zscale is now -1 to 1 mm
Colorscale is now -0.2 to 0.2 mm tends to clip less on the usable range
Code cleanup and de-duplication
2022-10-21 14:58:07 -03:00
alfrix 1332045128 installer: the workaround for pip 22 should not be needed by now 2022-10-15 18:56:05 -03:00
alfrix 1305b40c41 refactors and cleanup 2022-10-14 13:27:01 -03:00
alfrix e208873e46 temperature: merge nested ifs 2022-10-14 10:19:44 -03:00
alfrix 723662074e Change togglebuttons to regular buttons to simplify code 2022-10-14 10:19:44 -03:00
alfrix 4b7fda9ba0 zcalibrate: fix XY offset not applied if one of them is not defined 2022-10-14 10:19:44 -03:00
alfrix 2e026aef56 extrude: make the speed and distance configurable close #673 2022-10-14 10:19:44 -03:00
alfrix 28fe1bf6d8 Update Locales: Thanks Tal Rahav for the Hebrew translation 2022-10-14 10:19:44 -03:00
alfrix 4076e6349a limits and retraction: infinite sliders 2022-10-14 10:19:44 -03:00
alfrix d0d171e676 print: hide files and directories starting with . 2022-10-14 10:19:44 -03:00
alfrix 978bb72e20 Fix: Printer not connecting if [pause_resume] is missing
fix #752
2022-10-14 10:19:44 -03:00
Ben Konsemüller 74dee10d39 Fix: Heaters not showing their respective power percentages (#747) 2022-10-08 09:52:46 -03:00
Alfredo Monclus a83bbed85a exclude: graph (#743)
Also support name wrapping and remove the object from the list if it was excluded (easier to see)
2022-10-04 10:52:44 -03:00
alfrix c2991364ba fine-tune: fix PEP8 E303 2022-10-01 12:35:01 -03:00
alfrix 2224478ea0 fine-tune: change the labels as soon as the button was pressed, this should give better feedback when the change is delayed by klipper 2022-10-01 12:32:28 -03:00
alfrix 089076c72c docs: zcalibrate: explain move
close #738
2022-09-30 16:14:08 -03:00
alfrix 72413544c8 job_status: animated label compute max characters 2022-09-27 16:49:24 -03:00
alfrix 032638e027 docs: move and improve thumbnail information 2022-09-27 16:49:11 -03:00
alfrix 79b3429837 network: fix panel not loading if the wifi module has not ben initialized
close #736
2022-09-27 15:16:04 -03:00
Selim 35571fce8a Turkish language Update (#734) 2022-09-22 09:50:40 -03:00
Nick Doumaandalfrix 1b758b85c6 Add Desktop file to easily start KlipperScreen on a normal Linux desktop (#713)
Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-09-21 20:18:22 -03:00
alfrix 2f427f7b82 lint fixes and minor refactorings 2022-09-21 11:54:49 -03:00
dependabot[bot] c061378e62 build(deps): bump websocket-client from 1.4.0 to 1.4.1 (#721)
Bumps [websocket-client](https://github.com/websocket-client/websocket-client) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/websocket-client/websocket-client/releases)
- [Changelog](https://github.com/websocket-client/websocket-client/blob/master/ChangeLog)
- [Commits](https://github.com/websocket-client/websocket-client/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: websocket-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 11:35:06 -03:00
Andriy 1f3fe23716 Correction of the Ukrainian localization (#730) 2022-09-21 11:34:53 -03:00
alfrix b2d7dda30f system: update services allowed to restart 2022-09-16 09:51:59 -03:00
alfrix 5f9bd9648a power: center the list 2022-09-14 10:22:11 -03:00
alfrix 0e353d333c docs: update screenshots, add console to the panel list, order by name 2022-09-14 10:07:05 -03:00
AntoszHUN ebaecedf0d Update KlipperScreen.po (#728) 2022-09-13 00:01:22 -03:00
alfrix 4656be8c16 graph: limit the graph to 0-999
It's not over 9000.
2022-09-12 23:32:41 -03:00
Laurenzandalfrix 2cce477e5b Add current heater power % to job status (#708)
* Add current heater power % to job status

* Add show_heater_power config option and move update_temp()s to ScreenPanel

* Add the option to the UI config instead of the docs

* Prefer extra items on job_status over the power

There is not a lot of space, it's a trade off, and people will likely prefer extra_items

* Remove the comma, none of the other buttons have it

* job_status: inherit the parent config

* screen: create reload_panels to avoid some service restarts

* extrude: fix power breaking multi-extruder setups

* main and temp: remove degrees char from the table

* main and temp: revert removal of the header

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-09-09 11:34:50 -03:00
alfrix 069097d2e0 config:fix 2022-09-09 11:32:44 -03:00
alfrix de540402ec screensaver: fix #725
this was caused by focus and hover states introducing extra styling
also remove the active semi-translucent that made the fade-in because,
it sometimes missbehaved not showing some elements of the ui, it's also faster not having animation.
2022-09-08 10:20:57 -03:00
alfrix 1d40b9cf7f config: fix babystepping not being recognized
this is a temporary fix, the list items need to be validated individually
2022-09-06 13:13:44 -03:00
Andriy 81573fbd39 Ukrainian update (#719) 2022-09-05 21:27:28 -03:00
whi-tw 5d428e4999 Ignore include sections when validating the config (#720)
* Don't validate `include` sections.

We need a `continue` here because `include` sections are not 'standard',
and don't have any keys to validate.

`include` sections are tangentially validated later via
`_include_config()`.

* Move checks for non-validated sections to start

Rather than looping through the whole if..elif.. block, fail fast if
we're not actually going to validate the section.
2022-09-05 21:27:09 -03:00
alfrix abe12cca30 printer: fix issue that could cause the panels to not show up on startup if moonraker is not connected 2022-09-05 21:02:04 -03:00
alfrix 43c3a4b20d screensaver fix color 2022-09-05 19:44:26 -03:00
alfrix 856e204750 config: fix validator not recognizing calibrate positions 2022-09-04 11:37:50 -03:00
alfrix 2d7486974c config: validator fix floats 2022-09-03 18:25:57 -03:00
alfrix fd7ff6b0cd Update Spanish 2022-09-02 21:21:48 -03:00
alfrix 2939bbe543 system: fix an issue with the updater dialog getting off screen 2022-09-02 21:19:17 -03:00
alfrix 07b134f1a0 Update translation files 2022-09-02 21:03:19 -03:00
dependabot[bot] 5392b9337d build(deps): bump pygobject from 3.42.1 to 3.42.2 (#677)
Bumps [pygobject](https://pygobject.readthedocs.io) from 3.42.1 to 3.42.2.

---
updated-dependencies:
- dependency-name: pygobject
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-02 20:09:04 -03:00
dependabot[bot] d2fccca2fc build(deps): bump websocket-client from 1.3.3 to 1.4.0 (#711)
Bumps [websocket-client](https://github.com/websocket-client/websocket-client) from 1.3.3 to 1.4.0.
- [Release notes](https://github.com/websocket-client/websocket-client/releases)
- [Changelog](https://github.com/websocket-client/websocket-client/blob/master/ChangeLog)
- [Commits](https://github.com/websocket-client/websocket-client/compare/v1.3.3...v1.4.0)

---
updated-dependencies:
- dependency-name: websocket-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-02 20:08:50 -03:00
Nick Douma 89e89ae1b2 Change URL protocol to HTTPS and WSS when connecting to port 443 2022-09-02 19:58:53 -03:00
alfrix a599d667e9 docs:add wifi fix to troubleshooting 2022-09-02 19:58:35 -03:00
alfrix 09375c138c docs: fix command in troubleshooting 2022-09-02 19:58:35 -03:00
alfrix 28303573f9 print: shorter sort label (same as macros panel) 2022-09-02 19:58:35 -03:00
alfrix 54764be269 job_status: show acceleration as integer
usually is in the thousands, it shouldn't matter
2022-09-02 19:58:35 -03:00
alfrix 657f1b133f zcalibrate: fix wrong sign in new offset 2022-09-02 19:58:35 -03:00
alfrix 1704276c2d config: silently remove quotes from the api_key
This fixes a user error where it copies the quotes too
2022-09-02 19:58:35 -03:00
alfrix 97f170ba59 buttons: resize side images for better alignment 2022-09-02 19:58:35 -03:00
alfrix 553423e3d8 klippygtk: fix cases where wrap and ellipsize was not applied 2022-09-02 19:58:35 -03:00
alfrix de7b57f6b7 files: change reset to reinitialize 2022-09-02 19:58:35 -03:00
alfrix 2d8b5c1974 job_status: fix issue when checking the state too early 2022-09-02 19:58:35 -03:00
alfrix be2d5b040c temperature: do set temperature_fan to 0 when pressing cooldown 2022-09-02 19:58:35 -03:00
alfrix d1604c68d6 temp: do not change preheat selections while in the numpad
it's possible to just use one selection list and unselect the rest,
but i think that there is some benefit in usability keeping the selections separated
2022-09-02 19:58:35 -03:00
alfrix 2902e95068 temp: show the popover if name is pressed for 1 second (longpress) 2022-09-02 19:58:35 -03:00
alfrix 4cb17c18a9 main temp: add the ability to hide the graph 2022-09-02 19:58:35 -03:00
alfrix e140120b44 main temp: load the visibility of items 2022-09-02 19:58:35 -03:00
alfrix 0d2c1b013b graph: fix error on touch 2022-09-02 19:58:35 -03:00
alfrix 70e3091127 system: use separators 2022-09-02 19:58:35 -03:00
alfrix c57915ef19 temp: fix styling not updating when entering and exiting numpad 2022-09-02 19:58:35 -03:00
alfrix c604c25d71 system: simplify restart labels 2022-09-02 19:58:35 -03:00
alfrix e986e3cd8e fix PEP8 E303 and make the code check more strict 2022-09-02 19:58:35 -03:00
alfrix ce8762da19 installer: drop matchbox requirement and add an updater note 2022-09-02 19:58:35 -03:00
alfrix 4f959696bd gtk: remove newlines to properly wrap lines if needed
this fixes the issue caused by labels with a newlines detected as 1 line even if it has more than one
2022-09-02 19:58:35 -03:00
alfrix 64335b3fef docs: only list main configurations not changeable from the UI 2022-09-02 19:58:35 -03:00
alfrix 22081148fe screen: close dialogs when job_status is loaded 2022-09-02 19:58:35 -03:00
alfrix b1237ea75e config: add fallback values to booleans 2022-09-02 19:58:35 -03:00
alfrix c1f17b154c system: add shutdown and restart host 2022-09-02 19:58:35 -03:00
alfrix ea5c5afa5e gtk: do not try to ellipsize if the label is None 2022-09-02 19:58:35 -03:00
alfrix f60a878e7b main and temp: save visibility of items 2022-09-02 19:58:35 -03:00
alfrix 38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -03:00
alfrix 836e4a3aea screen: some models need blanking for dpms to work properly 2022-09-02 19:58:35 -03:00
alfrix 4124a67450 gtk: fix scrolling stuck on some cases 2022-09-02 19:58:35 -03:00
alfrix 6db43af8cb exclude: add exclude objects support 2022-09-02 19:58:35 -03:00
alfrix 3e5855d207 config: add validator 2022-09-02 19:58:35 -03:00
alfrix 2c8436500c base_panel: fix possible causes of error in show heaters fixes #706 2022-08-21 15:15:24 -03:00
AntoszHUN 5366df6e2c Hungarian Language Update (#703)
The Hungarian language package has been updated.

    I updated the words that were included earlier.
    I translated the words that were included earlier.
    I translated the most recently added words.
    Fixed other translation errors.

Signed-off-by: AntoszHUN zsikaiantal@gmail.com
2022-08-18 23:45:00 -03:00
Selim 036ba207ee Turkish Language Update (#696) 2022-08-11 14:57:45 -03:00
alfrix 6cebf6ad0d docs: create specific pages for some panels 2022-08-11 14:56:43 -03:00
alfrix 3847fea315 Update translation files 2022-08-10 12:02:07 -03:00
alfrix 200dca9dd3 dump more info during exceptions 2022-08-10 10:49:23 -03:00
Selim 6863d1c32e Turkish Update 8 (#694) 2022-08-10 10:48:59 -03:00
alfrix 737447939f main_menu: more direct temp input fix #626 2022-08-08 11:20:26 -03:00
alfrix 393586b191 pins: fix #689 2022-08-08 11:01:25 -03:00
alfrix 5a39e24230 docs: update configuration filter list for menu
close #374 this updates the available filter list
2022-08-07 06:48:51 -03:00
alfrix 054fc80006 bed_level: fix label rounding 2022-08-07 06:30:18 -03:00
alfrix 2d2605b526 scripts: add build_docs to test locally doc changes 2022-08-06 14:47:50 -03:00
alfrix 58bddd58a8 system: remove unneeded extra blank line 2022-08-06 14:46:18 -03:00
alfrix 79cef455af screen: make the error message more clear and provide more details 2022-08-06 14:39:31 -03:00
alfrix 6094d4b6c0 system: add autoscroll and improve how the list of changes look 2022-08-06 12:56:57 -03:00
alfrix be1b5228c1 bed_level: fix label rounding issues 2022-08-06 12:08:05 -03:00
alfrix 36225ed59f docs: add bed level 2022-08-06 09:41:48 -03:00
alfrix 835803d329 screen: do not ask to save unless printer is in standby close #692 2022-08-03 11:56:02 -03:00
alfrix 0ec2baf302 bed_level: fix for printers without name/config 2022-08-02 13:21:03 -03:00
alfrix c1b34839bc move: fix cannot move if the printer was not named 2022-08-02 12:18:08 -03:00
alfrix 83c6f87281 temperature: fix blank space if the special cooldown is not at the bottom of the config #688 2022-08-02 09:31:48 -03:00
alfrix 455cb9da99 temperature: fix cooldown after 207914a 2022-08-02 08:57:16 -03:00
alfrix f37a6b579f docs: add an alternative to calibration 2022-08-01 22:47:01 -03:00
alfrix e332ccc22a pins: assign initial value if configured fix #689 2022-08-01 21:27:19 -03:00
alfrix 207914a5b5 temperature: fix for users that want to have temps in cooldown fix #688 2022-08-01 21:11:37 -03:00
alfrix c06ca56ea0 job_status: fix #690 2022-08-01 20:44:04 -03:00
alfrix b1f149495d themes: update material-dark and material-darker 2022-08-01 17:25:13 -03:00
alfrix 16871f967e Add bed-mesh icon 2022-08-01 13:59:09 -03:00
alfrix 7ba83227bd system: autoclose popup 2022-08-01 12:59:52 -03:00
129 changed files with 4098 additions and 2324 deletions

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ name: test-code
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
lint-python-code: lint-python-code:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: ricardochaves/python-lint@v1.4.0 - uses: ricardochaves/python-lint@v1.4.0
@@ -14,4 +14,4 @@ jobs:
use-black: false use-black: false
use-mypy: false use-mypy: false
use-isort: false use-isort: false
extra-pycodestyle-options: "--ignore=E226,E301,E302,E303,E402,W503,W504 --max-line-length=120 --max-doc-length=120" extra-pycodestyle-options: "--ignore=E402,W503,W504 --max-line-length=120 --max-doc-length=120"
+25 -25
View File
@@ -13,13 +13,9 @@ Write in the file only the options that need to be changed, and restart KlipperS
## Main Options ## Main Options
The options listed here are not changeable from within the ui.
```py ```py
[main] [main]
# Invert axis in move panel. Default is False. Change to true to invert
invert_x: False
invert_y: False
invert_z: False
# Time in seconds before the Job Status page closes itself after a successful job/print # Time in seconds before the Job Status page closes itself after a successful job/print
# 0 means disabled # 0 means disabled
job_complete_timeout: 0 job_complete_timeout: 0
@@ -27,31 +23,15 @@ job_complete_timeout: 0
# Time in seconds before the Job Status closes itself if an error is encountered # Time in seconds before the Job Status closes itself if an error is encountered
job_error_timeout: 0 job_error_timeout: 0
# Autoclose popups, this includes various notifications and M118
autoclose_popups: True
# Specify the language
# The language can be specified here instead of using the system default language.
language: en
# Allows the cursor to be displayed on the screen # Allows the cursor to be displayed on the screen
show_cursor: False show_cursor: False
# Allows to define custom systemctl command for restart like xrdp
service: KlipperScreen
# If multiple printers are defined, this can be set the name of the one to show at startup. # If multiple printers are defined, this can be set the name of the one to show at startup.
default_printer: Ender 3 Pro default_printer: Ender 3 Pro
# To define a full set of custom menues (instead of merging user entries with default entries) # To define a full set of custom menues (instead of merging user entries with default entries)
# set this to False. See Menu section below. # set this to False. See Menu section below.
use_default_menu: True use_default_menu: True
# Screen DPMS
# By default DPMS is used to turn off the screen, this should prevent burn-in and save power.
# However if you find that your screen doesn't turn off because it doesn't support it
# Setting this to false will just turn the screen black.
use_dpms: True
``` ```
## Printer Options ## Printer Options
@@ -101,6 +81,10 @@ screw_positions: ""
# Rotation is useful if the screen is not directly in front of the machine. # Rotation is useful if the screen is not directly in front of the machine.
# Valid values are 0 90 180 270 # Valid values are 0 90 180 270
screw_rotation: 0 screw_rotation: 0
# Define distances and speeds for the extrude panel. CSV list 2 to 4 integers
extrude_distances: 5, 10, 15, 25
extrude_speeds: 1, 2, 5, 25
``` ```
## Preheat Options ## Preheat Options
@@ -155,12 +139,27 @@ Available panels are listed here: [docs/panels.md](Panels.md)
Certain variables are available for conditional testing of the enable statement: Certain variables are available for conditional testing of the enable statement:
```py ```py
printer.bltouch # Available if bltouch section defined in config printer.extruders.count # Number of extruders
printer.temperature_devices.count # Number of temperature related devices that are not extruders
printer.fans.count # Number of fans
printer.power_devices.count # Number of power devices configured in Moonraker
printer.gcode_macros.count # Number of gcode macros printer.gcode_macros.count # Number of gcode macros
printer.output_pins.count # Number of fans
printer.bltouch # Available if bltouch section defined in config
printer.probe # Available if probe section defined in config
printer.bed_mesh # Available if bed_mesh section defined in config
printer.quad_gantry_level # Available if quad_gantry_level section defined in config
printer.z_tilt # Available if z_tilt section defined in config
printer.firmware_retraction # True if defined in config
printer.input_shaper # True if defined in config
printer.bed_screws # True if defined in config
printer.screws_tilt_adjust # True if defined in config
printer.idle_timeout # Idle timeout section printer.idle_timeout # Idle timeout section
printer.pause_resume # Pause resume section of Klipper printer.pause_resume # Pause resume section of Klipper
printer.probe # Available if probe section defined in config
printer.power_devices.count # Number of power devices configured in Moonraker
``` ```
@@ -193,7 +192,8 @@ KlipperScreen will search for a configuration file in the following order:
1. _~/KlipperScreen.conf_ 1. _~/KlipperScreen.conf_
2. _${KlipperScreen_Directory}/KlipperScreen.conf_ 2. _${KlipperScreen_Directory}/KlipperScreen.conf_
3. _~/klipper_config/KlipperScreen.conf_ 3. _~/printer_data/config/KlipperScreen.conf_
4. _~/klipper_config/KlipperScreen.conf_
If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify
the location of your configuration file. the location of your configuration file.
+16
View File
@@ -100,6 +100,22 @@ To make this permanent, modify the file `/etc/udev/rules.d/51-touchscreen.rules`
```sh ```sh
ACTION=="add", ATTRS{name}=="<device name>", ENV{LIBINPUT_CALIBRATION_MATRIX}="<matrix>" ACTION=="add", ATTRS{name}=="<device name>", ENV{LIBINPUT_CALIBRATION_MATRIX}="<matrix>"
``` ```
As an alternative if the above doesn't work:
edit /usr/share/X11/xorg.conf.d/40-libinput.conf
for example:
```sh
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
```
More info about input transformation can be found in: More info about input transformation can be found in:
* [Ubuntu wiki InputCoordinateTransformation](https://wiki.ubuntu.com/X/InputCoordinateTransformation) * [Ubuntu wiki InputCoordinateTransformation](https://wiki.ubuntu.com/X/InputCoordinateTransformation)
+28
View File
@@ -0,0 +1,28 @@
# Job Status
Also known as "Print Status" or the "printing panel" shows the relevant information of the current print.
![Screenshot](img/panels/job_status.png)
!!! tip
the third row shows the LCD message (`M117`)
This panel has more information than it shows by default, just click/tap the corresponding the status buttons to access the extra information
## Position info
![speed_screenshot](img/panels/job_status_speed.png)
!!! note
Layer is calculated from object height, it may not be accurate if variable layer is used
If that is the case use the Layer Progress method described in the [Quicktips](Quicktips.md#layer-progress)
## Extrusion info
![extrusion_screenshot](img/panels/job_status_extrusion.png)
## Time info
![time_screenshot](img/panels/job_status_time.png)
## Extra temperature items
By default only extruder and bed temperatures will be available but additional items can be defined
using ["titlebar_items" in the config](Configuration.md#printer-options)
+28 -34
View File
@@ -3,36 +3,30 @@
### Main Menu ### Main Menu
![Main Menu](img/panels/main_panel.png) ![Main Menu](img/panels/main_panel.png)
### Job Status ### [Job Status](Job_status.md)
```py ```py
panel: job_status panel: job_status
``` ```
![Job Status](img/panels/job_status.png) ![Job Status](img/panels/job_status.png)
### Bed Level ### [Bed Level](Screws.md)
```py ```py
panel: bed_level panel: bed_level
``` ```
![Bed Level](img/panels/bed_level.png) ![Bed Level](img/panels/bed_level.png)
The bed level panel has the ability to have preset locations from Klipper. Please see documentation on the following
Klipper Sections:
* [bed_screws](https://www.klipper3d.org/Config_Reference.html#bed_screws)
* [screws_tilt_adjust](https://www.klipper3d.org/Config_Reference.html#screws_tilt_adjust)
!!! important:
`[bed_screws]` uses Nozzle positions and `[screws_tilt_adjust]` uses Probe positions
This panel will use `[bed_screws]` if `[screws_tilt_adjust]` is not defined,
the probe offset will be applied to the defined screw values in `[screws_tilt_adjust]`
so the buttons will move the nozzle above the screws like in `[bed_screws]`
### Bed Mesh ### Bed Mesh
```py ```py
panel: bed_mesh panel: bed_mesh
``` ```
![Bed Mesh](img/panels/bed_mesh.png) ![Bed Mesh](img/panels/bed_mesh.png)
### Console
```py
panel: console
```
![Console](img/panels/console.png)
### Extrude ### Extrude
```py ```py
panel: extrude theme:material-dark panel: extrude theme:material-dark
@@ -57,6 +51,18 @@ panel: gcode_macros
``` ```
![Gcode Macros Panel](img/panels/gcode_macros.png) ![Gcode Macros Panel](img/panels/gcode_macros.png)
### Input Shapers
```py
panel: input_shaper
```
![Limits](img/panels/input_shaper.png)
### Limits
```py
panel: limits
```
![Limits](img/panels/limits.png)
### Menu ### Menu
![Menu Panel](img/panels/menu.png) ![Menu Panel](img/panels/menu.png)
@@ -84,6 +90,12 @@ panel: print
``` ```
![Print Panel](img/panels/print.png) ![Print Panel](img/panels/print.png)
### Retraction
```py
panel: retraction
```
![Limits](img/panels/retraction.png)
### Settings ### Settings
```py ```py
panel: settings panel: settings
@@ -96,32 +108,14 @@ panel: system
``` ```
![System Panel](img/panels/system.png) ![System Panel](img/panels/system.png)
### Temperature ### [Temperature](Temperature.md)
```py ```py
panel: temperature panel: temperature
``` ```
![Temperature](img/panels/temperature.png) ![Temperature](img/panels/temperature.png)
### Z Calibrate ### [Z Calibrate](Zcalibrate.md)
```py ```py
panel: zcalibrate panel: zcalibrate
``` ```
![Z Calibrate](img/panels/zcalibrate.png) ![Z Calibrate](img/panels/zcalibrate.png)
### Limits
```py
panel: limits
```
![Limits](img/panels/limits.png)
### Retraction
```py
panel: retraction
```
![Limits](img/panels/retraction.png)
### Input Shapers
```py
panel: input_shaper
```
![Limits](img/panels/input_shaper.png)
+1 -37
View File
@@ -30,44 +30,8 @@ fan1 will show in the interface, but _fan2 will be hidden.
## Thumbnails ## Thumbnails
KlipperScreen can display thumbnails in the file browser and as previews in the print status.
Moved to [Thumbnails](Thumbnails.md)
![Job Status](img/panels/job_status.png)
* [PrusaSlicer](#prusaslicer)
* [SuperSlicer](#superslicer)
* [Cura](#cura)
* [ideaMaker](#ideamaker)
### PrusaSlicer
In “Expert” mode PrusaSlicer has an option in the “Printer Settings” tab to activate previews.
Under General / Firmware.
![PrusaSlicer](img/quicktips/PrusaSlicer-thumbnails.png)
### SuperSlicer
In “Expert” mode SuperSlicer has some very convenient options in the “Printer Settings” tab to activate and customize the previews.
![SuperSlicer](img/quicktips/SuperSlicer-thumbnails.png)
### Cura
The Cura plugin [“Cura2Moonraker”](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin) is required for this.
![Cura](img/quicktips/Cura-thumbnails.png)
### ideaMaker
To enable thumbnails, open the Advanced tab in the printer settings, enable the GCode Thumbnails for Octoprint and Mainsail option and enter your prefered square format image size in the Resolution fields (e.g. 400 X 400). It’s necessary that the thumbnail width and height resolution is equal.
![ideaMaker](img/quicktips/IdeaMaker-thumbnails.png)
## Layer Progress ## Layer Progress
+43
View File
@@ -0,0 +1,43 @@
# Bed level
![Bed Level](img/panels/bed_level.png)
For this panel to appear in the menu `[bed_screws]` or `[screws_tilt_adjust]` need to be defined in Klipper config (printer.cfg)
!!! Important
* `[bed_screws]` uses nozzle positions (nozzle above the screw) [Read Klipper doc entry](https://www.klipper3d.org/Config_Reference.html#bed_screws)
* `[screws_tilt_adjust]` uses probe positions (probe above the screw) [Read Klipper doc entry](https://www.klipper3d.org/Config_Reference.html#screws_tilt_adjust)
The corner buttons in KlipperScreen place the nozzle above the screw to do the ["paper test"](https://www.klipper3d.org/Bed_Level.html?h=paper#the-paper-test).
When `[screws_tilt_adjust]` is defined a couple of things happen:
* A button named "Screws adjust" appears, it runs `SCREWS_TILT_CALCULATE` when is pressed,
and reports the amount to be adjusted into the labels of the corner buttons.
* `[bed_screws]` is now ignored by KlipperScreen. (explained below)
* The corner buttons are now `[screws_tilt_adjust]` coordinates with the probe offset applied. (explained below)
### Why `[bed_screws]` are ignored/not used?
Because if the probe offset is changed or the difference between `[bed_screws]` and `[screws_tilt_adjust]` wasn't calculated correctly,
the "Screws adjust" button stops working.
### Why the probe offset is applied to `[screws_tilt_adjust]`?
Because the corner buttons in KlipperScreen should place the nozzle above the screw to do the ["paper test"](https://www.klipper3d.org/Bed_Level.html?h=paper#the-paper-test). It doesn't affect the function of `SCREWS_TILT_CALCULATE`, which will go to the defined positions.
## Not supported for auto-detection
This message will appear if you are using 3 or 5 screws and didn't define them in KlipperScreen.conf.
See "screw_positions" in the [printer options](https://klipperscreen.readthedocs.io/en/latest/Configuration/#printer-options)
## Limitations
The panel doesn't support more than 8 screws or screws that directly in the center of the bed.
## Is there an alternative?
If you have a reliable probe, define `[bed_mesh]` in Klipper config, remove the springs
and use some thread-locker or locking nuts to fix the bed to the gantry, let the probe do a mesh save it and forget about this.
+23
View File
@@ -0,0 +1,23 @@
# Temperature
This panel is available when there is at least one device with a temperature sensor asociated,
this includes extruders, heaters, sensors and temperature_fans.
There are 3 main modes of operation:
## Preheat
[Define profiles](Configuration.md#preheat-options) to quickly change the target temperature of multiple selected devices.
This is the default mode when not printing.
![Preheat_screenshot](img/panels/temperature.png)
## Delta adjust
Change the target of the selected devices, the amount is selectable.
This is the default mode while printing
![Delta_screenshot](img/panels/temperature_delta.png)
## Direct input with keypad
Allows to set the exact temperature using the keypad.
![Keypad_screenshot](img/panels/temperature_keypad.png)
+59
View File
@@ -0,0 +1,59 @@
# Thumbnails
KlipperScreen can display thumbnails in the file browser and as previews in the print status.
![Job Status](img/panels/job_status.png)
Recommended sizes for thumbnails:
* 300 x 300 - For the larger previews.
* 32 x 32 - For the smaller thumbnails used in lists.
!!! note
Other sizes should work, but keep in mind bigger thumbnails are slower to load and can produce bigger gcode files.
## Select your slicer:
* [PrusaSlicer](#prusaslicer)
* [SuperSlicer](#superslicer)
* [Cura](#cura)
* [ideaMaker](#ideamaker)
### PrusaSlicer (2.3.0+)
In “Expert” mode PrusaSlicer has an option in the “Printer Settings” tab to activate previews.
Under General / Firmware.
![PrusaSlicer](img/quicktips/PrusaSlicer-thumbnails.png)
### SuperSlicer (2.2.54+)
In “Expert” mode SuperSlicer has some very convenient options in the “Printer Settings” tab to activate and customize the previews.
![SuperSlicer](img/quicktips/SuperSlicer-thumbnails.png)
### Cura
#### Option #1 A post processing script (Cura 4.9+)
1. With Cura open, navigate to Extensions, Post Processing, Modify G-Code
2. Click Add a script, and select Create Thumbnail
3. Set both Width and Height to 300
4. Click Add a script, and select Create Thumbnail
5. Set both Width and Height to 32
6. Click Close
#### Option #2 A plugin (Cura 4.7+)
[Cura2Moonraker](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin)
![Cura](img/quicktips/Cura-thumbnails.png)
### ideaMaker (4.2.1+)
1. Open the Advanced tab in the printer settings
2. Enable "GCode Thumbnails for Octoprint and Mainsail"
3. Set both Width and Height to 300
![ideaMaker](img/quicktips/IdeaMaker-thumbnails.png)
+5 -3
View File
@@ -14,6 +14,8 @@ have set your pi up for your preferred language.
* Save the file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.po`. * Save the file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.po`.
* Select `File -> Compile to MO`. Save this file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.mo` * Select `File -> Compile to MO`. Save this file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.mo`
Once you have followed those steps, as long as your pi is set up for your preferred language, KlipperScreen will Once you have followed those steps, restart KlipperScreen, and select it from the list in the settings.
automatically use the translations provided in the file. KlipperScreen currently does not detect RTL languages, but If you edited and recompiled, you need to restart KlipperScreen to reload the translation.
support for RTL is planned in the near future.
Do not edit the POT file as is automatically generated and your changes will be lost.
[Attach your translation on a GitHub issue or create a PR](Contact.md)
+29 -1
View File
@@ -45,7 +45,7 @@ sudo service KlipperScreen restart
If it's still failing as a last resort add `needs_root_rights=yes` to `/etc/X11/Xwrapper.config`: If it's still failing as a last resort add `needs_root_rights=yes` to `/etc/X11/Xwrapper.config`:
```sh ```sh
sudo echo needs_root_rights=yes>>/etc/X11/Xwrapper.config sudo bash -c "echo needs_root_rights=yes>>/etc/X11/Xwrapper.config"
``` ```
restart KS. restart KS.
@@ -111,6 +111,34 @@ and reboot, that should make the touch work, if your screen is rotated 180 degre
KlipperScreen was never intended to be used with OctoPrint, and there is no support for it. KlipperScreen was never intended to be used with OctoPrint, and there is no support for it.
## WiFi networks not listed
This can be caused because of the user is not allowed to control the interface
* Edit `/etc/wpa_supplicant/wpa_supplicant.conf` and add this line if it's not there:
```
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
```
* Run `cat /etc/group | grep netdev`
If your username is not listed under that line, you need to add it with the following command:
```sh
usermod -a -G netdev pi
```
(if your username is not 'pi' change 'pi' to your username)
Then reboot the machine:
```
systemctl reboot
```
!!! tip
It's possible to just restart KlipperScreen and networking
## Other issues ## Other issues
If you found an issue not listed here, or can't make it work, please provide all the log files If you found an issue not listed here, or can't make it work, please provide all the log files
+44
View File
@@ -0,0 +1,44 @@
# Zcalibrate
This panel supports various modes of operation to assist in the calibration of the Z axis of the machine.
It's strongly suggested to read Klipper documentation about [Bed level](https://www.klipper3d.org/Bed_Level.html)
![Screenshot](img/panels/zcalibrate.png)
## Buttons
* "Start" will initiate the only method available, or ask the user if multiple methods are available.
!!! note
KlipperScreen will home if needed and move to the middle of the bed,
but the location can be configured in [KlipperScreen.conf](https://klipperscreen.readthedocs.io/en/latest/Configuration/#printer-options)
* The raise(+) and lower(-) buttons send `TESTZ Z=distance` where distance is selected in the bottom row.
* Accept will send `ACCEPT`
* Abort will send `ABORT`
## Calibration methods
### Endstop (`Z_ENDSTOP_CALIBRATE`)
Available when an physical endstop is defined for `[stepper_z]`
See Klipper documentation: [Calibrating a Z endstop](https://www.klipper3d.org/Manual_Level.html#calibrating-a-z-endstop)
### Probe (`PROBE_CALIBRATE`)
Available when a probe is defined. (BL-Touch is a probe)
See Klipper documentation: [Calibrating probe Z offset](https://www.klipper3d.org/Probe_Calibrate.html#calibrating-probe-z-offset)
### Bed mesh (`BED_MESH_CALIBRATE`)
Available when a probe is not defined and `[bed_mesh]` is defined
this mode lets you create a mesh leveling bed using the paper test in various points.
!!! warning
DO NOT adjust the bed screws while using this mode.
Adjust the screws using the [bed screws](Screws.md) panel before running this tool.
### Delta Automatic/Manual (`DELTA_CALIBRATE`)
Available when the kinematics are defined as delta.
See Klipper documentation: [Delta calibration](https://www.klipper3d.org/Delta_Calibrate.html)
!!! note
KlipperScreen will automatically Home(`G28`) if needed
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+57 -52
View File
@@ -11,8 +11,6 @@ from gi.repository import Gdk, GdkPixbuf, Gio, Gtk, Pango
class KlippyGtk: class KlippyGtk:
labels = {} labels = {}
width_ratio = 16
height_ratio = 9.375
def __init__(self, screen, width, height, theme, cursor, fontsize_type): def __init__(self, screen, width, height, theme, cursor, fontsize_type):
self.screen = screen self.screen = screen
@@ -29,10 +27,10 @@ class KlippyGtk:
self.font_size = round(self.font_size * 0.91) self.font_size = round(self.font_size * 0.91)
elif fontsize_type == "large": elif fontsize_type == "large":
self.font_size = round(self.font_size * 1.09) self.font_size = round(self.font_size * 1.09)
self.header_size = int(round((self.width / self.width_ratio) / 1.33))
self.titlebar_height = self.font_size * 2 self.titlebar_height = self.font_size * 2
self.img_width = int(round(self.width / self.width_ratio)) self.img_scale = self.font_size * 2.5
self.img_height = int(round(self.height / self.height_ratio)) self.img_width = self.font_size * 3
self.img_height = self.font_size * 3
if self.screen.vertical_mode: if self.screen.vertical_mode:
self.action_bar_width = int(self.width) self.action_bar_width = int(self.width)
self.action_bar_height = int(self.height * .1) self.action_bar_height = int(self.height * .1)
@@ -71,15 +69,6 @@ class KlippyGtk:
def get_titlebar_height(self): def get_titlebar_height(self):
return self.titlebar_height return self.titlebar_height
def get_header_size(self):
return self.header_size
def get_image_width(self):
return self.img_width
def get_image_height(self):
return self.img_height
def get_keyboard_height(self): def get_keyboard_height(self):
if (self.height / self.width) >= 3: if (self.height / self.width) >= 3:
# Ultra-tall # Ultra-tall
@@ -120,37 +109,32 @@ class KlippyGtk:
la.get_style_context().add_class(style) la.get_style_context().add_class(style)
return la return la
def Image(self, image_name, scale=1.0): def Image(self, image_name=None, width=None, height=None):
filename = os.path.join(self.themedir, f"{image_name}.svg") if image_name is None:
if os.path.exists(filename):
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filename,
int(round(self.img_width * scale)),
int(round(self.img_height * scale)),
True)
return Gtk.Image.new_from_pixbuf(pixbuf)
else:
logging.error(f"Unable to find image {filename}")
return Gtk.Image() return Gtk.Image()
width = width if width is not None else self.img_width
height = height if height is not None else self.img_height
filename = os.path.join(self.themedir, image_name)
for ext in ["svg", "png"]:
with contextlib.suppress(Exception):
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(f"{filename}.{ext}", int(width), int(height))
if pixbuf is not None:
return Gtk.Image.new_from_pixbuf(pixbuf)
logging.error(f"Unable to find image {filename}.{ext}")
return Gtk.Image()
def PixbufFromFile(self, filename, width_scale=1, height_scale=1): @staticmethod
return GdkPixbuf.Pixbuf.new_from_file_at_scale( def PixbufFromFile(filename, width=-1, height=-1):
filename, return GdkPixbuf.Pixbuf.new_from_file_at_size(filename, int(width), int(height))
int(round(self.img_width * width_scale)),
int(round(self.img_height * height_scale)),
True
)
def PixbufFromHttp(self, resource, width_scale=1, height_scale=1): def PixbufFromHttp(self, resource, width=-1, height=-1):
response = self.screen.apiclient.get_thumbnail_stream(resource) response = self.screen.apiclient.get_thumbnail_stream(resource)
if response is False: if response is False:
return None return None
stream = Gio.MemoryInputStream.new_from_data(response, None) stream = Gio.MemoryInputStream.new_from_data(response, None)
return GdkPixbuf.Pixbuf.new_from_stream_at_scale( pixbuf = GdkPixbuf.Pixbuf.new_from_stream_at_scale(stream, int(width), int(height), True)
stream, stream.close_async(2)
int(round(self.img_width * width_scale)), return pixbuf
int(round(self.img_height * height_scale)),
True
)
def Button(self, label=None, style=None): def Button(self, label=None, style=None):
b = Gtk.Button(label=label) b = Gtk.Button(label=label)
@@ -164,24 +148,37 @@ class KlippyGtk:
b.connect("clicked", self.screen.reset_screensaver_timeout) b.connect("clicked", self.screen.reset_screensaver_timeout)
return b return b
def ButtonImage(self, image_name=None, label=None, style=None, scale=1.38, def ButtonImage(self, image_name=None, label=None, style=None, scale=1.38, position=Gtk.PositionType.TOP, lines=2):
position=Gtk.PositionType.TOP, word_wrap=True): b = Gtk.Button()
if label is not None:
b = Gtk.Button(label=label) b.set_label(label.replace("\n", " "))
b.set_hexpand(True) b.set_hexpand(True)
b.set_vexpand(True) b.set_vexpand(True)
b.set_can_focus(False) b.set_can_focus(False)
if image_name is not None: if image_name is not None:
b.set_image(self.Image(image_name, scale)) width = height = self.img_scale * scale
b.set_image(self.Image(image_name, width, height))
b.set_image_position(position) b.set_image_position(position)
b.set_always_show_image(True) b.set_always_show_image(True)
if word_wrap is True: if label is not None:
with contextlib.suppress(Exception): try:
# Get the label object # Get the label object
child = b.get_children()[0].get_children()[0].get_children()[1] if image_name is not None:
if position == Gtk.PositionType.RIGHT:
child = b.get_children()[0].get_children()[0].get_children()[0]
else:
child = b.get_children()[0].get_children()[0].get_children()[1]
else:
child = b.get_children()[0]
child.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) child.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
child.set_line_wrap(True) child.set_line_wrap(True)
child.set_ellipsize(True)
child.set_ellipsize(Pango.EllipsizeMode.END)
child.set_lines(lines)
except Exception as e:
logging.debug(f"Unable to wrap and ellipsize label: {label} image: {image_name} exception:{e}")
if style is not None: if style is not None:
b.get_style_context().add_class(style) b.get_style_context().add_class(style)
b.connect("clicked", self.screen.reset_screensaver_timeout) b.connect("clicked", self.screen.reset_screensaver_timeout)
@@ -201,6 +198,8 @@ class KlippyGtk:
button.get_child().set_line_wrap(True) button.get_child().set_line_wrap(True)
button.set_size_request((screen.width - 30) / 3, screen.height / 5) button.set_size_request((screen.width - 30) / 3, screen.height / 5)
dialog.connect("response", self.screen.reset_screensaver_timeout)
dialog.connect("response", self.remove_dialog, dialog)
dialog.connect("response", callback, *args) dialog.connect("response", callback, *args)
dialog.get_style_context().add_class("dialog") dialog.get_style_context().add_class("dialog")
@@ -214,20 +213,24 @@ class KlippyGtk:
dialog.show_all() dialog.show_all()
# Change cursor to blank # Change cursor to blank
if self.cursor: if self.cursor:
dialog.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.ARROW)) dialog.get_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.ARROW))
else: else:
dialog.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.BLANK_CURSOR)) dialog.get_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.BLANK_CURSOR))
self.screen.dialogs.append(dialog) self.screen.dialogs.append(dialog)
return dialog return dialog
def ToggleButtonImage(self, image_name, label, style=None, scale=1.38): def remove_dialog(self, widget, response_id, dialog):
logging.info("Removing Dialog")
self.screen.dialogs.remove(dialog)
def ToggleButtonImage(self, image_name, label, style=None, width=None, height=None):
b = Gtk.ToggleButton(label=label) b = Gtk.ToggleButton(label=label)
b.set_hexpand(True) b.set_hexpand(True)
b.set_vexpand(True) b.set_vexpand(True)
b.set_can_focus(False) b.set_can_focus(False)
b.set_image(self.Image(image_name, scale)) b.set_image(self.Image(image_name, width, height))
b.set_image_position(Gtk.PositionType.TOP) b.set_image_position(Gtk.PositionType.TOP)
b.set_always_show_image(True) b.set_always_show_image(True)
@@ -260,6 +263,8 @@ class KlippyGtk:
scroll = Gtk.ScrolledWindow() scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False) scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True) scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK) scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK |
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK) Gdk.EventMask.TOUCH_MASK |
Gdk.EventMask.BUTTON_RELEASE_MASK)
scroll.set_kinetic_scrolling(True)
return scroll return scroll
+10 -2
View File
@@ -9,6 +9,13 @@ class KlippyRest:
self.port = port self.port = port
self.api_key = api_key self.api_key = api_key
@property
def endpoint(self):
protocol = "http"
if int(self.port) == 443:
protocol = "https"
return f"{protocol}://{self.ip}:{self.port}"
def get_server_info(self): def get_server_info(self):
return self.send_request("server/info") return self.send_request("server/info")
@@ -22,7 +29,8 @@ class KlippyRest:
return self.send_request("printer/info") return self.send_request("printer/info")
def get_thumbnail_stream(self, thumbnail): def get_thumbnail_stream(self, thumbnail):
url = f"http://{self.ip}:{self.port}/server/files/gcodes/{thumbnail}" url = f"{self.endpoint}/server/files/gcodes/{thumbnail}"
response = requests.get(url, stream=True) response = requests.get(url, stream=True)
if response.status_code == 200: if response.status_code == 200:
response.raw.decode_content = True response.raw.decode_content = True
@@ -30,7 +38,7 @@ class KlippyRest:
return False return False
def send_request(self, method): def send_request(self, method):
url = f"http://{self.ip}:{self.port}/{method}" url = f"{self.endpoint}/{method}"
logging.debug(f"Sending request to {url}") logging.debug(f"Sending request to {url}")
headers = {} if self.api_key is False else {"x-api-key": self.api_key} headers = {} if self.api_key is False else {"x-api-key": self.api_key}
try: try:
+13 -4
View File
@@ -44,7 +44,18 @@ class KlippyWebsocket(threading.Thread):
self.closing = False self.closing = False
self.ws = None self.ws = None
self._url = f"{host}:{port}" self.host = host
self.port = port
@property
def _url(self):
return f"{self.host}:{self.port}"
@property
def ws_proto(self):
if int(self.port) == 443:
return "wss"
return "ws"
def initial_connect(self): def initial_connect(self):
# Enable a timeout so that way if moonraker is not running, it will attempt to reconnect # Enable a timeout so that way if moonraker is not running, it will attempt to reconnect
@@ -53,8 +64,6 @@ class KlippyWebsocket(threading.Thread):
self.connect() self.connect()
def connect(self): def connect(self):
_ = self._screen.lang.gettext
def ws_on_close(ws, a=None, b=None): def ws_on_close(ws, a=None, b=None):
self.on_close(ws) self.on_close(ws)
@@ -83,7 +92,7 @@ class KlippyWebsocket(threading.Thread):
logging.debug("Unable to get oneshot token") logging.debug("Unable to get oneshot token")
return False return False
self.ws_url = f"ws://{self._url}/websocket?token={token}" self.ws_url = f"{self.ws_proto}://{self._url}/websocket?token={token}"
self.ws = websocket.WebSocketApp( self.ws = websocket.WebSocketApp(
self.ws_url, on_close=ws_on_close, on_error=ws_on_error, on_message=ws_on_message, on_open=ws_on_open) self.ws_url, on_close=ws_on_close, on_error=ws_on_error, on_message=ws_on_message, on_open=ws_on_open)
+184 -66
View File
@@ -34,11 +34,14 @@ class KlipperScreenConfig:
do_not_edit_prefix = "#~#" do_not_edit_prefix = "#~#"
def __init__(self, configfile, screen=None): def __init__(self, configfile, screen=None):
self.errors = []
self.default_config_path = os.path.join(klipperscreendir, "ks_includes", "defaults.conf") self.default_config_path = os.path.join(klipperscreendir, "ks_includes", "defaults.conf")
self.config = configparser.ConfigParser() self.config = configparser.ConfigParser()
self.config_path = self.get_config_file_location(configfile) self.config_path = self.get_config_file_location(configfile)
logging.debug(f"Config path location: {self.config_path}") logging.debug(f"Config path location: {self.config_path}")
self.defined_config = None self.defined_config = None
self.lang = None
self.langs = {}
try: try:
self.config.read(self.default_config_path) self.config.read(self.default_config_path)
@@ -58,29 +61,39 @@ class KlipperScreenConfig:
if saved_def is not None: if saved_def is not None:
self.config.read_string(saved_def) self.config.read_string(saved_def)
logging.info(f"====== Saved Def ======\n{saved_def}\n=======================") logging.info(f"====== Saved Def ======\n{saved_def}\n=======================")
# This is the final config # This is the final config
# self.log_config(self.config) # self.log_config(self.config)
except KeyError as e: if self.validate_config():
raise ConfigError(f"Error reading config: {self.config_path}") from e logging.info('Configuration validated succesfuly')
except Exception: else:
logging.exception("Unknown error with config") logging.error('Invalid configuration detected !!!')
logging.info('Loading default config')
self.config = configparser.ConfigParser()
self.config.read(self.default_config_path)
except KeyError as Kerror:
msg = f"Error reading config: {self.config_path}\n{Kerror}"
logging.exception(msg)
self.errors.append(msg)
raise ConfigError(msg) from Kerror
except ValueError as Verror:
msg = f"Invalid Value in the config:\n{Verror}"
logging.exception(msg)
self.errors.append(msg)
except Exception as e:
msg = f"Unknown error with the config:\n{e}"
logging.exception(msg)
self.errors.append(msg)
printers = sorted([i for i in self.config.sections() if i.startswith("printer ")]) printers = sorted([i for i in self.config.sections() if i.startswith("printer ")])
if len(printers) == 0:
printers.append("Printer Printer")
self.printers = [ self.printers = [
{printer[8:]: { {printer[8:]: {
"moonraker_host": self.config.get(printer, "moonraker_host", fallback="127.0.0.1"), "moonraker_host": self.config.get(printer, "moonraker_host", fallback="127.0.0.1"),
"moonraker_port": self.config.get(printer, "moonraker_port", fallback="7125"), "moonraker_port": self.config.get(printer, "moonraker_port", fallback="7125"),
"moonraker_api_key": self.config.get(printer, "moonraker_api_key", fallback=False) "moonraker_api_key": self.config.get(printer, "moonraker_api_key", fallback="").replace('"', '')
}} for printer in printers] }} for printer in printers
]
if len(printers) <= 0:
self.printers.append({
"Printer": {
"moonraker_host": self.config.get("main", "moonraker_host", fallback="127.0.0.1"),
"moonraker_port": self.config.get("main", "moonraker_port", fallback="7125"),
"moonraker_api_key": self.config.get("main", "moonraker_api_key", fallback="")
}
})
conf_printers_debug = copy.deepcopy(self.printers) conf_printers_debug = copy.deepcopy(self.printers)
for printer in conf_printers_debug: for printer in conf_printers_debug:
@@ -90,21 +103,118 @@ class KlipperScreenConfig:
item[name]['moonraker_api_key'] = "redacted" item[name]['moonraker_api_key'] = "redacted"
logging.debug(f"Configured printers: {json.dumps(conf_printers_debug, indent=2)}") logging.debug(f"Configured printers: {json.dumps(conf_printers_debug, indent=2)}")
self.create_translations()
self._create_configurable_options(screen)
def create_translations(self):
lang_path = os.path.join(klipperscreendir, "ks_includes", "locales")
self.lang_list = [d for d in os.listdir(lang_path) if not os.path.isfile(os.path.join(lang_path, d))]
self.lang_list.sort()
logging.info(f"Available lang list {self.lang_list}")
for lng in self.lang_list:
self.langs[lng] = gettext.translation('KlipperScreen', localedir=lang_path, languages=[lng], fallback=True)
lang = self.get_main_config().get("language", None) lang = self.get_main_config().get("language", None)
lang = [lang] if lang is not None and lang != "default" else None logging.debug(f"Selected lang: {lang} OS lang: {os.getenv('LANG')}")
logging.info(f"Detected language: {lang}") self.install_language(lang)
self.lang = gettext.translation('KlipperScreen', localedir='ks_includes/locales', languages=lang,
fallback=True) def install_language(self, lang):
if lang is None or lang == "system_lang":
for language in self.lang_list:
if os.getenv('LANG').lower().startswith(language):
logging.debug("Using system lang")
lang = language
if lang not in self.lang_list:
logging.error(f"lang: {lang} not found")
lang = "en"
return
logging.info(f"Using lang {lang}")
self.lang = self.langs[lang]
self.lang.install(names=['gettext', 'ngettext']) self.lang.install(names=['gettext', 'ngettext'])
self._create_configurable_options(screen) def validate_config(self):
valid = True
for section in self.config:
if section == 'DEFAULT' or section.startswith('include '):
# Do not validate 'DEFAULT' or 'include*' sections
continue
bools = strs = numbers = ()
if section == 'main':
bools = (
'invert_x', 'invert_y', 'invert_z', '24htime', 'only_heaters', 'show_cursor', 'confirm_estop',
'autoclose_popups', 'use_dpms', 'use_default_menu', 'side_macro_shortcut', 'use-matchbox-keyboard',
'show_heater_power'
)
strs = (
'default_printer', 'language', 'print_sort_dir', 'theme', 'screen_blanking', 'font_size',
'print_estimate_method', 'screen_blanking'
)
numbers = (
'job_complete_timeout', 'job_error_timeout', 'move_speed_xy', 'move_speed_z',
'print_estimate_compensation', 'width', 'height',
)
elif section.startswith('printer '):
bools = (
'invert_x', 'invert_y', 'invert_z',
)
strs = (
'moonraker_api_key', 'moonraker_host', 'titlebar_name_type',
'screw_positions', 'power_devices', 'titlebar_items', 'z_babystep_values',
'extrude_distances', "extrude_speeds",
)
numbers = (
'moonraker_port', 'move_speed_xy', 'move_speed_z',
'calibrate_x_position', 'calibrate_y_position',
)
elif section.startswith('preheat '):
strs = ('gcode', '')
numbers = [f'{option}' for option in self.config[section] if option != 'gcode']
elif section.startswith('menu '):
strs = ('name', 'icon', 'panel', 'method', 'params', 'enable', 'confirm')
elif section == 'bed_screws':
# This section may be deprecated in favor of moving this options under the printer section
numbers = ('rotation', '')
strs = ('screw_positions', '')
elif section.startswith('graph') or section.startswith('displayed_macros'):
bools = [f'{option}' for option in self.config[section]]
elif section.startswith('z_calibrate_position'):
# This section may be deprecated in favor of moving this options under the printer section
numbers = ('calibrate_x_position', 'calibrate_y_position')
else:
self.errors.append(f'Section [{section}] not recognized')
for key in self.config[section]:
if key not in bools and key not in strs and key not in numbers:
msg = f'Option "{key}" not recognized for section "[{section}]"'
self.errors.append(msg)
# This most probably is not a big issue, continue to load the config
elif key in numbers and not self.is_float(self.config[section][key]) \
or key in bools and self.config[section][key] not in ["False", "false", "True", "true"]:
msg = (
f'Unable to parse "{key}" from [{section}]\n'
f'Expected a {"number" if key in numbers else "boolean"} but got: {self.config[section][key]}'
)
self.errors.append(msg)
valid = False
return valid
@staticmethod
def is_float(element):
try:
float(element)
return True
except ValueError:
return False
def get_errors(self):
return "".join(f'{error}\n\n' for error in self.errors)
def _create_configurable_options(self, screen): def _create_configurable_options(self, screen):
self.configurable_options = [ self.configurable_options = [
{"language": { {"language": {
"section": "main", "name": _("Language"), "type": "dropdown", "value": "system_lang", "section": "main", "name": _("Language"), "type": "dropdown", "value": "system_lang",
"callback": screen.restart_warning, "options": [ "callback": screen.change_language, "options": [
{"name": _("System") + " " + _("(default)"), "value": "system_lang"}]}}, {"name": _("System") + " " + _("(default)"), "value": "system_lang"}]}},
{"theme": { {"theme": {
"section": "main", "name": _("Icon Theme"), "type": "dropdown", "section": "main", "name": _("Icon Theme"), "type": "dropdown",
@@ -135,7 +245,7 @@ class KlipperScreenConfig:
{"confirm_estop": {"section": "main", "name": _("Confirm Emergency Stop"), "type": "binary", {"confirm_estop": {"section": "main", "name": _("Confirm Emergency Stop"), "type": "binary",
"value": "False"}}, "value": "False"}},
{"only_heaters": {"section": "main", "name": _("Hide sensors in Temp."), "type": "binary", {"only_heaters": {"section": "main", "name": _("Hide sensors in Temp."), "type": "binary",
"value": "False", "callback": screen.restart_warning}}, "value": "False", "callback": screen.reload_panels}},
{"use_dpms": {"section": "main", "name": _("Screen DPMS"), "type": "binary", {"use_dpms": {"section": "main", "name": _("Screen DPMS"), "type": "binary",
"value": "True", "callback": screen.set_dpms}}, "value": "True", "callback": screen.set_dpms}},
{"print_estimate_compensation": { {"print_estimate_compensation": {
@@ -143,7 +253,8 @@ class KlipperScreenConfig:
"range": [50, 150], "step": 1}}, "range": [50, 150], "step": 1}},
{"autoclose_popups": {"section": "main", "name": _("Auto-close notifications"), "type": "binary", {"autoclose_popups": {"section": "main", "name": _("Auto-close notifications"), "type": "binary",
"value": "True"}}, "value": "True"}},
{"show_heater_power": {"section": "main", "name": _("Show Heater Power"), "type": "binary",
"value": "False", "callback": screen.reload_panels}},
# {"": {"section": "main", "name": _(""), "type": ""}} # {"": {"section": "main", "name": _(""), "type": ""}}
] ]
@@ -159,12 +270,8 @@ class KlipperScreenConfig:
self.configurable_options.extend(panel_options) self.configurable_options.extend(panel_options)
lang_path = os.path.join(klipperscreendir, "ks_includes", "locales")
langs = [d for d in os.listdir(lang_path) if not os.path.isfile(os.path.join(lang_path, d))]
langs.sort()
lang_opt = self.configurable_options[0]['language']['options'] lang_opt = self.configurable_options[0]['language']['options']
for lang in self.lang_list:
for lang in langs:
lang_opt.append({"name": lang, "value": lang}) lang_opt.append({"name": lang, "value": lang})
t_path = os.path.join(klipperscreendir, 'styles') t_path = os.path.join(klipperscreendir, 'styles')
@@ -259,21 +366,36 @@ class KlipperScreenConfig:
return ["\n".join(user_def), None if saved_def is None else "\n".join(saved_def)] return ["\n".join(user_def), None if saved_def is None else "\n".join(saved_def)]
def get_config_file_location(self, file): def get_config_file_location(self, file):
logging.info(f"Passed config file: {file}") # Passed config (-c) by default is ~/KlipperScreen.conf
if not path.exists(file): if path.exists(file):
file = os.path.join(klipperscreendir, self.configfile_name) return file
if not path.exists(file):
file = self.configfile_name.lower()
if not path.exists(file):
klipper_config = os.path.join(os.path.expanduser("~/"), "klipper_config")
file = os.path.join(klipper_config, self.configfile_name)
if not path.exists(file):
file = os.path.join(klipper_config, self.configfile_name.lower())
if not path.exists(file):
file = self.default_config_path
logging.info(f"Found configuration file at: {file}") file = os.path.join(klipperscreendir, self.configfile_name)
return file if path.exists(file):
return file
file = os.path.join(klipperscreendir, self.configfile_name.lower())
if path.exists(file):
return file
klipper_config = os.path.join(os.path.expanduser("~/"), "printer_data", "config")
file = os.path.join(klipper_config, self.configfile_name)
if path.exists(file):
return file
file = os.path.join(klipper_config, self.configfile_name.lower())
if path.exists(file):
return file
# OLD config folder
klipper_config = os.path.join(os.path.expanduser("~/"), "klipper_config")
file = os.path.join(klipper_config, self.configfile_name)
if path.exists(file):
return file
file = os.path.join(klipper_config, self.configfile_name.lower())
if path.exists(file):
return file
# fallback
return self.default_config_path
def get_config(self): def get_config(self):
return self.config return self.config
@@ -302,9 +424,7 @@ class KlipperScreenConfig:
def get_menu_name(self, menu="__main", subsection=""): def get_menu_name(self, menu="__main", subsection=""):
name = f"menu {menu} {subsection}" if subsection != "" else f"menu {menu}" name = f"menu {menu} {subsection}" if subsection != "" else f"menu {menu}"
if name not in self.config: return False if name not in self.config else self.config[name].get('name')
return False
return self.config[name].get('name')
def get_preheat_options(self): def get_preheat_options(self):
index = "preheat " index = "preheat "
@@ -315,16 +435,13 @@ class KlipperScreenConfig:
if name not in self.config: if name not in self.config:
return False return False
cfg = self.config[name] cfg = self.config[name]
return {opt: cfg.get("gcode", None) if opt == "gcode" else cfg.getint(opt, None) for opt in cfg} return {opt: cfg.get("gcode", None) if opt == "gcode" else cfg.getfloat(opt, None) for opt in cfg}
def get_printer_config(self, name): def get_printer_config(self, name):
if not name.startswith("printer "): if not name.startswith("printer "):
name = f"printer {name}" name = f"printer {name}"
if name not in self.config: return None if name not in self.config else self.config[name]
return None
return self.config[name]
def get_printer_power_name(self): def get_printer_power_name(self):
return self.config['settings'].get("printer_power_name", "printer") return self.config['settings'].get("printer_power_name", "printer")
@@ -345,17 +462,18 @@ class KlipperScreenConfig:
save_config.add_section(opt['section']) save_config.add_section(opt['section'])
save_config.set(opt['section'], name, str(curval)) save_config.set(opt['section'], name, str(curval))
macro_sections = [i for i in self.config.sections() if i.startswith("displayed_macros")] extra_sections = [i for i in self.config.sections() if i.startswith("displayed_macros")]
for macro_sec in macro_sections: extra_sections.extend([i for i in self.config.sections() if i.startswith("graph")])
for item in self.config.options(macro_sec): for section in extra_sections:
value = self.config[macro_sec].getboolean(item, fallback=True) for item in self.config.options(section):
value = self.config[section].getboolean(item, fallback=True)
if value is False or (self.defined_config is not None and if value is False or (self.defined_config is not None and
macro_sec in self.defined_config.sections() and section in self.defined_config.sections() and
self.defined_config[macro_sec].getboolean(item, fallback=True) is False and self.defined_config[section].getboolean(item, fallback=True) is False and
self.defined_config[macro_sec].getboolean(item, fallback=True) != value): self.defined_config[section].getboolean(item, fallback=True) != value):
if macro_sec not in save_config.sections(): if section not in save_config.sections():
save_config.add_section(macro_sec) save_config.add_section(section)
save_config.set(macro_sec, item, str(value)) save_config.set(section, item, str(value))
save_output = self._build_config_string(save_config).split("\n") save_output = self._build_config_string(save_config).split("\n")
for i in range(len(save_output)): for i in range(len(save_output)):
@@ -385,8 +503,8 @@ class KlipperScreenConfig:
try: try:
with open(filepath, 'w') as file: with open(filepath, 'w') as file:
file.write(contents) file.write(contents)
except Exception: except Exception as e:
logging.error(f"Error writing configuration file in {filepath}") logging.error(f"Error writing configuration file in {filepath}:\n{e}")
def set(self, section, name, value): def set(self, section, name, value):
self.config.set(section, name, value) self.config.set(section, name, value)
@@ -426,8 +544,8 @@ class KlipperScreenConfig:
try: try:
item["params"] = json.loads(cfg.get("params", "{}")) item["params"] = json.loads(cfg.get("params", "{}"))
except Exception: except Exception as e:
logging.debug(f"Unable to parse parameters for [{name}]") logging.exception(f"Unable to parse parameters for [{name}]:\n{e}")
item["params"] = {} item["params"] = {}
return {name[(len(menu) + 6):]: item} return {name[(len(menu) + 6):]: item}
+1 -1
View File
@@ -141,7 +141,7 @@ enable: {{ printer.bed_screws or printer.screws_tilt_adjust}}
[menu __main config bedmesh] [menu __main config bedmesh]
name: {{ gettext('Bed Mesh') }} name: {{ gettext('Bed Mesh') }}
icon: bed-level icon: bed-mesh
panel: bed_mesh panel: bed_mesh
enable: {{ printer.bed_mesh is defined }} enable: {{ printer.bed_mesh is defined }}
+5 -12
View File
@@ -24,12 +24,7 @@ class KlippyFiles:
logging.info(f"Gcodes path: {self.gcodes_path}") logging.info(f"Gcodes path: {self.gcodes_path}")
def reset(self): def reset(self):
self.run_callbacks() self.__init__(self._screen)
self.callbacks = None
self.files = None
self.filelist = None
self.gcodes_path = None
self._screen = None
def _callback(self, result, method, params): def _callback(self, result, method, params):
if method == "server.files.list": if method == "server.files.list":
@@ -112,8 +107,8 @@ class KlippyFiles:
def add_file_callback(self, callback): def add_file_callback(self, callback):
try: try:
self.callbacks.append(callback) self.callbacks.append(callback)
except Exception: except Exception as e:
logging.debug(f"Callback not found: {callback}") logging.debug(f"Callback not found: {callback}:\n{e}")
def process_update(self, data): def process_update(self, data):
if 'item' in data and data['item']['root'] != 'gcodes': if 'item' in data and data['item']['root'] != 'gcodes':
@@ -140,10 +135,8 @@ class KlippyFiles:
return filename in self.filelist return filename in self.filelist
def file_metadata_exists(self, filename): def file_metadata_exists(self, filename):
if not self.file_exists(filename): if self.file_exists(filename):
return False return "slicer" in self.files[filename]
if "slicer" in self.files[filename]:
return True
return False return False
def get_thumbnail_location(self, filename, small=False): def get_thumbnail_location(self, filename, small=False):
-3
View File
@@ -17,7 +17,6 @@ try:
ctypes.cdll.LoadLibrary('libXext.so.6') ctypes.cdll.LoadLibrary('libXext.so.6')
libXext = ctypes.CDLL('libXext.so.6') libXext = ctypes.CDLL('libXext.so.6')
class DPMS_State: class DPMS_State:
Fail = -1 Fail = -1
On = 0 On = 0
@@ -25,7 +24,6 @@ try:
Suspend = 2 Suspend = 2
Off = 3 Off = 3
def get_DPMS_state(display_name_in_byte_string=b':0'): def get_DPMS_state(display_name_in_byte_string=b':0'):
state = DPMS_State.Fail state = DPMS_State.Fail
if not isinstance(display_name_in_byte_string, bytes): if not isinstance(display_name_in_byte_string, bytes):
@@ -48,7 +46,6 @@ try:
libXext.XCloseDisplay(display) libXext.XCloseDisplay(display)
return state return state
dpms_loaded = True dpms_loaded = True
except Exception: except Exception:
pass pass
+51 -28
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -49,7 +49,7 @@ msgstr ""
msgid "Add Printer" msgid "Add Printer"
msgstr "" msgstr ""
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "" msgstr ""
msgid "Apply" msgid "Apply"
@@ -63,6 +63,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "" msgstr ""
@@ -84,6 +87,9 @@ msgstr ""
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr ""
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "" msgstr ""
@@ -93,7 +99,7 @@ msgstr ""
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "" msgstr ""
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "" msgstr ""
msgid "Calibrate" msgid "Calibrate"
@@ -105,6 +111,9 @@ msgstr ""
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "" msgstr ""
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr ""
@@ -129,12 +138,10 @@ msgstr ""
msgid "Channel" msgid "Channel"
msgstr "" msgstr ""
msgid "" msgid "Check ADXL Wiring"
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr "" msgstr ""
msgid "Check ADXL Wiring" msgid "Checking for updates, please wait..."
msgstr "" msgstr ""
msgid "Clear" msgid "Clear"
@@ -177,6 +184,9 @@ msgstr ""
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "" msgstr ""
@@ -202,6 +212,9 @@ msgstr ""
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "" msgstr ""
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "" msgstr ""
@@ -244,9 +257,7 @@ msgstr ""
msgid "Finish" msgid "Finish"
msgstr "" msgstr ""
msgid "" msgid "Firmware Restart"
"Firmware\n"
"Restart"
msgstr "" msgstr ""
msgid "Flow:" msgid "Flow:"
@@ -258,9 +269,7 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "" msgstr ""
msgid "" msgid "Full Update"
"Full\n"
"Update"
msgstr "" msgstr ""
msgid "Go Back" msgid "Go Back"
@@ -302,6 +311,9 @@ msgstr ""
msgid "Homing" msgid "Homing"
msgstr "" msgstr ""
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "" msgstr ""
@@ -335,9 +347,7 @@ msgstr ""
msgid "Invert Z" msgid "Invert Z"
msgstr "" msgstr ""
msgid "" msgid "Klipper Restart"
"Klipper\n"
"Restart"
msgstr "" msgstr ""
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
@@ -433,6 +443,11 @@ msgstr ""
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "" msgstr ""
@@ -490,18 +505,21 @@ msgstr ""
msgid "Print Time" msgid "Print Time"
msgstr "" msgstr ""
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "" msgstr ""
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "" msgstr ""
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr ""
msgid "Profile Name:" msgid "Profile Name:"
msgstr "" msgstr ""
@@ -520,6 +538,9 @@ msgstr ""
msgid "Reference" msgid "Reference"
msgstr "" msgstr ""
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "" msgstr ""
@@ -592,6 +613,12 @@ msgstr ""
msgid "Show" msgid "Show"
msgstr "" msgstr ""
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "" msgstr ""
@@ -607,9 +634,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "" msgstr ""
msgid "Sort by: "
msgstr ""
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr ""
@@ -643,14 +667,10 @@ msgstr ""
msgid "System" msgid "System"
msgstr "" msgstr ""
msgid "" msgid "System Restart"
"System\n"
"Restart"
msgstr "" msgstr ""
msgid "" msgid "System Shutdown"
"System\n"
"Shutdown"
msgstr "" msgstr ""
msgid "Temp (°C)" msgid "Temp (°C)"
@@ -669,6 +689,9 @@ msgstr ""
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "" msgstr ""
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "" msgstr ""
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: SRBJ\n" "Last-Translator: SRBJ\n"
"Language-Team: \n" "Language-Team: \n"
@@ -44,8 +44,8 @@ msgstr "Muligheder"
msgid "Add Printer" msgid "Add Printer"
msgstr "Tilføj printer" msgstr "Tilføj printer"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Tilføj \"bed-mesh\" profil" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -58,6 +58,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Er du sikker på, at du vil køre nødstop?" msgstr "Er du sikker på, at du vil køre nødstop?"
@@ -79,6 +82,9 @@ msgstr "Auto"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Automatisk kalibrering" msgstr "Automatisk kalibrering"
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scroll" msgstr "Auto-scroll"
@@ -88,8 +94,8 @@ msgstr "Bed-Level"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Bed-mesh" msgstr "Bed-mesh"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch fundet anvendt offset" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Kalibrér" msgstr "Kalibrér"
@@ -100,6 +106,9 @@ msgstr "Kalibreret"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibreret, gem konfiguration for at gøre den permanent" msgstr "Kalibreret, gem konfiguration for at gøre den permanent"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Kalibrerer..." msgstr "Kalibrerer..."
@@ -124,16 +133,12 @@ msgstr "Kan ikke oprette forbindelse til Moonraker"
msgid "Channel" msgid "Channel"
msgstr "Kanal" msgstr "Kanal"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Tjek /tmp/KlipperScreen.log for mere information.\n"
"Indsend venligst et \"Issue\" på GitHub for hjælp."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -174,6 +179,9 @@ msgstr "Formindsk"
msgid "Delete" msgid "Delete"
msgstr "Slet" msgstr "Slet"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Fravælg" msgstr "Fravælg"
@@ -199,6 +207,9 @@ msgstr "Fejl"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Metode til beregning af tid" msgstr "Metode til beregning af tid"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Ekstrudér" msgstr "Ekstrudér"
@@ -241,12 +252,8 @@ msgstr "Finjustering"
msgid "Finish" msgid "Finish"
msgstr "Færdig" msgstr "Færdig"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware Genstart"
"Restart"
msgstr ""
"Firmware\n"
"Genstart"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr ""
@@ -257,12 +264,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "Skriftstørrelse" msgstr "Skriftstørrelse"
msgid "" msgid "Full Update"
"Full\n" msgstr "Fuld Opdatering"
"Update"
msgstr ""
"Fuld\n"
"Opdatering"
msgid "Go Back" msgid "Go Back"
msgstr "Gå tilbage" msgstr "Gå tilbage"
@@ -303,6 +306,9 @@ msgstr "Home Z"
msgid "Homing" msgid "Homing"
msgstr "Homing" msgstr "Homing"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Værtsnavn" msgstr "Værtsnavn"
@@ -336,12 +342,8 @@ msgstr "Invertér Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Invertér Z" msgstr "Invertér Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Genstart"
"Restart"
msgstr ""
"Klipper\n"
"Genstart"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper er frokoblet" msgstr "Klipper er frokoblet"
@@ -436,6 +438,11 @@ msgstr "Netværk"
msgid "New" msgid "New"
msgstr "Ny" msgstr "Ny"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Intet valgt" msgstr "Intet valgt"
@@ -493,18 +500,21 @@ msgstr "Print styring"
msgid "Print Time" msgid "Print Time"
msgstr "Printtid" msgstr "Printtid"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Printer forbindelser" msgstr "Printer forbindelser"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Printer" msgstr "Printer"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr "Probe fundet anvendt offset"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Profilnavn:" msgstr "Profilnavn:"
@@ -523,6 +533,9 @@ msgstr "Nulstil"
msgid "Reference" msgid "Reference"
msgstr "Reference" msgstr "Reference"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Genstart" msgstr "Genstart"
@@ -595,6 +608,12 @@ msgstr "Indstillinger"
msgid "Show" msgid "Show"
msgstr "At vise" msgstr "At vise"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Størrelse" msgstr "Størrelse"
@@ -610,9 +629,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Lille" msgstr "Lille"
msgid "Sort by: "
msgstr "Sortér efter: "
msgid "Sort:" msgid "Sort:"
msgstr "Sortere: " msgstr "Sortere: "
@@ -646,19 +662,11 @@ msgstr "Opdaterer"
msgid "System" msgid "System"
msgstr "System" msgstr "System"
msgid "" msgid "System Restart"
"System\n" msgstr "Genstart system"
"Restart"
msgstr ""
"Genstart\n"
"system"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Luk system ned"
"Shutdown"
msgstr ""
"Luk\n"
"system ned"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Temp (°C)" msgstr "Temp (°C)"
@@ -676,6 +684,9 @@ msgstr "Total:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Ukendt varmelegeme" msgstr "Ukendt varmelegeme"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "Tilbagetræk" msgstr "Tilbagetræk"
@@ -764,6 +775,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "Sortér efter: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch fundet anvendt offset"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Tjek /tmp/KlipperScreen.log for mere information.\n"
#~ "Indsend venligst et \"Issue\" på GitHub for hjælp."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe fundet anvendt offset"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Ekstruder" #~ msgstr "Ekstruder"
@@ -779,9 +806,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Ukendt varmelegeme "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Afbryd forbindelse" #~ msgstr "Afbryd forbindelse"
@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-03-31 10:43-0300\n" "PO-Revision-Date: 2022-03-31 10:43-0300\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -49,8 +49,8 @@ msgstr "Aktionen"
msgid "Add Printer" msgid "Add Printer"
msgstr "Drucker hinzufügen" msgstr "Drucker hinzufügen"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Mesh-Level Profil hinzufügen" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -63,6 +63,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Sind Sie sicher, dass Sie Not-Aus ausführen möchten?" msgstr "Sind Sie sicher, dass Sie Not-Aus ausführen möchten?"
@@ -84,6 +87,9 @@ msgstr "Auto"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Automatisch kalibrieren" msgstr "Automatisch kalibrieren"
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scroll" msgstr "Auto-scroll"
@@ -93,8 +99,8 @@ msgstr "Druckbett leveln"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Druckbett Mesh-Level" msgstr "Druckbett Mesh-Level"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch hat angewendeten Offset gefunden" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Höheneinstellung" msgstr "Höheneinstellung"
@@ -105,6 +111,9 @@ msgstr "Kalibriert"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibriert, Konfiguration speichern, um sie dauerhaft zu machen" msgstr "Kalibriert, Konfiguration speichern, um sie dauerhaft zu machen"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Kalibrieren..." msgstr "Kalibrieren..."
@@ -129,16 +138,12 @@ msgstr "Es kann keine Verbindung zu Moonraker hergestellt werden"
msgid "Channel" msgid "Channel"
msgstr "Kanal" msgstr "Kanal"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Prüfe /tmp/KlipperScreen.log für weitere Informationen.\n"
"Bitte eröffne einen Fehlerbericht auf https://git.io/JLNn4 für Hilfe."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -179,6 +184,9 @@ msgstr "Verringern"
msgid "Delete" msgid "Delete"
msgstr "Löschen" msgstr "Löschen"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Abwählen" msgstr "Abwählen"
@@ -204,6 +212,9 @@ msgstr "Fehler"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Druckzeit" msgstr "Druckzeit"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Filament fördern" msgstr "Filament fördern"
@@ -246,12 +257,8 @@ msgstr "Feintuning"
msgid "Finish" msgid "Finish"
msgstr "Ziel" msgstr "Ziel"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware Neu starten"
"Restart"
msgstr ""
"Firmware\n"
"Neu starten"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr ""
@@ -262,12 +269,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "Schriftgröße" msgstr "Schriftgröße"
msgid "" msgid "Full Update"
"Full\n" msgstr "Voll Aktualisieren"
"Update"
msgstr ""
"Voll\n"
"Aktualisieren"
msgid "Go Back" msgid "Go Back"
msgstr "Zurück" msgstr "Zurück"
@@ -291,33 +294,26 @@ msgid "Home"
msgstr "Grundposition" msgstr "Grundposition"
msgid "Home All" msgid "Home All"
msgstr "" msgstr "Alle Achsen zurücksetzen"
"Alle Achsen\n"
"zurücksetzen"
msgid "Home X" msgid "Home X"
msgstr "" msgstr "Achse X zurücksetzen"
"Achse X\n"
"zurücksetzen"
msgid "Home XY" msgid "Home XY"
msgstr "" msgstr "Achse XY zurücksetzen"
"Achse XY\n"
"zurücksetzen"
msgid "Home Y" msgid "Home Y"
msgstr "" msgstr "Achse Y zurücksetzen"
"Achse Y\n"
"zurücksetzen"
msgid "Home Z" msgid "Home Z"
msgstr "" msgstr "Achse Z zurücksetzen"
"Achse Z\n"
"zurücksetzen"
msgid "Homing" msgid "Homing"
msgstr "Grundposition" msgstr "Grundposition"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Hostname" msgstr "Hostname"
@@ -351,12 +347,8 @@ msgstr "Achse Y invertieren"
msgid "Invert Z" msgid "Invert Z"
msgstr "Achse Z invertieren" msgstr "Achse Z invertieren"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Neu starten"
"Restart"
msgstr ""
"Klipper\n"
"Neu starten"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper nicht verbunden" msgstr "Klipper nicht verbunden"
@@ -451,6 +443,11 @@ msgstr "Netzwerk"
msgid "New" msgid "New"
msgstr "Neu" msgstr "Neu"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Nichts ausgewählt" msgstr "Nichts ausgewählt"
@@ -508,18 +505,21 @@ msgstr "Druck Steuerung"
msgid "Print Time" msgid "Print Time"
msgstr "Druckzeit" msgstr "Druckzeit"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Drucker Verbindungen" msgstr "Drucker Verbindungen"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Drucken" msgstr "Drucken"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr "Probe hat angewendeten Offset gefunden"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Profilname:" msgstr "Profilname:"
@@ -538,6 +538,9 @@ msgstr "Rücksetzen Soft"
msgid "Reference" msgid "Reference"
msgstr "Referenz" msgstr "Referenz"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Neustart" msgstr "Neustart"
@@ -610,6 +613,12 @@ msgstr "Einstellungen"
msgid "Show" msgid "Show"
msgstr "Zeigen" msgstr "Zeigen"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Größe" msgstr "Größe"
@@ -625,9 +634,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Klein" msgstr "Klein"
msgid "Sort by: "
msgstr "Sortierung: "
msgid "Sort:" msgid "Sort:"
msgstr "Sortieren: " msgstr "Sortieren: "
@@ -661,19 +667,11 @@ msgstr "Starte Update für"
msgid "System" msgid "System"
msgstr "System" msgstr "System"
msgid "" msgid "System Restart"
"System\n" msgstr "Drucker Neustarten"
"Restart"
msgstr ""
"Drucker\n"
"Neustarten"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Drucker Ausschalten"
"Shutdown"
msgstr ""
"Drucker\n"
"Ausschalten"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Temp (°C)" msgstr "Temp (°C)"
@@ -691,6 +689,9 @@ msgstr "Gesamt:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Unbekannte Heizung" msgstr "Unbekannte Heizung"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "Entladen" msgstr "Entladen"
@@ -781,6 +782,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "Sortierung: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch hat angewendeten Offset gefunden"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Prüfe /tmp/KlipperScreen.log für weitere Informationen.\n"
#~ "Bitte eröffne einen Fehlerbericht auf https://git.io/JLNn4 für Hilfe."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe hat angewendeten Offset gefunden"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Druckkopf" #~ msgstr "Druckkopf"
@@ -796,9 +813,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Unbekannte Heizung "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Nicht verbunden" #~ msgstr "Nicht verbunden"
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -44,7 +44,7 @@ msgstr ""
msgid "Add Printer" msgid "Add Printer"
msgstr "" msgstr ""
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "" msgstr ""
msgid "Apply" msgid "Apply"
@@ -58,6 +58,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "" msgstr ""
@@ -79,6 +82,9 @@ msgstr ""
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr ""
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "" msgstr ""
@@ -88,7 +94,7 @@ msgstr ""
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "" msgstr ""
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "" msgstr ""
msgid "Calibrate" msgid "Calibrate"
@@ -100,6 +106,9 @@ msgstr ""
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "" msgstr ""
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr ""
@@ -124,12 +133,10 @@ msgstr ""
msgid "Channel" msgid "Channel"
msgstr "" msgstr ""
msgid "" msgid "Check ADXL Wiring"
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr "" msgstr ""
msgid "Check ADXL Wiring" msgid "Checking for updates, please wait..."
msgstr "" msgstr ""
msgid "Clear" msgid "Clear"
@@ -172,6 +179,9 @@ msgstr ""
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "" msgstr ""
@@ -197,6 +207,9 @@ msgstr ""
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "" msgstr ""
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "" msgstr ""
@@ -239,9 +252,7 @@ msgstr ""
msgid "Finish" msgid "Finish"
msgstr "" msgstr ""
msgid "" msgid "Firmware Restart"
"Firmware\n"
"Restart"
msgstr "" msgstr ""
msgid "Flow:" msgid "Flow:"
@@ -253,9 +264,7 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "" msgstr ""
msgid "" msgid "Full Update"
"Full\n"
"Update"
msgstr "" msgstr ""
msgid "Go Back" msgid "Go Back"
@@ -297,6 +306,9 @@ msgstr ""
msgid "Homing" msgid "Homing"
msgstr "" msgstr ""
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "" msgstr ""
@@ -330,9 +342,7 @@ msgstr ""
msgid "Invert Z" msgid "Invert Z"
msgstr "" msgstr ""
msgid "" msgid "Klipper Restart"
"Klipper\n"
"Restart"
msgstr "" msgstr ""
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
@@ -428,6 +438,11 @@ msgstr ""
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "" msgstr ""
@@ -485,18 +500,21 @@ msgstr ""
msgid "Print Time" msgid "Print Time"
msgstr "" msgstr ""
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "" msgstr ""
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "" msgstr ""
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr ""
msgid "Profile Name:" msgid "Profile Name:"
msgstr "" msgstr ""
@@ -515,6 +533,9 @@ msgstr ""
msgid "Reference" msgid "Reference"
msgstr "" msgstr ""
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "" msgstr ""
@@ -587,6 +608,12 @@ msgstr ""
msgid "Show" msgid "Show"
msgstr "" msgstr ""
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "" msgstr ""
@@ -602,9 +629,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "" msgstr ""
msgid "Sort by: "
msgstr ""
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr ""
@@ -638,14 +662,10 @@ msgstr ""
msgid "System" msgid "System"
msgstr "" msgstr ""
msgid "" msgid "System Restart"
"System\n"
"Restart"
msgstr "" msgstr ""
msgid "" msgid "System Shutdown"
"System\n"
"Shutdown"
msgstr "" msgstr ""
msgid "Temp (°C)" msgid "Temp (°C)"
@@ -664,6 +684,9 @@ msgstr ""
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "" msgstr ""
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "" msgstr ""
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-06-02 13:54-0300\n" "PO-Revision-Date: 2022-10-27 23:24-0300\n"
"Last-Translator: alfrix\n" "Last-Translator: alfrix\n"
"Language-Team: \n" "Language-Team: \n"
"Language: es\n" "Language: es\n"
@@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n" "X-Generator: Poedit 3.1.1\n"
#, python-format #, python-format
msgid "%s will be updated to version" msgid "%s will be updated to version"
@@ -49,8 +49,8 @@ msgstr "Acciones"
msgid "Add Printer" msgid "Add Printer"
msgstr "Agregar impresora" msgstr "Agregar impresora"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Agregar pefil de malla de cama" msgstr "Agregar perfil"
msgid "Apply" msgid "Apply"
msgstr "Aplicar" msgstr "Aplicar"
@@ -63,20 +63,23 @@ msgstr "Aplicar %.2f desfase al final de carrera?"
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "Aplicar %s%.2f desfase al sensor?" msgstr "Aplicar %s%.2f desfase al sensor?"
msgid "Are you sure do you want to exclude the object?"
msgstr "¿Está seguro de excluir este objeto?"
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "¿Parada de emergencia?" msgstr "¿Parada de emergencia?"
msgid "Are you sure you wish to cancel this print?" msgid "Are you sure you wish to cancel this print?"
msgstr "Está seguro que desea cancelar esta impresión?" msgstr "¿Está seguro que desea cancelar esta impresión?"
msgid "Are you sure you wish to disable motors?" msgid "Are you sure you wish to disable motors?"
msgstr "¿Está seguro que desea desactivar los motores?" msgstr "¿Está seguro que desea desactivar los motores?"
msgid "Are you sure you wish to reboot the system?" msgid "Are you sure you wish to reboot the system?"
msgstr "Está seguro que desea reiniciar el sistema?" msgstr "¿Está seguro que desea reiniciar el sistema?"
msgid "Are you sure you wish to shutdown the system?" msgid "Are you sure you wish to shutdown the system?"
msgstr "Está seguro que desea apagar el sistema?" msgstr "¿Está seguro que desea apagar el sistema?"
msgid "Auto" msgid "Auto"
msgstr "Auto" msgstr "Auto"
@@ -84,6 +87,9 @@ msgstr "Auto"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Auto-Calibrar" msgstr "Auto-Calibrar"
msgid "Auto-close notifications"
msgstr "Auto-cerrar notificaciones"
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scroll" msgstr "Auto-scroll"
@@ -93,8 +99,8 @@ msgstr "Nivelar cama"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Malla de cama" msgstr "Malla de cama"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Encontrado Bltouch aplicado desfase" msgstr "Configuración de tornillos:"
msgid "Calibrate" msgid "Calibrate"
msgstr "Calibrar" msgstr "Calibrar"
@@ -105,6 +111,9 @@ msgstr "Calibrado"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Calibrado, guarde su configuración para hacerlo permanente" msgstr "Calibrado, guarde su configuración para hacerlo permanente"
msgid "Calibrating"
msgstr "Calibrando"
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Calibrando..." msgstr "Calibrando..."
@@ -129,16 +138,12 @@ msgstr "No se puede conectar a Moonraker"
msgid "Channel" msgid "Channel"
msgstr "Canal" msgstr "Canal"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Revise /tmp/KlipperScreen.log para mas información.\n"
"Por favor crear un 'issue' en GitHub para ser ayudado."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "Verificar cableado del ADXL" msgstr "Verificar cableado del ADXL"
msgid "Checking for updates, please wait..."
msgstr "Buscando actualizaciones, espere por favor..."
msgid "Clear" msgid "Clear"
msgstr "Limpiar" msgstr "Limpiar"
@@ -179,6 +184,9 @@ msgstr "Disminuir"
msgid "Delete" msgid "Delete"
msgstr "Borrar" msgstr "Borrar"
msgid "Delete File?"
msgstr "¿Borrar archivo?"
msgid "Deselect" msgid "Deselect"
msgstr "Deseleccionar" msgstr "Deseleccionar"
@@ -204,6 +212,9 @@ msgstr "Error"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Método para estimar tiempo" msgstr "Método para estimar tiempo"
msgid "Exclude Object"
msgstr "Excluir Objeto"
msgid "Extrude" msgid "Extrude"
msgstr "Extruir" msgstr "Extruir"
@@ -246,12 +257,8 @@ msgstr "Ajuste Fino"
msgid "Finish" msgid "Finish"
msgstr "Cerrar" msgstr "Cerrar"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Reiniciar Firmware"
"Restart"
msgstr ""
"Reiniciar\n"
"Firmware"
msgid "Flow:" msgid "Flow:"
msgstr "Flujo:" msgstr "Flujo:"
@@ -262,12 +269,8 @@ msgstr "Flujo:"
msgid "Font Size" msgid "Font Size"
msgstr "Tamaño del texto" msgstr "Tamaño del texto"
msgid "" msgid "Full Update"
"Full\n" msgstr "Actualizar Todo"
"Update"
msgstr ""
"Actualizar\n"
"Todo"
msgid "Go Back" msgid "Go Back"
msgstr "Volver" msgstr "Volver"
@@ -308,6 +311,9 @@ msgstr "Origen Z"
msgid "Homing" msgid "Homing"
msgstr "Origen" msgstr "Origen"
msgid "Host"
msgstr "Anfitrión"
msgid "Hostname" msgid "Hostname"
msgstr "Hostname" msgstr "Hostname"
@@ -324,7 +330,7 @@ msgid "Initializing printer..."
msgstr "Iniciando Impresora..." msgstr "Iniciando Impresora..."
msgid "Input Shaper" msgid "Input Shaper"
msgstr "" msgstr "Corrección de Resonancias"
msgid "Interface" msgid "Interface"
msgstr "Interfaz" msgstr "Interfaz"
@@ -341,12 +347,8 @@ msgstr "Invertir Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Invertir Z" msgstr "Invertir Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Reiniciar Klipper"
"Restart"
msgstr ""
"Reiniciar\n"
"Klipper"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper se desconectó" msgstr "Klipper se desconectó"
@@ -394,10 +396,10 @@ msgid "Main Menu"
msgstr "Menú" msgstr "Menú"
msgid "Max" msgid "Max"
msgstr "" msgstr "Max"
msgid "Max Acceleration" msgid "Max Acceleration"
msgstr "Aceleración Max." msgstr "Aceleración Máxima"
msgid "Max Acceleration to Deceleration" msgid "Max Acceleration to Deceleration"
msgstr "Max. Aceleración a Desaceleración" msgstr "Max. Aceleración a Desaceleración"
@@ -441,6 +443,13 @@ msgstr "Red"
msgid "New" msgid "New"
msgstr "Nuevo" msgstr "Nuevo"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
"No soportado para la detección automatica, necesita configurarlo en "
"klipperscreen.conf"
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Nada seleccionado" msgstr "Nada seleccionado"
@@ -460,7 +469,7 @@ msgstr[0] "Paquete será actualizado"
msgstr[1] "Paquetes serán actualizados" msgstr[1] "Paquetes serán actualizados"
msgid "Part Fan" msgid "Part Fan"
msgstr "" msgstr "Ventilador de parte"
msgid "Password saved" msgid "Password saved"
msgstr "Contraseña guardada" msgstr "Contraseña guardada"
@@ -475,7 +484,7 @@ msgid "Perform a full upgrade?"
msgstr "¿Actualizar Todo?" msgstr "¿Actualizar Todo?"
msgid "Pins" msgid "Pins"
msgstr "" msgstr "Pines"
msgid "Please recompile and flash the micro-controller." msgid "Please recompile and flash the micro-controller."
msgstr "Por favor recompile y flashee el micro-controlador." msgstr "Por favor recompile y flashee el micro-controlador."
@@ -498,18 +507,21 @@ msgstr "Control de impresión"
msgid "Print Time" msgid "Print Time"
msgstr "Tiempo de impresión" msgstr "Tiempo de impresión"
msgid "Printer"
msgstr "Impresora"
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Conexiones a impresoras" msgstr "Conexiones a impresoras"
msgid "Printer Select"
msgstr "Seleccionar Impresora"
msgid "Printing" msgid "Printing"
msgstr "Imprimiendo" msgstr "Imprimiendo"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "Desfase del sensor" msgstr "Desfase del sensor"
msgid "Probe found applied offset"
msgstr "Encontrado Probe aplicado desfase"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Nombre del perfil:" msgstr "Nombre del perfil:"
@@ -528,6 +540,9 @@ msgstr "Recuperar Soft"
msgid "Reference" msgid "Reference"
msgstr "Referencia" msgstr "Referencia"
msgid "Refresh"
msgstr "Actualizar"
msgid "Restart" msgid "Restart"
msgstr "Reiniciar" msgstr "Reiniciar"
@@ -551,7 +566,7 @@ msgid "Retry #%s"
msgstr "Intento #%s" msgstr "Intento #%s"
msgid "Retrying" msgid "Retrying"
msgstr "" msgstr "Reintentando"
msgid "Save" msgid "Save"
msgstr "Guardar" msgstr "Guardar"
@@ -600,6 +615,12 @@ msgstr "Opciones"
msgid "Show" msgid "Show"
msgstr "Mostrar" msgstr "Mostrar"
msgid "Show Heater Power"
msgstr "Mostrar potencia del calentador"
msgid "Shutdown"
msgstr "Apagar"
msgid "Size" msgid "Size"
msgstr "Tamaño" msgstr "Tamaño"
@@ -615,9 +636,6 @@ msgstr "Slicer:"
msgid "Small" msgid "Small"
msgstr "Pequeño" msgstr "Pequeño"
msgid "Sort by: "
msgstr "Ordenar por: "
msgid "Sort:" msgid "Sort:"
msgstr "Ordenar:" msgstr "Ordenar:"
@@ -651,19 +669,11 @@ msgstr "Iniciando actualización de"
msgid "System" msgid "System"
msgstr "Sistema" msgstr "Sistema"
msgid "" msgid "System Restart"
"System\n" msgstr "Reiniciar Sistema"
"Restart"
msgstr ""
"Reiniciar\n"
"Sistema"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Apagar Sistema"
"Shutdown"
msgstr ""
"Apagar\n"
"Sistema"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Temp (°C)" msgstr "Temp (°C)"
@@ -681,6 +691,9 @@ msgstr "Total:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Calentador Desconocido" msgstr "Calentador Desconocido"
msgid "Unknown screw position"
msgstr "Posición de tornillo desconocida"
msgid "Unload" msgid "Unload"
msgstr "Descargar" msgstr "Descargar"
@@ -769,6 +782,25 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Machine"
#~ msgstr "Máquina"
#~ msgid "Sort by: "
#~ msgstr "Ordenar por: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Encontrado Bltouch aplicado desfase"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Revise /tmp/KlipperScreen.log para mas información.\n"
#~ "Por favor crear un 'issue' en GitHub para ser ayudado."
#~ msgid "Probe found applied offset"
#~ msgstr "Encontrado Probe aplicado desfase"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Herrmienta" #~ msgstr "Herrmienta"
@@ -784,9 +816,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Calentador Desconocido "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Desconectar" #~ msgstr "Desconectar"
@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-03-31 10:50-0300\n" "PO-Revision-Date: 2022-03-31 10:50-0300\n"
"Last-Translator: O. Robardet\n" "Last-Translator: O. Robardet\n"
"Language-Team: \n" "Language-Team: \n"
@@ -49,8 +49,8 @@ msgstr "Actions"
msgid "Add Printer" msgid "Add Printer"
msgstr "Ajouter une imprimante" msgstr "Ajouter une imprimante"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Ajouter un profil de maillage" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -63,6 +63,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Êtes-vous sûr de vouloir exécuter l'arrêt d'urgence?" msgstr "Êtes-vous sûr de vouloir exécuter l'arrêt d'urgence?"
@@ -84,6 +87,9 @@ msgstr "Auto"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Calibrage automatique" msgstr "Calibrage automatique"
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scroll" msgstr "Auto-scroll"
@@ -93,8 +99,8 @@ msgstr "Nivelage du plateau"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Maillage du plateau" msgstr "Maillage du plateau"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch a trouvé le décalage appliqué" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Étalonner" msgstr "Étalonner"
@@ -105,6 +111,9 @@ msgstr "Calibré"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Calibré, enregistrez la configuration pour la rendre permanente" msgstr "Calibré, enregistrez la configuration pour la rendre permanente"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Calibrage..." msgstr "Calibrage..."
@@ -129,16 +138,12 @@ msgstr "Impossible de se connecter à Moonraker"
msgid "Channel" msgid "Channel"
msgstr "Canal" msgstr "Canal"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Vérifiez /tmp/KlipperScreen.log pour plus d'informations.\n"
"SVP envoyez une requête sur GitHub pour obtenir de l'aide."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -179,6 +184,9 @@ msgstr "Diminuer"
msgid "Delete" msgid "Delete"
msgstr "Effacer" msgstr "Effacer"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Désélectionner" msgstr "Désélectionner"
@@ -204,6 +212,9 @@ msgstr "Erreur"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Méthode d'estimation du temps" msgstr "Méthode d'estimation du temps"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Extruder" msgstr "Extruder"
@@ -246,12 +257,8 @@ msgstr "Réglages fins"
msgid "Finish" msgid "Finish"
msgstr "Fin" msgstr "Fin"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Micrologiciel Redémarrage"
"Restart"
msgstr ""
"Micrologiciel\n"
"Redémarrage"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr ""
@@ -262,12 +269,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "Taille de police" msgstr "Taille de police"
msgid "" msgid "Full Update"
"Full\n" msgstr "Plein Mettre à jour"
"Update"
msgstr ""
"Plein\n"
"Mettre à jour"
msgid "Go Back" msgid "Go Back"
msgstr "Retourner" msgstr "Retourner"
@@ -308,6 +311,9 @@ msgstr "Origine Z"
msgid "Homing" msgid "Homing"
msgstr "Origine" msgstr "Origine"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Hostname" msgstr "Hostname"
@@ -341,12 +347,8 @@ msgstr "Inverser Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Inverser Z" msgstr "Inverser Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Redémarrage"
"Restart"
msgstr ""
"Klipper\n"
"Redémarrage"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper s'est déconnecté" msgstr "Klipper s'est déconnecté"
@@ -441,6 +443,11 @@ msgstr "Réseau"
msgid "New" msgid "New"
msgstr "Nouveau" msgstr "Nouveau"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Rien de sélectionné" msgstr "Rien de sélectionné"
@@ -498,18 +505,21 @@ msgstr "Contrôle de l'impression"
msgid "Print Time" msgid "Print Time"
msgstr "Temps d'impression" msgstr "Temps d'impression"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Connexions aux imprimantes" msgstr "Connexions aux imprimantes"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Impression" msgstr "Impression"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr "Probe a trouvé le décalage appliqué"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Nom de profil:" msgstr "Nom de profil:"
@@ -528,6 +538,9 @@ msgstr "Récupérer \"--soft\""
msgid "Reference" msgid "Reference"
msgstr "Référence" msgstr "Référence"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Redémarrer" msgstr "Redémarrer"
@@ -600,6 +613,12 @@ msgstr "Paramètres"
msgid "Show" msgid "Show"
msgstr "Montrer" msgstr "Montrer"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Dimension" msgstr "Dimension"
@@ -615,9 +634,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Petit" msgstr "Petit"
msgid "Sort by: "
msgstr "Trier par: "
msgid "Sort:" msgid "Sort:"
msgstr "Trier:" msgstr "Trier:"
@@ -651,16 +667,10 @@ msgstr "Démarrage de la mise à jour pour"
msgid "System" msgid "System"
msgstr "Système" msgstr "Système"
msgid "" msgid "System Restart"
"System\n" msgstr "Redémarrer le système"
"Restart"
msgstr ""
"Redémarrer\n"
"le système"
msgid "" msgid "System Shutdown"
"System\n"
"Shutdown"
msgstr "Arrêt du Système" msgstr "Arrêt du Système"
msgid "Temp (°C)" msgid "Temp (°C)"
@@ -679,6 +689,9 @@ msgstr "Total:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Chauffage inconnu" msgstr "Chauffage inconnu"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "Décharger" msgstr "Décharger"
@@ -767,6 +780,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "Trier par: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch a trouvé le décalage appliqué"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Vérifiez /tmp/KlipperScreen.log pour plus d'informations.\n"
#~ "SVP envoyez une requête sur GitHub pour obtenir de l'aide."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe a trouvé le décalage appliqué"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Outil" #~ msgstr "Outil"
@@ -782,9 +811,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Chauffage inconnu "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Déconnecter" #~ msgstr "Déconnecter"
@@ -7,9 +7,9 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Klipperscreen\n" "Project-Id-Version: Klipperscreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-03-31 10:54-0300\n" "PO-Revision-Date: 2022-03-31 10:54-0300\n"
"Last-Translator: Emanuel Sharvit <manu7irl@gmail.com>\n" "Last-Translator: Tal Rahav <talrhv1@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: he_IL\n" "Language: he_IL\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@@ -25,7 +25,7 @@ msgid "%s will be updated to version"
msgstr "%s יעודכן לגרסה" msgstr "%s יעודכן לגרסה"
msgid "(default)" msgid "(default)"
msgstr "(בְּרִירַת מֶחדָל)" msgstr "(ברירת מחדל)"
msgid "24 Hour Time" msgid "24 Hour Time"
msgstr "זמן 24 שעות" msgstr "זמן 24 שעות"
@@ -34,13 +34,13 @@ msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "FIRMWARE_RESTART עשוי לפתור את הבעיה." msgstr "FIRMWARE_RESTART עשוי לפתור את הבעיה."
msgid "ADXL Not Configured" msgid "ADXL Not Configured"
msgstr "" msgstr "ADXL אינו מוגדר"
msgid "Abort" msgid "Abort"
msgstr "בטל" msgstr "בטל"
msgid "Acceleration:" msgid "Acceleration:"
msgstr "" msgstr "האצה"
msgid "Accept" msgid "Accept"
msgstr "אשר" msgstr "אשר"
@@ -51,23 +51,25 @@ msgstr "פעולות"
msgid "Add Printer" msgid "Add Printer"
msgstr "הוסף מדפסת" msgstr "הוסף מדפסת"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "הוסף פרופיל רשת למיטה" msgstr "הוסף פרופיל"
msgid "Apply" msgid "Apply"
msgstr "" msgstr "החל"
#, python-format #, python-format
msgid "Apply %.2f offset to Endstop?" msgid "Apply %.2f offset to Endstop?"
msgstr "" msgstr "הוסף %.2f לתחנת קצה?"
#, python-format #, python-format
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "הוסף %.2f לפרוב (בודק)?"
msgid "Are you sure do you want to exclude the object?"
msgstr "" msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "" msgstr "האם אתה בטוח שאתה רוצה לבצע עצירת חירום?"
"האם אתה בטוח שברצונך להדפיסהאם אתה בטוח שברצונך להפעיל את עצירת החירום?"
msgid "Are you sure you wish to cancel this print?" msgid "Are you sure you wish to cancel this print?"
msgstr "האם אתה בטוח שברצונך לבטל את ההדפסה?" msgstr "האם אתה בטוח שברצונך לבטל את ההדפסה?"
@@ -79,13 +81,16 @@ msgid "Are you sure you wish to reboot the system?"
msgstr "האם אתה בטוח שברצונך לאתחל את המערכת?" msgstr "האם אתה בטוח שברצונך לאתחל את המערכת?"
msgid "Are you sure you wish to shutdown the system?" msgid "Are you sure you wish to shutdown the system?"
msgstr "האם אתה בטוח שברצונך לסגור את המערכת?" msgstr "האם אתה בטוח שברצונך לכבות את המערכת?"
msgid "Auto" msgid "Auto"
msgstr "אוטומטי" msgstr "אוטומטי"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr "כיול אוטומטי"
msgid "Auto-close notifications"
msgstr "סגירת התראות אוטומטית"
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "גלילה אוטומטית" msgstr "גלילה אוטומטית"
@@ -96,20 +101,23 @@ msgstr "פילוס מיטה"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "מיפוי מיטה" msgstr "מיפוי מיטה"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch נמצא היסט מוחל" msgstr "הגדרת בורג מיטה"
msgid "Calibrate" msgid "Calibrate"
msgstr "לְדַרֵג" msgstr "לכייל"
msgid "Calibrated" msgid "Calibrated"
msgstr "" msgstr "מכויל"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "מכויל, שמור את התצורה כדי שהיא תהיה קבועה" msgstr "מכויל, שמור את התצורה כדי שהיא תהיה קבועה"
msgid "Calibrating"
msgstr "מכייל"
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr "מכייל..."
msgid "Can't set above the maximum:" msgid "Can't set above the maximum:"
msgstr "לא ניתן להגדיר מעל המקסימום:" msgstr "לא ניתן להגדיר מעל המקסימום:"
@@ -130,26 +138,22 @@ msgid "Cannot connect to Moonraker"
msgstr "לא ניתן להתחבר ל-Moonraker" msgstr "לא ניתן להתחבר ל-Moonraker"
msgid "Channel" msgid "Channel"
msgstr "עָרוּץ" msgstr "ערוץ"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"בדוק KlipperScreen.log, בתיקית tmp ליותר פרטים.\n"
"אנא שלח דוח תקלה ב- GITHUB, לעזרה."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr "בדוק את החיווט של ה ADXL"
msgid "Checking for updates, please wait..."
msgstr "בודק עדכונים, אנא המתן"
msgid "Clear" msgid "Clear"
msgstr "" msgstr "נקה"
msgid "Close" msgid "Close"
msgstr "סגור" msgstr "סגור"
msgid "Complete" msgid "Complete"
msgstr "לְהַשְׁלִים" msgstr "הסתיים"
msgid "Configuration" msgid "Configuration"
msgstr "קונפיגורציה" msgstr "קונפיגורציה"
@@ -158,29 +162,32 @@ msgid "Confirm Emergency Stop"
msgstr "אשר עצירת חירום" msgstr "אשר עצירת חירום"
msgid "Connected" msgid "Connected"
msgstr "מְחוּבָּר" msgstr "מחובר"
#, python-format #, python-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "מתחבר ל- %s" msgstr "מתחבר ל- %s"
msgid "Console" msgid "Console"
msgstr "לְנַחֵם" msgstr "קונסול"
msgid "Continue" msgid "Continue"
msgstr "לְהַמשִׁיך" msgstr "המשך"
msgid "Cooldown" msgid "Cooldown"
msgstr "תירגע" msgstr "הפעל קירור"
msgid "Date" msgid "Date"
msgstr "תַאֲרִיך" msgstr "תאריך"
msgid "Decrease" msgid "Decrease"
msgstr "לְהַקְטִין" msgstr "הורד"
msgid "Delete" msgid "Delete"
msgstr "לִמְחוֹק" msgstr "מחק"
msgid "Delete File?"
msgstr "מחק קובץ"
msgid "Deselect" msgid "Deselect"
msgstr "בטל את הבחירה" msgstr "בטל את הבחירה"
@@ -202,13 +209,16 @@ msgid "Elapsed:"
msgstr "זמן שעבר:" msgstr "זמן שעבר:"
msgid "Error" msgid "Error"
msgstr "שְׁגִיאָה" msgstr "שגיאה"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "שיטת זמן משוערת" msgstr "שיטת זמן משוערת"
msgid "Exclude Object"
msgstr "ביטול אובייקט"
msgid "Extrude" msgid "Extrude"
msgstr "אקסטרוזיה" msgstr "הוצא חומר"
msgid "Extrusion +" msgid "Extrusion +"
msgstr "שיחול +" msgstr "שיחול +"
@@ -223,25 +233,25 @@ msgid "Fan"
msgstr "מאוורר" msgstr "מאוורר"
msgid "Filament Used" msgid "Filament Used"
msgstr "נימה בשימוש" msgstr "חומר ששומש"
msgid "Filament total:" msgid "Filament total:"
msgstr "" msgstr "חומר כולל"
msgid "Filament used:" msgid "Filament used:"
msgstr "" msgstr "חומר ששומש:"
msgid "Filament:" msgid "Filament:"
msgstr "" msgstr "חומר גלם"
msgid "File" msgid "File"
msgstr "קוֹבֶץ" msgstr "קובץ"
msgid "File:" msgid "File:"
msgstr "" msgstr ""
msgid "Finding ADXL" msgid "Finding ADXL"
msgstr "" msgstr "מחפש ADXL"
msgid "Fine Tuning" msgid "Fine Tuning"
msgstr "כוונון עדין" msgstr "כוונון עדין"
@@ -249,46 +259,38 @@ msgstr "כוונון עדין"
msgid "Finish" msgid "Finish"
msgstr "סיים" msgstr "סיים"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "אתחול קושחה"
"Restart"
msgstr ""
"קושחה\n"
"איתחול"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr "זרם"
msgid "Flowrate:" msgid "Flowrate:"
msgstr "" msgstr "קצב זרימה"
msgid "Font Size" msgid "Font Size"
msgstr "גודל טקסט" msgstr "גודל טקסט"
msgid "" msgid "Full Update"
"Full\n" msgstr "עדכון מלא"
"Update"
msgstr ""
"מלא\n"
"עדכון"
msgid "Go Back" msgid "Go Back"
msgstr "חזרה" msgstr "חזרה"
msgid "Height:" msgid "Height:"
msgstr "" msgstr "גובה"
msgid "Hidden" msgid "Hidden"
msgstr "מוּסתָר" msgstr "מוסתר"
msgid "Hide" msgid "Hide"
msgstr "להתחבא" msgstr "הסתר"
msgid "Hide sensors in Temp." msgid "Hide sensors in Temp."
msgstr "הסתר חיישנים בטמפ'." msgstr "הסתר חיישנים בטמפ'."
msgid "Hide temp." msgid "Hide temp."
msgstr "" msgstr "הסתר טמפרטורה"
msgid "Home" msgid "Home"
msgstr "איפוס" msgstr "איפוס"
@@ -311,11 +313,14 @@ msgstr "איפוס Z"
msgid "Homing" msgid "Homing"
msgstr "איפוס צירים" msgstr "איפוס צירים"
msgid "Host"
msgstr "שרת"
msgid "Hostname" msgid "Hostname"
msgstr "Hostname" msgstr "שם שרת"
msgid "Icon Theme" msgid "Icon Theme"
msgstr "נושא אייקון" msgstr "ערכת נושא"
msgid "Increase" msgid "Increase"
msgstr "הגדל" msgstr "הגדל"
@@ -327,10 +332,10 @@ msgid "Initializing printer..."
msgstr "מאתחל מדפסת..." msgstr "מאתחל מדפסת..."
msgid "Input Shaper" msgid "Input Shaper"
msgstr "" msgstr "מעצב גימור"
msgid "Interface" msgid "Interface"
msgstr "מִמְשָׁק" msgstr "ממשק"
msgid "Invalid" msgid "Invalid"
msgstr "לא חוקי" msgstr "לא חוקי"
@@ -344,12 +349,8 @@ msgstr "הפוך את Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "הפוך את Z" msgstr "הפוך את Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "אתחול קליפר"
"Restart"
msgstr ""
"קליפר\n"
"איתחול"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "קליפר התנתק" msgstr "קליפר התנתק"
@@ -358,10 +359,10 @@ msgid "Klipper has encountered an error."
msgstr "קילפר נתקל בבעיה." msgstr "קילפר נתקל בבעיה."
msgid "Klipper has shutdown" msgid "Klipper has shutdown"
msgstr "קליפר נכבה" msgstr "קליפר כבה"
msgid "Klipper is attempting to start" msgid "Klipper is attempting to start"
msgstr "קליפר מנסה לרוץ" msgstr "קליפר מנסה לעלות"
msgid "Klipper will reboot" msgid "Klipper will reboot"
msgstr "קליפר יבצע אתחול" msgstr "קליפר יבצע אתחול"
@@ -370,10 +371,10 @@ msgid "Language"
msgstr "שפה" msgstr "שפה"
msgid "Large" msgid "Large"
msgstr "גָדוֹל" msgstr "גדול"
msgid "Layer:" msgid "Layer:"
msgstr "" msgstr "שכבה"
msgid "Left:" msgid "Left:"
msgstr "זמן שנותר:" msgstr "זמן שנותר:"
@@ -382,7 +383,7 @@ msgid "Limits"
msgstr "גבולות" msgstr "גבולות"
msgid "Load" msgid "Load"
msgstr "לִטעוֹן" msgstr "טעינה"
msgid "Lower Nozzle" msgid "Lower Nozzle"
msgstr "הנמך דיזה" msgstr "הנמך דיזה"
@@ -397,10 +398,10 @@ msgid "Main Menu"
msgstr "תפריט ראשי" msgstr "תפריט ראשי"
msgid "Max" msgid "Max"
msgstr "" msgstr "מקסימום"
msgid "Max Acceleration" msgid "Max Acceleration"
msgstr "" msgstr "מקסימום תאוצה"
msgid "Max Acceleration to Deceleration" msgid "Max Acceleration to Deceleration"
msgstr "האצה מרבית להאטה" msgstr "האצה מרבית להאטה"
@@ -409,19 +410,19 @@ msgid "Max Velocity"
msgstr "מהירות מרבית" msgstr "מהירות מרבית"
msgid "Measure Both" msgid "Measure Both"
msgstr "" msgstr "מדוד את שניהם"
msgid "Measure X" msgid "Measure X"
msgstr "" msgstr "מדוד X"
msgid "Measure Y" msgid "Measure Y"
msgstr "" msgstr "מדוד Y"
msgid "Medium" msgid "Medium"
msgstr "ממוצע" msgstr "בינוני"
msgid "Menu" msgid "Menu"
msgstr "תַפרִיט" msgstr "תפריט"
msgid "Modified" msgid "Modified"
msgstr "שונה" msgstr "שונה"
@@ -436,13 +437,18 @@ msgid "Move Distance (mm)"
msgstr "מרחק הזזה (מ''מ)" msgstr "מרחק הזזה (מ''מ)"
msgid "Name" msgid "Name"
msgstr "שֵׁם" msgstr "שם"
msgid "Network" msgid "Network"
msgstr "רשת" msgstr "רשת"
msgid "New" msgid "New"
msgstr "" msgstr "חדש"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr "איתור אוטומטי אינו נתמך, זה צריך להיות מוגדר ב klipperscreen"
msgid "Nothing selected" msgid "Nothing selected"
msgstr "שום דבר לא נבחר" msgstr "שום דבר לא נבחר"
@@ -465,7 +471,7 @@ msgstr[2] "חבילות יעודכנו"
msgstr[3] "חבילות יעודכנו" msgstr[3] "חבילות יעודכנו"
msgid "Part Fan" msgid "Part Fan"
msgstr "" msgstr "מאוורר חומר"
msgid "Password saved" msgid "Password saved"
msgstr "הסיסמה נשמרה" msgstr "הסיסמה נשמרה"
@@ -480,10 +486,10 @@ msgid "Perform a full upgrade?"
msgstr "לבצע שדרוג מלא?" msgstr "לבצע שדרוג מלא?"
msgid "Pins" msgid "Pins"
msgstr "" msgstr "פינים"
msgid "Please recompile and flash the micro-controller." msgid "Please recompile and flash the micro-controller."
msgstr "אנא הידור מחדש והבזק את המיקרו-בקר." msgstr "אנא הדר (קמפל) מחדש ובצע פלאש למיקרו-בקר."
msgid "Power" msgid "Power"
msgstr "הפעלה" msgstr "הפעלה"
@@ -492,10 +498,10 @@ msgid "Power On Printer"
msgstr "הפעל מדפסת" msgstr "הפעל מדפסת"
msgid "Pressure Advance:" msgid "Pressure Advance:"
msgstr "" msgstr "פרשר אדוונס"
msgid "Print" msgid "Print"
msgstr "הדפס" msgstr "הדפסה"
msgid "Print Control" msgid "Print Control"
msgstr "שליטה בהדפסה" msgstr "שליטה בהדפסה"
@@ -503,36 +509,42 @@ msgstr "שליטה בהדפסה"
msgid "Print Time" msgid "Print Time"
msgstr "זמן הדפסה" msgstr "זמן הדפסה"
msgid "Printer"
msgstr "מדפסת"
msgid "Printer Connections" msgid "Printer Connections"
msgstr "חיבורי מדפסת" msgstr "חיבורי מדפסת"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "מדפיס" msgstr "מדפיס"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr "פרוב אוף-סט"
msgid "Probe found applied offset"
msgstr "Probe נמצא היסט מוחל"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "שם פרופיל:" msgstr "שם פרופיל:"
msgid "Quad Gantry Level" msgid "Quad Gantry Level"
msgstr "רמת מרפסת גנטרי" msgstr "יישור הגנטרי הריבועי"
msgid "Raise Nozzle" msgid "Raise Nozzle"
msgstr "הגבה" msgstr "הגבה דיזה"
msgid "Recover Hard" msgid "Recover Hard"
msgstr "לְהַחלִים Hard" msgstr "שחזור מלא"
msgid "Recover Soft" msgid "Recover Soft"
msgstr "לְהַחלִים Soft" msgstr "שחזור עדין"
msgid "Reference" msgid "Reference"
msgstr "התייחסות" msgstr "התייחסות"
msgid "Refresh"
msgstr "רענון"
msgid "Restart" msgid "Restart"
msgstr "אתחל" msgstr "אתחל"
@@ -543,39 +555,39 @@ msgid "Retract"
msgstr "שיחול לאחור" msgstr "שיחול לאחור"
msgid "Retraction" msgid "Retraction"
msgstr "" msgstr "משיכה"
msgid "Retraction Length" msgid "Retraction Length"
msgstr "" msgstr "מרחק משיכה"
msgid "Retraction Speed" msgid "Retraction Speed"
msgstr "" msgstr "מהירות משיכה"
#, python-format #, python-format
msgid "Retry #%s" msgid "Retry #%s"
msgstr "נסה שוב #%s" msgstr "נסה שוב #%s"
msgid "Retrying" msgid "Retrying"
msgstr "" msgstr "מנסה שוב"
msgid "Save" msgid "Save"
msgstr "להציל" msgstr "לשמור"
msgid "Save Config" msgid "Save Config"
msgstr "שמור קונפיג" msgstr "שמור קונפיג"
msgid "Save Z" msgid "Save Z"
msgstr "" msgstr "שמור Z"
msgid "Save configuration?" msgid "Save configuration?"
msgstr "" msgstr "שמור קונפיגרציה?"
msgid "Saved" msgid "Saved"
msgstr "" msgstr "נשמר"
#, python-format #, python-format
msgid "Saved offset: %s" msgid "Saved offset: %s"
msgstr "" msgstr "שמור אופ-סט %s"
msgid "Screen DPMS" msgid "Screen DPMS"
msgstr "DPMS מסך" msgstr "DPMS מסך"
@@ -590,7 +602,7 @@ msgid "Select"
msgstr "בחר" msgstr "בחר"
msgid "Send" msgid "Send"
msgstr "לִשְׁלוֹחַ" msgstr "שליחה"
#, python-format #, python-format
msgid "Sending Power ON signal to: %s" msgid "Sending Power ON signal to: %s"
@@ -603,13 +615,19 @@ msgid "Settings"
msgstr "הגדרות" msgstr "הגדרות"
msgid "Show" msgid "Show"
msgstr "הופעה" msgstr "הצג"
msgid "Show Heater Power"
msgstr "הצג זרם מיטה"
msgid "Shutdown"
msgstr "כיבוי"
msgid "Size" msgid "Size"
msgstr "גודל" msgstr "גודל"
msgid "Slicer" msgid "Slicer"
msgstr "Slicer" msgstr "סלייסר"
msgid "Slicer Time correction (%)" msgid "Slicer Time correction (%)"
msgstr "תיקון זמן פריסה (%)" msgstr "תיקון זמן פריסה (%)"
@@ -618,13 +636,10 @@ msgid "Slicer:"
msgstr "" msgstr ""
msgid "Small" msgid "Small"
msgstr "קָטָן" msgstr "קטן"
msgid "Sort by: "
msgstr "מיין לפי: "
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr "מיין"
msgid "Speed (mm/s)" msgid "Speed (mm/s)"
msgstr "מהירות (מ\"מ/שניות)" msgstr "מהירות (מ\"מ/שניות)"
@@ -636,13 +651,13 @@ msgid "Speed -"
msgstr "מהירות -" msgstr "מהירות -"
msgid "Speed:" msgid "Speed:"
msgstr "" msgstr "מהירות"
msgid "Square Corner Velocity" msgid "Square Corner Velocity"
msgstr "מהירות פינה מרובעת" msgstr "מהירות פינה מרובעת"
msgid "Start" msgid "Start"
msgstr "הַתחָלָה" msgstr "התחל"
msgid "Starting WiFi Association" msgid "Starting WiFi Association"
msgstr "מתחיל איגוד WiFi" msgstr "מתחיל איגוד WiFi"
@@ -656,19 +671,11 @@ msgstr "מתחיל עדכון עבור"
msgid "System" msgid "System"
msgstr "מערכת" msgstr "מערכת"
msgid "" msgid "System Restart"
"System\n" msgstr "אתחול מערכת"
"Restart"
msgstr ""
"מערכת\n"
"אתחול"
msgid "" msgid "System Shutdown"
"System\n" msgstr "כיבוי מערכת"
"Shutdown"
msgstr ""
"מערכת\n"
"לכבות"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "טמפ' (°C)" msgstr "טמפ' (°C)"
@@ -686,8 +693,11 @@ msgstr "סך הכל:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "מחמם לא ידוע" msgstr "מחמם לא ידוע"
msgid "Unknown screw position"
msgstr "מיקום בורג לא ידוע"
msgid "Unload" msgid "Unload"
msgstr "לִפְרוֹק" msgstr "העלה"
msgid "Unretract Extra Length" msgid "Unretract Extra Length"
msgstr "" msgstr ""
@@ -702,7 +712,7 @@ msgid "Update"
msgstr "עדכון" msgstr "עדכון"
msgid "Updating" msgid "Updating"
msgstr "עִדכּוּן" msgstr "מעדכן"
msgid "Uploaded" msgid "Uploaded"
msgstr "הועלה" msgstr "הועלה"
@@ -720,7 +730,7 @@ msgid "XY Move Speed (mm/s)"
msgstr "מהירות תנועה XY (מ\"מ/שנייה)" msgstr "מהירות תנועה XY (מ\"מ/שנייה)"
msgid "XY Speed (mm/s)" msgid "XY Speed (mm/s)"
msgstr "" msgstr "מהירות XY (mm/s)"
msgid "Y+" msgid "Y+"
msgstr "Y+" msgstr "Y+"
@@ -735,13 +745,13 @@ msgid "Z Move Speed (mm/s)"
msgstr "מהירות תנועה Z (מ\"מ/שניות)" msgstr "מהירות תנועה Z (מ\"מ/שניות)"
msgid "Z Speed (mm/s)" msgid "Z Speed (mm/s)"
msgstr "" msgstr "מהירות Z (mm/s)"
msgid "Z Tilt" msgid "Z Tilt"
msgstr "הטיה Z" msgstr "הטיה Z"
msgid "Z offset:" msgid "Z offset:"
msgstr "" msgstr "Z אוף-סט"
msgid "Z+" msgid "Z+"
msgstr "Z+" msgstr "Z+"
@@ -778,6 +788,31 @@ msgstr "מ\"מ/ש"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Machine"
#~ msgstr "מכונה"
#~ msgid "Manual Calibration"
#~ msgstr "כיול ידני"
#~ msgid "Auto Calibration"
#~ msgstr "כיול אוטומטי"
#~ msgid "Sort by: "
#~ msgstr "מיין לפי: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch נמצא היסט מוחל"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "בדוק KlipperScreen.log, בתיקית tmp ליותר פרטים.\n"
#~ "אנא שלח דוח תקלה ב- GITHUB, לעזרה."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe נמצא היסט מוחל"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "כלי" #~ msgstr "כלי"
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: AntoszHUN\n" "Last-Translator: AntoszHUN\n"
"Language-Team: \n" "Language-Team: \n"
@@ -44,34 +44,37 @@ msgstr "Műveletek"
msgid "Add Printer" msgid "Add Printer"
msgstr "Nyomtató hozzáadása" msgstr "Nyomtató hozzáadása"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Ágyháló profil hozzáadása" msgstr "Profil hozzáadása"
msgid "Apply" msgid "Apply"
msgstr "Alkalmaz" msgstr "Alkalmaz"
#, python-format #, python-format
msgid "Apply %.2f offset to Endstop?" msgid "Apply %.2f offset to Endstop?"
msgstr "Alkalmaz %.2f eltolást az Endstopra?" msgstr "Alkalmazod %.2f eltolást az Endstopra?"
#, python-format #, python-format
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "Alkalmaz %s%.2f eltolást a szondára?" msgstr "Alkalmazod %s%.2f eltolást a szondára?"
msgid "Are you sure do you want to exclude the object?"
msgstr "Biztosan kizárod az objektumot?"
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Biztosan Vészleállítást végez?" msgstr "Biztosan Vészleállítást szeretnél?"
msgid "Are you sure you wish to cancel this print?" msgid "Are you sure you wish to cancel this print?"
msgstr "Biztosan megszakítja ezt a nyomtatást?" msgstr "Biztosan megszakítod ezt a nyomtatást?"
msgid "Are you sure you wish to disable motors?" msgid "Are you sure you wish to disable motors?"
msgstr "Biztos benne, hogy le szeretné tiltani a motorokat?" msgstr "Biztosan le szeretnéd tiltani a motorokat?"
msgid "Are you sure you wish to reboot the system?" msgid "Are you sure you wish to reboot the system?"
msgstr "Biztos benne, hogy újra akarja indítani a rendszert?" msgstr "Biztos, hogy újra akarod indítani a rendszert?"
msgid "Are you sure you wish to shutdown the system?" msgid "Are you sure you wish to shutdown the system?"
msgstr "Biztos, hogy le szeretné állítani a rendszert?" msgstr "Biztos, hogy le szeretnéd állítani a rendszert?"
msgid "Auto" msgid "Auto"
msgstr "Auto" msgstr "Auto"
@@ -79,6 +82,9 @@ msgstr "Auto"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Automatikus kalibrálás" msgstr "Automatikus kalibrálás"
msgid "Auto-close notifications"
msgstr "Értesítések automatikus bezárása"
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Automatikus görgetés" msgstr "Automatikus görgetés"
@@ -88,8 +94,8 @@ msgstr "Ágyszint"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Ágyháló" msgstr "Ágyháló"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "A Bltouch alkalmazott eltolást talált" msgstr "Az ágycsavar konfigurációja:"
msgid "Calibrate" msgid "Calibrate"
msgstr "Kalibrálás" msgstr "Kalibrálás"
@@ -98,7 +104,10 @@ msgid "Calibrated"
msgstr "Kalibrálva" msgstr "Kalibrálva"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibrálva! Mentse el a konfigurációt, hogy az állandó legyen" msgstr "Kalibrálva! Mentsd el a konfigurációt, hogy az állandó legyen"
msgid "Calibrating"
msgstr "Kalibrálás"
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Kalibrálás..." msgstr "Kalibrálás..."
@@ -124,18 +133,14 @@ msgstr "Nem lehet csatlakozni a Moonrakerhez"
msgid "Channel" msgid "Channel"
msgstr "Csatorna" msgstr "Csatorna"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Nézd a /tmp/KlipperScreen.log további információért.\n"
"Segítségért küldj be egy hibajegyet a GitHubon."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "Ellenőrizze az ADXL kábelezést" msgstr "Ellenőrizd az ADXL kábelezést"
msgid "Checking for updates, please wait..."
msgstr "Frissítések keresése, kérjük, várj..."
msgid "Clear" msgid "Clear"
msgstr "Egyértelmű" msgstr "Tiszta"
msgid "Close" msgid "Close"
msgstr "Bezárás" msgstr "Bezárás"
@@ -147,7 +152,7 @@ msgid "Configuration"
msgstr "Konfiguráció" msgstr "Konfiguráció"
msgid "Confirm Emergency Stop" msgid "Confirm Emergency Stop"
msgstr "Erősítse meg a vészleállítást" msgstr "Vészleállítás megerősítése"
msgid "Connected" msgid "Connected"
msgstr "Csatlakoztatva" msgstr "Csatlakoztatva"
@@ -174,6 +179,9 @@ msgstr "Csökkent"
msgid "Delete" msgid "Delete"
msgstr "Töröl" msgstr "Töröl"
msgid "Delete File?"
msgstr "Fájl törlése?"
msgid "Deselect" msgid "Deselect"
msgstr "Kijelölés törlése" msgstr "Kijelölés törlése"
@@ -188,7 +196,7 @@ msgstr "Távolság (mm)"
#, python-format #, python-format
msgid "Do you want to recover %s?" msgid "Do you want to recover %s?"
msgstr "Vissza akarja állítani %s-t?" msgstr "Vissza akarod állítani %s-t?"
msgid "Elapsed:" msgid "Elapsed:"
msgstr "Eltelt:" msgstr "Eltelt:"
@@ -199,6 +207,9 @@ msgstr "Hiba"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Becsült idő módszer" msgstr "Becsült idő módszer"
msgid "Exclude Object"
msgstr "Objektum kizárása"
msgid "Extrude" msgid "Extrude"
msgstr "Száladagolás" msgstr "Száladagolás"
@@ -241,12 +252,8 @@ msgstr "Finomhangolás"
msgid "Finish" msgid "Finish"
msgstr "Befejezve" msgstr "Befejezve"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware Újraindítása"
"Restart"
msgstr ""
"Firmware\n"
"Újraindítása"
msgid "Flow:" msgid "Flow:"
msgstr "Folyam:" msgstr "Folyam:"
@@ -257,12 +264,8 @@ msgstr "Áramlás:"
msgid "Font Size" msgid "Font Size"
msgstr "Betűméret" msgstr "Betűméret"
msgid "" msgid "Full Update"
"Full\n" msgstr "Teljes Frissítés"
"Update"
msgstr ""
"Teljes\n"
"Frissítés"
msgid "Go Back" msgid "Go Back"
msgstr "Visszalépés" msgstr "Visszalépés"
@@ -277,7 +280,7 @@ msgid "Hide"
msgstr "Elrejt" msgstr "Elrejt"
msgid "Hide sensors in Temp." msgid "Hide sensors in Temp."
msgstr "Szenzorok elrejtése Hőfok." msgstr "Hőfok szenzorok elrejtése."
msgid "Hide temp." msgid "Hide temp."
msgstr "Hőfok elrejtése" msgstr "Hőfok elrejtése"
@@ -303,6 +306,9 @@ msgstr "Z kezdőpont"
msgid "Homing" msgid "Homing"
msgstr "Kezdőpont" msgstr "Kezdőpont"
msgid "Host"
msgstr "Gazda"
msgid "Hostname" msgid "Hostname"
msgstr "Gazdanév" msgstr "Gazdanév"
@@ -336,12 +342,8 @@ msgstr "Fordított Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Fordított Z" msgstr "Fordított Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Újraindítása"
"Restart"
msgstr ""
"Klipper\n"
"Újraindítása"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper szétkapcsolt" msgstr "Klipper szétkapcsolt"
@@ -436,6 +438,13 @@ msgstr "Hálózat"
msgid "New" msgid "New"
msgstr "Új" msgstr "Új"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
"Az automatikus felismerés nem támogatott, a klipperscreenben kell beállítani."
"conf"
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Nincs kiválasztva" msgstr "Nincs kiválasztva"
@@ -455,7 +464,7 @@ msgstr[0] "A csomag frissítésre kerül"
msgstr[1] "Csomag frissül" msgstr[1] "Csomag frissül"
msgid "Part Fan" msgid "Part Fan"
msgstr "" msgstr "Tárgyhűtő"
msgid "Password saved" msgid "Password saved"
msgstr "Jelszó mentve" msgstr "Jelszó mentve"
@@ -467,13 +476,13 @@ msgid "Paused"
msgstr "Szüneteltetve" msgstr "Szüneteltetve"
msgid "Perform a full upgrade?" msgid "Perform a full upgrade?"
msgstr "Teljes frissítést hajt végre?" msgstr "Teljes frissítést hajtasz végre?"
msgid "Pins" msgid "Pins"
msgstr "" msgstr "Kimenetek"
msgid "Please recompile and flash the micro-controller." msgid "Please recompile and flash the micro-controller."
msgstr "Fordítsa újra és frissítse a mikrovezérlőt." msgstr "Fordítsd újra és frissítsd a mikrovezérlőt."
msgid "Power" msgid "Power"
msgstr "Bekapcsolás" msgstr "Bekapcsolás"
@@ -493,18 +502,21 @@ msgstr "Nyomtatásvezérlés"
msgid "Print Time" msgid "Print Time"
msgstr "Nyomtatási idő" msgstr "Nyomtatási idő"
msgid "Printer"
msgstr "Nyomtató"
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Nyomtató csatlakozások" msgstr "Nyomtató csatlakozások"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Nyomtatás" msgstr "Nyomtatás"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "Szonda eltolás" msgstr "Szonda eltolás"
msgid "Probe found applied offset"
msgstr "A szonda alkalmazott eltolást talált"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Profil név:" msgstr "Profil név:"
@@ -523,6 +535,9 @@ msgstr "Program visszaállítása"
msgid "Reference" msgid "Reference"
msgstr "Referencia" msgstr "Referencia"
msgid "Refresh"
msgstr "Frissítés"
msgid "Restart" msgid "Restart"
msgstr "Újraindítás" msgstr "Újraindítás"
@@ -546,7 +561,7 @@ msgid "Retry #%s"
msgstr "Újra #%s" msgstr "Újra #%s"
msgid "Retrying" msgid "Retrying"
msgstr "" msgstr "Újrapróbálkozás"
msgid "Save" msgid "Save"
msgstr "Mentés" msgstr "Mentés"
@@ -558,7 +573,7 @@ msgid "Save Z"
msgstr "Z mentése" msgstr "Z mentése"
msgid "Save configuration?" msgid "Save configuration?"
msgstr "Menti a konfigurációt?" msgstr "Mented a konfigurációt?"
msgid "Saved" msgid "Saved"
msgstr "Mentve" msgstr "Mentve"
@@ -595,6 +610,12 @@ msgstr "Beállítások"
msgid "Show" msgid "Show"
msgstr "Mutat" msgstr "Mutat"
msgid "Show Heater Power"
msgstr "A fűtésteljesítmény megjelenítése"
msgid "Shutdown"
msgstr "Leállítás"
msgid "Size" msgid "Size"
msgstr "Méret" msgstr "Méret"
@@ -610,9 +631,6 @@ msgstr "Szeletelő:"
msgid "Small" msgid "Small"
msgstr "Kicsi" msgstr "Kicsi"
msgid "Sort by: "
msgstr "Sorrend: "
msgid "Sort:" msgid "Sort:"
msgstr "Fajta:" msgstr "Fajta:"
@@ -646,19 +664,11 @@ msgstr "Frissítés indítása"
msgid "System" msgid "System"
msgstr "Rendszer" msgstr "Rendszer"
msgid "" msgid "System Restart"
"System\n" msgstr "Rendszer Újraindítása"
"Restart"
msgstr ""
"Rendszer\n"
"Újraindítása"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Rendszer Leállitás"
"Shutdown"
msgstr ""
"Rendszer\n"
"Leállitás"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Hőmérséklet (°C)" msgstr "Hőmérséklet (°C)"
@@ -676,6 +686,9 @@ msgstr "Teljes:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Ismeretlen melegítő" msgstr "Ismeretlen melegítő"
msgid "Unknown screw position"
msgstr "Ismeretlen csavarhelyzet"
msgid "Unload" msgid "Unload"
msgstr "Kiadás" msgstr "Kiadás"
@@ -763,3 +776,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Machine"
#~ msgstr "Gép"
#~ msgid "Sort by: "
#~ msgstr "Sorrend: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "A Bltouch alkalmazott eltolást talált"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Nézd a /tmp/KlipperScreen.log további információért.\n"
#~ "Segítségért küldj be egy hibajegyet a GitHubon."
#~ msgid "Probe found applied offset"
#~ msgstr "A szonda alkalmazott eltolást talált"
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: pappicio\n" "Last-Translator: pappicio\n"
"Language-Team: \n" "Language-Team: \n"
@@ -44,8 +44,8 @@ msgstr "Azioni"
msgid "Add Printer" msgid "Add Printer"
msgstr "Aggiungi Stampante" msgstr "Aggiungi Stampante"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Aggiungi Profilo Mesh" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -58,6 +58,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Sei sicuro di voler eseguire l'arresto di emergenza?" msgstr "Sei sicuro di voler eseguire l'arresto di emergenza?"
@@ -79,6 +82,9 @@ msgstr "Auto"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr ""
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scroll" msgstr "Auto-scroll"
@@ -88,8 +94,8 @@ msgstr "Livello del letto"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Rete letto" msgstr "Rete letto"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch ha trovato l'offset applicato" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Calibra" msgstr "Calibra"
@@ -100,6 +106,9 @@ msgstr ""
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Calibrato, salva la configurazione per renderla permanente" msgstr "Calibrato, salva la configurazione per renderla permanente"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr ""
@@ -124,16 +133,12 @@ msgstr "Impossibile connettersi a Moonraker"
msgid "Channel" msgid "Channel"
msgstr "Canale" msgstr "Canale"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Verifica /tmp/KlipperScreen.log per info.\n"
"Aggiungi un problema sul GitHub."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -174,6 +179,9 @@ msgstr "Diminuisci"
msgid "Delete" msgid "Delete"
msgstr "Elimina" msgstr "Elimina"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Deseleziona" msgstr "Deseleziona"
@@ -199,6 +207,9 @@ msgstr "Errore"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Metodo Tempo stimato" msgstr "Metodo Tempo stimato"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Estrudi" msgstr "Estrudi"
@@ -241,12 +252,8 @@ msgstr "Messa a Punto"
msgid "Finish" msgid "Finish"
msgstr "Finito" msgstr "Finito"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware Riavvio"
"Restart"
msgstr ""
"Firmware\n"
"Riavvio"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr ""
@@ -257,12 +264,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "Dimensione del testo" msgstr "Dimensione del testo"
msgid "" msgid "Full Update"
"Full\n" msgstr "Completo Aggiornare"
"Update"
msgstr ""
"Completo\n"
"Aggiornare"
msgid "Go Back" msgid "Go Back"
msgstr "Indietro" msgstr "Indietro"
@@ -303,6 +306,9 @@ msgstr "Home Z"
msgid "Homing" msgid "Homing"
msgstr "Homing" msgstr "Homing"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Hostname" msgstr "Hostname"
@@ -336,12 +342,8 @@ msgstr "Inverti Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Inverti Z" msgstr "Inverti Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Riavvio"
"Restart"
msgstr ""
"Klipper\n"
"Riavvio"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper è disconnesso" msgstr "Klipper è disconnesso"
@@ -436,6 +438,11 @@ msgstr "Rete"
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Niente selezionato" msgstr "Niente selezionato"
@@ -493,18 +500,21 @@ msgstr "Controllo Stampa"
msgid "Print Time" msgid "Print Time"
msgstr "Tempo di Stampa" msgstr "Tempo di Stampa"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Connessioni Stampante" msgstr "Connessioni Stampante"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "In Stampa" msgstr "In Stampa"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr "Probe ha trovato l'offset applicato"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Nome Profilo:" msgstr "Nome Profilo:"
@@ -523,6 +533,9 @@ msgstr "Recuperare Soft"
msgid "Reference" msgid "Reference"
msgstr "Riferimento" msgstr "Riferimento"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Riavvia" msgstr "Riavvia"
@@ -595,6 +608,12 @@ msgstr "Impostazioni"
msgid "Show" msgid "Show"
msgstr "Mostrare" msgstr "Mostrare"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Grandezza" msgstr "Grandezza"
@@ -610,9 +629,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Piccola" msgstr "Piccola"
msgid "Sort by: "
msgstr "Ordine: "
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr ""
@@ -646,19 +662,11 @@ msgstr "Avvio aggiornamento per"
msgid "System" msgid "System"
msgstr "Sistema" msgstr "Sistema"
msgid "" msgid "System Restart"
"System\n" msgstr "Riavvia Sistema"
"Restart"
msgstr ""
"Riavvia\n"
"Sistema"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Spegni Sistema"
"Shutdown"
msgstr ""
"Spegni\n"
"Sistema"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Temp (°C)" msgstr "Temp (°C)"
@@ -676,6 +684,9 @@ msgstr "Totale:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Riscaldatore sconosciuto" msgstr "Riscaldatore sconosciuto"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "Scaricare" msgstr "Scaricare"
@@ -764,6 +775,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "Ordine: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch ha trovato l'offset applicato"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Verifica /tmp/KlipperScreen.log per info.\n"
#~ "Aggiungi un problema sul GitHub."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe ha trovato l'offset applicato"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Strumenti" #~ msgstr "Strumenti"
@@ -779,9 +806,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Riscaldatore sconosciuto "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Sconnetti" #~ msgstr "Sconnetti"
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: NSteven\n" "Last-Translator: NSteven\n"
"Language-Team: NSteven\n" "Language-Team: NSteven\n"
@@ -44,8 +44,8 @@ msgstr "툴 헤드 제어"
msgid "Add Printer" msgid "Add Printer"
msgstr "프린터 추가" msgstr "프린터 추가"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "베드 메시 프로파일 추가" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "확인" msgstr "확인"
@@ -58,6 +58,9 @@ msgstr "엔드스탑 높이 기준을 %.2f 높이의 옵셋으로 설정 하시
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "프로브 높이 기준을 %s%.2f 높이의 옵셋으로 설정 하시겠습니까?" msgstr "프로브 높이 기준을 %s%.2f 높이의 옵셋으로 설정 하시겠습니까?"
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "비상정지 시킬까요?" msgstr "비상정지 시킬까요?"
@@ -79,6 +82,9 @@ msgstr "오토"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "자동 교정" msgstr "자동 교정"
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "오토 스크롤" msgstr "오토 스크롤"
@@ -88,8 +94,8 @@ msgstr "베드 레베"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "배드 메시" msgstr "배드 메시"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch가 적용된 오프셋" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "교정" msgstr "교정"
@@ -100,6 +106,9 @@ msgstr "교정됨"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "교정됨, 설정을 저장합니다" msgstr "교정됨, 설정을 저장합니다"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "교정 중.." msgstr "교정 중.."
@@ -124,16 +133,12 @@ msgstr "문래커에 연결할 수 없음"
msgid "Channel" msgid "Channel"
msgstr "채널" msgstr "채널"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"자세한 내용은 /tmp/KlipperScreen.log를 참조하십시오.\n"
"GitHub에 현재 발생한 이슈를 제출하여 도움을 요청해 주세요"
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "가속도계 배선을 확인해 주세요" msgstr "가속도계 배선을 확인해 주세요"
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "초기화" msgstr "초기화"
@@ -174,6 +179,9 @@ msgstr "낮추기"
msgid "Delete" msgid "Delete"
msgstr "삭제" msgstr "삭제"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "선택 해제" msgstr "선택 해제"
@@ -199,6 +207,9 @@ msgstr "오류"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "예상시간 옵션" msgstr "예상시간 옵션"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "압출 " msgstr "압출 "
@@ -241,12 +252,8 @@ msgstr "미세 조정"
msgid "Finish" msgid "Finish"
msgstr "완료됨" msgstr "완료됨"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "펌웨어 재시작"
"Restart"
msgstr ""
"펌웨어\n"
"재시작"
msgid "Flow:" msgid "Flow:"
msgstr "유량:" msgstr "유량:"
@@ -257,12 +264,8 @@ msgstr "유량:"
msgid "Font Size" msgid "Font Size"
msgstr "글꼴 크기" msgstr "글꼴 크기"
msgid "" msgid "Full Update"
"Full\n" msgstr "전체 업데이트"
"Update"
msgstr ""
"전체\n"
"업데이트"
msgid "Go Back" msgid "Go Back"
msgstr "뒤로" msgstr "뒤로"
@@ -303,6 +306,9 @@ msgstr "Z축 홈"
msgid "Homing" msgid "Homing"
msgstr "툴 헤드 위치 초기화" msgstr "툴 헤드 위치 초기화"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "호스트 이름" msgstr "호스트 이름"
@@ -336,12 +342,8 @@ msgstr "Y축 반전"
msgid "Invert Z" msgid "Invert Z"
msgstr "Z축 반전" msgstr "Z축 반전"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "클리퍼 재시작"
"Restart"
msgstr ""
"클리퍼\n"
"재시작"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "클리퍼와 연결이 끊어졌습니다" msgstr "클리퍼와 연결이 끊어졌습니다"
@@ -436,6 +438,11 @@ msgstr "네트워크"
msgid "New" msgid "New"
msgstr "신규" msgstr "신규"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "아무것도 선택하지 않ㅇ" msgstr "아무것도 선택하지 않ㅇ"
@@ -492,18 +499,21 @@ msgstr "출력 제어"
msgid "Print Time" msgid "Print Time"
msgstr "출력 시간" msgstr "출력 시간"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "프린터 연결" msgstr "프린터 연결"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "출력중" msgstr "출력중"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "프로브 오프셋" msgstr "프로브 오프셋"
msgid "Probe found applied offset"
msgstr "프로브가 오프셋을 찾았습니다"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "프로파일 이름:" msgstr "프로파일 이름:"
@@ -522,6 +532,9 @@ msgstr "일반 복구 모드"
msgid "Reference" msgid "Reference"
msgstr "참조" msgstr "참조"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "재시작" msgstr "재시작"
@@ -594,6 +607,12 @@ msgstr "설정"
msgid "Show" msgid "Show"
msgstr "보기" msgstr "보기"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "크기" msgstr "크기"
@@ -609,9 +628,6 @@ msgstr "슬라이서:"
msgid "Small" msgid "Small"
msgstr "작은" msgstr "작은"
msgid "Sort by: "
msgstr "분류 기준: "
msgid "Sort:" msgid "Sort:"
msgstr "종류:" msgstr "종류:"
@@ -645,19 +661,11 @@ msgstr "업데이트 시작 중"
msgid "System" msgid "System"
msgstr "시스템" msgstr "시스템"
msgid "" msgid "System Restart"
"System\n" msgstr "시스템 재시작"
"Restart"
msgstr ""
"시스템\n"
"재시작"
msgid "" msgid "System Shutdown"
"System\n" msgstr "시스템 종료"
"Shutdown"
msgstr ""
"시스템\n"
"종료"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "온도 (°C)" msgstr "온도 (°C)"
@@ -675,6 +683,9 @@ msgstr "총:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "알 수 없는 히터" msgstr "알 수 없는 히터"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "필라 꺼내기" msgstr "필라 꺼내기"
@@ -761,6 +772,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "분류 기준: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch가 적용된 오프셋"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "자세한 내용은 /tmp/KlipperScreen.log를 참조하십시오.\n"
#~ "GitHub에 현재 발생한 이슈를 제출하여 도움을 요청해 주세요"
#~ msgid "Probe found applied offset"
#~ msgstr "프로브가 오프셋을 찾았습니다"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "툴" #~ msgstr "툴"
@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-03-31 11:06-0300\n" "PO-Revision-Date: 2022-03-31 11:06-0300\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -50,8 +50,8 @@ msgstr "Akcje"
msgid "Add Printer" msgid "Add Printer"
msgstr "Dodaj drukarkę" msgstr "Dodaj drukarkę"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Dodaj profil siatki stołu" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -64,6 +64,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Czy na pewno chcesz Awaryjnie Zatrzymać?" msgstr "Czy na pewno chcesz Awaryjnie Zatrzymać?"
@@ -85,6 +88,9 @@ msgstr "Automatyczny"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr ""
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scroll" msgstr "Auto-scroll"
@@ -94,8 +100,8 @@ msgstr "Poziom stołu"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Poziom siatki stołu" msgstr "Poziom siatki stołu"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch znalazł zastosowane przesunięcie" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Kalibracja" msgstr "Kalibracja"
@@ -106,6 +112,9 @@ msgstr ""
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Skalibrowano, zapisz konfigurację aby została na stałe" msgstr "Skalibrowano, zapisz konfigurację aby została na stałe"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr ""
@@ -130,16 +139,12 @@ msgstr "Nie można połączyć się z Moonrakerem"
msgid "Channel" msgid "Channel"
msgstr "Kanał" msgstr "Kanał"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Sprawdź /tmp/KlipperScreen.log aby uzyskać więcej informacji.\n"
"Proszę zgłosić usterkę na GitHub by uzyskać pomoc."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -180,6 +185,9 @@ msgstr "Obniż"
msgid "Delete" msgid "Delete"
msgstr "Skasuj" msgstr "Skasuj"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Odznacz" msgstr "Odznacz"
@@ -205,6 +213,9 @@ msgstr "Błąd"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Sposób Oszacowania Czasu" msgstr "Sposób Oszacowania Czasu"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Extruduj" msgstr "Extruduj"
@@ -247,9 +258,7 @@ msgstr "Regulacja Precyzyjna"
msgid "Finish" msgid "Finish"
msgstr "Zakończ" msgstr "Zakończ"
msgid "" msgid "Firmware Restart"
"Firmware\n"
"Restart"
msgstr "" msgstr ""
msgid "Flow:" msgid "Flow:"
@@ -261,12 +270,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "Rozmiar trzcionki" msgstr "Rozmiar trzcionki"
msgid "" msgid "Full Update"
"Full\n" msgstr "Pełny Aktualizacja"
"Update"
msgstr ""
"Pełny\n"
"Aktualizacja"
msgid "Go Back" msgid "Go Back"
msgstr "Powróć" msgstr "Powróć"
@@ -307,6 +312,9 @@ msgstr "Baza Z"
msgid "Homing" msgid "Homing"
msgstr "Bazowanie" msgstr "Bazowanie"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Nazwa hosta" msgstr "Nazwa hosta"
@@ -340,9 +348,7 @@ msgstr "Odwróć Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Odwróć Z" msgstr "Odwróć Z"
msgid "" msgid "Klipper Restart"
"Klipper\n"
"Restart"
msgstr "" msgstr ""
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
@@ -438,6 +444,11 @@ msgstr "Sieć"
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Nic nie wybrano" msgstr "Nic nie wybrano"
@@ -496,18 +507,21 @@ msgstr "Kontrola Druku"
msgid "Print Time" msgid "Print Time"
msgstr "Czas Druku" msgstr "Czas Druku"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Połączenia Drukarki" msgstr "Połączenia Drukarki"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Drukujemy" msgstr "Drukujemy"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr "Probe znalazł zastosowane przesunięcie"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Nazwa Profilu:" msgstr "Nazwa Profilu:"
@@ -526,6 +540,9 @@ msgstr "Odzyskaj Miękko"
msgid "Reference" msgid "Reference"
msgstr "Sprawdzenie" msgstr "Sprawdzenie"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Restartuj" msgstr "Restartuj"
@@ -598,6 +615,12 @@ msgstr "Ustawienia"
msgid "Show" msgid "Show"
msgstr "Pokaż" msgstr "Pokaż"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Rozmiar" msgstr "Rozmiar"
@@ -613,9 +636,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Mały" msgstr "Mały"
msgid "Sort by: "
msgstr "Sortuj wg: "
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr ""
@@ -649,19 +669,11 @@ msgstr "Zacznij uaktualnienie dla"
msgid "System" msgid "System"
msgstr "System" msgstr "System"
msgid "" msgid "System Restart"
"System\n" msgstr "Restart Systemu"
"Restart"
msgstr ""
"Restart\n"
"Systemu"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Wyłączanie systemu"
"Shutdown"
msgstr ""
"Wyłączanie\n"
" systemu"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Temp (°C)" msgstr "Temp (°C)"
@@ -679,6 +691,9 @@ msgstr "Całkowity:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Nieznany Podgrzewacz" msgstr "Nieznany Podgrzewacz"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "Wyładuj" msgstr "Wyładuj"
@@ -769,6 +784,22 @@ msgstr "mm/s²"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "Sortuj wg: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch znalazł zastosowane przesunięcie"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Sprawdź /tmp/KlipperScreen.log aby uzyskać więcej informacji.\n"
#~ "Proszę zgłosić usterkę na GitHub by uzyskać pomoc."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe znalazł zastosowane przesunięcie"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Narzędzie" #~ msgstr "Narzędzie"
@@ -784,9 +815,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Nieznany Podgrzewacz "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Rozłącz" #~ msgstr "Rozłącz"
@@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-06-03 20:25-0500\n" "PO-Revision-Date: 2022-06-03 20:25-0500\n"
"Last-Translator: Jakob Kais <schpuntik@freenet.de>\n" "Last-Translator: Jakob Kais <schpuntik@freenet.de>\n"
"Language-Team: \n" "Language-Team: \n"
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" "n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
"X-Generator: Poedit 3.0.1\n" "X-Generator: Poedit 3.0.1\n"
"X-Poedit-Flags-xgettext: --add-comments\n" "X-Poedit-Flags-xgettext: --add-comments\n"
@@ -33,13 +33,13 @@ msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "FIRMWARE_RESTART может решить проблему." msgstr "FIRMWARE_RESTART может решить проблему."
msgid "ADXL Not Configured" msgid "ADXL Not Configured"
msgstr "" msgstr "ADXL не настроен"
msgid "Abort" msgid "Abort"
msgstr "Отменить" msgstr "Отменить"
msgid "Acceleration:" msgid "Acceleration:"
msgstr "" msgstr "Ускорение:"
msgid "Accept" msgid "Accept"
msgstr "Применить" msgstr "Применить"
@@ -50,18 +50,21 @@ msgstr "Действия"
msgid "Add Printer" msgid "Add Printer"
msgstr "Добавить принтер" msgstr "Добавить принтер"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Добавить профиль сетки стола" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr "Применить"
#, python-format #, python-format
msgid "Apply %.2f offset to Endstop?" msgid "Apply %.2f offset to Endstop?"
msgstr "" msgstr "Применить смещение %.2f к Endstop?"
#, python-format #, python-format
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "Применить смещение %s%.2f к зонду?"
msgid "Are you sure do you want to exclude the object?"
msgstr "" msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
@@ -83,6 +86,9 @@ msgid "Auto"
msgstr "Авто" msgstr "Авто"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Автоматическая калибровка"
msgid "Auto-close notifications"
msgstr "" msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
@@ -94,20 +100,23 @@ msgstr "Уровень стола"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Сетка стола" msgstr "Сетка стола"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch обнаружил примененное смещение" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Калибровка" msgstr "Калибровка"
msgid "Calibrated" msgid "Calibrated"
msgstr "" msgstr "Откалиброванный"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Откалибровано, сохраните конфигурацию, чтобы сделать ее постоянной" msgstr "Откалибровано, сохраните конфигурацию, чтобы сделать ее постоянной"
msgid "Calibrating"
msgstr "Калибровка"
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr "Калибровка..."
msgid "Can't set above the maximum:" msgid "Can't set above the maximum:"
msgstr "Невозможно установить выше максимума:" msgstr "Невозможно установить выше максимума:"
@@ -130,18 +139,14 @@ msgstr "Не могу подключиться к Moonraker"
msgid "Channel" msgid "Channel"
msgstr "Канал" msgstr "Канал"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Проверьте /tmp/KlipperScreen.log для дополнитольной информации.\n"
"Создайте issues на GitHub что-бы получить помощь."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "Проверьте проводку ADXL"
msgid "Checking for updates, please wait..."
msgstr "" msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr "Очистить"
msgid "Close" msgid "Close"
msgstr "Закрыть" msgstr "Закрыть"
@@ -180,6 +185,9 @@ msgstr "Уменьшить"
msgid "Delete" msgid "Delete"
msgstr "Удалить" msgstr "Удалить"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Отменить выбор" msgstr "Отменить выбор"
@@ -205,6 +213,9 @@ msgstr "Ошибка"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Расчётное время" msgstr "Расчётное время"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Заправить" msgstr "Заправить"
@@ -224,22 +235,22 @@ msgid "Filament Used"
msgstr "Использование филамента" msgstr "Использование филамента"
msgid "Filament total:" msgid "Filament total:"
msgstr "" msgstr "Итого филамента:"
msgid "Filament used:" msgid "Filament used:"
msgstr "" msgstr "Использование филамента:"
msgid "Filament:" msgid "Filament:"
msgstr "" msgstr "Филамент:"
msgid "File" msgid "File"
msgstr "Файл" msgstr "Файл"
msgid "File:" msgid "File:"
msgstr "" msgstr "Файл:"
msgid "Finding ADXL" msgid "Finding ADXL"
msgstr "" msgstr "Поиск ADXL"
msgid "Fine Tuning" msgid "Fine Tuning"
msgstr "Точная настройка" msgstr "Точная настройка"
@@ -247,34 +258,26 @@ msgstr "Точная настройка"
msgid "Finish" msgid "Finish"
msgstr "Конец" msgstr "Конец"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Прошивка Рестарт"
"Restart"
msgstr ""
"Прошивка\n"
"Рестарт"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr "Поток:"
msgid "Flowrate:" msgid "Flowrate:"
msgstr "" msgstr "Расход:"
msgid "Font Size" msgid "Font Size"
msgstr "Размер шрифта" msgstr "Размер шрифта"
msgid "" msgid "Full Update"
"Full\n" msgstr "Полный Обновлять"
"Update"
msgstr ""
"Полный\n"
"Обновлять"
msgid "Go Back" msgid "Go Back"
msgstr "Назад" msgstr "Назад"
msgid "Height:" msgid "Height:"
msgstr "" msgstr "Высота:"
msgid "Hidden" msgid "Hidden"
msgstr "Скрытый" msgstr "Скрытый"
@@ -286,7 +289,7 @@ msgid "Hide sensors in Temp."
msgstr "Скрыть датчики в Temp." msgstr "Скрыть датчики в Temp."
msgid "Hide temp." msgid "Hide temp."
msgstr "" msgstr "Скрыть температуру."
msgid "Home" msgid "Home"
msgstr "Парковка" msgstr "Парковка"
@@ -309,6 +312,9 @@ msgstr "Парковать Z"
msgid "Homing" msgid "Homing"
msgstr "Парковка" msgstr "Парковка"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Имя хоста" msgstr "Имя хоста"
@@ -325,7 +331,7 @@ msgid "Initializing printer..."
msgstr "Принтер стартует..." msgstr "Принтер стартует..."
msgid "Input Shaper" msgid "Input Shaper"
msgstr "" msgstr "Входной шейпер"
msgid "Interface" msgid "Interface"
msgstr "Интерфейс" msgstr "Интерфейс"
@@ -342,12 +348,8 @@ msgstr "Инверсия Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Инверсия Z" msgstr "Инверсия Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Рестарт"
"Restart"
msgstr ""
"Klipper\n"
"Рестарт"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Нет связи с Klipper" msgstr "Нет связи с Klipper"
@@ -371,7 +373,7 @@ msgid "Large"
msgstr "Большой" msgstr "Большой"
msgid "Layer:" msgid "Layer:"
msgstr "" msgstr "Слой:"
msgid "Left:" msgid "Left:"
msgstr "Осталось:" msgstr "Осталось:"
@@ -398,7 +400,7 @@ msgid "Max"
msgstr "" msgstr ""
msgid "Max Acceleration" msgid "Max Acceleration"
msgstr "" msgstr "Максимальное ускорение"
msgid "Max Acceleration to Deceleration" msgid "Max Acceleration to Deceleration"
msgstr "Ускорения торможения" msgstr "Ускорения торможения"
@@ -407,13 +409,13 @@ msgid "Max Velocity"
msgstr "Скорость" msgstr "Скорость"
msgid "Measure Both" msgid "Measure Both"
msgstr "" msgstr "Измерьте и то, и другое"
msgid "Measure X" msgid "Measure X"
msgstr "" msgstr "Измерьте X"
msgid "Measure Y" msgid "Measure Y"
msgstr "" msgstr "Измерьте Y"
msgid "Medium" msgid "Medium"
msgstr "Среднее" msgstr "Среднее"
@@ -440,6 +442,11 @@ msgid "Network"
msgstr "Сеть" msgstr "Сеть"
msgid "New" msgid "New"
msgstr "Новый"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr "" msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
@@ -489,7 +496,7 @@ msgid "Power On Printer"
msgstr "Включить принтер" msgstr "Включить принтер"
msgid "Pressure Advance:" msgid "Pressure Advance:"
msgstr "" msgstr "Повышение давления:"
msgid "Print" msgid "Print"
msgstr "Печать" msgstr "Печать"
@@ -500,17 +507,20 @@ msgstr "Управление печатью"
msgid "Print Time" msgid "Print Time"
msgstr "Время печати" msgstr "Время печати"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Подключение принтера" msgstr "Подключение принтера"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Печатается" msgstr "Печатается"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr "Смещение зонда"
msgid "Probe found applied offset"
msgstr "Probe обнаружил примененное смещение"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Имя профиля:" msgstr "Имя профиля:"
@@ -530,6 +540,9 @@ msgstr "Восстановить Soft"
msgid "Reference" msgid "Reference"
msgstr "Ссылка" msgstr "Ссылка"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Перезагрузка" msgstr "Перезагрузка"
@@ -540,13 +553,13 @@ msgid "Retract"
msgstr "Втянуть" msgstr "Втянуть"
msgid "Retraction" msgid "Retraction"
msgstr "" msgstr "Ретракт"
msgid "Retraction Length" msgid "Retraction Length"
msgstr "" msgstr "Длина ретракта"
msgid "Retraction Speed" msgid "Retraction Speed"
msgstr "" msgstr "Скорость ретракта"
#, python-format #, python-format
msgid "Retry #%s" msgid "Retry #%s"
@@ -562,17 +575,17 @@ msgid "Save Config"
msgstr "Сохр. Конфиг" msgstr "Сохр. Конфиг"
msgid "Save Z" msgid "Save Z"
msgstr "" msgstr "Сохранить Z"
msgid "Save configuration?" msgid "Save configuration?"
msgstr "" msgstr "Сохранить конфигурацию?"
msgid "Saved" msgid "Saved"
msgstr "" msgstr "Сохранено"
#, python-format #, python-format
msgid "Saved offset: %s" msgid "Saved offset: %s"
msgstr "" msgstr "Сохраненный офсет: %s"
msgid "Screen DPMS" msgid "Screen DPMS"
msgstr "Экран DPMS" msgstr "Экран DPMS"
@@ -602,6 +615,12 @@ msgstr "Настройки"
msgid "Show" msgid "Show"
msgstr "Показывать" msgstr "Показывать"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Размер" msgstr "Размер"
@@ -617,11 +636,8 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Маленький" msgstr "Маленький"
msgid "Sort by: "
msgstr "Орден: "
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr "Сортировать:"
msgid "Speed (mm/s)" msgid "Speed (mm/s)"
msgstr "Скорость (мм/с)" msgstr "Скорость (мм/с)"
@@ -653,16 +669,10 @@ msgstr "Запуск обновления для"
msgid "System" msgid "System"
msgstr "Система" msgstr "Система"
msgid "" msgid "System Restart"
"System\n" msgstr "Рестарт Системы"
"Restart"
msgstr ""
"Рестарт\n"
"Системы"
msgid "" msgid "System Shutdown"
"System\n"
"Shutdown"
msgstr "Выключить" msgstr "Выключить"
msgid "Temp (°C)" msgid "Temp (°C)"
@@ -681,6 +691,9 @@ msgstr "Всего:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Неизвестный обогреватель" msgstr "Неизвестный обогреватель"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "Загружено" msgstr "Загружено"
@@ -771,6 +784,22 @@ msgstr "мм/с"
msgid "mm/s²" msgid "mm/s²"
msgstr "мм/с²" msgstr "мм/с²"
#~ msgid "Sort by: "
#~ msgstr "Орден: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch обнаружил примененное смещение"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Проверьте /tmp/KlipperScreen.log для дополнитольной информации.\n"
#~ "Создайте issues на GitHub что-бы получить помощь."
#~ msgid "Probe found applied offset"
#~ msgstr "Probe обнаружил примененное смещение"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Инструмент" #~ msgstr "Инструмент"
@@ -786,9 +815,6 @@ msgstr "мм/с²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "Неизвестный обогреватель "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "Отключить" #~ msgstr "Отключить"
@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-04-15 17:25+0200\n" "PO-Revision-Date: 2022-04-15 17:25+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -49,8 +49,8 @@ msgstr "Åtgärder"
msgid "Add Printer" msgid "Add Printer"
msgstr "Lägg till skrivare" msgstr "Lägg till skrivare"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Lägg till mesh profil" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -63,6 +63,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Är du säker på att du vill köra Nödstopp?" msgstr "Är du säker på att du vill köra Nödstopp?"
@@ -84,6 +87,9 @@ msgstr "Automatisk"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr ""
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Auto-scrolla" msgstr "Auto-scrolla"
@@ -93,8 +99,8 @@ msgstr ""
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "" msgstr ""
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch hittade tillämpad offset" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "Kalibrera" msgstr "Kalibrera"
@@ -105,6 +111,9 @@ msgstr ""
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibrerad, spara konfiguration för att göra den permanent" msgstr "Kalibrerad, spara konfiguration för att göra den permanent"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr ""
@@ -129,16 +138,12 @@ msgstr "Kan inte ansluta till Moonraker"
msgid "Channel" msgid "Channel"
msgstr "" msgstr ""
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Kontrollera /tmp/KlipperScreen.log för mer information.\n"
"Skicka in ett problem på GitHub för hjälp."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -179,6 +184,9 @@ msgstr "Minska"
msgid "Delete" msgid "Delete"
msgstr "Radera" msgstr "Radera"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "Avmarkera" msgstr "Avmarkera"
@@ -204,6 +212,9 @@ msgstr "Fel"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "" msgstr ""
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "Extrudera" msgstr "Extrudera"
@@ -246,12 +257,8 @@ msgstr "Finjustering"
msgid "Finish" msgid "Finish"
msgstr "Slutför" msgstr "Slutför"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware Omstart"
"Restart"
msgstr ""
"Firmware\n"
"Omstart"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr ""
@@ -262,12 +269,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "Textstorlek" msgstr "Textstorlek"
msgid "" msgid "Full Update"
"Full\n" msgstr "Fullständig Uppdatering"
"Update"
msgstr ""
"Fullständig\n"
"Uppdatering"
msgid "Go Back" msgid "Go Back"
msgstr "Gå tillbaka" msgstr "Gå tillbaka"
@@ -308,6 +311,9 @@ msgstr "Hem Z"
msgid "Homing" msgid "Homing"
msgstr "" msgstr ""
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "Värdnamn" msgstr "Värdnamn"
@@ -341,12 +347,8 @@ msgstr "Invertera Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Invertera Z" msgstr "Invertera Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Omstart"
"Restart"
msgstr ""
"Klipper\n"
"Omstart"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "" msgstr ""
@@ -441,6 +443,11 @@ msgstr "Nätverk"
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Inget valt" msgstr "Inget valt"
@@ -498,18 +505,21 @@ msgstr "Utskriftskontroll"
msgid "Print Time" msgid "Print Time"
msgstr "" msgstr ""
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "" msgstr ""
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Skriver ut" msgstr "Skriver ut"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr ""
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Profilens namn:" msgstr "Profilens namn:"
@@ -528,6 +538,9 @@ msgstr ""
msgid "Reference" msgid "Reference"
msgstr "Referens" msgstr "Referens"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "Starta om" msgstr "Starta om"
@@ -600,6 +613,12 @@ msgstr "Inställningar"
msgid "Show" msgid "Show"
msgstr "Visa" msgstr "Visa"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Storlek" msgstr "Storlek"
@@ -615,9 +634,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "Liten" msgstr "Liten"
msgid "Sort by: "
msgstr "Sortera efter: "
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr ""
@@ -651,19 +667,11 @@ msgstr ""
msgid "System" msgid "System"
msgstr "System" msgstr "System"
msgid "" msgid "System Restart"
"System\n" msgstr "System Omstart"
"Restart"
msgstr ""
"System\n"
"Omstart"
msgid "" msgid "System Shutdown"
"System\n" msgstr "System Avstängning"
"Shutdown"
msgstr ""
"System\n"
"Avstängning"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Temperatur (°C)" msgstr "Temperatur (°C)"
@@ -681,6 +689,9 @@ msgstr ""
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Okänt värmeelement" msgstr "Okänt värmeelement"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "" msgstr ""
@@ -769,6 +780,19 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "Sortera efter: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch hittade tillämpad offset"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Kontrollera /tmp/KlipperScreen.log för mer information.\n"
#~ "Skicka in ett problem på GitHub för hjälp."
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Verktyg" #~ msgstr "Verktyg"
@@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-07-12 00:18+0300\n" "PO-Revision-Date: 2022-09-21 19:32+0300\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: tr_TR\n" "Language: tr_TR\n"
@@ -49,8 +49,8 @@ msgstr "Eylemler"
msgid "Add Printer" msgid "Add Printer"
msgstr "Yazıcı Ekle" msgstr "Yazıcı Ekle"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Tabla Örgüsü profili ekle" msgstr "Profil ekle"
msgid "Apply" msgid "Apply"
msgstr "Uygula" msgstr "Uygula"
@@ -63,6 +63,9 @@ msgstr "Sonlandırıcı için %.2f ofset uygula?"
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "Prob için %s%.2f ofset uygula?" msgstr "Prob için %s%.2f ofset uygula?"
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Acil Durdurma'yı çalıştırmak istediğinizden emin misiniz?" msgstr "Acil Durdurma'yı çalıştırmak istediğinizden emin misiniz?"
@@ -84,6 +87,9 @@ msgstr "Otomatik"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Otomatik-Kalibrasyon" msgstr "Otomatik-Kalibrasyon"
msgid "Auto-close notifications"
msgstr "Bildirimleri otomatik kapat"
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Otomatik kaydırma" msgstr "Otomatik kaydırma"
@@ -93,8 +99,8 @@ msgstr "Tabla Ayarı"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Tabla Örgüsü" msgstr "Tabla Örgüsü"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch uygulanmış ofseti buldu" msgstr "Tabla vida yapılandırması:"
msgid "Calibrate" msgid "Calibrate"
msgstr "Kalibre et" msgstr "Kalibre et"
@@ -105,6 +111,9 @@ msgstr "Kalibre Edildi"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibre edildi, kalıcı hale getirmek için yapılandırmayı kaydedin" msgstr "Kalibre edildi, kalıcı hale getirmek için yapılandırmayı kaydedin"
msgid "Calibrating"
msgstr "Kalibre Ediliyor"
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Kalibre Ediliyor..." msgstr "Kalibre Ediliyor..."
@@ -129,16 +138,12 @@ msgstr "Moonraker'a bağlanılamıyor"
msgid "Channel" msgid "Channel"
msgstr "Kanal" msgstr "Kanal"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Daha fazla bilgi için /tmp/KlipperScreen.log'a bakın.\n"
"Lütfen yardım için GitHub'da bir sorun gönderin."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "ADXL Bağlantılarını Kontrol Et" msgstr "ADXL Bağlantılarını Kontrol Et"
msgid "Checking for updates, please wait..."
msgstr "Güncellemeler kontrol ediliyor, lütfen bekleyin..."
msgid "Clear" msgid "Clear"
msgstr "Temizle" msgstr "Temizle"
@@ -179,6 +184,9 @@ msgstr "Azalt"
msgid "Delete" msgid "Delete"
msgstr "Sil" msgstr "Sil"
msgid "Delete File?"
msgstr "Dosyayı Sil?"
msgid "Deselect" msgid "Deselect"
msgstr "Seçimi kaldır" msgstr "Seçimi kaldır"
@@ -204,6 +212,9 @@ msgstr "Hata"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Tahmini Zaman Metodu" msgstr "Tahmini Zaman Metodu"
msgid "Exclude Object"
msgstr "Nesneyi Hariç Tut"
msgid "Extrude" msgid "Extrude"
msgstr "Ekstrüzyon" msgstr "Ekstrüzyon"
@@ -246,12 +257,8 @@ msgstr "İnce Ayar"
msgid "Finish" msgid "Finish"
msgstr "Bitir" msgstr "Bitir"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware Yeniden Başlat"
"Restart"
msgstr ""
"Firmware\n"
"Yeniden Başlat"
msgid "Flow:" msgid "Flow:"
msgstr "Akış:" msgstr "Akış:"
@@ -262,12 +269,8 @@ msgstr "Akış oranı:"
msgid "Font Size" msgid "Font Size"
msgstr "Yazı boyutu" msgstr "Yazı boyutu"
msgid "" msgid "Full Update"
"Full\n" msgstr "Tam Güncelleme"
"Update"
msgstr ""
"Tam\n"
"Güncelleme"
msgid "Go Back" msgid "Go Back"
msgstr "Geri git" msgstr "Geri git"
@@ -308,6 +311,9 @@ msgstr "Z Sıfırla"
msgid "Homing" msgid "Homing"
msgstr "Eksen Sıfırlama" msgstr "Eksen Sıfırlama"
msgid "Host"
msgstr "Sunucu"
msgid "Hostname" msgid "Hostname"
msgstr "Ana bilgisayar adı" msgstr "Ana bilgisayar adı"
@@ -341,12 +347,8 @@ msgstr "Y Ters çevir"
msgid "Invert Z" msgid "Invert Z"
msgstr "Z Ters çevir" msgstr "Z Ters çevir"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper Yeniden başlat"
"Restart"
msgstr ""
"Klipper\n"
"Yeniden başlat"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper bağlantısı kesildi" msgstr "Klipper bağlantısı kesildi"
@@ -441,6 +443,13 @@ msgstr "Ağ"
msgid "New" msgid "New"
msgstr "Yeni" msgstr "Yeni"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
"Otomatik algılama desteklenmiyor, klipperscreen.conf dosyasından "
"yapılandırmanız gerekli"
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Hiçbir şey seçilmedi" msgstr "Hiçbir şey seçilmedi"
@@ -460,7 +469,7 @@ msgstr[0] "Paket yükseltilecek"
msgstr[1] "Paketler yükseltilecek" msgstr[1] "Paketler yükseltilecek"
msgid "Part Fan" msgid "Part Fan"
msgstr "" msgstr "Parça Fan"
msgid "Password saved" msgid "Password saved"
msgstr "Şifre kaydedildi" msgstr "Şifre kaydedildi"
@@ -475,7 +484,7 @@ msgid "Perform a full upgrade?"
msgstr "Tam yükseltme yap?" msgstr "Tam yükseltme yap?"
msgid "Pins" msgid "Pins"
msgstr "" msgstr "Pinler"
msgid "Please recompile and flash the micro-controller." msgid "Please recompile and flash the micro-controller."
msgstr "Lütfen mikro denetleyiciyi yeniden derleyin ve flaşlayın." msgstr "Lütfen mikro denetleyiciyi yeniden derleyin ve flaşlayın."
@@ -498,18 +507,21 @@ msgstr "Yazdırma Kontrolü"
msgid "Print Time" msgid "Print Time"
msgstr "Yazdırma Süresi" msgstr "Yazdırma Süresi"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Yazıcı Bağlantıları" msgstr "Yazıcı Bağlantıları"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Yazdırılıyor" msgstr "Yazdırılıyor"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "Prob ofseti" msgstr "Prob ofseti"
msgid "Probe found applied offset"
msgstr "Prob uygulanmış ofset bulundu"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Profil ismi:" msgstr "Profil ismi:"
@@ -528,6 +540,9 @@ msgstr "Yumuşak Kurtar"
msgid "Reference" msgid "Reference"
msgstr "Referans" msgstr "Referans"
msgid "Refresh"
msgstr "Yenile"
msgid "Restart" msgid "Restart"
msgstr "Yeniden Başlat" msgstr "Yeniden Başlat"
@@ -551,7 +566,7 @@ msgid "Retry #%s"
msgstr "Yeniden Dene #%s" msgstr "Yeniden Dene #%s"
msgid "Retrying" msgid "Retrying"
msgstr "" msgstr "Yeniden Deneniyor"
msgid "Save" msgid "Save"
msgstr "Kaydet" msgstr "Kaydet"
@@ -600,6 +615,12 @@ msgstr "Ayarlar"
msgid "Show" msgid "Show"
msgstr "Göster" msgstr "Göster"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Boyut" msgstr "Boyut"
@@ -615,9 +636,6 @@ msgstr "Dilimleyici:"
msgid "Small" msgid "Small"
msgstr "Küçük" msgstr "Küçük"
msgid "Sort by: "
msgstr "Sırala: "
msgid "Sort:" msgid "Sort:"
msgstr "Sırala:" msgstr "Sırala:"
@@ -651,19 +669,11 @@ msgstr "Güncelleme başlatılıyor"
msgid "System" msgid "System"
msgstr "Sistem" msgstr "Sistem"
msgid "" msgid "System Restart"
"System\n" msgstr "Sistem Yeniden Başlat"
"Restart"
msgstr ""
"Sistem\n"
"Yeniden Başlat"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Sistem Kapat"
"Shutdown"
msgstr ""
"Sistem\n"
"Kapat"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Sıcaklık (°C)" msgstr "Sıcaklık (°C)"
@@ -681,6 +691,9 @@ msgstr "Toplam:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Bilinmeyen Isıtıcı" msgstr "Bilinmeyen Isıtıcı"
msgid "Unknown screw position"
msgstr "Bilinmeyen vida konumu"
msgid "Unload" msgid "Unload"
msgstr "Boşalt" msgstr "Boşalt"
@@ -769,6 +782,25 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Machine"
#~ msgstr "Makine"
#~ msgid "Sort by: "
#~ msgstr "Sırala: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch uygulanmış ofseti buldu"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "Daha fazla bilgi için /tmp/KlipperScreen.log'a bakın.\n"
#~ "Lütfen yardım için GitHub'da bir sorun gönderin."
#~ msgid "Probe found applied offset"
#~ msgstr "Prob uygulanmış ofset bulundu"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "Araç" #~ msgstr "Araç"
@@ -5,20 +5,19 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2022-06-02 14:53-0300\n" "Project-Id-Version: 2022-09-04 14:53-0300\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-06-03 10:02+0300\n" "PO-Revision-Date: 2022-09-16 21:40+0300\n"
"Last-Translator: \n" "Last-Translator: Andrii Komarovskyi\n"
"Language-Team: Andrii Komarovskyi\n" "Language-Team: Andrii Komarovskyi\n"
"Language: uk\n" "Language: uk\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" "n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
"X-Generator: Poedit 3.0.1\n" "X-Generator: Poedit 3.1\n"
"X-Poedit-SourceCharset: UTF-8\n"
#, python-format #, python-format
msgid "%s will be updated to version" msgid "%s will be updated to version"
@@ -46,13 +45,13 @@ msgid "Accept"
msgstr "Прийняти" msgstr "Прийняти"
msgid "Actions" msgid "Actions"
msgstr "Керування" msgstr "Дії"
msgid "Add Printer" msgid "Add Printer"
msgstr "Додати принтер" msgstr "Додати принтер"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "Додати сітку столу" msgstr "Додати профіль"
msgid "Apply" msgid "Apply"
msgstr "Застосувати" msgstr "Застосувати"
@@ -65,11 +64,14 @@ msgstr "Застосувати зміщення %.2f до кінцевика?"
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "Застосувати зміщення %s%.2f до зонда?" msgstr "Застосувати зміщення %s%.2f до зонда?"
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "Ви впевнені, що хочете запустити аварійну зупинку?" msgstr "Ви впевнені, що хочете зробити аварійну зупинку?"
msgid "Are you sure you wish to cancel this print?" msgid "Are you sure you wish to cancel this print?"
msgstr "Ви впевнені, що хочете скасувати цей друк?" msgstr "Ви впевнені, що хочете скасувати друк?"
msgid "Are you sure you wish to disable motors?" msgid "Are you sure you wish to disable motors?"
msgstr "Ви дійсно бажаєте вимкнути двигуни?" msgstr "Ви дійсно бажаєте вимкнути двигуни?"
@@ -86,6 +88,9 @@ msgstr "Автоматично"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "Автоматичне калібрування" msgstr "Автоматичне калібрування"
msgid "Auto-close notifications"
msgstr "Автоматичне закриття сповіщень"
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "Автоматична прокрутка" msgstr "Автоматична прокрутка"
@@ -95,8 +100,8 @@ msgstr "Вирівнювання столу"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "Сітка столу" msgstr "Сітка столу"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Зонд знайшов застосоване зміщення" msgstr "Конфігурація гвинтів ліжка:"
msgid "Calibrate" msgid "Calibrate"
msgstr "Калібрування" msgstr "Калібрування"
@@ -107,14 +112,17 @@ msgstr "Відкалібрований"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "Відкалібровано, збережіть конфігурацію, щоб зробити її постійною" msgstr "Відкалібровано, збережіть конфігурацію, щоб зробити її постійною"
msgid "Calibrating"
msgstr "Калібрування"
msgid "Calibrating..." msgid "Calibrating..."
msgstr "Калібрування..." msgstr "Калібрування..."
msgid "Can't set above the maximum:" msgid "Can't set above the maximum:"
msgstr "Не встановити вище макс.:" msgstr "Не можна встановити вище максимум:"
msgid "Cancel" msgid "Cancel"
msgstr "СКАСУВАТИ" msgstr "Скасувати"
msgid "Cancel Print" msgid "Cancel Print"
msgstr "Скасувати друк" msgstr "Скасувати друк"
@@ -131,16 +139,12 @@ msgstr "Не можливо підключитися до Moonraker"
msgid "Channel" msgid "Channel"
msgstr "Канал" msgstr "Канал"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"Перевірте /tmp/KlipperScreen.log для отримання додаткової інформації.\n"
"Будь ласка, надішліть проблему на GitHub, щоб отримати допомогу."
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "Перевірте підключення ADXL" msgstr "Перевірте підключення ADXL"
msgid "Checking for updates, please wait..."
msgstr "Перевірка оновлень, зачекайте..."
msgid "Clear" msgid "Clear"
msgstr "Очистити" msgstr "Очистити"
@@ -154,7 +158,7 @@ msgid "Configuration"
msgstr "Конфігурація" msgstr "Конфігурація"
msgid "Confirm Emergency Stop" msgid "Confirm Emergency Stop"
msgstr "Підтверджувати АВАРІЙНУ ЗУПИНКУ" msgstr "Підтвердьте АВАРІЙНУ ЗУПИНКУ"
msgid "Connected" msgid "Connected"
msgstr "Підключено" msgstr "Підключено"
@@ -181,8 +185,11 @@ msgstr "Зменшити"
msgid "Delete" msgid "Delete"
msgstr "Видалити" msgstr "Видалити"
msgid "Delete File?"
msgstr "Видалити файл?"
msgid "Deselect" msgid "Deselect"
msgstr "Відміна" msgstr "Скасувати вибір"
msgid "Disable Motors" msgid "Disable Motors"
msgstr "Вимкнути мотори" msgstr "Вимкнути мотори"
@@ -206,23 +213,28 @@ msgstr "Помилка"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "Метод розрахунку часу" msgstr "Метод розрахунку часу"
msgid "Exclude Object"
msgstr "Виключити об’єкт"
msgid "Extrude" msgid "Extrude"
msgstr "Видавити" msgstr ""
"Заміна\n"
"пластику"
msgid "Extrusion +" msgid "Extrusion +"
msgstr "Екструзія+" msgstr "Видавити +"
msgid "Extrusion -" msgid "Extrusion -"
msgstr "Екструзія -" msgstr "Втягнути -"
msgid "Failed, adjust position first" msgid "Failed, adjust position first"
msgstr "Помилка, спочатку хоумінг" msgstr "Не вдалося, спочатку відрегулюйте положення"
msgid "Fan" msgid "Fan"
msgstr "Вентилятор" msgstr "Вентилятор"
msgid "Filament Used" msgid "Filament Used"
msgstr "Філамент" msgstr "Використання Прутка"
msgid "Filament total:" msgid "Filament total:"
msgstr "Загальна кількість прутка:" msgstr "Загальна кількість прутка:"
@@ -243,17 +255,13 @@ msgid "Finding ADXL"
msgstr "Знаходження ADXL" msgstr "Знаходження ADXL"
msgid "Fine Tuning" msgid "Fine Tuning"
msgstr "Підправити" msgstr "Точне налаштування"
msgid "Finish" msgid "Finish"
msgstr "Фініш" msgstr "Фініш"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Перезавантаження прошивки"
"Restart"
msgstr ""
"Перезапуск\n"
"Прошивки"
msgid "Flow:" msgid "Flow:"
msgstr "Потік:" msgstr "Потік:"
@@ -264,9 +272,7 @@ msgstr "Швидкість потоку:"
msgid "Font Size" msgid "Font Size"
msgstr "Розмір шрифту" msgstr "Розмір шрифту"
msgid "" msgid "Full Update"
"Full\n"
"Update"
msgstr "" msgstr ""
"Повне\n" "Повне\n"
"Оновлення" "Оновлення"
@@ -310,8 +316,11 @@ msgstr "Дім Z"
msgid "Homing" msgid "Homing"
msgstr "До дому" msgstr "До дому"
msgid "Host"
msgstr "Хост"
msgid "Hostname" msgid "Hostname"
msgstr "Назва хоста" msgstr "Ім'я хоста"
msgid "Icon Theme" msgid "Icon Theme"
msgstr "Тема оформлення" msgstr "Тема оформлення"
@@ -326,7 +335,7 @@ msgid "Initializing printer..."
msgstr "Ініціалізація принтера..." msgstr "Ініціалізація принтера..."
msgid "Input Shaper" msgid "Input Shaper"
msgstr "" msgstr "Input Shaper"
msgid "Interface" msgid "Interface"
msgstr "Інтерфейс" msgstr "Інтерфейс"
@@ -343,15 +352,13 @@ msgstr "Інвертувати Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "Інвертувати Z" msgstr "Інвертувати Z"
msgid "" msgid "Klipper Restart"
"Klipper\n"
"Restart"
msgstr "" msgstr ""
"Перезапуск\n" "Перезапуск\n"
"Кліппера" "Klipper"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper відключився" msgstr "Klipper загубив зв'язок"
msgid "Klipper has encountered an error." msgid "Klipper has encountered an error."
msgstr "У Klipper сталася помилка." msgstr "У Klipper сталася помилка."
@@ -384,7 +391,7 @@ msgid "Load"
msgstr "Завантажити" msgstr "Завантажити"
msgid "Lower Nozzle" msgid "Lower Nozzle"
msgstr "Низ сопла" msgstr "Опустити сопло"
msgid "Macro shortcut on sidebar" msgid "Macro shortcut on sidebar"
msgstr "Ярлик макросу на бічній панелі" msgstr "Ярлик макросу на бічній панелі"
@@ -393,10 +400,10 @@ msgid "Macros"
msgstr "Макрос" msgstr "Макрос"
msgid "Main Menu" msgid "Main Menu"
msgstr "Main Menu" msgstr "Головне Меню"
msgid "Max" msgid "Max"
msgstr "" msgstr "Макс"
msgid "Max Acceleration" msgid "Max Acceleration"
msgstr "Макс. прискорення" msgstr "Макс. прискорення"
@@ -429,7 +436,7 @@ msgid "Moonraker: connected"
msgstr "Підключено до Moonraker" msgstr "Підключено до Moonraker"
msgid "Move" msgid "Move"
msgstr "Рухатися" msgstr "Переміщення"
msgid "Move Distance (mm)" msgid "Move Distance (mm)"
msgstr "Переміщення (мм)" msgstr "Переміщення (мм)"
@@ -443,8 +450,15 @@ msgstr "Сітка"
msgid "New" msgid "New"
msgstr "Новий" msgstr "Новий"
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
"Автоматичне визначення не підтримується, його потрібно налаштувати у "
"klipperscreen.conf"
msgid "Nothing selected" msgid "Nothing selected"
msgstr "Не вибрано" msgstr "Не обрано"
msgid "Off" msgid "Off"
msgstr "Вимк" msgstr "Вимк"
@@ -459,17 +473,17 @@ msgstr "PSK для"
msgid "Package will be updated" msgid "Package will be updated"
msgid_plural "Packages will be updated" msgid_plural "Packages will be updated"
msgstr[0] "Пакет буде оновлено" msgstr[0] "Пакет буде оновлено"
msgstr[1] "Пакет оновлено" msgstr[1] "Пакети будуть оновлені"
msgstr[2] "Пакет оновлено" msgstr[2] "Пакети будуть оновлені"
msgid "Part Fan" msgid "Part Fan"
msgstr "" msgstr "Охолодження моделі"
msgid "Password saved" msgid "Password saved"
msgstr "Пароль збережено" msgstr "Пароль збережено"
msgid "Pause" msgid "Pause"
msgstr "ПАУЗА" msgstr "Пауза"
msgid "Paused" msgid "Paused"
msgstr "ПАУЗА" msgstr "ПАУЗА"
@@ -479,6 +493,8 @@ msgstr "Виконати повне оновлення?"
msgid "Pins" msgid "Pins"
msgstr "" msgstr ""
"Керування\n"
"контактами"
msgid "Please recompile and flash the micro-controller." msgid "Please recompile and flash the micro-controller."
msgstr "Будь ласка, перекомпілюйте та перепрошійте мікроконтролер." msgstr "Будь ласка, перекомпілюйте та перепрошійте мікроконтролер."
@@ -501,18 +517,21 @@ msgstr "Контроль друку"
msgid "Print Time" msgid "Print Time"
msgstr "Час друку" msgstr "Час друку"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "Підключення принтера" msgstr "Підключення принтера"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "Друк" msgstr "Друк"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "Зміщення зонда" msgstr "Зміщення зонда"
msgid "Probe found applied offset"
msgstr "Зонд знайшов застосоване зміщення"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "Ім'я профілю:" msgstr "Ім'я профілю:"
@@ -531,6 +550,9 @@ msgstr "Відновити легко"
msgid "Reference" msgid "Reference"
msgstr "Довідка" msgstr "Довідка"
msgid "Refresh"
msgstr "Оновити"
msgid "Restart" msgid "Restart"
msgstr "Перезапуск" msgstr "Перезапуск"
@@ -541,7 +563,9 @@ msgid "Retract"
msgstr "Ретракт" msgstr "Ретракт"
msgid "Retraction" msgid "Retraction"
msgstr "Втягнення" msgstr ""
"Параметри\n"
"ретракту"
msgid "Retraction Length" msgid "Retraction Length"
msgstr "Довжина втягування" msgstr "Довжина втягування"
@@ -554,7 +578,7 @@ msgid "Retry #%s"
msgstr "Повторіть #%s" msgstr "Повторіть #%s"
msgid "Retrying" msgid "Retrying"
msgstr "" msgstr "Повторна спроба"
msgid "Save" msgid "Save"
msgstr "Зберегти" msgstr "Зберегти"
@@ -603,6 +627,12 @@ msgstr "Налаштування"
msgid "Show" msgid "Show"
msgstr "Показати" msgstr "Показати"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "Розмір" msgstr "Розмір"
@@ -618,9 +648,6 @@ msgstr "Слайсер:"
msgid "Small" msgid "Small"
msgstr "Малий" msgstr "Малий"
msgid "Sort by: "
msgstr "Сортувати за: "
msgid "Sort:" msgid "Sort:"
msgstr "Сортувати:" msgstr "Сортувати:"
@@ -637,7 +664,7 @@ msgid "Speed:"
msgstr "Швидкість:" msgstr "Швидкість:"
msgid "Square Corner Velocity" msgid "Square Corner Velocity"
msgstr "Квадратна кутова швидкість" msgstr "Квадратно кутова швидкість"
msgid "Start" msgid "Start"
msgstr "СТАРТ" msgstr "СТАРТ"
@@ -654,19 +681,11 @@ msgstr "Початок оновлення для"
msgid "System" msgid "System"
msgstr "Системна" msgstr "Системна"
msgid "" msgid "System Restart"
"System\n" msgstr "Перезавантаження системи"
"Restart"
msgstr ""
"Рестарт\n"
"Малини"
msgid "" msgid "System Shutdown"
"System\n" msgstr "Завершення роботи системи"
"Shutdown"
msgstr ""
"Вимкнути\n"
"Малину"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "Teмп (°C)" msgstr "Teмп (°C)"
@@ -684,6 +703,9 @@ msgstr "Всього:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "Невідомий нагрівач" msgstr "Невідомий нагрівач"
msgid "Unknown screw position"
msgstr "Невідоме положення гвинта"
msgid "Unload" msgid "Unload"
msgstr "Вийняти" msgstr "Вийняти"
@@ -759,7 +781,7 @@ msgstr "dBm"
msgid "hour" msgid "hour"
msgid_plural "hours" msgid_plural "hours"
msgstr[0] "година" msgstr[0] "година"
msgstr[1] "години" msgstr[1] "годин"
msgstr[2] "години" msgstr[2] "години"
msgid "minutes" msgid "minutes"
@@ -774,5 +796,19 @@ msgstr "мм/с"
msgid "mm/s²" msgid "mm/s²"
msgstr "мм/с²" msgstr "мм/с²"
#~ msgid "Tool" #~ msgid "Machine"
#~ msgstr "Інструмент" #~ msgstr "Машина"
#~ msgid "Sort by: "
#~ msgstr "Сортувати за: "
#~ msgid "Auto Calibration"
#~ msgstr "Автоматичне калібрування"
#~ msgid "Manual Calibration"
#~ msgstr "Ручне калібрування"
#~ msgid "NOTE: Edit your printer.cfg to save manual calibration changes."
#~ msgstr ""
#~ "ПРИМІТКА. Відредагуйте файл printer.cfg, щоб зберегти зміни калібрування "
#~ "вручну."
@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-07-16 23:03+0800\n" "PO-Revision-Date: 2022-07-16 23:03+0800\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -49,8 +49,8 @@ msgstr "控制"
msgid "Add Printer" msgid "Add Printer"
msgstr "添加打印机" msgstr "添加打印机"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "添加热床网格" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "应用" msgstr "应用"
@@ -63,6 +63,9 @@ msgstr "对Endstop应用%.2f的偏移量?"
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "将%s%.2f的偏移量应用于探针?" msgstr "将%s%.2f的偏移量应用于探针?"
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "您确定要紧急停止吗?" msgstr "您确定要紧急停止吗?"
@@ -84,6 +87,9 @@ msgstr "自动"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "自动校准" msgstr "自动校准"
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "自动滚屏" msgstr "自动滚屏"
@@ -93,8 +99,8 @@ msgstr "热床调平"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "热床网格" msgstr "热床网格"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch 发现应用的偏移量" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "校准" msgstr "校准"
@@ -105,6 +111,9 @@ msgstr "已校准"
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "已校准,保存配置后生效" msgstr "已校准,保存配置后生效"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "校准中..." msgstr "校准中..."
@@ -129,16 +138,12 @@ msgstr "无法连接到Moonraker"
msgid "Channel" msgid "Channel"
msgstr "更新通道" msgstr "更新通道"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"检查/tmp/KlipperScreen.log以获取更多信息。\n"
"请在GitHub上提交问题以寻求帮助。"
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "检查ADXL的接线" msgstr "检查ADXL的接线"
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "清楚" msgstr "清楚"
@@ -179,6 +184,9 @@ msgstr "减少"
msgid "Delete" msgid "Delete"
msgstr "删除" msgstr "删除"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "取消选择" msgstr "取消选择"
@@ -204,6 +212,9 @@ msgstr "错误"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "估算剩余时间方式" msgstr "估算剩余时间方式"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "挤出机" msgstr "挤出机"
@@ -246,12 +257,8 @@ msgstr "微调"
msgid "Finish" msgid "Finish"
msgstr "结束" msgstr "结束"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "重启 Firmware"
"Restart"
msgstr ""
"重启\n"
"Firmware"
msgid "Flow:" msgid "Flow:"
msgstr "流量:" msgstr "流量:"
@@ -262,12 +269,8 @@ msgstr "流量:"
msgid "Font Size" msgid "Font Size"
msgstr "字体大小" msgstr "字体大小"
msgid "" msgid "Full Update"
"Full\n" msgstr "全部 更新"
"Update"
msgstr ""
"全部\n"
"更新"
msgid "Go Back" msgid "Go Back"
msgstr "返回" msgstr "返回"
@@ -308,6 +311,9 @@ msgstr "Z轴归零"
msgid "Homing" msgid "Homing"
msgstr "归零" msgstr "归零"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "主机名" msgstr "主机名"
@@ -341,12 +347,8 @@ msgstr "反转Y轴"
msgid "Invert Z" msgid "Invert Z"
msgstr "反转Z轴" msgstr "反转Z轴"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "重启 Klipper"
"Restart"
msgstr ""
"重启\n"
"Klipper"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper 已断开连接" msgstr "Klipper 已断开连接"
@@ -441,6 +443,11 @@ msgstr "网络"
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "未选择任何内容" msgstr "未选择任何内容"
@@ -497,18 +504,21 @@ msgstr "打印控制"
msgid "Print Time" msgid "Print Time"
msgstr "打印用时" msgstr "打印用时"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "龙门架调平" msgstr "龙门架调平"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "打印中" msgstr "打印中"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "探头偏移" msgstr "探头偏移"
msgid "Probe found applied offset"
msgstr "找到探头偏移"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "配置文件名称:" msgstr "配置文件名称:"
@@ -527,6 +537,9 @@ msgstr "重置(Soft)"
msgid "Reference" msgid "Reference"
msgstr "参考" msgstr "参考"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "重启Klipper" msgstr "重启Klipper"
@@ -599,6 +612,12 @@ msgstr "设置"
msgid "Show" msgid "Show"
msgstr "显示" msgstr "显示"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "大小" msgstr "大小"
@@ -614,9 +633,6 @@ msgstr "切片:"
msgid "Small" msgid "Small"
msgstr "小" msgstr "小"
msgid "Sort by: "
msgstr "排序: "
msgid "Sort:" msgid "Sort:"
msgstr "排序:" msgstr "排序:"
@@ -650,19 +666,11 @@ msgstr "开始更新"
msgid "System" msgid "System"
msgstr "系统" msgstr "系统"
msgid "" msgid "System Restart"
"System\n" msgstr "重启 系统"
"Restart"
msgstr ""
"重启\n"
"系统"
msgid "" msgid "System Shutdown"
"System\n" msgstr "关闭 系统"
"Shutdown"
msgstr ""
"关闭\n"
"系统"
msgid "Temp (°C)" msgid "Temp (°C)"
msgstr "温度 (°C)" msgstr "温度 (°C)"
@@ -680,6 +688,9 @@ msgstr "总:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "未知加热器" msgstr "未知加热器"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "卸载" msgstr "卸载"
@@ -766,6 +777,22 @@ msgstr ""
msgid "mm/s²" msgid "mm/s²"
msgstr "" msgstr ""
#~ msgid "Sort by: "
#~ msgstr "排序: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch 发现应用的偏移量"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "检查/tmp/KlipperScreen.log以获取更多信息。\n"
#~ "请在GitHub上提交问题以寻求帮助。"
#~ msgid "Probe found applied offset"
#~ msgstr "找到探头偏移"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "工具" #~ msgstr "工具"
@@ -781,9 +808,6 @@ msgstr ""
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6 地址" #~ msgstr "IPv6 地址"
#~ msgid "Unknown Heater "
#~ msgstr "未知加热器 "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "断开" #~ msgstr "断开"
@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: KlipperScreen\n" "Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-12 22:17-0300\n" "POT-Creation-Date: 2022-10-27 23:42-0300\n"
"PO-Revision-Date: 2022-03-31 11:25-0300\n" "PO-Revision-Date: 2022-03-31 11:25-0300\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -49,8 +49,8 @@ msgstr "動作"
msgid "Add Printer" msgid "Add Printer"
msgstr "新增列印機" msgstr "新增列印機"
msgid "Add bed mesh profile" msgid "Add profile"
msgstr "新增網床輪廓" msgstr ""
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
@@ -63,6 +63,9 @@ msgstr ""
msgid "Apply %s%.2f offset to Probe?" msgid "Apply %s%.2f offset to Probe?"
msgstr "" msgstr ""
msgid "Are you sure do you want to exclude the object?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?" msgid "Are you sure you want to run Emergency Stop?"
msgstr "您確定要運行緊急停止嗎?" msgstr "您確定要運行緊急停止嗎?"
@@ -84,6 +87,9 @@ msgstr "汽車"
msgid "Auto-calibrate" msgid "Auto-calibrate"
msgstr "" msgstr ""
msgid "Auto-close notifications"
msgstr ""
msgid "Auto-scroll" msgid "Auto-scroll"
msgstr "自動滾屏" msgstr "自動滾屏"
@@ -93,8 +99,8 @@ msgstr "熱床調平"
msgid "Bed Mesh" msgid "Bed Mesh"
msgstr "網格床" msgstr "網格床"
msgid "Bltouch found applied offset" msgid "Bed screw configuration:"
msgstr "Bltouch 發現應用的偏移量" msgstr ""
msgid "Calibrate" msgid "Calibrate"
msgstr "校正" msgstr "校正"
@@ -105,6 +111,9 @@ msgstr ""
msgid "Calibrated, save configuration to make it permanent" msgid "Calibrated, save configuration to make it permanent"
msgstr "校準,保存配置以使其永久化" msgstr "校準,保存配置以使其永久化"
msgid "Calibrating"
msgstr ""
msgid "Calibrating..." msgid "Calibrating..."
msgstr "" msgstr ""
@@ -129,16 +138,12 @@ msgstr "無法連接到 Moonraker"
msgid "Channel" msgid "Channel"
msgstr "通道" msgstr "通道"
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
"檢查/tmp/KlipperScreen.log 日誌檔以了解更多訊息。\n"
"請在GitHub上提交問題以尋求幫助。"
msgid "Check ADXL Wiring" msgid "Check ADXL Wiring"
msgstr "" msgstr ""
msgid "Checking for updates, please wait..."
msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@@ -179,6 +184,9 @@ msgstr "減少"
msgid "Delete" msgid "Delete"
msgstr "刪除" msgstr "刪除"
msgid "Delete File?"
msgstr ""
msgid "Deselect" msgid "Deselect"
msgstr "取消選擇" msgstr "取消選擇"
@@ -204,6 +212,9 @@ msgstr "錯誤"
msgid "Estimated Time Method" msgid "Estimated Time Method"
msgstr "預估時間方法" msgstr "預估時間方法"
msgid "Exclude Object"
msgstr ""
msgid "Extrude" msgid "Extrude"
msgstr "擠出機" msgstr "擠出機"
@@ -246,12 +257,8 @@ msgstr "微調"
msgid "Finish" msgid "Finish"
msgstr "完成" msgstr "完成"
msgid "" msgid "Firmware Restart"
"Firmware\n" msgstr "Firmware 重新啟動"
"Restart"
msgstr ""
"Firmware\n"
"重新啟動"
msgid "Flow:" msgid "Flow:"
msgstr "" msgstr ""
@@ -262,12 +269,8 @@ msgstr ""
msgid "Font Size" msgid "Font Size"
msgstr "字體大小" msgstr "字體大小"
msgid "" msgid "Full Update"
"Full\n" msgstr "滿的 更新"
"Update"
msgstr ""
"滿的\n"
"更新"
msgid "Go Back" msgid "Go Back"
msgstr "返回" msgstr "返回"
@@ -308,6 +311,9 @@ msgstr "歸零 Z"
msgid "Homing" msgid "Homing"
msgstr "歸零" msgstr "歸零"
msgid "Host"
msgstr ""
msgid "Hostname" msgid "Hostname"
msgstr "主機名稱" msgstr "主機名稱"
@@ -341,12 +347,8 @@ msgstr "反轉 Y"
msgid "Invert Z" msgid "Invert Z"
msgstr "反轉 Z" msgstr "反轉 Z"
msgid "" msgid "Klipper Restart"
"Klipper\n" msgstr "Klipper 重新啟動"
"Restart"
msgstr ""
"Klipper\n"
"重新啟動"
msgid "Klipper has disconnected" msgid "Klipper has disconnected"
msgstr "Klipper 已斷開連結" msgstr "Klipper 已斷開連結"
@@ -441,6 +443,11 @@ msgstr "網路"
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid ""
"Not supported for auto-detection, it needs to be configured in klipperscreen."
"conf"
msgstr ""
msgid "Nothing selected" msgid "Nothing selected"
msgstr "未選擇任何內容" msgstr "未選擇任何內容"
@@ -497,18 +504,21 @@ msgstr "列印控制"
msgid "Print Time" msgid "Print Time"
msgstr "列印時間" msgstr "列印時間"
msgid "Printer"
msgstr ""
msgid "Printer Connections" msgid "Printer Connections"
msgstr "連接列印機" msgstr "連接列印機"
msgid "Printer Select"
msgstr ""
msgid "Printing" msgid "Printing"
msgstr "列印中" msgstr "列印中"
msgid "Probe Offset" msgid "Probe Offset"
msgstr "" msgstr ""
msgid "Probe found applied offset"
msgstr "Probe 發現應用的偏移量"
msgid "Profile Name:" msgid "Profile Name:"
msgstr "配置檔案名稱:" msgstr "配置檔案名稱:"
@@ -527,6 +537,9 @@ msgstr "恢復 Soft"
msgid "Reference" msgid "Reference"
msgstr "參考" msgstr "參考"
msgid "Refresh"
msgstr ""
msgid "Restart" msgid "Restart"
msgstr "重新啟動" msgstr "重新啟動"
@@ -599,6 +612,12 @@ msgstr "設定"
msgid "Show" msgid "Show"
msgstr "展示" msgstr "展示"
msgid "Show Heater Power"
msgstr ""
msgid "Shutdown"
msgstr ""
msgid "Size" msgid "Size"
msgstr "大小" msgstr "大小"
@@ -614,9 +633,6 @@ msgstr ""
msgid "Small" msgid "Small"
msgstr "小的" msgstr "小的"
msgid "Sort by: "
msgstr "排序: "
msgid "Sort:" msgid "Sort:"
msgstr "" msgstr ""
@@ -650,14 +666,10 @@ msgstr "開始更新"
msgid "System" msgid "System"
msgstr "系統" msgstr "系統"
msgid "" msgid "System Restart"
"System\n"
"Restart"
msgstr "系統重新啟動" msgstr "系統重新啟動"
msgid "" msgid "System Shutdown"
"System\n"
"Shutdown"
msgstr "關閉系統" msgstr "關閉系統"
msgid "Temp (°C)" msgid "Temp (°C)"
@@ -676,6 +688,9 @@ msgstr "全部的:"
msgid "Unknown Heater" msgid "Unknown Heater"
msgstr "未知加熱器" msgstr "未知加熱器"
msgid "Unknown screw position"
msgstr ""
msgid "Unload" msgid "Unload"
msgstr "卸載" msgstr "卸載"
@@ -762,6 +777,22 @@ msgstr "mm/s"
msgid "mm/s²" msgid "mm/s²"
msgstr "mm/s²" msgstr "mm/s²"
#~ msgid "Sort by: "
#~ msgstr "排序: "
#~ msgid "Bltouch found applied offset"
#~ msgstr "Bltouch 發現應用的偏移量"
#~ msgid ""
#~ "Check /tmp/KlipperScreen.log for more information.\n"
#~ "Please submit an issue on GitHub for help."
#~ msgstr ""
#~ "檢查/tmp/KlipperScreen.log 日誌檔以了解更多訊息。\n"
#~ "請在GitHub上提交問題以尋求幫助。"
#~ msgid "Probe found applied offset"
#~ msgstr "Probe 發現應用的偏移量"
#~ msgid "Tool" #~ msgid "Tool"
#~ msgstr "工具" #~ msgstr "工具"
@@ -777,9 +808,6 @@ msgstr "mm/s²"
#~ msgid "IPv6" #~ msgid "IPv6"
#~ msgstr "IPv6" #~ msgstr "IPv6"
#~ msgid "Unknown Heater "
#~ msgstr "未知加熱器 "
#~ msgid "Disconnect" #~ msgid "Disconnect"
#~ msgstr "斷開" #~ msgstr "斷開"
+26 -30
View File
@@ -134,8 +134,8 @@ class Printer:
self.data[x] = {} self.data[x] = {}
self.data[x].update(data[x]) self.data[x].update(data[x])
if "webhooks" in data or "idle_timeout" in data or "print_stats" in data or "pause_resume" in data: if "webhooks" in data or "print_stats" in data:
self.evaluate_state() self.process_status_update()
def get_updates(self): def get_updates(self):
updates = self.data.copy() updates = self.data.copy()
@@ -143,39 +143,27 @@ class Printer:
return updates return updates
def evaluate_state(self): def evaluate_state(self):
wh_state = self.data['webhooks']['state'].lower() # possible values: startup, ready, shutdown, error # webhooks states: startup, ready, shutdown, error
if self.data['webhooks']['state'] == "ready":
if self.data['print_stats']: # standby, printing, paused, error, complete
if self.data['print_stats']['state'] == 'paused' or self.data.get('pause_resume').get('is_paused'):
return "paused"
if self.data['print_stats']['state'] == 'printing':
return "printing"
return self.data['webhooks']['state']
if wh_state == "ready": def process_status_update(self):
new_state = "ready" state = self.evaluate_state()
if self.data['pause_resume']['is_paused']: if state != self.state:
new_state = "paused" self.change_state(state)
elif self.data['print_stats']:
print_state = self.data['print_stats']['state'].lower() # complete, error, paused, printing, standby
if print_state == "paused":
new_state = "paused"
if self.data['idle_timeout']:
idle_state = self.data['idle_timeout']['state'].lower() # idle, printing, ready
if idle_state == "printing":
if print_state == "complete":
new_state = "ready"
elif print_state != "printing": # Not printing a file, toolhead moving
new_state = "busy"
else:
new_state = "printing"
if new_state != "busy":
self.change_state(new_state)
else:
self.change_state(wh_state)
def process_power_update(self, data): def process_power_update(self, data):
if data['device'] in self.power_devices: if data['device'] in self.power_devices:
self.power_devices[data['device']]['status'] = data['status'] self.power_devices[data['device']]['status'] = data['status']
def change_state(self, state): def change_state(self, state):
if state == self.state or state not in list(self.state_callbacks): if state not in list(self.state_callbacks): # disconnected, startup, ready, shutdown, error, paused, printing
return return
logging.debug(f"Changing state from '{self.state}' to '{state}'") logging.debug(f"Changing state from '{self.state}' to '{state}'")
prev_state = self.state prev_state = self.state
self.state = state self.state = state
@@ -199,7 +187,9 @@ class Printer:
logging.debug(f"Power devices: {self.power_devices}") logging.debug(f"Power devices: {self.power_devices}")
def get_config_section_list(self, search=""): def get_config_section_list(self, search=""):
return [i for i in list(self.config) if i.startswith(search)] if hasattr(self, "config") else [] if self.config is not None:
return [i for i in list(self.config) if i.startswith(search)] if hasattr(self, "config") else []
return []
def get_config_section(self, section): def get_config_section(self, section):
return self.config[section] if section in self.config else False return self.config[section] if section in self.config else False
@@ -285,11 +275,13 @@ class Printer:
def get_state(self): def get_state(self):
return self.state return self.state
def set_dev_temps(self, dev, temp, target=None): def set_dev_temps(self, dev, temp, target=None, power=None):
if dev in self.devices: if dev in self.devices:
self.devices[dev]['temperature'] = temp self.devices[dev]['temperature'] = temp
if target is not None: if target is not None:
self.devices[dev]['target'] = target self.devices[dev]['target'] = target
if power is not None:
self.devices[dev]['power'] = power
def get_dev_stats(self, dev): def get_dev_stats(self, dev):
return self.devices[dev] if dev in self.devices else None return self.devices[dev] if dev in self.devices else None
@@ -316,7 +308,11 @@ class Printer:
return speed return speed
def get_pin_value(self, pin): def get_pin_value(self, pin):
return self.data[pin]["value"] if pin in self.data else 0 if pin in self.data:
return self.data[pin]["value"]
elif pin in self.config and 'value' in self.config[pin]:
return self.config[pin]["value"]
return 0
def get_extruder_count(self): def get_extruder_count(self):
return self.extrudercount return self.extrudercount
+33 -4
View File
@@ -14,7 +14,6 @@ class ScreenPanel:
self._screen = screen self._screen = screen
self._config = screen._config self._config = screen._config
self._files = screen.files self._files = screen.files
self.lang = self._screen.lang
self._printer = screen.printer self._printer = screen.printer
self.labels = {} self.labels = {}
self._gtk = screen.gtk self._gtk = screen.gtk
@@ -31,13 +30,15 @@ class ScreenPanel:
self.content.set_hexpand(True) self.content.set_hexpand(True)
self.content.set_vexpand(True) self.content.set_vexpand(True)
self._show_heater_power = self._config.get_main_config().getboolean('show_heater_power', False)
def initialize(self, panel_name): def initialize(self, panel_name):
# Create gtk items here # Create gtk items here
return return
def emergency_stop(self, widget): def emergency_stop(self, widget):
if self._config.get_main_config().getboolean('confirm_estop'): if self._config.get_main_config().getboolean('confirm_estop', False):
self._screen._confirm_send_action(widget, _("Are you sure you want to run Emergency Stop?"), self._screen._confirm_send_action(widget, _("Are you sure you want to run Emergency Stop?"),
"printer.emergency_stop") "printer.emergency_stop")
else: else:
@@ -49,10 +50,11 @@ class ScreenPanel:
def get_content(self): def get_content(self):
return self.content return self.content
def get_file_image(self, filename, width=1, height=1, small=False): def get_file_image(self, filename, width=None, height=None, small=False):
if not self._files.has_thumbnail(filename): if not self._files.has_thumbnail(filename):
return None return None
width = width if width is not None else self._gtk.img_width
height = height if height is not None else self._gtk.img_height
loc = self._files.get_thumbnail_location(filename, small) loc = self._files.get_thumbnail_location(filename, small)
if loc is None: if loc is None:
return None return None
@@ -174,3 +176,30 @@ class ScreenPanel:
unit = 1024 ** i unit = 1024 ** i
if size < unit: if size < unit:
return f"{(1024 * size / unit):.1f} {suffix}" return f"{(1024 * size / unit):.1f} {suffix}"
def update_temp(self, dev, temp, target, power, lines=1):
if temp is None:
return
show_target = bool(target)
if dev in self.devices and not self.devices[dev]["can_target"]:
show_target = False
show_power = show_target and self._show_heater_power and power is not None
new_label_text = f"{int(temp):3}"
if show_target:
new_label_text += f"/{int(target)}"
if dev not in self.devices:
new_label_text += "°"
if show_power:
if lines == 2:
# The label should wrap, but it doesn't work
# this is a workaround
new_label_text += "\n "
new_label_text += f" {int(power*100):3}%"
if dev in self.labels:
self.labels[dev].set_label(new_label_text)
elif dev in self.devices:
self.devices[dev]["temp"].get_child().set_label(new_label_text)
+3 -2
View File
@@ -37,7 +37,7 @@ class HeaterGraph(Gtk.DrawingArea):
@staticmethod @staticmethod
def event_cb(da, ev): def event_cb(da, ev):
if ev.ev_type == Gdk.EventType.BUTTON_PRESS: if ev.type == Gdk.EventType.BUTTON_PRESS:
x = ev.x x = ev.x
y = ev.y y = ev.y
logging.info(f"Graph area: {x} {y}") logging.info(f"Graph area: {x} {y}")
@@ -112,7 +112,7 @@ class HeaterGraph(Gtk.DrawingArea):
d_len = len(data) - 1 d_len = len(data) - 1
for d in data: for d in data:
p_x = i * swidth + gsize[0][0] if i != d_len else gsize[1][0] - 1 p_x = i * swidth + gsize[0][0] if i != d_len else gsize[1][0] - 1
p_y = gsize[1][1] - 1 - (d * hscale) p_y = max(gsize[0][1], min(gsize[1][1], gsize[1][1] - 1 - (d * hscale)))
if i == 0: if i == 0:
ctx.move_to(gsize[0][0] + 1, p_y) ctx.move_to(gsize[0][0] + 1, p_y)
i += 1 i += 1
@@ -132,6 +132,7 @@ class HeaterGraph(Gtk.DrawingArea):
def graph_lines(self, ctx, gsize, max_num): def graph_lines(self, ctx, gsize, max_num):
nscale = 10 nscale = 10
max_num = min(max_num, 999)
while (max_num / nscale) > 5: while (max_num / nscale) > 5:
nscale += 10 nscale += 10
# nscale = math.floor((max_num / 10) / 4) * 10 # nscale = math.floor((max_num / 10) / 4) * 10
+3 -3
View File
@@ -35,9 +35,9 @@ class Keypad(Gtk.Box):
for i in range(len(keys)): for i in range(len(keys)):
k_id = f'button_{str(keys[i][0])}' k_id = f'button_{str(keys[i][0])}'
if keys[i][0] == "B": if keys[i][0] == "B":
self.labels[k_id] = self._gtk.ButtonImage("backspace", None, None, 1) self.labels[k_id] = self._gtk.ButtonImage("backspace", scale=1)
elif keys[i][0] == "E": elif keys[i][0] == "E":
self.labels[k_id] = self._gtk.ButtonImage("complete", None, None, 1) self.labels[k_id] = self._gtk.ButtonImage("complete", scale=1)
else: else:
self.labels[k_id] = Gtk.Button(keys[i][0]) self.labels[k_id] = Gtk.Button(keys[i][0])
self.labels[k_id].connect('clicked', self.update_entry, keys[i][0]) self.labels[k_id].connect('clicked', self.update_entry, keys[i][0])
@@ -49,7 +49,7 @@ class Keypad(Gtk.Box):
self.labels['entry'].props.xalign = 0.5 self.labels['entry'].props.xalign = 0.5
self.labels['entry'].connect("activate", self.update_entry, "E") self.labels['entry'].connect("activate", self.update_entry, "E")
b = self._gtk.ButtonImage('cancel', _('Close'), None, .66, Gtk.PositionType.LEFT, False) b = self._gtk.ButtonImage('cancel', _('Close'), None, .66, Gtk.PositionType.LEFT, 1)
b.connect("clicked", close_function) b.connect("clicked", close_function)
self.add(self.labels['entry']) self.add(self.labels['entry'])
+150
View File
@@ -0,0 +1,150 @@
import logging
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk
class ObjectMap(Gtk.DrawingArea):
def __init__(self, screen, printer, font_size):
super().__init__()
self._screen = screen
self.set_hexpand(True)
self.set_vexpand(True)
# self.get_style_context().add_class('objectmap')
self.printer = printer
self.max_length = 0
self.connect('draw', self.draw_graph)
self.add_events(Gdk.EventMask.TOUCH_MASK)
self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
self.connect('button_press_event', self.event_cb)
self.font_size = round(font_size * 0.75)
self.font_spacing = round(self.font_size * 1.5)
self.margin_left = round(self.font_size * 2.75)
self.margin_right = 15
self.margin_top = 10
self.margin_bottom = self.font_size * 2
self.objects = self.printer.get_stat("exclude_object", "objects")
self.current_object = self.printer.get_stat("current_object", "current_object")
self.excluded_objects = self.printer.get_stat("exclude_object", "excluded_objects")
self.min_x = self.min_y = 99999999
self.max_x = self.max_y = 0
def x_graph_to_bed(self, width, gx):
return (((gx - self.margin_left) * (self.max_x - self.min_x))
/ (width - self.margin_left - self.margin_right)) + self.min_x
def y_graph_to_bed(self, height, gy):
return ((1 - ((gy - self.margin_top) / (height - self.margin_top - self.margin_bottom)))
* (self.max_y - self.min_y)) + self.min_y
def event_cb(self, da, ev):
# Convert coordinates from screen-graph to bed
x = self.x_graph_to_bed(da.get_allocated_width(), ev.x)
y = self.y_graph_to_bed(da.get_allocated_height(), ev.y)
logging.info(f"Touched GRAPH {ev.x:.0f},{ev.y:.0f} BED: {x:.0f},{y:.0f}")
for obj in self.objects:
obj_min_x = obj_max_x = obj["polygon"][0][0]
obj_min_y = obj_max_y = obj["polygon"][0][1]
for point in obj["polygon"]:
obj_min_x = min(obj_min_x, point[0])
obj_min_y = min(obj_min_y, point[1])
obj_max_x = max(obj_max_x, point[0])
obj_max_y = max(obj_max_y, point[1])
if obj_min_x < x < obj_max_x and obj_min_y < y < obj_max_y:
logging.info(f"TOUCHED object it's: {obj['name']}")
if obj['name'] not in self.excluded_objects:
self.exclude_object(obj['name'])
break
def exclude_object(self, name):
script = {"script": f"EXCLUDE_OBJECT NAME={name}"}
self._screen._confirm_send_action(
None,
_("Are you sure do you want to exclude the object?") + f"\n\n{name}",
"printer.gcode.script",
script
)
def draw_graph(self, da, ctx):
right = da.get_allocated_width() - self.margin_right
bottom = da.get_allocated_height() - self.margin_bottom
self.objects = self.printer.get_stat("exclude_object", "objects")
for obj in self.objects:
for point in obj["polygon"]:
# Find min coords
self.min_x = min(self.min_x, point[0])
self.min_y = min(self.min_y, point[1])
# Find max coords
self.max_x = max(self.max_x, point[0])
self.max_y = max(self.max_y, point[1])
# Styling
ctx.set_source_rgb(.5, .5, .5) # Grey
ctx.set_line_width(1)
ctx.set_font_size(self.font_size)
# Borders
ctx.move_to(self.margin_left, self.margin_top)
# logging.info(f"l:{self.margin_left:.0f} t:{self.margin_top:.0f} r:{right:.0f} b:{bottom:.0f}")
ctx.line_to(right, self.margin_top)
ctx.line_to(right, bottom)
ctx.line_to(self.margin_left, bottom)
ctx.line_to(self.margin_left, self.margin_top)
ctx.stroke()
# Axis labels
ctx.move_to(0, bottom + self.font_spacing)
ctx.show_text(f"{self.min_x:.0f},{self.min_y:.0f}")
ctx.stroke()
ctx.move_to(right - self.font_spacing * 2, bottom + self.font_spacing)
ctx.show_text(f"{self.max_x:.0f},{self.min_y:.0f}")
ctx.stroke()
ctx.move_to(0, self.font_spacing / 2)
ctx.show_text(f"{self.min_x:.0f},{self.max_y:.0f}")
ctx.stroke()
# middle markers
midx = (right - self.margin_left) / 2 + self.margin_left
ctx.set_dash([1, 1])
ctx.move_to(midx, self.margin_top)
ctx.line_to(midx, bottom)
ctx.stroke()
midy = (self.margin_top - bottom) / 2 + bottom
ctx.move_to(self.margin_left, midy)
ctx.line_to(right, midy)
ctx.stroke()
ctx.set_dash([1, 0])
# Draw objects
for obj in self.objects:
# change the color depending on the status
if obj['name'] == self.printer.get_stat("exclude_object", "current_object"):
ctx.set_source_rgb(1, 0, 0) # Red
elif obj['name'] in self.printer.get_stat("exclude_object", "excluded_objects"):
ctx.set_source_rgb(0, 0, 0) # Black
else:
ctx.set_source_rgb(.5, .5, .5) # Grey
for i, point in enumerate(obj["polygon"]):
# Convert coordinates from bed to screen-graph
x = self.x_bed_to_graph(da.get_allocated_width(), point[0])
y = self.y_bed_to_graph(da.get_allocated_height(), point[1])
if i == 0:
ctx.move_to(x, y)
continue
ctx.line_to(x, y)
# logging.info(f"obj graph: {x=:.0f},{y=:.0f} bed: {point[0]:.0f},{point[1]:.0f}")
ctx.close_path()
ctx.fill()
ctx.stroke()
def x_bed_to_graph(self, width, bx):
return (((bx - self.min_x) * (width - self.margin_left - self.margin_right))
/ (self.max_x - self.min_x)) + self.margin_left
def y_bed_to_graph(self, height, by):
return ((1 - ((by - self.min_y) / (self.max_y - self.min_y)))
* (height - self.margin_top - self.margin_bottom)) + self.margin_top
+9 -2
View File
@@ -14,11 +14,18 @@ nav:
- Quicktips.md - Quicktips.md
- Macros: macros.md - Macros: macros.md
- Android.md - Android.md
- Thumbnails.md
- Troubleshooting.md - Troubleshooting.md
- Panels:
- Bed Level/Screws: Screws.md
- Job_status/Printing: Job_status.md
- Temperature: Temperature.md
- Z Calibrate: Zcalibrate.md
- Screenshots: Panels.md
- Theming.md - Theming.md
- Translations.md - Translations.md
- Breaking Changes: Changelog.md - Breaking Changes: Changelog.md
- Screenshots: Panels.md
- Contact.md - Contact.md
theme: theme:
name: material name: material
@@ -26,8 +33,8 @@ theme:
features: features:
- content.code.annotate - content.code.annotate
- content.tooltips - content.tooltips
- navigation.expand
- navigation.indexes - navigation.indexes
- navigation.sections
- navigation.top - navigation.top
- navigation.tracking - navigation.tracking
- search.highlight - search.highlight
+50 -51
View File
@@ -1,12 +1,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import contextlib import contextlib
import datetime
import gi import gi
import logging import logging
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import GLib, Gtk, Pango from gi.repository import GLib, Gtk, Pango
from jinja2 import Environment from jinja2 import Environment
from datetime import datetime
from math import log
from ks_includes.screen_panel import ScreenPanel from ks_includes.screen_panel import ScreenPanel
@@ -26,22 +27,22 @@ class BasePanel(ScreenPanel):
} }
self.current_extruder = None self.current_extruder = None
# Action bar buttons # Action bar buttons
self.control['back'] = self._gtk.ButtonImage('back', None, None, 1) self.control['back'] = self._gtk.ButtonImage('back', scale=1)
self.control['back'].connect("clicked", self.back) self.control['back'].connect("clicked", self.back)
self.control['home'] = self._gtk.ButtonImage('main', None, None, 1) self.control['home'] = self._gtk.ButtonImage('main', scale=1)
self.control['home'].connect("clicked", self.menu_return, True) self.control['home'].connect("clicked", self.menu_return, True)
if len(self._config.get_printers()) > 1: if len(self._config.get_printers()) > 1:
self.control['printer_select'] = self._gtk.ButtonImage('shuffle', None, None, 1) self.control['printer_select'] = self._gtk.ButtonImage('shuffle', scale=1)
self.control['printer_select'].connect("clicked", self._screen.show_printer_select) self.control['printer_select'].connect("clicked", self._screen.show_printer_select)
self.control['macros_shortcut'] = self._gtk.ButtonImage('custom-script', None, None, 1) self.control['macros_shortcut'] = self._gtk.ButtonImage('custom-script', scale=1)
self.control['macros_shortcut'].connect("clicked", self.menu_item_clicked, "gcode_macros", { self.control['macros_shortcut'].connect("clicked", self.menu_item_clicked, "gcode_macros", {
"name": "Macros", "name": "Macros",
"panel": "gcode_macros" "panel": "gcode_macros"
}) })
self.control['estop'] = self._gtk.ButtonImage('emergency', None, None, 1) self.control['estop'] = self._gtk.ButtonImage('emergency', scale=1)
self.control['estop'].connect("clicked", self.emergency_stop) self.control['estop'].connect("clicked", self.emergency_stop)
# Any action bar button should close the keyboard # Any action bar button should close the keyboard
@@ -64,7 +65,7 @@ class BasePanel(ScreenPanel):
self.action_bar.add(self.control['home']) self.action_bar.add(self.control['home'])
if len(self._config.get_printers()) > 1: if len(self._config.get_printers()) > 1:
self.action_bar.add(self.control['printer_select']) self.action_bar.add(self.control['printer_select'])
self.action_bar.add(self.control['macros_shortcut']) self.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut', True))
self.action_bar.add(self.control['estop']) self.action_bar.add(self.control['estop'])
# Titlebar # Titlebar
@@ -81,7 +82,7 @@ class BasePanel(ScreenPanel):
self.control['time'] = Gtk.Label("00:00 AM") self.control['time'] = Gtk.Label("00:00 AM")
self.control['time_box'] = Gtk.Box() self.control['time_box'] = Gtk.Box()
self.control['time_box'].set_halign(Gtk.Align.END) self.control['time_box'].set_halign(Gtk.Align.END)
self.control['time_box'].pack_end(self.control['time'], True, True, 5) self.control['time_box'].pack_end(self.control['time'], True, True, 10)
self.titlebar = Gtk.Box(spacing=5) self.titlebar = Gtk.Box(spacing=5)
self.titlebar.set_size_request(0, self._gtk.get_titlebar_height()) self.titlebar.set_size_request(0, self._gtk.get_titlebar_height())
@@ -115,6 +116,11 @@ class BasePanel(ScreenPanel):
return return
def show_heaters(self, show=True): def show_heaters(self, show=True):
for child in self.control['temp_box'].get_children():
self.control['temp_box'].remove(child)
if not show or self._screen.printer.get_temp_store_devices() is None:
return
printer_cfg = self._config.get_printer_config(self._screen.connected_printer) printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
if printer_cfg is not None: if printer_cfg is not None:
self.titlebar_name_type = printer_cfg.get("titlebar_name_type", None) self.titlebar_name_type = printer_cfg.get("titlebar_name_type", None)
@@ -122,55 +128,26 @@ class BasePanel(ScreenPanel):
self.titlebar_name_type = None self.titlebar_name_type = None
logging.info(f"Titlebar name type: {self.titlebar_name_type}") logging.info(f"Titlebar name type: {self.titlebar_name_type}")
for child in self.control['temp_box'].get_children(): img_size = self._gtk.img_scale * .5
self.control['temp_box'].remove(child)
if not show or self._screen.printer.get_temp_store_devices() is None:
return
for device in self._screen.printer.get_temp_store_devices(): for device in self._screen.printer.get_temp_store_devices():
if device.startswith("extruder"):
if self._screen.printer.extrudercount > 1:
if device == "extruder":
icon = self._gtk.Image("extruder-0", .5)
else:
icon = self._gtk.Image(f"extruder-{device[8:]}", .5)
else:
icon = self._gtk.Image("extruder", .5)
elif device.startswith("heater_bed"):
icon = self._gtk.Image("bed", .5)
# Extra items
elif self.titlebar_name_type is not None:
# The item has a name, do not use an icon
icon = None
elif device.startswith("temperature_fan"):
icon = self._gtk.Image("fan", .5)
elif device.startswith("heater_generic"):
icon = self._gtk.Image("heater", .5)
else:
icon = self._gtk.Image("heat-up", .5)
self.labels[device] = Gtk.Label(label="100º") self.labels[device] = Gtk.Label(label="100º")
self.labels[device].set_ellipsize(Pango.EllipsizeMode.START) self.labels[device].set_ellipsize(Pango.EllipsizeMode.START)
self.labels[f'{device}_box'] = Gtk.Box() self.labels[f'{device}_box'] = Gtk.Box()
icon = self.get_icon(device, img_size)
if icon is not None: if icon is not None:
self.labels[f'{device}_box'].pack_start(icon, False, False, 3) self.labels[f'{device}_box'].pack_start(icon, False, False, 3)
self.labels[f'{device}_box'].pack_start(self.labels[device], False, False, 0) self.labels[f'{device}_box'].pack_start(self.labels[device], False, False, 0)
# Limit the number of items according to resolution # Limit the number of items according to resolution
if self._screen.width <= 480: nlimit = int(round(log(self._screen.width, 10) * 5 - 10.5))
nlimit = 3
elif self._screen.width <= 800:
nlimit = 4
else:
nlimit = 5
n = 0 n = 0
if self._screen.printer.get_tools(): if self._screen.printer.get_tools():
self.current_extruder = self._screen.printer.get_stat("toolhead", "extruder") self.current_extruder = self._screen.printer.get_stat("toolhead", "extruder")
self.control['temp_box'].add(self.labels[f"{self.current_extruder}_box"]) if self.current_extruder and f"{self.current_extruder}_box" in self.labels:
n += 1 self.control['temp_box'].add(self.labels[f"{self.current_extruder}_box"])
n += 1
if self._screen.printer.has_heated_bed(): if self._screen.printer.has_heated_bed():
self.control['temp_box'].add(self.labels['heater_bed_box']) self.control['temp_box'].add(self.labels['heater_bed_box'])
@@ -178,7 +155,7 @@ class BasePanel(ScreenPanel):
# Options in the config have priority # Options in the config have priority
if printer_cfg is not None: if printer_cfg is not None:
titlebar_items = printer_cfg.get("titlebar_items", "") titlebar_items = printer_cfg.get("titlebar_items", None)
if titlebar_items is not None: if titlebar_items is not None:
titlebar_items = [str(i.strip()) for i in titlebar_items.split(',')] titlebar_items = [str(i.strip()) for i in titlebar_items.split(',')]
logging.info(f"Titlebar items: {titlebar_items}") logging.info(f"Titlebar items: {titlebar_items}")
@@ -202,6 +179,26 @@ class BasePanel(ScreenPanel):
n += 1 n += 1
self.control['temp_box'].show_all() self.control['temp_box'].show_all()
def get_icon(self, device, img_size):
if device.startswith("extruder"):
if self._screen.printer.extrudercount > 1:
if device == "extruder":
device = "extruder0"
return self._gtk.Image(f"extruder-{device[8:]}", img_size, img_size)
return self._gtk.Image("extruder", img_size, img_size)
elif device.startswith("heater_bed"):
return self._gtk.Image("bed", img_size, img_size)
# Extra items
elif self.titlebar_name_type is not None:
# The item has a name, do not use an icon
return None
elif device.startswith("temperature_fan"):
return self._gtk.Image("fan", img_size, img_size)
elif device.startswith("heater_generic"):
return self._gtk.Image("heater", img_size, img_size)
else:
return self._gtk.Image("heat-up", img_size, img_size)
def activate(self): def activate(self):
if self.time_update is None: if self.time_update is None:
self.time_update = GLib.timeout_add_seconds(1, self.update_time) self.time_update = GLib.timeout_add_seconds(1, self.update_time)
@@ -269,11 +266,11 @@ class BasePanel(ScreenPanel):
self.action_bar.reorder_child(self.control['macros_shortcut'], 2) self.action_bar.reorder_child(self.control['macros_shortcut'], 2)
else: else:
self.action_bar.reorder_child(self.control['macros_shortcut'], 3) self.action_bar.reorder_child(self.control['macros_shortcut'], 3)
self.control['macros_shortcut'].show()
self.buttons_showing['macros_shortcut'] = True self.buttons_showing['macros_shortcut'] = True
elif show is False and self.buttons_showing['macros_shortcut'] is True: elif show is False and self.buttons_showing['macros_shortcut'] is True:
self.action_bar.remove(self.control['macros_shortcut']) self.action_bar.remove(self.control['macros_shortcut'])
self.buttons_showing['macros_shortcut'] = False self.buttons_showing['macros_shortcut'] = False
self._screen.show_all()
def show_printer_select(self, show=True): def show_printer_select(self, show=True):
if len(self._config.get_printers()) <= 1: if len(self._config.get_printers()) <= 1:
@@ -282,28 +279,30 @@ class BasePanel(ScreenPanel):
self.action_bar.add(self.control['printer_select']) self.action_bar.add(self.control['printer_select'])
self.action_bar.reorder_child(self.control['printer_select'], 2) self.action_bar.reorder_child(self.control['printer_select'], 2)
self.buttons_showing['printer_select'] = True self.buttons_showing['printer_select'] = True
self.control['printer_select'].show()
elif show is False and self.buttons_showing['printer_select']: elif show is False and self.buttons_showing['printer_select']:
self.action_bar.remove(self.control['printer_select']) self.action_bar.remove(self.control['printer_select'])
self.buttons_showing['printer_select'] = False self.buttons_showing['printer_select'] = False
self._screen.show_all()
def set_title(self, title): def set_title(self, title):
try: try:
env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True) env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True)
env.install_gettext_translations(self.lang) env.install_gettext_translations(self._config.get_lang())
j2_temp = env.from_string(title) j2_temp = env.from_string(title)
title = j2_temp.render() title = j2_temp.render()
except Exception: except Exception as e:
logging.debug(f"Error parsing jinja for title: {title}") logging.debug(f"Error parsing jinja for title: {title}\n{e}")
self.titlelbl.set_label(f"{self._screen.connecting_to_printer} | {title}") self.titlelbl.set_label(f"{self._screen.connecting_to_printer} | {title}")
def update_time(self): def update_time(self):
now = datetime.datetime.now() now = datetime.now()
confopt = self._config.get_main_config().getboolean("24htime", True) confopt = self._config.get_main_config().getboolean("24htime", True)
if now.minute != self.time_min or self.time_format != confopt: if now.minute != self.time_min or self.time_format != confopt:
if confopt: if confopt:
self.control['time'].set_text(f'{now:%H:%M}') self.control['time'].set_text(f'{now:%H:%M }')
else: else:
self.control['time'].set_text(f'{now:%I:%M %p}') self.control['time'].set_text(f'{now:%I:%M %p}')
self.time_min = now.minute
self.time_format = confopt
return True return True
+30 -24
View File
@@ -3,7 +3,7 @@ import logging
import re import re
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk from gi.repository import Gtk, Pango
from ks_includes.KlippyGcodes import KlippyGcodes from ks_includes.KlippyGcodes import KlippyGcodes
from ks_includes.screen_panel import ScreenPanel from ks_includes.screen_panel import ScreenPanel
@@ -48,11 +48,13 @@ class BedLevelPanel(ScreenPanel):
self._get_offsets("bltouch") self._get_offsets("bltouch")
elif "probe" in self._screen.printer.get_config_section_list(): elif "probe" in self._screen.printer.get_config_section_list():
self._get_offsets("probe") self._get_offsets("probe")
new_screws = []
# bed_screws uses NOZZLE positions # bed_screws uses NOZZLE positions
# screws_tilt_adjust uses PROBE positions and to be offseted for the buttons to work equal to bed_screws # screws_tilt_adjust uses PROBE positions and to be offseted for the buttons to work equal to bed_screws
for screw in self.screws: new_screws = [
new_screws.append([screw[0] + self.x_offset, screw[1] + self.y_offset]) [round(screw[0] + self.x_offset, 1), round(screw[1] + self.y_offset, 1)]
for screw in self.screws
]
self.screws = new_screws self.screws = new_screws
logging.info(f"screws with offset: {self.screws}") logging.info(f"screws with offset: {self.screws}")
elif "bed_screws" in self._screen.printer.get_config_section_list(): elif "bed_screws" in self._screen.printer.get_config_section_list():
@@ -91,14 +93,14 @@ class BedLevelPanel(ScreenPanel):
logging.debug(f"Using {len(self.screws)}-screw locations [x,y] [{self.x_cnt}x{self.y_cnt}]") logging.debug(f"Using {len(self.screws)}-screw locations [x,y] [{self.x_cnt}x{self.y_cnt}]")
self.labels['bl'] = self._gtk.ButtonImage("bed-level-t-l", None, None, 2.5) self.labels['bl'] = self._gtk.ButtonImage("bed-level-t-l", scale=2.5)
self.labels['br'] = self._gtk.ButtonImage("bed-level-t-r", None, None, 2.5) self.labels['br'] = self._gtk.ButtonImage("bed-level-t-r", scale=2.5)
self.labels['fl'] = self._gtk.ButtonImage("bed-level-b-l", None, None, 2.5) self.labels['fl'] = self._gtk.ButtonImage("bed-level-b-l", scale=2.5)
self.labels['fr'] = self._gtk.ButtonImage("bed-level-b-r", None, None, 2.5) self.labels['fr'] = self._gtk.ButtonImage("bed-level-b-r", scale=2.5)
self.labels['lm'] = self._gtk.ButtonImage("bed-level-l-m", None, None, 2.5) self.labels['lm'] = self._gtk.ButtonImage("bed-level-l-m", scale=2.5)
self.labels['rm'] = self._gtk.ButtonImage("bed-level-r-m", None, None, 2.5) self.labels['rm'] = self._gtk.ButtonImage("bed-level-r-m", scale=2.5)
self.labels['fm'] = self._gtk.ButtonImage("bed-level-b-m", None, None, 2.5) self.labels['fm'] = self._gtk.ButtonImage("bed-level-b-m", scale=2.5)
self.labels['bm'] = self._gtk.ButtonImage("bed-level-t-m", None, None, 2.5) self.labels['bm'] = self._gtk.ButtonImage("bed-level-t-m", scale=2.5)
valid_positions = True valid_positions = True
printer_cfg = self._config.get_printer_config(self._screen.connected_printer) printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
@@ -110,12 +112,14 @@ class BedLevelPanel(ScreenPanel):
for screw in screw_positions: for screw in screw_positions:
if screw not in ("bl", "fl", "fr", "br", "bm", "fm", "lm", "rm", ""): if screw not in ("bl", "fl", "fr", "br", "bm", "fm", "lm", "rm", ""):
logging.error(f"Unknown screw: {screw}") logging.error(f"Unknown screw: {screw}")
self._screen.show_popup_message(_("Unknown screw position") + ": %s" % screw) self._screen.show_popup_message(_("Unknown screw position") + f": {screw}")
valid_positions = False valid_positions = False
if not(3 <= len(screw_positions) <= 8): if not (3 <= len(screw_positions) <= 8):
valid_positions = False valid_positions = False
rotation = printer_cfg.getint("screw_rotation", 0) rotation = printer_cfg.getint("screw_rotation", 0)
logging.info(f"Rotation: {rotation}") logging.info(f"Rotation: {rotation}")
else:
valid_positions = False
if 'bed_screws' in self._config.get_config(): if 'bed_screws' in self._config.get_config():
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0) rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
logging.debug(f"Rotation: {rotation}") logging.debug(f"Rotation: {rotation}")
@@ -140,7 +144,7 @@ class BedLevelPanel(ScreenPanel):
bedgrid.attach(self.labels['lm'], 1, 1, 1, 1) bedgrid.attach(self.labels['lm'], 1, 1, 1, 1)
if "rm" in screw_positions: if "rm" in screw_positions:
bedgrid.attach(self.labels['rm'], 3, 1, 1, 1) bedgrid.attach(self.labels['rm'], 3, 1, 1, 1)
elif nscrews in (4, 6, 8): elif nscrews in {4, 6, 8}:
bedgrid.attach(self.labels['bl'], 1, 0, 1, 1) bedgrid.attach(self.labels['bl'], 1, 0, 1, 1)
bedgrid.attach(self.labels['fl'], 1, 2, 1, 1) bedgrid.attach(self.labels['fl'], 1, 2, 1, 1)
bedgrid.attach(self.labels['fr'], 3, 2, 1, 1) bedgrid.attach(self.labels['fr'], 3, 2, 1, 1)
@@ -156,6 +160,8 @@ class BedLevelPanel(ScreenPanel):
_("Bed screw configuration:") + f" {nscrews}\n\n" _("Bed screw configuration:") + f" {nscrews}\n\n"
+ _("Not supported for auto-detection, it needs to be configured in klipperscreen.conf") + _("Not supported for auto-detection, it needs to be configured in klipperscreen.conf")
) )
label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
label.set_line_wrap(True)
grid.attach(label, 1, 0, 3, 2) grid.attach(label, 1, 0, 3, 2)
self.content.add(grid) self.content.add(grid)
return return
@@ -255,7 +261,7 @@ class BedLevelPanel(ScreenPanel):
def activate(self): def activate(self):
for key, value in self.screw_dict.items(): for key, value in self.screw_dict.items():
self.labels[key].set_label(str(value)) self.labels[key].set_label(f"{value}")
if self._printer.config_section_exists("screws_tilt_adjust"): if self._printer.config_section_exists("screws_tilt_adjust"):
self.labels['screws'].set_sensitive(True) self.labels['screws'].set_sensitive(True)
@@ -295,8 +301,8 @@ class BedLevelPanel(ScreenPanel):
# screws_tilt_adjust uses PROBE positions and was offseted for the buttons to work equal to bed_screws # screws_tilt_adjust uses PROBE positions and was offseted for the buttons to work equal to bed_screws
# for the result we need to undo the offset # for the result we need to undo the offset
if result: if result:
x = float(result[2]) + self.x_offset x = round(float(result[2]) + self.x_offset, 1)
y = float(result[3]) + self.y_offset y = round(float(result[3]) + self.y_offset, 1)
for key, value in self.screw_dict.items(): for key, value in self.screw_dict.items():
if value and x == value[0] and y == value[1]: if value and x == value[0] and y == value[1]:
logging.debug(f"X: {x} Y: {y} Adjust: {result[5]} Pos: {key}") logging.debug(f"X: {x} Y: {y} Adjust: {result[5]} Pos: {key}")
@@ -313,8 +319,8 @@ class BedLevelPanel(ScreenPanel):
# screws_tilt_adjust uses PROBE positions and was offseted for the buttons to work equal to bed_screws # screws_tilt_adjust uses PROBE positions and was offseted for the buttons to work equal to bed_screws
# for the result we need to undo the offset # for the result we need to undo the offset
if result and re.search('base', result[1]): if result and re.search('base', result[1]):
x = float(result[2]) + self.x_offset x = round(float(result[2]) + self.x_offset, 1)
y = float(result[3]) + self.y_offset y = round(float(result[3]) + self.y_offset, 1)
logging.debug(f"X: {x} Y: {y} is the reference") logging.debug(f"X: {x} Y: {y} is the reference")
for key, value in self.screw_dict.items(): for key, value in self.screw_dict.items():
if value and x == value[0] and y == value[1]: if value and x == value[0] and y == value[1]:
@@ -329,17 +335,17 @@ class BedLevelPanel(ScreenPanel):
result = re.match(r"([\-0-9\.]+)\s*,\s*([\-0-9\.]+)", config_section[item]) result = re.match(r"([\-0-9\.]+)\s*,\s*([\-0-9\.]+)", config_section[item])
if result: if result:
screws.append([ screws.append([
round(float(result[1]), 2), round(float(result[1]), 1),
round(float(result[2]), 2) round(float(result[2]), 1)
]) ])
return sorted(screws, key=lambda s: (float(s[1]), float(s[0]))) return sorted(screws, key=lambda s: (float(s[1]), float(s[0])))
def _get_offsets(self, section): def _get_offsets(self, section):
probe = self._screen.printer.get_config_section(section) probe = self._screen.printer.get_config_section(section)
if "x_offset" in probe: if "x_offset" in probe:
self.x_offset = float(probe['x_offset']) self.x_offset = round(float(probe['x_offset']), 1)
if "y_offset" in probe: if "y_offset" in probe:
self.y_offset = float(probe['y_offset']) self.y_offset = round(float(probe['y_offset']), 1)
logging.debug(f"{section} offset X: {self.x_offset} Y: {self.y_offset}") logging.debug(f"{section} offset X: {self.x_offset} Y: {self.y_offset}")
def screws_tilt_calculate(self, widget): def screws_tilt_calculate(self, widget):
+54 -107
View File
@@ -31,24 +31,22 @@ class BedMeshPanel(ScreenPanel):
def initialize(self, panel_name): def initialize(self, panel_name):
addprofile = self._gtk.ButtonImage("increase", " " + _("Add profile"), addprofile = self._gtk.ButtonImage("increase", " " + _("Add profile"), "color1", .66, Gtk.PositionType.LEFT, 1)
"color1", .66, Gtk.PositionType.LEFT, False)
addprofile.connect("clicked", self.show_create_profile) addprofile.connect("clicked", self.show_create_profile)
addprofile.set_hexpand(True) addprofile.set_hexpand(True)
clear = self._gtk.ButtonImage("cancel", " " + _("Clear"), "color2", .66, Gtk.PositionType.LEFT, False) clear = self._gtk.ButtonImage("cancel", " " + _("Clear"), "color2", .66, Gtk.PositionType.LEFT, 1)
clear.connect("clicked", self._clear_mesh) clear.connect("clicked", self._clear_mesh)
clear.set_hexpand(True) clear.set_hexpand(True)
top_calibrate = self._gtk.ButtonImage("refresh", " " + _("Calibrate"), calibrate = self._gtk.ButtonImage("refresh", " " + _("Calibrate"), "color3", .66, Gtk.PositionType.LEFT, 1)
"color3", .66, Gtk.PositionType.LEFT, False) calibrate.connect("clicked", self.calibrate_mesh)
top_calibrate.connect("clicked", self._send_calibrate) calibrate.set_hexpand(True)
top_calibrate.set_hexpand(True)
topbar = Gtk.Box(spacing=5) topbar = Gtk.Box(spacing=5)
topbar.set_hexpand(True) topbar.set_hexpand(True)
topbar.set_vexpand(False) topbar.set_vexpand(False)
topbar.add(addprofile) topbar.add(addprofile)
topbar.add(clear) topbar.add(clear)
topbar.add(top_calibrate) topbar.add(calibrate)
# Create a grid for all profiles # Create a grid for all profiles
self.labels['profiles'] = Gtk.Grid() self.labels['profiles'] = Gtk.Grid()
@@ -70,45 +68,24 @@ class BedMeshPanel(ScreenPanel):
self.content.add(self.labels['main_box']) self.content.add(self.labels['main_box'])
def activate(self): def activate(self):
for child in self.content.get_children(): with contextlib.suppress(KeyError):
self.content.remove(child) self.activate_mesh(self._screen.printer.get_stat("bed_mesh", "profile_name"))
self.content.add(self.labels['main_box'])
self.activate_mesh(
self._screen.printer.get_stat("bed_mesh", "profile_name")
)
def activate_mesh(self, profile): def activate_mesh(self, profile):
if profile == "": if profile == "":
profile = "default" logging.info("Clearing active profile")
self.profiles[self.active_mesh]['button_box'].add(self.profiles[self.active_mesh]['load'])
logging.debug(f"Activating profile: {profile} Current: {self.active_mesh}") self.active_mesh = None
return
if profile not in self.profiles: if profile not in self.profiles:
self.add_profile(profile) self.add_profile(profile)
if self.active_mesh is not None and self.active_mesh in self.profiles:
a = self.profiles[self.active_mesh]
with contextlib.suppress(KeyError):
a['button_box'].remove(a['calibrate'])
a['button_box'].pack_start(a['load'], False, False, 0)
logging.info(f"Active {self.active_mesh} changing to {profile}") logging.info(f"Active {self.active_mesh} changing to {profile}")
self.profiles[profile]['button_box'].remove(self.profiles[profile]['load'])
self.active_mesh = profile self.active_mesh = profile
if self.active_mesh is not None:
a = self.profiles[profile]
with contextlib.suppress(KeyError):
a['button_box'].remove(a['load'])
with contextlib.suppress(KeyError):
a['button_box'].remove(a['view'])
a['button_box'].pack_start(a['calibrate'], False, False, 0)
if self._printer.get_config_section(f"bed_mesh {profile}"):
a['button_box'].pack_end(a["view"], False, False, 0)
self._screen.show_all()
def add_profile(self, profile): def add_profile(self, profile):
logging.debug(f"Adding Profile: {profile}")
logging.debug(f"Adding Profile: {profile} Current: {self.active_mesh}")
name = Gtk.Label() name = Gtk.Label()
name.set_markup(f"<big><b>{profile}</b></big>") name.set_markup(f"<big><b>{profile}</b></big>")
name.set_hexpand(True) name.set_hexpand(True)
@@ -118,17 +95,15 @@ class BedMeshPanel(ScreenPanel):
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
buttons = { buttons = {
"calibrate": self._gtk.ButtonImage("refresh", _("Calibrate"), "color4"),
"load": self._gtk.ButtonImage("load", _("Load"), "color2"),
"save": self._gtk.ButtonImage("complete", _("Save"), "color3"), "save": self._gtk.ButtonImage("complete", _("Save"), "color3"),
"delete": self._gtk.ButtonImage("cancel", _("Delete"), "color3"), "delete": self._gtk.ButtonImage("cancel", _("Delete"), "color3"),
"view": self._gtk.ButtonImage("bed-level", _("View Mesh"), "color1"), "view": self._gtk.ButtonImage("bed-level", _("View Mesh"), "color1"),
"load": self._gtk.ButtonImage("load", _("Load"), "color2"),
} }
buttons["calibrate"].connect("clicked", self.calibrate_mesh)
buttons["load"].connect("clicked", self.send_load_mesh, profile)
buttons["save"].connect("clicked", self.send_save_mesh, profile) buttons["save"].connect("clicked", self.send_save_mesh, profile)
buttons["delete"].connect("clicked", self.send_remove_mesh, profile) buttons["delete"].connect("clicked", self.send_remove_mesh, profile)
buttons["view"].connect("clicked", self.show_mesh, profile) buttons["view"].connect("clicked", self.show_mesh, profile)
buttons["load"].connect("clicked", self.send_load_mesh, profile)
for b in buttons.values(): for b in buttons.values():
b.set_hexpand(False) b.set_hexpand(False)
@@ -136,14 +111,11 @@ class BedMeshPanel(ScreenPanel):
b.set_halign(Gtk.Align.END) b.set_halign(Gtk.Align.END)
button_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5) button_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
button_box.add(buttons["calibrate"])
if profile != "default": if profile != "default":
button_box.add(buttons["save"]) button_box.add(buttons["save"])
button_box.add(buttons["delete"]) button_box.add(buttons["delete"])
if self._printer.get_config_section(f"bed_mesh {profile}"): button_box.add(buttons["view"])
button_box.add(buttons["load"]) button_box.add(buttons["load"])
button_box.add(buttons["view"])
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5) box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
box.pack_start(name, True, True, 0) box.pack_start(name, True, True, 0)
@@ -156,7 +128,6 @@ class BedMeshPanel(ScreenPanel):
self.profiles[profile] = { self.profiles[profile] = {
"button_box": button_box, "button_box": button_box,
"row": frame, "row": frame,
"calibrate": buttons["calibrate"],
"load": buttons["load"], "load": buttons["load"],
"save": buttons["save"], "save": buttons["save"],
"delete": buttons["delete"], "delete": buttons["delete"],
@@ -179,7 +150,6 @@ class BedMeshPanel(ScreenPanel):
return True return True
return False return False
def load_meshes(self): def load_meshes(self):
bm_profiles = self._screen.printer.get_config_section_list("bed_mesh ") bm_profiles = self._screen.printer.get_config_section_list("bed_mesh ")
logging.info(f"Bed profiles: {bm_profiles}") logging.info(f"Bed profiles: {bm_profiles}")
@@ -189,6 +159,7 @@ class BedMeshPanel(ScreenPanel):
def process_update(self, action, data): def process_update(self, action, data):
if action == "notify_status_update": if action == "notify_status_update":
with contextlib.suppress(KeyError): with contextlib.suppress(KeyError):
logging.info(data['bed_mesh'])
self.activate_mesh(data['bed_mesh']['profile_name']) self.activate_mesh(data['bed_mesh']['profile_name'])
def remove_create(self): def remove_create(self):
@@ -253,41 +224,33 @@ class BedMeshPanel(ScreenPanel):
self._screen.show_keyboard(entry=self.labels['profile_name']) self._screen.show_keyboard(entry=self.labels['profile_name'])
def show_mesh(self, widget, profile): def show_mesh(self, widget, profile):
bm = self._printer.get_config_section(f"bed_mesh {profile}")
if bm is False:
logging.info(f"Unable to load profile: {profile}")
return
if profile == self.active_mesh: if profile == self.active_mesh:
abm = self._printer.get_stat("bed_mesh") bm = self._printer.get_stat("bed_mesh")
if abm is None: if bm is None:
logging.info(f"Unable to load active mesh: {profile}") logging.info(f"Unable to load active mesh: {profile}")
return return
x_range = [int(abm['mesh_min'][0]), int(abm['mesh_max'][0])] matrix = 'probed_matrix'
y_range = [int(abm['mesh_min'][1]), int(abm['mesh_max'][1])] # if 'mesh_matrix' in bm and bm['mesh_matrix'][0]:
minz_mesh = min(min(abm['mesh_matrix'])) # matrix = 'mesh_matrix'
maxz_mesh = max(max(abm['mesh_matrix'])) x_range = [int(bm['mesh_min'][0]), int(bm['mesh_max'][0])]
# Do not use a very small zscale, because that could be misleading y_range = [int(bm['mesh_min'][1]), int(bm['mesh_max'][1])]
minz_mesh = min(minz_mesh, -0.5)
maxz_mesh = max(maxz_mesh, 0.5)
z_range = [minz_mesh, maxz_mesh]
counts = [len(abm['mesh_matrix'][0]), len(abm['mesh_matrix'])]
deltas = [(x_range[1] - x_range[0]) / (counts[0] - 1), (y_range[1] - y_range[0]) / (counts[1] - 1)]
x = [(i * deltas[0]) + x_range[0] for i in range(counts[0])]
y = [(i * deltas[0]) + y_range[0] for i in range(counts[1])]
x, y = np.meshgrid(x, y)
z = np.asarray(abm['mesh_matrix'])
else: else:
bm = self._printer.get_config_section(f"bed_mesh {profile}")
if bm is False:
logging.info(f"Unable to load profile: {profile}")
self.remove_profile(profile)
return
matrix = 'points'
x_range = [int(bm['min_x']), int(bm['max_x'])] x_range = [int(bm['min_x']), int(bm['max_x'])]
y_range = [int(bm['min_y']), int(bm['max_y'])] y_range = [int(bm['min_y']), int(bm['max_y'])]
z_range = [min(min(bm['points'])), max(max(bm['points']))] # Zscale can be offered as a slider instead of hardcoded values reasonable values 0.5 - 2 (mm)
deltas = [(x_range[1] - x_range[0]) / (int(bm['x_count']) - 1), z_range = [min(min(min(bm[matrix])), -1), max(max(max(bm[matrix])), 1)]
(y_range[1] - y_range[0]) / (int(bm['y_count']) - 1)] counts = [len(bm[matrix][0]), len(bm[matrix])]
x = [(i * deltas[0]) + x_range[0] for i in range(bm['x_count'])] deltas = [(x_range[1] - x_range[0]) / (counts[0] - 1), (y_range[1] - y_range[0]) / (counts[1] - 1)]
y = [(i * deltas[0]) + y_range[0] for i in range(bm['y_count'])] x = [(i * deltas[0]) + x_range[0] for i in range(counts[0])]
x, y = np.meshgrid(x, y) y = [(i * deltas[0]) + y_range[0] for i in range(counts[1])]
z = np.asarray(bm['points']) x, y = np.meshgrid(x, y)
z = np.asarray(bm[matrix])
rc('axes', edgecolor="#e2e2e2", labelcolor="#e2e2e2") rc('axes', edgecolor="#e2e2e2", labelcolor="#e2e2e2")
rc(('xtick', 'ytick'), color="#e2e2e2") rc(('xtick', 'ytick'), color="#e2e2e2")
@@ -296,7 +259,8 @@ class BedMeshPanel(ScreenPanel):
ax.set(title=profile, xlabel="X", ylabel="Y", facecolor='none') ax.set(title=profile, xlabel="X", ylabel="Y", facecolor='none')
ax.spines['bottom'].set_color("#e2e2e2") ax.spines['bottom'].set_color("#e2e2e2")
fig.add_axes(ax) fig.add_axes(ax)
surf = ax.plot_surface(x, y, z, cmap=cm.coolwarm, vmin=-0.1, vmax=0.1) # Color gradient could also be configurable as a slider reasonable values 0.1 - 0.2 (mm)
surf = ax.plot_surface(x, y, z, cmap=cm.coolwarm, vmin=-0.2, vmax=0.2)
chartbox = ax.get_position() chartbox = ax.get_position()
ax.set_position([chartbox.x0, chartbox.y0 + 0.1, chartbox.width * .92, chartbox.height]) ax.set_position([chartbox.x0, chartbox.y0 + 0.1, chartbox.width * .92, chartbox.height])
@@ -307,38 +271,29 @@ class BedMeshPanel(ScreenPanel):
ax.zaxis.set_major_formatter('{x:.02f}') ax.zaxis.set_major_formatter('{x:.02f}')
fig.colorbar(surf, shrink=0.7, aspect=5, pad=0.25) fig.colorbar(surf, shrink=0.7, aspect=5, pad=0.25)
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_hexpand(True)
box.set_vexpand(True)
title = Gtk.Label() title = Gtk.Label()
title.set_markup(f"<b>{profile}</b>") title.set_markup(f"<b>{profile}</b>")
title.set_hexpand(True) title.set_hexpand(True)
title.set_halign(Gtk.Align.CENTER) title.set_halign(Gtk.Align.CENTER)
canvas_box = Gtk.Box()
canvas_box.set_hexpand(True)
canvas_box.set_vexpand(True)
box.add(title)
box.add(canvas_box)
buttons = [
{"name": _("Close"), "response": Gtk.ResponseType.CANCEL}
]
self._gtk.Dialog(self._screen, buttons, box, self._close_dialog)
alloc = canvas_box.get_allocation()
canvas = FigureCanvas(fig) canvas = FigureCanvas(fig)
canvas.set_size_request(alloc.width, self._screen.height / 3 * 2) canvas.set_size_request(self._screen.width * .9, self._screen.height / 3 * 2)
canvas_box.add(canvas)
canvas_box.show_all()
# Remove the "matplotlib-canvas" class which forces a white background. # Remove the "matplotlib-canvas" class which forces a white background.
# https://github.com/matplotlib/matplotlib/commit/3c832377fb4c4b32fcbdbc60fdfedb57296bc8c0 # https://github.com/matplotlib/matplotlib/commit/3c832377fb4c4b32fcbdbc60fdfedb57296bc8c0
style_ctx = canvas.get_style_context() style_ctx = canvas.get_style_context()
for css_class in style_ctx.list_classes(): for css_class in style_ctx.list_classes():
style_ctx.remove_class(css_class) style_ctx.remove_class(css_class)
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.add(title)
box.add(canvas)
box.show_all()
buttons = [
{"name": _("Close"), "response": Gtk.ResponseType.CANCEL}
]
self._gtk.Dialog(self._screen, buttons, box, self._close_dialog)
@staticmethod @staticmethod
def _close_dialog(widget, response): def _close_dialog(widget, response):
widget.destroy() widget.destroy()
@@ -369,14 +324,6 @@ class BedMeshPanel(ScreenPanel):
"BED_MESH_CLEAR" "BED_MESH_CLEAR"
) )
def _send_calibrate(self, widget):
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
self._screen._ws.klippy.gcode_script(
"BED_MESH_CALIBRATE"
)
def send_load_mesh(self, widget, profile): def send_load_mesh(self, widget, profile):
self._screen._ws.klippy.gcode_script( self._screen._ws.klippy.gcode_script(
KlippyGcodes.bed_mesh_load(profile) KlippyGcodes.bed_mesh_load(profile)
+2 -2
View File
@@ -47,7 +47,7 @@ class ConsolePanel(ScreenPanel):
o2_switch.set_active(self.hidetemps) o2_switch.set_active(self.hidetemps)
o2_switch.connect("notify::active", self.hide_temps) o2_switch.connect("notify::active", self.hide_temps)
o3_button = self._gtk.ButtonImage("refresh", _('Clear') + " ", None, .66, Gtk.PositionType.RIGHT, False) o3_button = self._gtk.ButtonImage("refresh", _('Clear') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
o3_button.connect("clicked", self.clear) o3_button.connect("clicked", self.clear)
options = Gtk.Box() options = Gtk.Box()
@@ -85,7 +85,7 @@ class ConsolePanel(ScreenPanel):
entry.connect("activate", self._send_command) entry.connect("activate", self._send_command)
entry.grab_focus_without_selecting() entry.grab_focus_without_selecting()
enter = self._gtk.ButtonImage("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, False) enter = self._gtk.ButtonImage("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
enter.set_hexpand(False) enter.set_hexpand(False)
enter.connect("clicked", self._send_command) enter.connect("clicked", self._send_command)
+125
View File
@@ -0,0 +1,125 @@
import contextlib
import logging
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Pango
from ks_includes.screen_panel import ScreenPanel
from ks_includes.widgets.objectmap import ObjectMap
def create_panel(*args):
return ExcludeObjectPanel(*args)
class ExcludeObjectPanel(ScreenPanel):
def __init__(self, screen, title, back=True):
super().__init__(screen, title, back)
self._screen = screen
self.object_list = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
self.object_list.set_valign(Gtk.Align.CENTER)
self.object_list.set_halign(Gtk.Align.START)
self.buttons = {}
self.current_object = self._gtk.ButtonImage("extrude", "", scale=.66, position=Gtk.PositionType.LEFT, lines=1)
self.current_object.connect("clicked", self.exclude_current)
self.current_object.set_vexpand(False)
self.excluded_objects = self._printer.get_stat("exclude_object", "excluded_objects")
logging.info(f'Excluded: {self.excluded_objects}')
self.objects = self._printer.get_stat("exclude_object", "objects")
self.labels['map'] = None
def initialize(self, panel_name):
for obj in self.objects:
logging.info(f"Adding {obj['name']}")
self.add_object(obj["name"])
scroll = self._gtk.ScrolledWindow()
scroll.set_size_request((self._screen.width * .9) // 2, -1)
scroll.add(self.object_list)
scroll.set_halign(Gtk.Align.CENTER)
grid = self._gtk.HomogeneousGrid()
grid.set_row_homogeneous(False)
grid.attach(self.current_object, 0, 0, 2, 1)
grid.attach(Gtk.Separator(), 0, 1, 2, 1)
if self.objects and "polygon" in self.objects[0]:
self.labels['map'] = ObjectMap(self._screen, self._printer, self._gtk.get_font_size())
grid.attach(self.labels['map'], 0, 2, 1, 1)
grid.attach(scroll, 1, 2, 1, 1)
else:
grid.attach(scroll, 0, 2, 2, 1)
self.content.add(grid)
self.content.show_all()
def add_object(self, name):
if name not in self.buttons and name not in self.excluded_objects:
self.buttons[name] = self._gtk.Button(name.replace("_", " "))
self.buttons[name].get_children()[0].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
self.buttons[name].get_children()[0].set_line_wrap(True)
self.buttons[name].connect("clicked", self.exclude_object, name)
self.buttons[name].get_style_context().add_class("frame-item")
self.object_list.add(self.buttons[name])
def exclude_object(self, widget, name):
if len(self.excluded_objects) == len(self.objects) - 1:
# Do not exclude the last object, this is a workaround for a bug of klipper that starts
# to move the toolhead really fast skipping gcode until the file ends
# Remove this if they fix it.
self._screen._confirm_send_action(
widget,
_("Are you sure you wish to cancel this print?"),
"printer.print.cancel",
)
return
script = {"script": f"EXCLUDE_OBJECT NAME={name}"}
self._screen._confirm_send_action(
widget,
_("Are you sure do you want to exclude the object?") + f"\n\n{name}",
"printer.gcode.script",
script
)
def exclude_current(self, widget):
self.exclude_object(widget, f"{self.current_object.get_label()}")
def process_update(self, action, data):
if action == "notify_status_update":
with contextlib.suppress(KeyError):
# Update objects
self.objects = data["exclude_object"]["objects"]
logging.info(f'Objects: {data["exclude_object"]["objects"]}')
for obj in self.buttons:
self.object_list.remove(self.buttons[obj])
self.buttons = {}
for obj in self.objects:
logging.info(f"Adding {obj['name']}")
self.add_object(obj["name"])
with contextlib.suppress(KeyError):
# Update current objects
if data["exclude_object"]["current_object"]:
self.current_object.set_label(f'{data["exclude_object"]["current_object"].replace("_", " ")}')
self.update_graph()
with contextlib.suppress(KeyError):
# Update excluded objects
logging.info(f'Excluded objects: {data["exclude_object"]["excluded_objects"]}')
self.excluded_objects = data["exclude_object"]["excluded_objects"]
for name in self.excluded_objects:
if name in self.buttons:
self.object_list.remove(self.buttons[name])
self.update_graph()
if len(self.excluded_objects) == len(self.objects):
self.menu_return(False)
elif action == "notify_gcode_response" and "Excluding object" in data:
self._screen.show_popup_message(data, level=1)
self.update_graph()
def activate(self):
self.update_graph()
def update_graph(self):
if self.labels['map']:
self.labels['map'].queue_draw()
+29 -39
View File
@@ -1,5 +1,6 @@
import gi import gi
import logging import logging
import re
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Pango from gi.repository import Gtk, Pango
@@ -17,14 +18,28 @@ class ExtrudePanel(ScreenPanel):
def __init__(self, screen, title, back=True): def __init__(self, screen, title, back=True):
super().__init__(screen, title, back) super().__init__(screen, title, back)
self.current_extruder = self._printer.get_stat("toolhead", "extruder") self.current_extruder = self._printer.get_stat("toolhead", "extruder")
self.speeds = ['1', '2', '5', '25']
self.speed = 1
self.distances = ['5', '10', '15', '25']
self.distance = 5
macros = self._screen.printer.get_gcode_macros() macros = self._screen.printer.get_gcode_macros()
self.load_filament = any("LOAD_FILAMENT" in macro.upper() for macro in macros) self.load_filament = any("LOAD_FILAMENT" in macro.upper() for macro in macros)
self.unload_filament = any("UNLOAD_FILAMENT" in macro.upper() for macro in macros) self.unload_filament = any("UNLOAD_FILAMENT" in macro.upper() for macro in macros)
self.speeds = ['1', '2', '5', '25']
self.speed = int(self.speeds[1])
self.distances = ['5', '10', '15', '25']
self.distance = int(self.distances[1])
print_cfg = self._config.get_printer_config(self._screen.connected_printer)
if print_cfg is not None:
dis = print_cfg.get("extrude_distances", '5, 10, 15, 25')
if re.match(r'^[0-9,\s]+$', dis):
dis = [str(i.strip()) for i in dis.split(',')]
if 1 < len(dis) < 5:
self.distances = dis
vel = print_cfg.get("extrude_speeds", '1, 2, 5, 25')
if re.match(r'^[0-9,\s]+$', vel):
vel = [str(i.strip()) for i in vel.split(',')]
if 1 < len(vel) < 5:
self.speeds = vel
def initialize(self, panel_name): def initialize(self, panel_name):
self.labels['extrude'] = self._gtk.ButtonImage("extrude", _("Extrude"), "color4") self.labels['extrude'] = self._gtk.ButtonImage("extrude", _("Extrude"), "color4")
self.labels['extrude'].connect("clicked", self.extrude, "+") self.labels['extrude'].connect("clicked", self.extrude, "+")
@@ -62,7 +77,7 @@ class ExtrudePanel(ScreenPanel):
distgrid = Gtk.Grid() distgrid = Gtk.Grid()
for j, i in enumerate(self.distances): for j, i in enumerate(self.distances):
self.labels[f"dist{i}"] = self._gtk.ToggleButton(i) self.labels[f"dist{i}"] = self._gtk.Button(i)
self.labels[f"dist{i}"].connect("clicked", self.change_distance, int(i)) self.labels[f"dist{i}"].connect("clicked", self.change_distance, int(i))
ctx = self.labels[f"dist{i}"].get_style_context() ctx = self.labels[f"dist{i}"].get_style_context()
if ((self._screen.lang_ltr is True and j == 0) or if ((self._screen.lang_ltr is True and j == 0) or
@@ -73,14 +88,13 @@ class ExtrudePanel(ScreenPanel):
ctx.add_class("distbutton_bottom") ctx.add_class("distbutton_bottom")
else: else:
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == "5": if int(i) == self.distance:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
distgrid.attach(self.labels[f"dist{i}"], j, 0, 1, 1) distgrid.attach(self.labels[f"dist{i}"], j, 0, 1, 1)
self.labels["dist5"].set_active(True)
speedgrid = Gtk.Grid() speedgrid = Gtk.Grid()
for j, i in enumerate(self.speeds): for j, i in enumerate(self.speeds):
self.labels[f"speed{i}"] = self._gtk.ToggleButton(_(i)) self.labels[f"speed{i}"] = self._gtk.Button(i)
self.labels[f"speed{i}"].connect("clicked", self.change_speed, int(i)) self.labels[f"speed{i}"].connect("clicked", self.change_speed, int(i))
ctx = self.labels[f"speed{i}"].get_style_context() ctx = self.labels[f"speed{i}"].get_style_context()
if ((self._screen.lang_ltr is True and j == 0) or if ((self._screen.lang_ltr is True and j == 0) or
@@ -91,10 +105,9 @@ class ExtrudePanel(ScreenPanel):
ctx.add_class("distbutton_bottom") ctx.add_class("distbutton_bottom")
else: else:
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == "2": if int(i) == self.speed:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
speedgrid.attach(self.labels[f"speed{i}"], j, 0, 1, 1) speedgrid.attach(self.labels[f"speed{i}"], j, 0, 1, 1)
self.labels["speed2"].set_active(True)
distbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) distbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.labels['extrude_dist'] = Gtk.Label(_("Distance (mm)")) self.labels['extrude_dist'] = Gtk.Label(_("Distance (mm)"))
@@ -168,7 +181,9 @@ class ExtrudePanel(ScreenPanel):
self.update_temp( self.update_temp(
x, x,
self._printer.get_dev_stat(x, "temperature"), self._printer.get_dev_stat(x, "temperature"),
self._printer.get_dev_stat(x, "target") self._printer.get_dev_stat(x, "target"),
self._printer.get_dev_stat(x, "power"),
lines=2,
) )
if ("toolhead" in data and "extruder" in data["toolhead"] and if ("toolhead" in data and "extruder" in data["toolhead"] and
@@ -195,20 +210,10 @@ class ExtrudePanel(ScreenPanel):
logging.info(f"{x}: Filament detected: {data[x]['filament_detected']}") logging.info(f"{x}: Filament detected: {data[x]['filament_detected']}")
def change_distance(self, widget, distance): def change_distance(self, widget, distance):
if self.distance == distance:
return
logging.info(f"### Distance {distance}") logging.info(f"### Distance {distance}")
self.labels[f"dist{self.distance}"].get_style_context().remove_class("distbutton_active")
ctx = self.labels[f"dist{self.distance}"].get_style_context() self.labels[f"dist{distance}"].get_style_context().add_class("distbutton_active")
ctx.remove_class("distbutton_active")
self.distance = distance self.distance = distance
ctx = self.labels[f"dist{self.distance}"].get_style_context()
ctx.add_class("distbutton_active")
for i in self.distances:
if i == self.distance:
continue
self.labels[f"dist{i}"].set_active(False)
def change_extruder(self, widget, extruder): def change_extruder(self, widget, extruder):
logging.info(f"Changing extruder to {extruder}") logging.info(f"Changing extruder to {extruder}")
@@ -219,18 +224,10 @@ class ExtrudePanel(ScreenPanel):
self._screen._ws.klippy.gcode_script(f"T{self._printer.get_tool_number(extruder)}") self._screen._ws.klippy.gcode_script(f"T{self._printer.get_tool_number(extruder)}")
def change_speed(self, widget, speed): def change_speed(self, widget, speed):
if self.speed == speed:
return
logging.info(f"### Speed {speed}") logging.info(f"### Speed {speed}")
self.labels[f"speed{self.speed}"].get_style_context().remove_class("distbutton_active") self.labels[f"speed{self.speed}"].get_style_context().remove_class("distbutton_active")
self.labels[f"speed{speed}"].get_style_context().add_class("distbutton_active")
self.speed = speed self.speed = speed
self.labels[f"speed{self.speed}"].get_style_context().add_class("distbutton_active")
for i in self.speeds:
if i == self.speed:
continue
self.labels[f"speed{i}"].set_active(False)
def extrude(self, widget, direction): def extrude(self, widget, direction):
self._screen._ws.klippy.gcode_script(KlippyGcodes.EXTRUDE_REL) self._screen._ws.klippy.gcode_script(KlippyGcodes.EXTRUDE_REL)
@@ -257,10 +254,3 @@ class ExtrudePanel(ScreenPanel):
self._screen._ws.klippy.gcode_script(f"SET_FILAMENT_SENSOR SENSOR={name} ENABLE=0") self._screen._ws.klippy.gcode_script(f"SET_FILAMENT_SENSOR SENSOR={name} ENABLE=0")
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_empty") self.labels[x]['box'].get_style_context().remove_class("filament_sensor_empty")
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_detected") self.labels[x]['box'].get_style_context().remove_class("filament_sensor_detected")
def update_temp(self, dev, temp, target):
if dev in self.labels and temp is not None:
if target > 0:
self.labels[dev].set_label(f"{temp:.1f}°C\n({target:.0f})")
else:
self.labels[dev].set_label(f"{temp:.1f}°C")
+38 -51
View File
@@ -1,6 +1,7 @@
import gi import gi
import logging import logging
import re import re
import contextlib
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk from gi.repository import Gtk
@@ -14,15 +15,11 @@ def create_panel(*args):
class FineTunePanel(ScreenPanel): class FineTunePanel(ScreenPanel):
user_selecting = False
bs = 0
bs_delta = "0.05"
bs_deltas = ["0.01", "0.05"] bs_deltas = ["0.01", "0.05"]
percent_delta = 1 bs_delta = bs_deltas[-1]
percent_deltas = ['1', '5', '10', '25'] percent_deltas = ['1', '5', '10', '25']
extrusion = 100 percent_delta = percent_deltas[-2]
speed = 100 speed = extrusion = 100
def initialize(self, panel_name): def initialize(self, panel_name):
@@ -33,15 +30,16 @@ class FineTunePanel(ScreenPanel):
bs = print_cfg.get("z_babystep_values", "0.01, 0.05") bs = print_cfg.get("z_babystep_values", "0.01, 0.05")
if re.match(r'^[0-9,\.\s]+$', bs): if re.match(r'^[0-9,\.\s]+$', bs):
bs = [str(i.strip()) for i in bs.split(',')] bs = [str(i.strip()) for i in bs.split(',')]
self.bs_deltas = bs if len(bs) <= 2 else [bs[0], bs[-1]] if 1 < len(bs) < 3:
self.bs_delta = self.bs_deltas[0] self.bs_deltas = bs
self.bs_delta = self.bs_deltas[-1]
# babystepping grid # babystepping grid
bsgrid = Gtk.Grid() bsgrid = Gtk.Grid()
for j, i in enumerate(self.bs_deltas): for j, i in enumerate(self.bs_deltas):
self.labels[i] = self._gtk.ToggleButton(i) self.labels[f"bdelta{i}"] = self._gtk.Button(i)
self.labels[i].connect("clicked", self.change_bs_delta, i) self.labels[f"bdelta{i}"].connect("clicked", self.change_bs_delta, float(i))
ctx = self.labels[i].get_style_context() ctx = self.labels[f"bdelta{i}"].get_style_context()
if j == 0: if j == 0:
ctx.add_class("distbutton_top") ctx.add_class("distbutton_top")
elif j == len(self.bs_deltas) - 1: elif j == len(self.bs_deltas) - 1:
@@ -50,23 +48,22 @@ class FineTunePanel(ScreenPanel):
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == self.bs_delta: if i == self.bs_delta:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
bsgrid.attach(self.labels[i], j, 0, 1, 1) bsgrid.attach(self.labels[f"bdelta{i}"], j, 0, 1, 1)
# Grid for percentage # Grid for percentage
deltgrid = Gtk.Grid() deltgrid = Gtk.Grid()
for j, i in enumerate(self.percent_deltas): for j, i in enumerate(self.percent_deltas):
self.labels[i] = self._gtk.ToggleButton(f"{i}%") self.labels[f"pdelta{i}"] = self._gtk.Button(f"{i}%")
self.labels[i].connect("clicked", self.change_percent_delta, i) self.labels[f"pdelta{i}"].connect("clicked", self.change_percent_delta, int(i))
ctx = self.labels[i].get_style_context() ctx = self.labels[f"pdelta{i}"].get_style_context()
if j == 0: if j == 0:
ctx.add_class("distbutton_top") ctx.add_class("distbutton_top")
elif j == len(self.percent_deltas) - 1: elif j == len(self.percent_deltas) - 1:
ctx.add_class("distbutton_bottom") ctx.add_class("distbutton_bottom")
else: else:
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == "1": if i == self.percent_delta:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
deltgrid.attach(self.labels[i], j, 0, 1, 1) deltgrid.attach(self.labels[f"pdelta{i}"], j, 0, 1, 1)
self.labels["1"].set_active(True)
grid = self._gtk.HomogeneousGrid() grid = self._gtk.HomogeneousGrid()
grid.set_row_homogeneous(False) grid.set_row_homogeneous(False)
@@ -74,17 +71,17 @@ class FineTunePanel(ScreenPanel):
self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color1") self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color1")
self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color1") self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color1")
self.labels['zoffset'] = self._gtk.ButtonImage("refresh", " 0.00" + _("mm"), self.labels['zoffset'] = self._gtk.ButtonImage("refresh", " 0.00" + _("mm"),
"color1", .6, Gtk.PositionType.LEFT, False) "color1", .6, Gtk.PositionType.LEFT, 1)
self.labels['speed+'] = self._gtk.ButtonImage("speed+", _("Speed +"), "color3") self.labels['speed+'] = self._gtk.ButtonImage("speed+", _("Speed +"), "color3")
self.labels['speed-'] = self._gtk.ButtonImage("speed-", _("Speed -"), "color3") self.labels['speed-'] = self._gtk.ButtonImage("speed-", _("Speed -"), "color3")
self.labels['speedfactor'] = self._gtk.ButtonImage("refresh", " 100%", self.labels['speedfactor'] = self._gtk.ButtonImage("refresh", " 100%",
"color3", .6, Gtk.PositionType.LEFT, False) "color3", .6, Gtk.PositionType.LEFT, 1)
self.labels['extrude+'] = self._gtk.ButtonImage("flow+", _("Extrusion +"), "color4") self.labels['extrude+'] = self._gtk.ButtonImage("flow+", _("Extrusion +"), "color4")
self.labels['extrude-'] = self._gtk.ButtonImage("flow-", _("Extrusion -"), "color4") self.labels['extrude-'] = self._gtk.ButtonImage("flow-", _("Extrusion -"), "color4")
self.labels['extrudefactor'] = self._gtk.ButtonImage("refresh", " 100%", self.labels['extrudefactor'] = self._gtk.ButtonImage("refresh", " 100%",
"color4", .6, Gtk.PositionType.LEFT, False) "color4", .6, Gtk.PositionType.LEFT, 1)
grid.attach(self.labels['z+'], 0, 0, 1, 1) grid.attach(self.labels['z+'], 0, 0, 1, 1)
grid.attach(self.labels['z-'], 1, 0, 1, 1) grid.attach(self.labels['z-'], 1, 0, 1, 1)
@@ -102,17 +99,17 @@ class FineTunePanel(ScreenPanel):
else: else:
self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color1") self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color1")
self.labels['zoffset'] = self._gtk.ButtonImage("refresh", " 0.00" + _("mm"), self.labels['zoffset'] = self._gtk.ButtonImage("refresh", " 0.00" + _("mm"),
"color1", .6, Gtk.PositionType.LEFT, False) "color1", .6, Gtk.PositionType.LEFT, 1)
self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color1") self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color1")
self.labels['speed+'] = self._gtk.ButtonImage("speed+", _("Speed +"), "color3") self.labels['speed+'] = self._gtk.ButtonImage("speed+", _("Speed +"), "color3")
self.labels['speedfactor'] = self._gtk.ButtonImage("refresh", " 100%", self.labels['speedfactor'] = self._gtk.ButtonImage("refresh", " 100%",
"color3", .6, Gtk.PositionType.LEFT, False) "color3", .6, Gtk.PositionType.LEFT, 1)
self.labels['speed-'] = self._gtk.ButtonImage("speed-", _("Speed -"), "color3") self.labels['speed-'] = self._gtk.ButtonImage("speed-", _("Speed -"), "color3")
self.labels['extrude+'] = self._gtk.ButtonImage("flow+", _("Extrusion +"), "color4") self.labels['extrude+'] = self._gtk.ButtonImage("flow+", _("Extrusion +"), "color4")
self.labels['extrudefactor'] = self._gtk.ButtonImage("refresh", " 100%", self.labels['extrudefactor'] = self._gtk.ButtonImage("refresh", " 100%",
"color4", .6, Gtk.PositionType.LEFT, False) "color4", .6, Gtk.PositionType.LEFT, 1)
self.labels['extrude-'] = self._gtk.ButtonImage("flow-", _("Extrusion -"), "color4") self.labels['extrude-'] = self._gtk.ButtonImage("flow-", _("Extrusion -"), "color4")
grid.attach(self.labels['zoffset'], 0, 0, 1, 1) grid.attach(self.labels['zoffset'], 0, 0, 1, 1)
grid.attach(self.labels['z+'], 0, 1, 1, 1) grid.attach(self.labels['z+'], 0, 1, 1, 1)
@@ -155,35 +152,34 @@ class FineTunePanel(ScreenPanel):
def change_babystepping(self, widget, direction): def change_babystepping(self, widget, direction):
if direction == "reset": if direction == "reset":
self.labels['zoffset'].set_label(' 0.00mm')
self._screen._ws.klippy.gcode_script("SET_GCODE_OFFSET Z=0 MOVE=1") self._screen._ws.klippy.gcode_script("SET_GCODE_OFFSET Z=0 MOVE=1")
elif direction in ["+", "-"]: elif direction in ["+", "-"]:
with contextlib.suppress(KeyError):
z_offset = float(self._printer.data["gcode_move"]["homing_origin"][2])
if direction == "+":
z_offset += float(self.bs_delta)
else:
z_offset -= float(self.bs_delta)
self.labels['zoffset'].set_label(f' {round(z_offset, 2):.2f}mm')
self._screen._ws.klippy.gcode_script(f"SET_GCODE_OFFSET Z_ADJUST={direction}{self.bs_delta} MOVE=1") self._screen._ws.klippy.gcode_script(f"SET_GCODE_OFFSET Z_ADJUST={direction}{self.bs_delta} MOVE=1")
def change_bs_delta(self, widget, bs): def change_bs_delta(self, widget, bs):
if self.bs_delta == bs:
return
logging.info(f"### BabyStepping {bs}") logging.info(f"### BabyStepping {bs}")
self.labels[f"bdelta{self.bs_delta}"].get_style_context().remove_class("distbutton_active")
ctx = self.labels[f"{self.bs_delta}"].get_style_context() self.labels[f"bdelta{bs}"].get_style_context().add_class("distbutton_active")
ctx.remove_class("distbutton_active")
self.bs_delta = bs self.bs_delta = bs
ctx = self.labels[self.bs_delta].get_style_context()
ctx.add_class("distbutton_active")
for i in self.bs_deltas:
if i == self.bs_delta:
continue
self.labels[i].set_active(False)
def change_extrusion(self, widget, direction): def change_extrusion(self, widget, direction):
if direction == "+": if direction == "+":
self.extrusion += int(self.percent_delta) self.extrusion += self.percent_delta
elif direction == "-": elif direction == "-":
self.extrusion -= int(self.percent_delta) self.extrusion -= self.percent_delta
elif direction == "reset": elif direction == "reset":
self.extrusion = 100 self.extrusion = 100
self.extrusion = max(self.extrusion, 1) self.extrusion = max(self.extrusion, 1)
self.labels['extrudefactor'].set_label(f" {self.extrusion:3}%")
self._screen._ws.klippy.gcode_script(KlippyGcodes.set_extrusion_rate(self.extrusion)) self._screen._ws.klippy.gcode_script(KlippyGcodes.set_extrusion_rate(self.extrusion))
def change_speed(self, widget, direction): def change_speed(self, widget, direction):
@@ -195,20 +191,11 @@ class FineTunePanel(ScreenPanel):
self.speed = 100 self.speed = 100
self.speed = max(self.speed, 1) self.speed = max(self.speed, 1)
self.labels['speedfactor'].set_label(f" {self.speed:3}%")
self._screen._ws.klippy.gcode_script(KlippyGcodes.set_speed_rate(self.speed)) self._screen._ws.klippy.gcode_script(KlippyGcodes.set_speed_rate(self.speed))
def change_percent_delta(self, widget, delta): def change_percent_delta(self, widget, delta):
if self.percent_delta == delta:
return
logging.info(f"### Delta {delta}") logging.info(f"### Delta {delta}")
self.labels[f"pdelta{self.percent_delta}"].get_style_context().remove_class("distbutton_active")
ctx = self.labels[f"{self.percent_delta}"].get_style_context() self.labels[f"pdelta{delta}"].get_style_context().add_class("distbutton_active")
ctx.remove_class("distbutton_active")
self.percent_delta = delta self.percent_delta = delta
ctx = self.labels[self.percent_delta].get_style_context()
ctx.add_class("distbutton_active")
for i in self.percent_deltas:
if i == self.percent_delta:
continue
self.labels[f"{i}"].set_active(False)
+5 -5
View File
@@ -16,7 +16,7 @@ class MacroPanel(ScreenPanel):
super().__init__(screen, title, back) super().__init__(screen, title, back)
self.sort_reverse = False self.sort_reverse = False
self.sort_lbl = _("Name") self.sort_lbl = _("Name")
self.sort_btn = self._gtk.ButtonImage("arrow-up", self.sort_lbl, "color1", .66, Gtk.PositionType.RIGHT, False) self.sort_btn = self._gtk.ButtonImage("arrow-up", self.sort_lbl, "color1", .5, Gtk.PositionType.RIGHT, 1)
self.sort_btn.connect("clicked", self.change_sort) self.sort_btn.connect("clicked", self.change_sort)
self.sort_btn.set_hexpand(True) self.sort_btn.set_hexpand(True)
self.allmacros = {} self.allmacros = {}
@@ -28,7 +28,7 @@ class MacroPanel(ScreenPanel):
sort = Gtk.Label(_("Sort:")) sort = Gtk.Label(_("Sort:"))
sort.set_hexpand(False) sort.set_hexpand(False)
adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, False) adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, 1)
adjust.connect("clicked", self.load_menu, 'options') adjust.connect("clicked", self.load_menu, 'options')
adjust.set_hexpand(False) adjust.set_hexpand(False)
@@ -71,7 +71,7 @@ class MacroPanel(ScreenPanel):
name.set_line_wrap(True) name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
btn = self._gtk.ButtonImage("resume", None, "color3") btn = self._gtk.ButtonImage("resume", style="color3")
btn.connect("clicked", self.run_gcode_macro, macro) btn.connect("clicked", self.run_gcode_macro, macro)
btn.set_hexpand(False) btn.set_hexpand(False)
btn.set_halign(Gtk.Align.END) btn.set_halign(Gtk.Align.END)
@@ -104,9 +104,9 @@ class MacroPanel(ScreenPanel):
def change_sort(self, widget): def change_sort(self, widget):
self.sort_reverse ^= True self.sort_reverse ^= True
if self.sort_reverse: if self.sort_reverse:
self.sort_btn.set_image(self._gtk.Image("arrow-down", .66)) self.sort_btn.set_image(self._gtk.Image("arrow-down", self._gtk.img_scale * .5))
else: else:
self.sort_btn.set_image(self._gtk.Image("arrow-up", .66)) self.sort_btn.set_image(self._gtk.Image("arrow-up", self._gtk.img_scale * .5))
self.sort_btn.show() self.sort_btn.show()
GLib.idle_add(self.reload_macros) GLib.idle_add(self.reload_macros)
+2 -2
View File
@@ -25,7 +25,7 @@ class InputShaperPanel(ScreenPanel):
super().__init__(screen, title, back) super().__init__(screen, title, back)
self.freq_xy_adj = {} self.freq_xy_adj = {}
self.freq_xy_combo = {} self.freq_xy_combo = {}
self.calibrate_btn = self._gtk.ButtonImage("move", _('Finding ADXL'), "color1", word_wrap=False) self.calibrate_btn = self._gtk.ButtonImage("move", _('Finding ADXL'), "color1", lines=1)
self.calibrate_btn.connect("clicked", self.on_popover_clicked) self.calibrate_btn.connect("clicked", self.on_popover_clicked)
self.calibrate_btn.set_sensitive(False) self.calibrate_btn.set_sensitive(False)
self.status = Gtk.Label("") self.status = Gtk.Label("")
@@ -127,7 +127,7 @@ class InputShaperPanel(ScreenPanel):
if method == "both": if method == "both":
self._screen._ws.klippy.gcode_script('SHAPER_CALIBRATE') self._screen._ws.klippy.gcode_script('SHAPER_CALIBRATE')
self.calibrate_btn.set_label(self.lang.gettext('Calibrating...')) self.calibrate_btn.set_label(_('Calibrating...'))
self.calibrate_btn.set_sensitive(False) self.calibrate_btn.set_sensitive(False)
def set_opt_value(self, widget, opt, *args): def set_opt_value(self, widget, opt, *args):
+48 -45
View File
@@ -119,12 +119,7 @@ class JobStatusPanel(ScreenPanel):
overlay.add(self.labels['darea']) overlay.add(self.labels['darea'])
overlay.add_overlay(box) overlay.add_overlay(box)
self.labels['thumbnail'] = self._gtk.Image("file", 2) self.labels['thumbnail'] = self._gtk.Image("file", self._screen.width / 4, self._screen.height / 4)
if self._screen.vertical_mode:
self.labels['thumbnail'].set_size_request(0, self._screen.height / 4)
else:
self.labels['thumbnail'].set_size_request(self._screen.width / 3, 0)
self.labels['info_grid'] = Gtk.Grid() self.labels['info_grid'] = Gtk.Grid()
self.labels['info_grid'].attach(self.labels['thumbnail'], 0, 0, 1, 1) self.labels['info_grid'].attach(self.labels['thumbnail'], 0, 0, 1, 1)
if self._screen.printer.get_tools(): if self._screen.printer.get_tools():
@@ -186,7 +181,7 @@ class JobStatusPanel(ScreenPanel):
self.heater_button[device].set_halign(Gtk.Align.START) self.heater_button[device].set_halign(Gtk.Align.START)
self.labels['temp_grid'].attach(self.heater_button[device], n, 0, 1, 1) self.labels['temp_grid'].attach(self.heater_button[device], n, 0, 1, 1)
n += 1 n += 1
extra_item = True extra_item = not self._show_heater_power
printer_cfg = self._config.get_printer_config(self._screen.connected_printer) printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
if printer_cfg is not None: if printer_cfg is not None:
titlebar_items = printer_cfg.get("titlebar_items", "") titlebar_items = printer_cfg.get("titlebar_items", "")
@@ -441,9 +436,11 @@ class JobStatusPanel(ScreenPanel):
widget.destroy() widget.destroy()
def restart(self, widget): def restart(self, widget):
self.disable_button("restart")
if self.filename != "none": if self.filename != "none":
self._screen._ws.klippy.print_start(self.filename) self._screen._ws.klippy.print_start(self.filename)
self.new_print() self.new_print()
GLib.timeout_add_seconds(5, self.enable_button("restart"))
def resume(self, widget): def resume(self, widget):
self._screen._ws.klippy.print_resume(self._response_callback, "enable_button", "pause", "cancel") self._screen._ws.klippy.print_resume(self._response_callback, "enable_button", "pause", "cancel")
@@ -459,7 +456,8 @@ class JobStatusPanel(ScreenPanel):
{"name": _("Cancel Print"), "response": Gtk.ResponseType.OK}, {"name": _("Cancel Print"), "response": Gtk.ResponseType.OK},
{"name": _("Go Back"), "response": Gtk.ResponseType.CANCEL} {"name": _("Go Back"), "response": Gtk.ResponseType.CANCEL}
] ]
if len(self._printer.get_stat("exclude_object", "objects")) > 1:
buttons.insert(0, {"name": _("Exclude Object"), "response": Gtk.ResponseType.APPLY})
label = Gtk.Label() label = Gtk.Label()
label.set_markup(_("Are you sure you wish to cancel this print?")) label.set_markup(_("Are you sure you wish to cancel this print?"))
label.set_hexpand(True) label.set_hexpand(True)
@@ -470,11 +468,14 @@ class JobStatusPanel(ScreenPanel):
label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
self._gtk.Dialog(self._screen, buttons, label, self.cancel_confirm) self._gtk.Dialog(self._screen, buttons, label, self.cancel_confirm)
self.disable_button("pause", "cancel")
def cancel_confirm(self, widget, response_id): def cancel_confirm(self, widget, response_id):
widget.destroy() widget.destroy()
if response_id == Gtk.ResponseType.APPLY:
self.menu_item_clicked(None, "exclude", {"panel": "exclude", "name": _("Exclude Object")})
return
if response_id == Gtk.ResponseType.CANCEL: if response_id == Gtk.ResponseType.CANCEL:
self.enable_button("pause", "cancel") self.enable_button("pause", "cancel")
return return
@@ -489,11 +490,15 @@ class JobStatusPanel(ScreenPanel):
self.enable_button(*args) self.enable_button(*args)
def close_panel(self, widget=None): def close_panel(self, widget=None):
self.disable_button("menu")
logging.debug("Closing job_status panel") logging.debug("Closing job_status panel")
self.remove_close_timeout() self.remove_close_timeout()
self.state_check() self.state_check()
if self.state not in ["printing", "paused"]: if self.state not in ["printing", "paused", "cancelling"]:
self._screen.printer_ready() self._screen.printer_ready()
self._printer.change_state("ready")
GLib.timeout_add_seconds(5, self.enable_button("menu"))
return False return False
def remove_close_timeout(self): def remove_close_timeout(self):
@@ -538,7 +543,8 @@ class JobStatusPanel(ScreenPanel):
self.update_temp( self.update_temp(
x, x,
self._printer.get_dev_stat(x, "temperature"), self._printer.get_dev_stat(x, "temperature"),
self._printer.get_dev_stat(x, "target") self._printer.get_dev_stat(x, "target"),
self._printer.get_dev_stat(x, "power"),
) )
self.extruder_button[x].set_label(self.labels[x].get_text()) self.extruder_button[x].set_label(self.labels[x].get_text())
for x in self._printer.get_heaters(): for x in self._printer.get_heaters():
@@ -546,7 +552,8 @@ class JobStatusPanel(ScreenPanel):
self.update_temp( self.update_temp(
x, x,
self._printer.get_dev_stat(x, "temperature"), self._printer.get_dev_stat(x, "temperature"),
self._printer.get_dev_stat(x, "target") self._printer.get_dev_stat(x, "target"),
self._printer.get_dev_stat(x, "power"),
) )
self.heater_button[x].set_label(self.labels[x].get_text()) self.heater_button[x].set_label(self.labels[x].get_text())
@@ -560,7 +567,7 @@ class JobStatusPanel(ScreenPanel):
self.labels['temp_grid'].attach(self.extruder_button[self.current_extruder], 0, 0, 1, 1) self.labels['temp_grid'].attach(self.extruder_button[self.current_extruder], 0, 0, 1, 1)
self._screen.show_all() self._screen.show_all()
with contextlib.suppress(KeyError): with contextlib.suppress(KeyError):
self.labels['max_accel'].set_text(f"{data['toolhead']['max_accel']} mm/s²") self.labels['max_accel'].set_text(f"{data['toolhead']['max_accel']:.0f} mm/s²")
with contextlib.suppress(KeyError): with contextlib.suppress(KeyError):
self.labels['advance'].set_text(f"{data['extruder']['pressure_advance']:.2f}") self.labels['advance'].set_text(f"{data['extruder']['pressure_advance']:.2f}")
@@ -638,19 +645,22 @@ class JobStatusPanel(ScreenPanel):
return return
ps = self._printer.get_stat("print_stats") ps = self._printer.get_stat("print_stats")
if int(ps['print_duration']) == 0 and self.progress > 0.001:
# Print duration remains at 0 when using No-extusion tests
duration = ps['total_duration']
else:
duration = ps['print_duration']
if 'filament_used' in ps:
self.labels['filament_used'].set_text(f"{float(ps['filament_used']) / 1000:.1f} m")
if 'filename' in ps and (ps['filename'] != self.filename): if 'filename' in ps and (ps['filename'] != self.filename):
logging.debug(f"Changing filename: '{self.filename}' to '{ps['filename']}'") logging.debug(f"Changing filename: '{self.filename}' to '{ps['filename']}'")
self.update_filename() self.update_filename()
else: else:
self.update_percent_complete() self.update_percent_complete()
self.update_time_left(duration, ps['filament_used']) if 'print_duration' in ps:
if int(ps['print_duration']) == 0 and self.progress > 0.001:
# Print duration remains at 0 when using No-extusion tests
duration = ps['total_duration']
else:
duration = ps['print_duration']
if 'filament_used' in ps:
self.labels['filament_used'].set_text(f"{float(ps['filament_used']) / 1000:.1f} m")
self.update_time_left(duration, ps['filament_used'])
else:
self.update_time_left(duration)
if self.main_status_displayed: if self.main_status_displayed:
self.fan_button.set_label(self.labels['fan'].get_text()) self.fan_button.set_label(self.labels['fan'].get_text())
@@ -718,12 +728,13 @@ class JobStatusPanel(ScreenPanel):
total_duration = file_time total_duration = file_time
self.update_text("duration", self.format_time(duration)) self.update_text("duration", self.format_time(duration))
self.update_text("est_time", self.format_time(total_duration)) self.update_text("est_time", self.format_time(total_duration))
self.update_text("time_left", self.format_time(total_duration - duration)) if total_duration is not None:
self.update_text("time_left", self.format_time(total_duration - duration))
def state_check(self): def state_check(self):
ps = self._printer.get_stat("print_stats") ps = self._printer.get_stat("print_stats")
if ps['state'] == self.state: if 'state' not in ps or ps['state'] == self.state:
return True return True
if ps['state'] == "printing": if ps['state'] == "printing":
@@ -737,13 +748,11 @@ class JobStatusPanel(ScreenPanel):
self.set_state("complete") self.set_state("complete")
return self._add_timeout("job_complete_timeout") return self._add_timeout("job_complete_timeout")
elif ps['state'] == "error": elif ps['state'] == "error":
logging.debug("Error!")
self.set_state("error") self.set_state("error")
self.labels['status'].set_text(_("Error")) self.labels['status'].set_text(_("Error"))
self._screen.show_popup_message(ps['message']) self._screen.show_popup_message(ps['message'])
return self._add_timeout("job_error_timeout") return self._add_timeout("job_error_timeout")
elif ps['state'] == "cancelled": elif ps['state'] == "cancelled":
# Print was cancelled
self.set_state("cancelled") self.set_state("cancelled")
return self._add_timeout("job_cancelled_timeout") return self._add_timeout("job_cancelled_timeout")
elif ps['state'] == "paused": elif ps['state'] == "paused":
@@ -810,12 +819,19 @@ class JobStatusPanel(ScreenPanel):
if self.filename is not None: if self.filename is not None:
self.buttons['button_grid'].attach(self.buttons['restart'], 2, 0, 1, 1) self.buttons['button_grid'].attach(self.buttons['restart'], 2, 0, 1, 1)
self.buttons['button_grid'].attach(self.buttons['menu'], 3, 0, 1, 1) if self.state != "cancelling":
self.buttons['button_grid'].attach(self.buttons['menu'], 3, 0, 1, 1)
self.show_all() self.show_all()
def show_file_thumbnail(self): def show_file_thumbnail(self):
if self._files.has_thumbnail(self.filename): if self._files.has_thumbnail(self.filename):
pixbuf = self.get_file_image(self.filename, 5, 4) if self._screen.vertical_mode:
width = -1
height = self._screen.height / 4
else:
width = self._screen.width / 3
height = -1
pixbuf = self.get_file_image(self.filename, width, height)
if pixbuf is not None: if pixbuf is not None:
self.labels['thumbnail'].set_from_pixbuf(pixbuf) self.labels['thumbnail'].set_from_pixbuf(pixbuf)
@@ -826,27 +842,21 @@ class JobStatusPanel(ScreenPanel):
"complete": self.labels['file'].get_label(), "complete": self.labels['file'].get_label(),
"current": self.labels['file'].get_label(), "current": self.labels['file'].get_label(),
"position": 0, "position": 0,
"limit": 24, "limit": (self._screen.width * 24 / 480) // (self._gtk.get_font_size() / 11),
"length": len(self.labels['file'].get_label()) "length": len(self.labels['file'].get_label())
} }
if self.animation_timeout is None and (self.filename_label['length'] - self.filename_label['limit']) > 0:
if self.animation_timeout is None: self.animation_timeout = GLib.timeout_add_seconds(1, self.animate_label)
# if self.labels['file'].is_ellipsized(): <- currently this doesn't work
if (self.filename_label['length'] - self.filename_label['limit']) > 0:
self.animation_timeout = GLib.timeout_add_seconds(1, self.animate_label)
self.update_percent_complete() self.update_percent_complete()
self.update_file_metadata() self.update_file_metadata()
def animate_label(self): def animate_label(self):
pos = self.filename_label['position'] pos = self.filename_label['position']
current = self.filename_label['current']
complete = self.filename_label['complete']
if pos > (self.filename_label['length'] - self.filename_label['limit']): if pos > (self.filename_label['length'] - self.filename_label['limit']):
self.filename_label['position'] = 0 self.filename_label['position'] = 0
self.labels['file'].set_label(complete) self.labels['file'].set_label(self.filename_label['complete'])
else: else:
self.labels['file'].set_label(current[pos:self.filename_label['length']]) self.labels['file'].set_label(self.filename_label['current'][pos:self.filename_label['length']])
self.filename_label['position'] += 1 self.filename_label['position'] += 1
return True return True
@@ -906,10 +916,3 @@ class JobStatusPanel(ScreenPanel):
if msg is None: if msg is None:
msg = " " msg = " "
self.labels['lcdmessage'].set_text(f"{msg}") self.labels['lcdmessage'].set_text(f"{msg}")
def update_temp(self, x, temp, target):
if x in self.labels and temp is not None:
if target is not None and target > 0:
self.labels[x].set_label(f"{int(temp):3}/{int(target):3}°")
else:
self.labels[x].set_label(f"{int(temp):3}°")
+8 -3
View File
@@ -67,8 +67,11 @@ class LimitsPanel(ScreenPanel):
if opt["option"] == option: if opt["option"] == option:
if self.values[option] > opt["max"]: if self.values[option] > opt["max"]:
self.limits[option]['scale'].get_style_context().add_class("option_slider_max") self.limits[option]['scale'].get_style_context().add_class("option_slider_max")
# Infinite scale
self.limits[option]['adjustment'].set_upper(self.values[option] * 1.5)
else: else:
self.limits[option]['scale'].get_style_context().remove_class("option_slider_max") self.limits[option]['scale'].get_style_context().remove_class("option_slider_max")
self.limits[option]['adjustment'].set_upper(opt["max"] * 1.5)
self.limits[option]['scale'].connect("button-release-event", self.set_opt_value, option) self.limits[option]['scale'].connect("button-release-event", self.set_opt_value, option)
def add_option(self, option, optname, units, value): def add_option(self, option, optname, units, value):
@@ -83,8 +86,9 @@ class LimitsPanel(ScreenPanel):
name.set_line_wrap(True) name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
scale = Gtk.Scale.new_with_range(orientation=Gtk.Orientation.HORIZONTAL, min=0, max=value * 1.5, step=1) # adj (value, lower, upper, step_increment, page_increment, page_size)
scale.set_value(value) adj = Gtk.Adjustment(value, 1, (value * 1.5), 1, 5, 0)
scale = Gtk.Scale.new(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_digits(0) scale.set_digits(0)
scale.set_hexpand(True) scale.set_hexpand(True)
scale.set_has_origin(True) scale.set_has_origin(True)
@@ -92,7 +96,7 @@ class LimitsPanel(ScreenPanel):
scale.connect("button-release-event", self.set_opt_value, option) scale.connect("button-release-event", self.set_opt_value, option)
self.values[option] = value self.values[option] = value
reset = self._gtk.ButtonImage("refresh", None, "color1") reset = self._gtk.ButtonImage("refresh", style="color1")
reset.connect("clicked", self.reset_value, option) reset.connect("clicked", self.reset_value, option)
reset.set_hexpand(False) reset.set_hexpand(False)
@@ -108,6 +112,7 @@ class LimitsPanel(ScreenPanel):
self.limits[option] = { self.limits[option] = {
"row": frame, "row": frame,
"scale": scale, "scale": scale,
"adjustment": adj,
} }
limits = sorted(self.limits) limits = sorted(self.limits)
+57 -75
View File
@@ -16,7 +16,6 @@ def create_panel(*args):
class MainPanel(MenuPanel): class MainPanel(MenuPanel):
def __init__(self, screen, title, back=False): def __init__(self, screen, title, back=False):
super().__init__(screen, title, False) super().__init__(screen, title, False)
self.popover_device = None
self.items = None self.items = None
self.grid = self._gtk.HomogeneousGrid() self.grid = self._gtk.HomogeneousGrid()
self.grid.set_hexpand(True) self.grid.set_hexpand(True)
@@ -48,17 +47,40 @@ class MainPanel(MenuPanel):
self.content.add(self.grid) self.content.add(self.grid)
self.layout.show_all() self.layout.show_all()
def update_graph_visibility(self):
count = 0
for device in self.devices:
visible = self._config.get_config().getboolean(f"graph {self._screen.connected_printer}",
device, fallback=True)
self.devices[device]['visible'] = visible
self.labels['da'].set_showing(device, visible)
if visible:
count += 1
self.devices[device]['name'].get_style_context().add_class(self.devices[device]['class'])
self.devices[device]['name'].get_style_context().remove_class("graph_label_hidden")
else:
self.devices[device]['name'].get_style_context().add_class("graph_label_hidden")
self.devices[device]['name'].get_style_context().remove_class(self.devices[device]['class'])
if count > 0:
self.left_panel.add(self.labels['da'])
self.labels['da'].queue_draw()
self.labels['da'].show()
else:
self.left_panel.remove(self.labels['da'])
def activate(self): def activate(self):
# For this case False != None # For this case False != None
if self.graph_update is None: if self.graph_update is None:
# This has a high impact on load # This has a high impact on load
self.graph_update = GLib.timeout_add_seconds(5, self.update_graph) self.graph_update = GLib.timeout_add_seconds(5, self.update_graph)
return self.update_graph_visibility()
def deactivate(self): def deactivate(self):
if self.graph_update: if self.graph_update:
GLib.source_remove(self.graph_update) GLib.source_remove(self.graph_update)
self.graph_update = None self.graph_update = None
if self.active_heater is not None:
self.hide_numpad()
def add_device(self, device): def add_device(self, device):
@@ -108,22 +130,26 @@ class MainPanel(MenuPanel):
if can_target: if can_target:
self.labels['da'].add_object(device, "targets", rgb, True, False) self.labels['da'].add_object(device, "targets", rgb, True, False)
name = self._gtk.ButtonImage(image, devname.capitalize().replace("_", " "), name = self._gtk.ButtonImage(image, devname.capitalize().replace("_", " "), None, .5, Gtk.PositionType.LEFT, 1)
None, .5, Gtk.PositionType.LEFT, False) name.connect("clicked", self.toggle_visibility, device)
name.connect('clicked', self.on_popover_clicked, device)
name.set_alignment(0, .5) name.set_alignment(0, .5)
name.get_style_context().add_class(class_name) visible = self._config.get_config().getboolean(f"graph {self._screen.connected_printer}", device, fallback=True)
child = name.get_children()[0].get_children()[0].get_children()[1] if visible:
child.set_ellipsize(Pango.EllipsizeMode.END) name.get_style_context().add_class(class_name)
else:
name.get_style_context().add_class("graph_label_hidden")
self.labels['da'].set_showing(device, visible)
temp = self._gtk.Button("") temp = self._gtk.Button("")
temp.connect('clicked', self.on_popover_clicked, device) if can_target:
temp.connect("clicked", self.show_numpad, device)
self.devices[device] = { self.devices[device] = {
"class": class_name, "class": class_name,
"name": name, "name": name,
"temp": temp, "temp": temp,
"can_target": can_target "can_target": can_target,
"visible": visible
} }
devices = sorted(self.devices) devices = sorted(self.devices)
@@ -135,6 +161,18 @@ class MainPanel(MenuPanel):
self.labels['devices'].show_all() self.labels['devices'].show_all()
return True return True
def toggle_visibility(self, widget, device):
self.devices[device]['visible'] ^= True
logging.info(f"Graph show {self.devices[device]['visible']}: {device}")
section = f"graph {self._screen.connected_printer}"
if section not in self._config.get_config().sections():
self._config.get_config().add_section(section)
self._config.set(section, f"{device}", f"{self.devices[device]['visible']}")
self._config.save_user_config_options()
self.update_graph_visibility()
def change_target_temp(self, temp): def change_target_temp(self, temp):
max_temp = int(float(self._printer.get_config_section(self.active_heater)['max_temp'])) max_temp = int(float(self._printer.get_config_section(self.active_heater)['max_temp']))
@@ -177,44 +215,15 @@ class MainPanel(MenuPanel):
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(self.labels['devices']) scroll.add(self.labels['devices'])
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0) self.left_panel = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
box.add(scroll) self.left_panel.add(scroll)
box.add(self.labels['da'])
self.labels['graph_settemp'] = self._gtk.Button(label=_("Set Temp"))
self.labels['graph_settemp'].connect("clicked", self.show_numpad)
self.labels['graph_hide'] = self._gtk.Button(label=_("Hide"))
self.labels['graph_hide'].connect("clicked", self.graph_show_device, False)
self.labels['graph_show'] = self._gtk.Button(label=_("Show"))
self.labels['graph_show'].connect("clicked", self.graph_show_device)
popover = Gtk.Popover()
self.labels['popover_vbox'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
popover.add(self.labels['popover_vbox'])
popover.set_position(Gtk.PositionType.BOTTOM)
self.labels['popover'] = popover
for d in self._printer.get_temp_store_devices(): for d in self._printer.get_temp_store_devices():
self.add_device(d) self.add_device(d)
return box return self.left_panel
def graph_show_device(self, widget, show=True): def hide_numpad(self, widget=None):
logging.info(f"Graph show: {self.popover_device} {show}")
self.labels['da'].set_showing(self.popover_device, show)
if show:
self.devices[self.popover_device]['name'].get_style_context().remove_class("graph_label_hidden")
self.devices[self.popover_device]['name'].get_style_context().add_class(
self.devices[self.popover_device]['class'])
else:
self.devices[self.popover_device]['name'].get_style_context().remove_class(
self.devices[self.popover_device]['class'])
self.devices[self.popover_device]['name'].get_style_context().add_class("graph_label_hidden")
self.labels['da'].queue_draw()
self.popover_populate_menu()
self.labels['popover'].show_all()
def hide_numpad(self, widget):
self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active") self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active")
self.active_heater = None self.active_heater = None
@@ -226,25 +235,6 @@ class MainPanel(MenuPanel):
self.grid.attach(self.labels['menu'], 1, 0, 1, 1) self.grid.attach(self.labels['menu'], 1, 0, 1, 1)
self.grid.show_all() self.grid.show_all()
def on_popover_clicked(self, widget, device):
self.popover_device = device
po = self.labels['popover']
po.set_relative_to(widget)
self.popover_populate_menu()
po.show_all()
def popover_populate_menu(self):
pobox = self.labels['popover_vbox']
for child in pobox.get_children():
pobox.remove(child)
if self.labels['da'].is_showing(self.popover_device):
pobox.pack_start(self.labels['graph_hide'], True, True, 5)
else:
pobox.pack_start(self.labels['graph_show'], True, True, 5)
if self.devices[self.popover_device]["can_target"]:
pobox.pack_start(self.labels['graph_settemp'], True, True, 5)
def process_update(self, action, data): def process_update(self, action, data):
if action != "notify_status_update": if action != "notify_status_update":
return return
@@ -253,21 +243,23 @@ class MainPanel(MenuPanel):
self.update_temp( self.update_temp(
x, x,
self._printer.get_dev_stat(x, "temperature"), self._printer.get_dev_stat(x, "temperature"),
self._printer.get_dev_stat(x, "target") self._printer.get_dev_stat(x, "target"),
self._printer.get_dev_stat(x, "power"),
) )
for h in self._printer.get_heaters(): for h in self._printer.get_heaters():
self.update_temp( self.update_temp(
h, h,
self._printer.get_dev_stat(h, "temperature"), self._printer.get_dev_stat(h, "temperature"),
self._printer.get_dev_stat(h, "target"), self._printer.get_dev_stat(h, "target"),
self._printer.get_dev_stat(h, "power"),
) )
return return
def show_numpad(self, widget): def show_numpad(self, widget, device):
if self.active_heater is not None: if self.active_heater is not None:
self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active") self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active")
self.active_heater = self.popover_device self.active_heater = device
self.devices[self.active_heater]['name'].get_style_context().add_class("button_active") self.devices[self.active_heater]['name'].get_style_context().add_class("button_active")
if "keypad" not in self.labels: if "keypad" not in self.labels:
@@ -282,16 +274,6 @@ class MainPanel(MenuPanel):
self.grid.attach(self.labels["keypad"], 1, 0, 1, 1) self.grid.attach(self.labels["keypad"], 1, 0, 1, 1)
self.grid.show_all() self.grid.show_all()
self.labels['popover'].popdown()
def update_graph(self): def update_graph(self):
self.labels['da'].queue_draw() self.labels['da'].queue_draw()
return True return True
def update_temp(self, device, temp, target):
if device not in self.devices:
return
if self.devices[device]["can_target"] and target > 0:
self.devices[device]["temp"].get_child().set_label(f"{temp:.1f} / {target:.0f}")
else:
self.devices[device]["temp"].get_child().set_label(f"{temp:.1f}")
+5 -9
View File
@@ -77,13 +77,11 @@ class MenuPanel(ScreenPanel):
item = self.items[i][key] item = self.items[i][key]
env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True) env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True)
env.install_gettext_translations(self.lang) env.install_gettext_translations(self._config.get_lang())
j2_temp = env.from_string(item['name']) j2_temp = env.from_string(item['name'])
parsed_name = j2_temp.render() parsed_name = j2_temp.render()
b = self._gtk.ButtonImage( b = self._gtk.ButtonImage(item['icon'], parsed_name, f"color{(i % 4) + 1}")
item['icon'], parsed_name, f"color{(i % 4) + 1}"
)
if item['panel'] is not False: if item['panel'] is not False:
b.connect("clicked", self.menu_item_clicked, item['panel'], item) b.connect("clicked", self.menu_item_clicked, item['panel'], item)
elif item['method'] is not False: elif item['method'] is not False:
@@ -111,9 +109,7 @@ class MenuPanel(ScreenPanel):
logging.debug(f"Template: '{enable}'") logging.debug(f"Template: '{enable}'")
j2_temp = Template(enable, autoescape=True) j2_temp = Template(enable, autoescape=True)
result = j2_temp.render(self.j2_data) result = j2_temp.render(self.j2_data)
if result == 'True': return result == 'True'
return True except Exception as e:
return False logging.debug(f"Error evaluating enable statement: {enable}\n{e}")
except Exception:
logging.debug(f"Error evaluating enable statement: {enable}")
return False return False
+8 -19
View File
@@ -17,8 +17,8 @@ def create_panel(*args):
class MovePanel(ScreenPanel): class MovePanel(ScreenPanel):
distance = 1
distances = ['.1', '.5', '1', '5', '10', '25', '50'] distances = ['.1', '.5', '1', '5', '10', '25', '50']
distance = distances[-2]
def __init__(self, screen, title, back=True): def __init__(self, screen, title, back=True):
super().__init__(screen, title, back) super().__init__(screen, title, back)
@@ -100,7 +100,7 @@ class MovePanel(ScreenPanel):
distgrid = Gtk.Grid() distgrid = Gtk.Grid()
for j, i in enumerate(self.distances): for j, i in enumerate(self.distances):
self.labels[i] = self._gtk.ToggleButton(i) self.labels[i] = self._gtk.Button(i)
self.labels[i].set_direction(Gtk.TextDirection.LTR) self.labels[i].set_direction(Gtk.TextDirection.LTR)
self.labels[i].connect("clicked", self.change_distance, i) self.labels[i].connect("clicked", self.change_distance, i)
ctx = self.labels[i].get_style_context() ctx = self.labels[i].get_style_context()
@@ -110,15 +110,14 @@ class MovePanel(ScreenPanel):
ctx.add_class("distbutton_bottom") ctx.add_class("distbutton_bottom")
else: else:
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == "1": if i == self.distance:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
distgrid.attach(self.labels[i], j, 0, 1, 1) distgrid.attach(self.labels[i], j, 0, 1, 1)
self.labels["1"].set_active(True)
self.labels['pos_x'] = Gtk.Label("X: 0") self.labels['pos_x'] = Gtk.Label("X: 0")
self.labels['pos_y'] = Gtk.Label("Y: 0") self.labels['pos_y'] = Gtk.Label("Y: 0")
self.labels['pos_z'] = Gtk.Label("Z: 0") self.labels['pos_z'] = Gtk.Label("Z: 0")
adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, False) adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, 1)
adjust.connect("clicked", self.load_menu, 'options') adjust.connect("clicked", self.load_menu, 'options')
adjust.set_hexpand(False) adjust.set_hexpand(False)
self.labels['move_dist'] = Gtk.Label(_("Move Distance (mm)")) self.labels['move_dist'] = Gtk.Label(_("Move Distance (mm)"))
@@ -194,20 +193,10 @@ class MovePanel(ScreenPanel):
self.labels['pos_z'].set_text("Z: ?") self.labels['pos_z'].set_text("Z: ?")
def change_distance(self, widget, distance): def change_distance(self, widget, distance):
if self.distance == distance:
return
logging.info(f"### Distance {distance}") logging.info(f"### Distance {distance}")
self.labels[f"{self.distance}"].get_style_context().remove_class("distbutton_active")
ctx = self.labels[f"{self.distance}"].get_style_context() self.labels[f"{distance}"].get_style_context().add_class("distbutton_active")
ctx.remove_class("distbutton_active")
self.distance = distance self.distance = distance
ctx = self.labels[self.distance].get_style_context()
ctx.add_class("distbutton_active")
for i in self.distances:
if i == self.distance:
continue
self.labels[f"{i}"].set_active(False)
def move(self, widget, axis, direction): def move(self, widget, axis, direction):
if self._config.get_config()['main'].getboolean(f"invert_{axis.lower()}", False): if self._config.get_config()['main'].getboolean(f"invert_{axis.lower()}", False):
@@ -215,8 +204,8 @@ class MovePanel(ScreenPanel):
dist = f"{direction}{self.distance}" dist = f"{direction}{self.distance}"
config_key = "move_speed_z" if axis == AXIS_Z else "move_speed_xy" config_key = "move_speed_z" if axis == AXIS_Z else "move_speed_xy"
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
speed = self._config.get_printer_config(self._screen.connected_printer).getint(config_key, None) speed = None if printer_cfg is None else printer_cfg.getint(config_key, None)
if speed is None: if speed is None:
speed = self._config.get_config()['main'].getint(config_key, 20) speed = self._config.get_config()['main'].getint(config_key, 20)
+3 -3
View File
@@ -160,12 +160,12 @@ class NetworkPanel(ScreenPanel):
labels.set_valign(Gtk.Align.CENTER) labels.set_valign(Gtk.Align.CENTER)
labels.set_halign(Gtk.Align.START) labels.set_halign(Gtk.Align.START)
connect = self._gtk.ButtonImage("load", None, "color3") connect = self._gtk.ButtonImage("load", style="color3")
connect.connect("clicked", self.connect_network, ssid) connect.connect("clicked", self.connect_network, ssid)
connect.set_hexpand(False) connect.set_hexpand(False)
connect.set_halign(Gtk.Align.END) connect.set_halign(Gtk.Align.END)
delete = self._gtk.ButtonImage("delete", None, "color3") delete = self._gtk.ButtonImage("delete", style="color3")
delete.connect("clicked", self.remove_wifi_network, ssid) delete.connect("clicked", self.remove_wifi_network, ssid)
delete.set_size_request(60, 0) delete.set_size_request(60, 0)
delete.set_hexpand(False) delete.set_hexpand(False)
@@ -446,8 +446,8 @@ class NetworkPanel(ScreenPanel):
def reload_networks(self, widget=None): def reload_networks(self, widget=None):
self.networks = {} self.networks = {}
self.labels['networklist'].remove_column(0) self.labels['networklist'].remove_column(0)
self.wifi.rescan()
if self.wifi is not None and self.wifi.is_initialized(): if self.wifi is not None and self.wifi.is_initialized():
self.wifi.rescan()
GLib.idle_add(self.load_networks) GLib.idle_add(self.load_networks)
def activate(self): def activate(self):
+10 -10
View File
@@ -16,21 +16,17 @@ class PowerPanel(ScreenPanel):
self.devices = {} self.devices = {}
# Create a scroll window for the power devices
scroll = self._gtk.ScrolledWindow()
# Create a grid for all devices # Create a grid for all devices
self.labels['devices'] = Gtk.Grid() self.labels['devices'] = Gtk.Grid()
scroll.add(self.labels['devices']) self.labels['devices'].set_valign(Gtk.Align.CENTER)
# Create a box to contain all of the above
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
box.set_vexpand(True)
box.pack_start(scroll, True, True, 0)
self.load_power_devices() self.load_power_devices()
self.content.add(box) # Create a scroll window for the power devices
scroll = self._gtk.ScrolledWindow()
scroll.add(self.labels['devices'])
self.content.add(scroll)
def activate(self): def activate(self):
devices = self._screen.printer.get_power_devices() devices = self._screen.printer.get_power_devices()
@@ -87,6 +83,10 @@ class PowerPanel(ScreenPanel):
devices = self._screen.printer.get_power_devices() devices = self._screen.printer.get_power_devices()
for x in devices: for x in devices:
self.add_device(x) self.add_device(x)
# Add the line at the top
frame = Gtk.Frame()
frame.set_vexpand(False)
self.labels['devices'].attach(frame, 0, -1, 1, 1)
def on_switch(self, switch, gparam, device): def on_switch(self, switch, gparam, device):
logging.debug(f"Power toggled {device}") logging.debug(f"Power toggled {device}")
+36 -32
View File
@@ -38,18 +38,18 @@ class PrintPanel(ScreenPanel):
self.labels['files'] = {} self.labels['files'] = {}
def initialize(self, panel_name): def initialize(self, panel_name):
sort = Gtk.Label(_("Sort by: ")) sort = Gtk.Label(_("Sort:"))
sbox = Gtk.Box(spacing=0) sbox = Gtk.Box(spacing=0)
sbox.set_vexpand(False) sbox.set_vexpand(False)
sbox.add(sort) sbox.pack_start(sort, False, False, 5)
for i, (name, val) in enumerate(self.sort_items.items(), start=1): for i, (name, val) in enumerate(self.sort_items.items(), start=1):
s = self._gtk.ButtonImage(None, val, f"color{i % 4}", .66, Gtk.PositionType.RIGHT, False) s = self._gtk.ButtonImage(None, val, f"color{i % 4}", .5, Gtk.PositionType.RIGHT, 1)
if name == self.sort_current[0]: if name == self.sort_current[0]:
s.set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], .66)) s.set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], self._gtk.img_scale * .5))
s.connect("clicked", self.change_sort, name) s.connect("clicked", self.change_sort, name)
self.labels[f'sort_{name}'] = s self.labels[f'sort_{name}'] = s
sbox.add(s) sbox.add(s)
refresh = self._gtk.ButtonImage("refresh", None, None, .66) refresh = self._gtk.ButtonImage("refresh", scale=.66)
refresh.connect('clicked', self._refresh_files) refresh.connect('clicked', self._refresh_files)
sbox.add(refresh) sbox.add(refresh)
sbox.set_hexpand(True) sbox.set_hexpand(True)
@@ -110,10 +110,14 @@ class PrintPanel(ScreenPanel):
d = f"gcodes/{filepath}".split('/')[:-1] d = f"gcodes/{filepath}".split('/')[:-1]
directory = '/'.join(d) directory = '/'.join(d)
filename = filepath.split('/')[-1] filename = filepath.split('/')[-1]
if filename.startswith("."):
return
for i in range(1, len(d)): for i in range(1, len(d)):
curdir = "/".join(d[:i]) curdir = "/".join(d[:i])
newdir = "/".join(d[:i + 1]) newdir = "/".join(d[:i + 1])
if newdir not in self.filelist[curdir]['directories']: if newdir not in self.filelist[curdir]['directories']:
if d[i].startswith("."):
return
self.add_directory(newdir) self.add_directory(newdir)
if filename not in self.filelist[directory]['files']: if filename not in self.filelist[directory]['files']:
@@ -122,7 +126,7 @@ class PrintPanel(ScreenPanel):
if curdir != "gcodes" and fileinfo['modified'] > self.filelist[curdir]['modified']: if curdir != "gcodes" and fileinfo['modified'] > self.filelist[curdir]['modified']:
self.filelist[curdir]['modified'] = fileinfo['modified'] self.filelist[curdir]['modified'] = fileinfo['modified']
self.labels['directories'][curdir]['info'].set_markup( self.labels['directories'][curdir]['info'].set_markup(
f'<small>' + _("Modified") '<small>' + _("Modified")
+ f' <b>{datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %H:%M}</b></small>' + f' <b>{datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %H:%M}</b></small>'
) )
@@ -166,7 +170,7 @@ class PrintPanel(ScreenPanel):
labels.set_valign(Gtk.Align.CENTER) labels.set_valign(Gtk.Align.CENTER)
labels.set_halign(Gtk.Align.START) labels.set_halign(Gtk.Align.START)
actions = self._gtk.ButtonImage("load", None, "color3") actions = self._gtk.ButtonImage("load", style="color3")
actions.connect("clicked", self.change_dir, directory) actions.connect("clicked", self.change_dir, directory)
actions.set_hexpand(False) actions.set_hexpand(False)
actions.set_halign(Gtk.Align.END) actions.set_halign(Gtk.Align.END)
@@ -175,7 +179,7 @@ class PrintPanel(ScreenPanel):
file.set_hexpand(True) file.set_hexpand(True)
file.set_vexpand(False) file.set_vexpand(False)
icon = self._gtk.Image("folder", 1) icon = self._gtk.Image("folder")
file.add(icon) file.add(icon)
file.add(labels) file.add(labels)
@@ -185,7 +189,6 @@ class PrintPanel(ScreenPanel):
self.directories[directory] = frame self.directories[directory] = frame
self.labels['directories'][directory] = { self.labels['directories'][directory] = {
"icon": icon,
"info": info, "info": info,
"name": name "name": name
} }
@@ -213,7 +216,7 @@ class PrintPanel(ScreenPanel):
labels.set_valign(Gtk.Align.CENTER) labels.set_valign(Gtk.Align.CENTER)
labels.set_halign(Gtk.Align.START) labels.set_halign(Gtk.Align.START)
actions = self._gtk.ButtonImage("print", None, "color3") actions = self._gtk.ButtonImage("print", style="color3")
actions.connect("clicked", self.confirm_print, filepath) actions.connect("clicked", self.confirm_print, filepath)
actions.set_hexpand(False) actions.set_hexpand(False)
actions.set_halign(Gtk.Align.END) actions.set_halign(Gtk.Align.END)
@@ -222,18 +225,11 @@ class PrintPanel(ScreenPanel):
file.set_hexpand(True) file.set_hexpand(True)
file.set_vexpand(False) file.set_vexpand(False)
icon = Gtk.Image() icon = Gtk.Button()
pixbuf = self.get_file_image(filepath, small=True) GLib.idle_add(self.image_load, filepath)
if pixbuf is not None: icon.connect("clicked", self.confirm_delete_file, f"gcodes/{filepath}")
icon.set_from_pixbuf(pixbuf)
else:
icon = self._gtk.Image("file", 1.6)
img = Gtk.Button() file.add(icon)
img.set_image(icon)
img.connect("clicked", self.confirm_delete_file, f"gcodes/{filepath}")
file.add(img)
file.add(labels) file.add(labels)
if os.path.splitext(filename)[1] in [".gcode", ".g", ".gco"]: if os.path.splitext(filename)[1] in [".gcode", ".g", ".gco"]:
file.add(actions) file.add(actions)
@@ -246,6 +242,13 @@ class PrintPanel(ScreenPanel):
"name": name "name": name
} }
def image_load(self, filepath):
pixbuf = self.get_file_image(filepath, small=True)
if pixbuf is not None:
self.labels['files'][filepath]['icon'].set_image(Gtk.Image.new_from_pixbuf(pixbuf))
else:
self.labels['files'][filepath]['icon'].set_image(self._gtk.Image("file"))
def confirm_delete_file(self, widget, filepath): def confirm_delete_file(self, widget, filepath):
logging.debug(f"Sending delete_file {filepath}") logging.debug(f"Sending delete_file {filepath}")
params = {"path": f"{filepath}"} params = {"path": f"{filepath}"}
@@ -284,7 +287,8 @@ class PrintPanel(ScreenPanel):
self.labels[f'sort_{oldkey}'].set_image(None) self.labels[f'sort_{oldkey}'].set_image(None)
self.labels[f'sort_{oldkey}'].show_all() self.labels[f'sort_{oldkey}'].show_all()
self.sort_current = [key, 0] self.sort_current = [key, 0]
self.labels[f'sort_{key}'].set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], .66)) self.labels[f'sort_{key}'].set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]],
self._gtk.img_scale * .5))
self.labels[f'sort_{key}'].show() self.labels[f'sort_{key}'].show()
GLib.idle_add(self.reload_files) GLib.idle_add(self.reload_files)
@@ -308,16 +312,16 @@ class PrintPanel(ScreenPanel):
label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
grid = Gtk.Grid() grid = Gtk.Grid()
grid.add(label)
pixbuf = self.get_file_image(filename, 8, 3.2)
if pixbuf is not None:
image = Gtk.Image.new_from_pixbuf(pixbuf)
grid.attach_next_to(image, label, Gtk.PositionType.BOTTOM, 1, 3)
grid.set_vexpand(True) grid.set_vexpand(True)
grid.set_halign(Gtk.Align.CENTER) grid.set_halign(Gtk.Align.CENTER)
grid.set_valign(Gtk.Align.CENTER) grid.set_valign(Gtk.Align.CENTER)
grid.add(label)
pixbuf = self.get_file_image(filename, self._screen.width * .9, self._screen.height * .6)
if pixbuf is not None:
image = Gtk.Image.new_from_pixbuf(pixbuf)
image.set_vexpand(False)
grid.attach_next_to(image, label, Gtk.PositionType.BOTTOM, 1, 1)
self._gtk.Dialog(self._screen, buttons, grid, self.confirm_print_response, filename) self._gtk.Dialog(self._screen, buttons, grid, self.confirm_print_response, filename)
@@ -333,6 +337,8 @@ class PrintPanel(ScreenPanel):
def delete_file(self, filename): def delete_file(self, filename):
dir_parts = f"gcodes/{filename}".split('/')[:-1] dir_parts = f"gcodes/{filename}".split('/')[:-1]
directory = '/'.join(dir_parts) directory = '/'.join(dir_parts)
if directory not in self.filelist or filename.split('/')[-1].startswith("."):
return
self.filelist[directory]["files"].pop(self.filelist[directory]["files"].index(filename.split('/')[-1])) self.filelist[directory]["files"].pop(self.filelist[directory]["files"].index(filename.split('/')[-1]))
i = len(dir_parts) i = len(dir_parts)
while i > 1: while i > 1:
@@ -390,9 +396,7 @@ class PrintPanel(ScreenPanel):
self.labels['files'][filename]['info'].set_markup(self.get_file_info_str(filename)) self.labels['files'][filename]['info'].set_markup(self.get_file_info_str(filename))
# Update icon # Update icon
pixbuf = self.get_file_image(filename) GLib.idle_add(self.image_load, filename)
if pixbuf is not None:
self.labels['files'][filename]['icon'].set_from_pixbuf(pixbuf)
def _callback(self, newfiles, deletedfiles, updatedfiles=None): def _callback(self, newfiles, deletedfiles, updatedfiles=None):
logging.debug(f"newfiles: {newfiles}") logging.debug(f"newfiles: {newfiles}")
+5 -2
View File
@@ -2,7 +2,7 @@ import gi
import logging import logging
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk from gi.repository import Gtk, GLib
from ks_includes.screen_panel import ScreenPanel from ks_includes.screen_panel import ScreenPanel
logger = logging.getLogger("KlipperScreen.PrinterSelect") logger = logging.getLogger("KlipperScreen.PrinterSelect")
@@ -17,7 +17,6 @@ class PrinterSelect(ScreenPanel):
super().__init__(screen, title, False) super().__init__(screen, title, False)
def initialize(self, panel_name): def initialize(self, panel_name):
printers = self._config.get_printers() printers = self._config.get_printers()
grid = self._gtk.HomogeneousGrid() grid = self._gtk.HomogeneousGrid()
@@ -47,3 +46,7 @@ class PrinterSelect(ScreenPanel):
col = i % columns col = i % columns
row = int(i / columns) row = int(i / columns)
grid.attach(self.labels[name], col, row, 1, 1) grid.attach(self.labels[name], col, row, 1, 1)
def activate(self):
self._screen.base_panel.action_bar.hide()
GLib.timeout_add(100, self._screen.base_panel.action_bar.hide)
+13 -3
View File
@@ -102,6 +102,14 @@ class FWRetractionPanel(ScreenPanel):
self.list[option]['scale'].disconnect_by_func(self.set_opt_value) self.list[option]['scale'].disconnect_by_func(self.set_opt_value)
self.list[option]['scale'].set_value(self.values[option]) self.list[option]['scale'].set_value(self.values[option])
self.list[option]['scale'].connect("button-release-event", self.set_opt_value, option) self.list[option]['scale'].connect("button-release-event", self.set_opt_value, option)
# Infinite scale
for opt in self.options:
if opt['option'] == option:
if self.values[option] > opt["maxval"] * .75:
self.list[option]['adjustment'].set_upper(self.values[option] * 1.5)
else:
self.list[option]['adjustment'].set_upper(opt["maxval"])
break
def add_option(self, option, optname, units, value, digits, maxval): def add_option(self, option, optname, units, value, digits, maxval):
logging.info(f"Adding option: {option}") logging.info(f"Adding option: {option}")
@@ -116,15 +124,16 @@ class FWRetractionPanel(ScreenPanel):
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR) name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
minimum = 1 if option in ["retract_speed", "unretract_speed"] else 0 minimum = 1 if option in ["retract_speed", "unretract_speed"] else 0
self.values[option] = value self.values[option] = value
scale = Gtk.Scale.new_with_range(orientation=Gtk.Orientation.HORIZONTAL, min=minimum, max=maxval, step=1) # adj (value, lower, upper, step_increment, page_increment, page_size)
scale.set_value(self.values[option]) adj = Gtk.Adjustment(value, minimum, maxval, 1, 5, 0)
scale = Gtk.Scale.new(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_digits(digits) scale.set_digits(digits)
scale.set_hexpand(True) scale.set_hexpand(True)
scale.set_has_origin(True) scale.set_has_origin(True)
scale.get_style_context().add_class("option_slider") scale.get_style_context().add_class("option_slider")
scale.connect("button-release-event", self.set_opt_value, option) scale.connect("button-release-event", self.set_opt_value, option)
reset = self._gtk.ButtonImage("refresh", None, "color1") reset = self._gtk.ButtonImage("refresh", style="color1")
reset.connect("clicked", self.reset_value, option) reset.connect("clicked", self.reset_value, option)
reset.set_hexpand(False) reset.set_hexpand(False)
@@ -140,6 +149,7 @@ class FWRetractionPanel(ScreenPanel):
self.list[option] = { self.list[option] = {
"row": frame, "row": frame,
"scale": scale, "scale": scale,
"adjustment": adj,
} }
pos = sorted(self.list).index(option) pos = sorted(self.list).index(option)
+2 -4
View File
@@ -102,12 +102,10 @@ class SettingsPanel(ScreenPanel):
dev.add(box) dev.add(box)
elif option['type'] == "dropdown": elif option['type'] == "dropdown":
dropdown = Gtk.ComboBoxText() dropdown = Gtk.ComboBoxText()
i = 0 for i, opt in enumerate(option['options']):
for opt in option['options']:
dropdown.append(opt['value'], opt['name']) dropdown.append(opt['value'], opt['name'])
if opt['value'] == self._config.get_config()[option['section']].get(opt_name, option['value']): if opt['value'] == self._config.get_config()[option['section']].get(opt_name, option['value']):
dropdown.set_active(i) dropdown.set_active(i)
i += 1
dropdown.connect("changed", self.on_dropdown_change, option['section'], opt_name, dropdown.connect("changed", self.on_dropdown_change, option['section'], opt_name,
option['callback'] if "callback" in option else None) option['callback'] if "callback" in option else None)
dropdown.set_entry_text_column(0) dropdown.set_entry_text_column(0)
@@ -131,7 +129,7 @@ class SettingsPanel(ScreenPanel):
box.add(label) box.add(label)
dev.add(box) dev.add(box)
elif option['type'] == "menu": elif option['type'] == "menu":
open_menu = self._gtk.ButtonImage("settings", None, "color3") open_menu = self._gtk.ButtonImage("settings", style="color3")
open_menu.connect("clicked", self.load_menu, option['menu']) open_menu.connect("clicked", self.load_menu, option['menu'])
open_menu.set_hexpand(False) open_menu.set_hexpand(False)
open_menu.set_halign(Gtk.Align.END) open_menu.set_halign(Gtk.Align.END)
+5 -5
View File
@@ -20,7 +20,7 @@ class SplashScreenPanel(ScreenPanel):
def initialize(self, panel_name): def initialize(self, panel_name):
image = self._gtk.Image("klipper", 3.2) image = self._gtk.Image("klipper", self._screen.width / 5, -1)
self.labels['text'] = Gtk.Label(_("Initializing printer...")) self.labels['text'] = Gtk.Label(_("Initializing printer..."))
self.labels['text'].set_line_wrap(True) self.labels['text'].set_line_wrap(True)
@@ -30,13 +30,13 @@ class SplashScreenPanel(ScreenPanel):
self.labels['menu'] = self._gtk.ButtonImage("settings", _("Menu"), "color4") self.labels['menu'] = self._gtk.ButtonImage("settings", _("Menu"), "color4")
self.labels['menu'].connect("clicked", self._screen._go_to_submenu, "") self.labels['menu'].connect("clicked", self._screen._go_to_submenu, "")
self.labels['restart'] = self._gtk.ButtonImage("refresh", _("Klipper\nRestart"), "color1") self.labels['restart'] = self._gtk.ButtonImage("refresh", _("Klipper Restart"), "color1")
self.labels['restart'].connect("clicked", self.restart) self.labels['restart'].connect("clicked", self.restart)
self.labels['firmware_restart'] = self._gtk.ButtonImage("refresh", _("Firmware\nRestart"), "color2") self.labels['firmware_restart'] = self._gtk.ButtonImage("refresh", _("Firmware Restart"), "color2")
self.labels['firmware_restart'].connect("clicked", self.firmware_restart) self.labels['firmware_restart'].connect("clicked", self.firmware_restart)
self.labels['restart_system'] = self._gtk.ButtonImage("refresh", _("System\nRestart"), "color1") self.labels['restart_system'] = self._gtk.ButtonImage("refresh", _("System Restart"), "color1")
self.labels['restart_system'].connect("clicked", self.restart_system) self.labels['restart_system'].connect("clicked", self.restart_system)
self.labels['shutdown'] = self._gtk.ButtonImage("shutdown", _('System\nShutdown'), "color2") self.labels['shutdown'] = self._gtk.ButtonImage("shutdown", _('System Shutdown'), "color2")
self.labels['shutdown'].connect("clicked", self.shutdown) self.labels['shutdown'].connect("clicked", self.shutdown)
self.labels['actions'] = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL) self.labels['actions'] = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
+95 -46
View File
@@ -1,9 +1,9 @@
import gi import gi
import logging import logging
import os
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Pango, GLib from gi.repository import Gtk, Pango, GLib
from datetime import datetime
from ks_includes.screen_panel import ScreenPanel from ks_includes.screen_panel import ScreenPanel
@@ -12,12 +12,24 @@ def create_panel(*args):
return SystemPanel(*args) return SystemPanel(*args)
ALLOWED_SERVICES = ["KlipperScreen", "MoonCord", "klipper", "moonraker", "webcamd"] # Same as ALLOWED_SERVICES in moonraker
# https://github.com/Arksine/moonraker/blob/master/moonraker/components/machine.py
ALLOWED_SERVICES = (
"crowsnest",
"MoonCord",
"moonraker",
"moonraker-telegram-bot",
"klipper",
"KlipperScreen",
"sonar",
"webcamd",
)
class SystemPanel(ScreenPanel): class SystemPanel(ScreenPanel):
def __init__(self, screen, title, back=True): def __init__(self, screen, title, back=True):
super().__init__(screen, title, back) super().__init__(screen, title, back)
self.refresh = None
self.update_status = None self.update_status = None
self.update_dialog = None self.update_dialog = None
self.update_prog = None self.update_prog = None
@@ -27,23 +39,22 @@ class SystemPanel(ScreenPanel):
grid = self._gtk.HomogeneousGrid() grid = self._gtk.HomogeneousGrid()
grid.set_row_homogeneous(False) grid.set_row_homogeneous(False)
update_all = self._gtk.ButtonImage('arrow-up', _('Full\nUpdate'), 'color1') update_all = self._gtk.ButtonImage('arrow-up', _('Full Update'), 'color1')
update_all.connect("clicked", self.show_update_info, "full") update_all.connect("clicked", self.show_update_info, "full")
update_all.set_vexpand(False) update_all.set_vexpand(False)
self.refresh = self._gtk.ButtonImage('refresh', _('Refresh'), 'color2') self.refresh = self._gtk.ButtonImage('refresh', _('Refresh'), 'color2')
self.refresh.connect("clicked", self.refresh_updates) self.refresh.connect("clicked", self.refresh_updates)
self.refresh.set_vexpand(False) self.refresh.set_vexpand(False)
reboot = self._gtk.ButtonImage('refresh', _('System\nRestart'), 'color3') reboot = self._gtk.ButtonImage('refresh', _('Restart'), 'color3')
reboot.connect("clicked", self._screen._confirm_send_action, reboot.connect("clicked", self.reboot_poweroff, "reboot")
_("Are you sure you wish to reboot the system?"), "machine.reboot")
reboot.set_vexpand(False) reboot.set_vexpand(False)
shutdown = self._gtk.ButtonImage('shutdown', _('System\nShutdown'), 'color4') shutdown = self._gtk.ButtonImage('shutdown', _('Shutdown'), 'color4')
shutdown.connect("clicked", self._screen._confirm_send_action, shutdown.connect("clicked", self.reboot_poweroff, "poweroff")
_("Are you sure you wish to shutdown the system?"), "machine.shutdown")
shutdown.set_vexpand(False) shutdown.set_vexpand(False)
scroll = self._gtk.ScrolledWindow() scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
infogrid = Gtk.Grid() infogrid = Gtk.Grid()
infogrid.get_style_context().add_class("system-program-grid") infogrid.get_style_context().add_class("system-program-grid")
@@ -67,7 +78,7 @@ class SystemPanel(ScreenPanel):
self.labels[f"{prog}_status"].connect("clicked", self.show_update_info, prog) self.labels[f"{prog}_status"].connect("clicked", self.show_update_info, prog)
if prog in ALLOWED_SERVICES: if prog in ALLOWED_SERVICES:
self.labels[f"{prog}_restart"] = self._gtk.ButtonImage("refresh", None, None, .7, .7) self.labels[f"{prog}_restart"] = self._gtk.ButtonImage("refresh", scale=.7)
self.labels[f"{prog}_restart"].connect("clicked", self.restart, prog) self.labels[f"{prog}_restart"].connect("clicked", self.restart, prog)
infogrid.attach(self.labels[f"{prog}_restart"], 0, i, 1, 1) infogrid.attach(self.labels[f"{prog}_restart"], 0, i, 1, 1)
@@ -112,6 +123,7 @@ class SystemPanel(ScreenPanel):
for prog in items: for prog in items:
self.update_program_info(prog) self.update_program_info(prog)
self.refresh.set_sensitive(True) self.refresh.set_sensitive(True)
self._screen.close_popup_message()
def process_update(self, action, data): def process_update(self, action, data):
if action == "notify_update_response": if action == "notify_update_response":
@@ -123,6 +135,7 @@ class SystemPanel(ScreenPanel):
) )
if data['complete']: if data['complete']:
self.update_dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, True) self.update_dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, True)
self.update_dialog.get_widget_for_response(Gtk.ResponseType.CANCEL).show()
def restart(self, widget, program): def restart(self, widget, program):
if program not in ALLOWED_SERVICES: if program not in ALLOWED_SERVICES:
@@ -141,19 +154,19 @@ class SystemPanel(ScreenPanel):
info = {"full": True} info = {"full": True}
scroll = self._gtk.ScrolledWindow() scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
vbox.set_halign(Gtk.Align.CENTER)
vbox.set_valign(Gtk.Align.CENTER)
grid = Gtk.Grid()
grid.set_column_homogeneous(True)
grid.set_halign(Gtk.Align.CENTER)
grid.set_valign(Gtk.Align.CENTER)
i = 0
label = Gtk.Label() label = Gtk.Label()
label.set_line_wrap(True) label.set_line_wrap(True)
if 'configured_type' in info and info['configured_type'] == 'git_repo': if 'configured_type' in info and info['configured_type'] == 'git_repo':
if not info['is_valid'] or info['is_dirty']: if not info['is_valid'] or info['is_dirty']:
label.set_markup(_("Do you want to recover %s?") % program) label.set_markup(_("Do you want to recover %s?") % program)
grid.attach(label, 0, i, 1, 1) vbox.add(label)
scroll.add(grid) scroll.add(vbox)
recoverybuttons = [ recoverybuttons = [
{"name": _("Recover Hard"), "response": Gtk.ResponseType.OK}, {"name": _("Recover Hard"), "response": Gtk.ResponseType.OK},
{"name": _("Recover Soft"), "response": Gtk.ResponseType.APPLY}, {"name": _("Recover Soft"), "response": Gtk.ResponseType.APPLY},
@@ -169,33 +182,24 @@ class SystemPanel(ScreenPanel):
_("Outdated by %d") % ncommits + _("Outdated by %d") % ncommits +
" " + ngettext("commit", "commits", ncommits) + " " + ngettext("commit", "commits", ncommits) +
":</b>\n") ":</b>\n")
vbox.add(label)
grid.attach(label, 0, i, 1, 1)
i += 1
date = ""
for c in info['commits_behind']: for c in info['commits_behind']:
ndate = datetime.fromtimestamp(int(c['date'])).strftime("%b %d") commit_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
if date != ndate: title = Gtk.Label()
date = ndate title.set_line_wrap(True)
label = Gtk.Label() title.set_line_wrap_mode(Pango.WrapMode.CHAR)
label.set_line_wrap(True) title.set_markup(f"\n<b>{c['subject']}</b>\n<i>{c['author']}</i>\n")
label.set_markup(f"<b>{date}</b>\n") title.set_halign(Gtk.Align.START)
label.set_halign(Gtk.Align.START) commit_box.add(title)
grid.attach(label, 0, i, 1, 1)
i += 1
label = Gtk.Label() details = Gtk.Label(label=f"{c['message']}")
label.set_line_wrap(True)
label.set_markup(f"<b>{c['subject']}</b>\n<i>{c['author']}</i>\n")
label.set_halign(Gtk.Align.START)
grid.attach(label, 0, i, 1, 1)
i += 1
details = Gtk.Label(label=f"{c['message']}\n\n\n")
details.set_line_wrap(True) details.set_line_wrap(True)
details.set_halign(Gtk.Align.START) details.set_halign(Gtk.Align.START)
grid.attach(details, 0, i, 1, 1) commit_box.add(details)
i += 1 commit_box.add(Gtk.Separator())
vbox.add(commit_box)
if "package_count" in info: if "package_count" in info:
label.set_markup(( label.set_markup((
f'<b>{info["package_count"]} ' f'<b>{info["package_count"]} '
@@ -203,8 +207,12 @@ class SystemPanel(ScreenPanel):
+ f':</b>\n' + f':</b>\n'
)) ))
label.set_halign(Gtk.Align.CENTER) label.set_halign(Gtk.Align.CENTER)
grid.attach(label, 0, i, 3, 1) vbox.add(label)
i += 1 grid = Gtk.Grid()
grid.set_column_homogeneous(True)
grid.set_halign(Gtk.Align.CENTER)
grid.set_valign(Gtk.Align.CENTER)
i = 0
for j, c in enumerate(info["package_list"]): for j, c in enumerate(info["package_list"]):
label = Gtk.Label() label = Gtk.Label()
label.set_markup(f" {c} ") label.set_markup(f" {c} ")
@@ -214,19 +222,18 @@ class SystemPanel(ScreenPanel):
grid.attach(label, pos, i, 1, 1) grid.attach(label, pos, i, 1, 1)
if pos == 2: if pos == 2:
i += 1 i += 1
vbox.add(grid)
elif "full" in info: elif "full" in info:
label.set_markup('<b>' + _("Perform a full upgrade?") + '</b>') label.set_markup('<b>' + _("Perform a full upgrade?") + '</b>')
grid.attach(label, 0, i, 1, 1) vbox.add(label)
i += 1
else: else:
label.set_markup( label.set_markup(
"<b>" + _("%s will be updated to version") % program.capitalize() "<b>" + _("%s will be updated to version") % program.capitalize()
+ f": {info['remote_version']}</b>" + f": {info['remote_version']}</b>"
) )
vbox.add(label)
grid.attach(label, 0, i, 1, 1) scroll.add(vbox)
scroll.add(grid)
buttons = [ buttons = [
{"name": _("Update"), "response": Gtk.ResponseType.OK}, {"name": _("Update"), "response": Gtk.ResponseType.OK},
@@ -258,16 +265,19 @@ class SystemPanel(ScreenPanel):
] ]
scroll = self._gtk.ScrolledWindow() scroll = self._gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", True)
self.labels['update_progress'] = Gtk.Label(_("Starting recovery for") + f' {program}...') self.labels['update_progress'] = Gtk.Label(_("Starting recovery for") + f' {program}...')
self.labels['update_progress'].set_halign(Gtk.Align.START) self.labels['update_progress'].set_halign(Gtk.Align.START)
self.labels['update_progress'].set_valign(Gtk.Align.START) self.labels['update_progress'].set_valign(Gtk.Align.START)
self.labels['update_progress'].set_ellipsize(Pango.EllipsizeMode.END) self.labels['update_progress'].set_ellipsize(Pango.EllipsizeMode.END)
self.labels['update_progress'].connect("size-allocate", self._autoscroll)
scroll.add(self.labels['update_progress']) scroll.add(self.labels['update_progress'])
self.labels['update_scroll'] = scroll self.labels['update_scroll'] = scroll
dialog = self._gtk.Dialog(self._screen, buttons, scroll, self.finish_updating) dialog = self._gtk.Dialog(self._screen, buttons, scroll, self.finish_updating)
dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False) dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False)
dialog.get_widget_for_response(Gtk.ResponseType.CANCEL).hide()
self.update_prog = program self.update_prog = program
self.update_dialog = dialog self.update_dialog = dialog
@@ -299,6 +309,7 @@ class SystemPanel(ScreenPanel):
] ]
scroll = self._gtk.ScrolledWindow() scroll = self._gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", True)
if "full" in info: if "full" in info:
self.labels['update_progress'] = Gtk.Label(_("Updating") + '\n') self.labels['update_progress'] = Gtk.Label(_("Updating") + '\n')
@@ -306,11 +317,13 @@ class SystemPanel(ScreenPanel):
self.labels['update_progress'] = Gtk.Label(_("Starting update for") + f' {program}...') self.labels['update_progress'] = Gtk.Label(_("Starting update for") + f' {program}...')
self.labels['update_progress'].set_halign(Gtk.Align.START) self.labels['update_progress'].set_halign(Gtk.Align.START)
self.labels['update_progress'].set_valign(Gtk.Align.START) self.labels['update_progress'].set_valign(Gtk.Align.START)
self.labels['update_progress'].connect("size-allocate", self._autoscroll)
scroll.add(self.labels['update_progress']) scroll.add(self.labels['update_progress'])
self.labels['update_scroll'] = scroll self.labels['update_scroll'] = scroll
dialog = self._gtk.Dialog(self._screen, buttons, scroll, self.finish_updating) dialog = self._gtk.Dialog(self._screen, buttons, scroll, self.finish_updating)
dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False) dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False)
dialog.get_widget_for_response(Gtk.ResponseType.CANCEL).hide()
self.update_prog = program self.update_prog = program
self.update_dialog = dialog self.update_dialog = dialog
@@ -370,3 +383,39 @@ class SystemPanel(ScreenPanel):
self.labels[f"{p}_status"].set_label(_("Update")) self.labels[f"{p}_status"].set_label(_("Update"))
self.labels[f"{p}_status"].get_style_context().add_class('update') self.labels[f"{p}_status"].get_style_context().add_class('update')
self.labels[f"{p}_status"].set_sensitive(True) self.labels[f"{p}_status"].set_sensitive(True)
def _autoscroll(self, *args):
adj = self.labels['update_scroll'].get_vadjustment()
adj.set_value(adj.get_upper() - adj.get_page_size())
def reboot_poweroff(self, widget, method):
scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
vbox.set_halign(Gtk.Align.CENTER)
vbox.set_valign(Gtk.Align.CENTER)
if method == "reboot":
label = Gtk.Label(label=_("Are you sure you wish to reboot the system?"))
else:
label = Gtk.Label(label=_("Are you sure you wish to shutdown the system?"))
vbox.add(label)
scroll.add(vbox)
buttons = [
{"name": _("Host"), "response": Gtk.ResponseType.OK},
{"name": _("Printer"), "response": Gtk.ResponseType.APPLY},
{"name": _("Cancel"), "response": Gtk.ResponseType.CANCEL}
]
self._gtk.Dialog(self._screen, buttons, scroll, self.reboot_poweroff_confirm, method)
def reboot_poweroff_confirm(self, widget, response_id, method):
if response_id == Gtk.ResponseType.OK:
if method == "reboot":
os.system("systemctl reboot")
else:
os.system("systemctl poweroff")
elif response_id == Gtk.ResponseType.APPLY:
if method == "reboot":
self._screen._ws.send_method("machine.reboot")
else:
self._screen._ws.send_method("machine.shutdown")
widget.destroy()
+118 -74
View File
@@ -3,7 +3,7 @@ import logging
import contextlib import contextlib
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, Pango from gi.repository import Gtk, GLib
from ks_includes.screen_panel import ScreenPanel from ks_includes.screen_panel import ScreenPanel
from ks_includes.widgets.graph import HeaterGraph from ks_includes.widgets.graph import HeaterGraph
@@ -20,10 +20,12 @@ class TemperaturePanel(ScreenPanel):
def __init__(self, screen, title, back=True): def __init__(self, screen, title, back=True):
super().__init__(screen, title, back) super().__init__(screen, title, back)
self.popover_timeout = None
self.left_panel = None
self.popover_device = None self.popover_device = None
self.h = 1 self.h = 1
self.tempdeltas = ["1", "5", "10", "25"] self.tempdeltas = ["1", "5", "10", "25"]
self.tempdelta = "10" self.tempdelta = self.tempdeltas[-2]
self.show_preheat = False self.show_preheat = False
self.preheat_options = self._screen._config.get_preheat_options() self.preheat_options = self._screen._config.get_preheat_options()
logging.debug(f"Preheat options: {self.preheat_options}") logging.debug(f"Preheat options: {self.preheat_options}")
@@ -37,11 +39,15 @@ class TemperaturePanel(ScreenPanel):
state = self._printer.get_state() state = self._printer.get_state()
logging.info(state) logging.info(state)
selection = [] selection = []
if "extruder" in self._printer.get_tools():
selection.append("extruder")
if state not in ["printing", "paused"]: if state not in ["printing", "paused"]:
for extruder in self._printer.get_tools():
selection.append(extruder)
self.show_preheat = True self.show_preheat = True
selection.extend(self._printer.get_heaters()) selection.extend(self._printer.get_heaters())
else:
current_extruder = self._screen.printer.get_stat("toolhead", "extruder")
if current_extruder:
selection.append(current_extruder)
# Select heaters # Select heaters
for h in selection: for h in selection:
@@ -64,8 +70,8 @@ class TemperaturePanel(ScreenPanel):
def create_right_panel(self): def create_right_panel(self):
cooldown = self._gtk.ButtonImage('cool-down', _('Cooldown'), "color4", .66, Gtk.PositionType.LEFT, False) cooldown = self._gtk.ButtonImage('cool-down', _('Cooldown'), "color4", .5, Gtk.PositionType.LEFT, 1)
adjust = self._gtk.ButtonImage('fine-tune', '', "color3", 1, Gtk.PositionType.LEFT, False) adjust = self._gtk.ButtonImage('fine-tune', '', "color3", 1, Gtk.PositionType.LEFT, 1)
right = self._gtk.HomogeneousGrid() right = self._gtk.HomogeneousGrid()
right.attach(cooldown, 0, 0, 2, 1) right.attach(cooldown, 0, 0, 2, 1)
@@ -92,11 +98,13 @@ class TemperaturePanel(ScreenPanel):
def preheat(self): def preheat(self):
self.labels["preheat_grid"] = self._gtk.HomogeneousGrid() self.labels["preheat_grid"] = self._gtk.HomogeneousGrid()
for i, option in enumerate(self.preheat_options): i = 0
for option in self.preheat_options:
if option != "cooldown": if option != "cooldown":
self.labels[option] = self._gtk.Button(option, f"color{(i % 4) + 1}") self.labels[option] = self._gtk.Button(option, f"color{(i % 4) + 1}")
self.labels[option].connect("clicked", self.set_temperature, option) self.labels[option].connect("clicked", self.set_temperature, option)
self.labels['preheat_grid'].attach(self.labels[option], (i % 2), int(i / 2), 1, 1) self.labels['preheat_grid'].attach(self.labels[option], (i % 2), int(i / 2), 1, 1)
i += 1
scroll = Gtk.ScrolledWindow() scroll = Gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(self.labels["preheat_grid"]) scroll.add(self.labels["preheat_grid"])
@@ -111,7 +119,7 @@ class TemperaturePanel(ScreenPanel):
tempgrid = Gtk.Grid() tempgrid = Gtk.Grid()
for j, i in enumerate(self.tempdeltas): for j, i in enumerate(self.tempdeltas):
self.labels[f'deg{i}'] = self._gtk.ToggleButton(i) self.labels[f'deg{i}'] = self._gtk.Button(i)
self.labels[f'deg{i}'].connect("clicked", self.change_temp_delta, i) self.labels[f'deg{i}'].connect("clicked", self.change_temp_delta, i)
ctx = self.labels[f'deg{i}'].get_style_context() ctx = self.labels[f'deg{i}'].get_style_context()
if j == 0: if j == 0:
@@ -120,10 +128,9 @@ class TemperaturePanel(ScreenPanel):
ctx.add_class("distbutton_bottom") ctx.add_class("distbutton_bottom")
else: else:
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == "10": if i == self.tempdelta:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
tempgrid.attach(self.labels[f'deg{i}'], j, 0, 1, 1) tempgrid.attach(self.labels[f'deg{i}'], j, 0, 1, 1)
self.labels[f"deg{self.tempdelta}"].set_active(True)
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
vbox.pack_start(Gtk.Label(_("Temperature") + " (°C)"), False, False, 8) vbox.pack_start(Gtk.Label(_("Temperature") + " (°C)"), False, False, 8)
@@ -136,20 +143,10 @@ class TemperaturePanel(ScreenPanel):
return deltagrid return deltagrid
def change_temp_delta(self, widget, tempdelta): def change_temp_delta(self, widget, tempdelta):
if self.tempdelta == tempdelta:
return
logging.info(f"### tempdelta {tempdelta}") logging.info(f"### tempdelta {tempdelta}")
self.labels[f"deg{self.tempdelta}"].get_style_context().remove_class("distbutton_active")
ctx = self.labels[f"deg{self.tempdelta}"].get_style_context() self.labels[f"deg{tempdelta}"].get_style_context().add_class("distbutton_active")
ctx.remove_class("distbutton_active")
self.tempdelta = tempdelta self.tempdelta = tempdelta
ctx = self.labels[f"deg{self.tempdelta}"].get_style_context()
ctx.add_class("distbutton_active")
for i in self.tempdeltas:
if i == self.tempdeltas:
continue
self.labels[f"deg{i}"].set_active(False)
def change_target_temp_incremental(self, widget, direction): def change_target_temp_incremental(self, widget, direction):
@@ -183,19 +180,42 @@ class TemperaturePanel(ScreenPanel):
self._printer.set_dev_stat(heater, "target", int(target)) self._printer.set_dev_stat(heater, "target", int(target))
logging.info(f"Setting {heater} to {target}") logging.info(f"Setting {heater} to {target}")
def update_graph_visibility(self):
count = 0
for device in self.devices:
visible = self._config.get_config().getboolean(f"graph {self._screen.connected_printer}",
device, fallback=True)
self.devices[device]['visible'] = visible
self.labels['da'].set_showing(device, visible)
if visible:
count += 1
self.devices[device]['name'].get_style_context().add_class(self.devices[device]['class'])
self.devices[device]['name'].get_style_context().remove_class("graph_label_hidden")
else:
self.devices[device]['name'].get_style_context().add_class("graph_label_hidden")
self.devices[device]['name'].get_style_context().remove_class(self.devices[device]['class'])
if count > 0:
self.left_panel.add(self.labels['da'])
self.labels['da'].queue_draw()
self.labels['da'].show()
else:
self.left_panel.remove(self.labels['da'])
def activate(self): def activate(self):
if self.graph_update is None: if self.graph_update is None:
# This has a high impact on load # This has a high impact on load
self.graph_update = GLib.timeout_add_seconds(5, self.update_graph) self.graph_update = GLib.timeout_add_seconds(5, self.update_graph)
self.update_graph_visibility()
def deactivate(self): def deactivate(self):
if self.graph_update is not None: if self.graph_update is not None:
GLib.source_remove(self.graph_update) GLib.source_remove(self.graph_update)
self.graph_update = None self.graph_update = None
if self.active_heater is not None:
self.hide_numpad()
def select_heater(self, widget, device): def select_heater(self, widget, device):
if self.active_heater is None and device in self.devices and self.devices[device]["can_target"]:
if self.devices[device]["can_target"]:
if device in self.active_heaters: if device in self.active_heaters:
self.active_heaters.pop(self.active_heaters.index(device)) self.active_heaters.pop(self.active_heaters.index(device))
self.devices[device]['name'].get_style_context().remove_class("button_active") self.devices[device]['name'].get_style_context().remove_class("button_active")
@@ -212,18 +232,22 @@ class TemperaturePanel(ScreenPanel):
if len(self.active_heaters) == 0: if len(self.active_heaters) == 0:
self._screen.show_popup_message(_("Nothing selected")) self._screen.show_popup_message(_("Nothing selected"))
else: else:
target = 0 if setting == "cooldown" else None
for heater in self.active_heaters: for heater in self.active_heaters:
target = None
max_temp = float(self._printer.get_config_section(heater)['max_temp']) max_temp = float(self._printer.get_config_section(heater)['max_temp'])
name = heater.split()[1] if len(heater.split()) > 1 else heater name = heater.split()[1] if len(heater.split()) > 1 else heater
if target is None: with contextlib.suppress(KeyError):
for i in self.preheat_options[setting]: for i in self.preheat_options[setting]:
logging.info(f"{self.preheat_options[setting]}") logging.info(f"{self.preheat_options[setting]}")
if i == name: if i == name:
# Assign the specific target if available # Assign the specific target if available
target = self.preheat_options[setting][name] target = self.preheat_options[setting][name]
logging.info(f"name match {name}")
elif i == heater: elif i == heater:
target = self.preheat_options[setting][heater] target = self.preheat_options[setting][heater]
logging.info(f"heater match {heater}")
if target is None and setting == "cooldown" and not heater.startswith('temperature_fan '):
target = 0
if heater.startswith('extruder'): if heater.startswith('extruder'):
if self.validate(heater, target, max_temp): if self.validate(heater, target, max_temp):
self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(heater), target) self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(heater), target)
@@ -257,6 +281,7 @@ class TemperaturePanel(ScreenPanel):
elif target > max_temp: elif target > max_temp:
self._screen.show_popup_message(_("Can't set above the maximum:") + f' {max_temp}') self._screen.show_popup_message(_("Can't set above the maximum:") + f' {max_temp}')
return False return False
logging.debug(f"Invalid {heater} Target:{target}/{max_temp}")
return False return False
def preheat_gcode(self, setting): def preheat_gcode(self, setting):
@@ -307,27 +332,34 @@ class TemperaturePanel(ScreenPanel):
rgb = self._gtk.get_temp_color(dev_type) rgb = self._gtk.get_temp_color(dev_type)
name = self._gtk.ButtonImage(image, devname.capitalize().replace("_", " "), None, .5, Gtk.PositionType.LEFT, 1)
name.set_alignment(0, .5)
visible = self._config.get_config().getboolean(f"graph {self._screen.connected_printer}", device, fallback=True)
if visible:
name.get_style_context().add_class(class_name)
else:
name.get_style_context().add_class("graph_label_hidden")
can_target = self._printer.get_temp_store_device_has_target(device) can_target = self._printer.get_temp_store_device_has_target(device)
self.labels['da'].add_object(device, "temperatures", rgb, False, True) self.labels['da'].add_object(device, "temperatures", rgb, False, True)
if can_target: if can_target:
self.labels['da'].add_object(device, "targets", rgb, True, False) self.labels['da'].add_object(device, "targets", rgb, True, False)
name.connect('button-press-event', self.name_pressed, device)
name = self._gtk.ButtonImage(image, devname.capitalize().replace("_", " "), name.connect('button-release-event', self.name_released, device)
None, .5, Gtk.PositionType.LEFT, False) else:
name.connect('clicked', self.on_popover_clicked, device) name.connect("clicked", self.toggle_visibility, device)
name.set_alignment(0, .5) self.labels['da'].set_showing(device, visible)
name.get_style_context().add_class(class_name)
child = name.get_children()[0].get_children()[0].get_children()[1]
child.set_ellipsize(Pango.EllipsizeMode.END)
temp = self._gtk.Button("") temp = self._gtk.Button("")
temp.connect('clicked', self.select_heater, device) if can_target:
temp.connect("clicked", self.show_numpad, device)
self.devices[device] = { self.devices[device] = {
"class": class_name, "class": class_name,
"name": name, "name": name,
"temp": temp, "temp": temp,
"can_target": can_target "can_target": can_target,
"visible": visible
} }
if self.devices[device]["can_target"]: if self.devices[device]["can_target"]:
@@ -343,6 +375,33 @@ class TemperaturePanel(ScreenPanel):
self.labels['devices'].show_all() self.labels['devices'].show_all()
return True return True
def name_pressed(self, widget, event, device):
self.popover_timeout = GLib.timeout_add_seconds(1, self.popover_popup, widget, device)
def name_released(self, widget, event, device):
if self.popover_timeout is not None:
GLib.source_remove(self.popover_timeout)
self.popover_timeout = None
if not self.popover_device:
self.select_heater(None, device)
def toggle_visibility(self, widget, device=None):
if device is None:
device = self.popover_device
self.devices[device]['visible'] ^= True
logging.info(f"Graph show {self.devices[device]['visible']}: {device}")
section = f"graph {self._screen.connected_printer}"
if section not in self._config.get_config().sections():
self._config.get_config().add_section(section)
self._config.set(section, f"{device}", f"{self.devices[device]['visible']}")
self._config.save_user_config_options()
self.update_graph_visibility()
if self.devices[device]['can_target']:
self.popover_populate_menu()
self.labels['popover'].show_all()
def change_target_temp(self, temp): def change_target_temp(self, temp):
name = self.active_heater.split()[1] if len(self.active_heater.split()) > 1 else self.active_heater name = self.active_heater.split()[1] if len(self.active_heater.split()) > 1 else self.active_heater
max_temp = int(float(self._printer.get_config_section(self.active_heater)['max_temp'])) max_temp = int(float(self._printer.get_config_section(self.active_heater)['max_temp']))
@@ -384,47 +443,36 @@ class TemperaturePanel(ScreenPanel):
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(self.labels['devices']) scroll.add(self.labels['devices'])
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0) self.left_panel = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
box.add(scroll) self.left_panel.add(scroll)
box.add(self.labels['da']) self.left_panel.add(self.labels['da'])
self.labels['graph_settemp'] = self._gtk.Button(label=_("Set Temp")) self.labels['graph_settemp'] = self._gtk.Button(label=_("Set Temp"))
self.labels['graph_settemp'].connect("clicked", self.show_numpad) self.labels['graph_settemp'].connect("clicked", self.show_numpad)
self.labels['graph_hide'] = self._gtk.Button(label=_("Hide")) self.labels['graph_hide'] = self._gtk.Button(label=_("Hide"))
self.labels['graph_hide'].connect("clicked", self.graph_show_device, False) self.labels['graph_hide'].connect("clicked", self.toggle_visibility)
self.labels['graph_show'] = self._gtk.Button(label=_("Show")) self.labels['graph_show'] = self._gtk.Button(label=_("Show"))
self.labels['graph_show'].connect("clicked", self.graph_show_device) self.labels['graph_show'].connect("clicked", self.toggle_visibility)
popover = Gtk.Popover() popover = Gtk.Popover()
self.labels['popover_vbox'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) self.labels['popover_vbox'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
popover.add(self.labels['popover_vbox']) popover.add(self.labels['popover_vbox'])
popover.set_position(Gtk.PositionType.BOTTOM) popover.set_position(Gtk.PositionType.BOTTOM)
popover.connect('closed', self.popover_closed)
self.labels['popover'] = popover self.labels['popover'] = popover
for d in self._printer.get_temp_store_devices(): for d in self._printer.get_temp_store_devices():
self.add_device(d) self.add_device(d)
return box return self.left_panel
def graph_show_device(self, widget, show=True): def hide_numpad(self, widget=None):
logging.info(f"Graph show: {self.popover_device} {show}")
self.labels['da'].set_showing(self.popover_device, show)
if show:
self.devices[self.popover_device]['name'].get_style_context().remove_class("graph_label_hidden")
self.devices[self.popover_device]['name'].get_style_context().add_class(
self.devices[self.popover_device]['class'])
else:
self.devices[self.popover_device]['name'].get_style_context().remove_class(
self.devices[self.popover_device]['class'])
self.devices[self.popover_device]['name'].get_style_context().add_class("graph_label_hidden")
self.labels['da'].queue_draw()
self.popover_populate_menu()
self.labels['popover'].show_all()
def hide_numpad(self, widget):
self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active") self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active")
self.active_heater = None self.active_heater = None
for d in self.active_heaters:
self.devices[d]['name'].get_style_context().add_class("button_active")
if self._screen.vertical_mode: if self._screen.vertical_mode:
self.grid.remove_row(1) self.grid.remove_row(1)
self.grid.attach(self.create_right_panel(), 0, 1, 1, 1) self.grid.attach(self.create_right_panel(), 0, 1, 1, 1)
@@ -433,7 +481,10 @@ class TemperaturePanel(ScreenPanel):
self.grid.attach(self.create_right_panel(), 1, 0, 1, 1) self.grid.attach(self.create_right_panel(), 1, 0, 1, 1)
self.grid.show_all() self.grid.show_all()
def on_popover_clicked(self, widget, device): def popover_closed(self, widget):
self.popover_device = None
def popover_popup(self, widget, device):
self.popover_device = device self.popover_device = device
po = self.labels['popover'] po = self.labels['popover']
po.set_relative_to(widget) po.set_relative_to(widget)
@@ -461,21 +512,22 @@ class TemperaturePanel(ScreenPanel):
self.update_temp( self.update_temp(
x, x,
self._printer.get_dev_stat(x, "temperature"), self._printer.get_dev_stat(x, "temperature"),
self._printer.get_dev_stat(x, "target") self._printer.get_dev_stat(x, "target"),
self._printer.get_dev_stat(x, "power"),
) )
for h in self._printer.get_heaters(): for h in self._printer.get_heaters():
self.update_temp( self.update_temp(
h, h,
self._printer.get_dev_stat(h, "temperature"), self._printer.get_dev_stat(h, "temperature"),
self._printer.get_dev_stat(h, "target") self._printer.get_dev_stat(h, "target"),
self._printer.get_dev_stat(h, "power"),
) )
return return
def show_numpad(self, widget): def show_numpad(self, widget, device=None):
for d in self.active_heaters:
if self.active_heater is not None: self.devices[d]['name'].get_style_context().remove_class("button_active")
self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active") self.active_heater = self.popover_device if device is None else device
self.active_heater = self.popover_device
self.devices[self.active_heater]['name'].get_style_context().add_class("button_active") self.devices[self.active_heater]['name'].get_style_context().add_class("button_active")
if "keypad" not in self.labels: if "keypad" not in self.labels:
@@ -495,11 +547,3 @@ class TemperaturePanel(ScreenPanel):
def update_graph(self): def update_graph(self):
self.labels['da'].queue_draw() self.labels['da'].queue_draw()
return True return True
def update_temp(self, device, temp, target):
if device not in self.devices:
return
if self.devices[device]["can_target"] and target > 0:
self.devices[device]["temp"].get_child().set_label(f"{temp:.1f} / {target:.0f}")
else:
self.devices[device]["temp"].get_child().set_label(f"{temp:.1f}")
+10 -19
View File
@@ -16,8 +16,8 @@ def create_panel(*args):
class ZCalibratePanel(ScreenPanel): class ZCalibratePanel(ScreenPanel):
_screen = None _screen = None
widgets = {} widgets = {}
distance = 1
distances = ['.01', '.05', '.1', '.5', '1', '5'] distances = ['.01', '.05', '.1', '.5', '1', '5']
distance = distances[-2]
def __init__(self, screen, title, back=True): def __init__(self, screen, title, back=True):
super().__init__(screen, title, False) super().__init__(screen, title, False)
@@ -90,7 +90,7 @@ class ZCalibratePanel(ScreenPanel):
distgrid = Gtk.Grid() distgrid = Gtk.Grid()
for j, i in enumerate(self.distances): for j, i in enumerate(self.distances):
self.widgets[i] = self._gtk.ToggleButton(i) self.widgets[i] = self._gtk.Button(i)
self.widgets[i].set_direction(Gtk.TextDirection.LTR) self.widgets[i].set_direction(Gtk.TextDirection.LTR)
self.widgets[i].connect("clicked", self.change_distance, i) self.widgets[i].connect("clicked", self.change_distance, i)
ctx = self.widgets[i].get_style_context() ctx = self.widgets[i].get_style_context()
@@ -100,10 +100,9 @@ class ZCalibratePanel(ScreenPanel):
ctx.add_class("distbutton_bottom") ctx.add_class("distbutton_bottom")
else: else:
ctx.add_class("distbutton") ctx.add_class("distbutton")
if i == "1": if i == self.distance:
ctx.add_class("distbutton_active") ctx.add_class("distbutton_active")
distgrid.attach(self.widgets[i], j, 0, 1, 1) distgrid.attach(self.widgets[i], j, 0, 1, 1)
self.widgets["1"].set_active(True)
self.widgets['move_dist'] = Gtk.Label(_("Move Distance (mm)")) self.widgets['move_dist'] = Gtk.Label(_("Move Distance (mm)"))
distances = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) distances = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
@@ -206,9 +205,10 @@ class ZCalibratePanel(ScreenPanel):
x_offset = float(probe['x_offset']) x_offset = float(probe['x_offset'])
if "y_offset" in probe: if "y_offset" in probe:
y_offset = float(probe['y_offset']) y_offset = float(probe['y_offset'])
if x_offset is not None and y_offset is not None: logging.info(f"Offset X:{x_offset} Y:{y_offset}")
logging.info(f"Probe offset X:{x_offset} Y:{y_offset}") if x_offset is not None:
x_position = x_position - x_offset x_position = x_position - x_offset
if y_offset is not None:
y_position = y_position - y_offset y_position = y_position - y_offset
logging.info(f"Moving to X:{x_position} Y:{y_position}") logging.info(f"Moving to X:{x_position} Y:{y_position}")
@@ -244,22 +244,13 @@ class ZCalibratePanel(ScreenPanel):
def update_position(self, position): def update_position(self, position):
self.widgets['zposition'].set_text(f"Z: {position[2]:.2f}") self.widgets['zposition'].set_text(f"Z: {position[2]:.2f}")
if self.z_offset is not None: if self.z_offset is not None:
self.widgets['zoffset'].set_text(f"{position[2] - self.z_offset:.2f}") self.widgets['zoffset'].set_text(f"{-position[2] + self.z_offset:.2f}")
def change_distance(self, widget, distance): def change_distance(self, widget, distance):
if self.distance == distance: logging.info(f"### Distance {distance}")
return self.widgets[f"{self.distance}"].get_style_context().remove_class("distbutton_active")
self.widgets[f"{distance}"].get_style_context().add_class("distbutton_active")
ctx = self.widgets[f'{self.distance}'].get_style_context()
ctx.remove_class("distbutton_active")
self.distance = distance self.distance = distance
ctx = self.widgets[self.distance].get_style_context()
ctx.add_class("distbutton_active")
for i in self.distances:
if i == self.distance:
continue
self.widgets[f"{i}"].set_active(False)
def move(self, widget, direction): def move(self, widget, direction):
dist = f"{direction}{self.distance}" dist = f"{direction}{self.distance}"
+105 -83
View File
@@ -7,7 +7,6 @@ import json
import importlib import importlib
import logging import logging
import os import os
import re
import signal import signal
import subprocess import subprocess
import pathlib import pathlib
@@ -46,7 +45,9 @@ PRINTER_BASE_STATUS_OBJECTS = [
'toolhead', 'toolhead',
'virtual_sdcard', 'virtual_sdcard',
'webhooks', 'webhooks',
'motion_report' 'motion_report',
'firmware_retraction',
'exclude_object',
] ]
klipperscreendir = pathlib.Path(__file__).parent.resolve() klipperscreendir = pathlib.Path(__file__).parent.resolve()
@@ -72,7 +73,6 @@ class KlipperScreen(Gtk.Window):
printer = None printer = None
printer_select_callbacks = [] printer_select_callbacks = []
printer_select_prepanel = None printer_select_prepanel = None
rtl_languages = ['he_il']
subscriptions = [] subscriptions = []
shutdown = True shutdown = True
updating = False updating = False
@@ -94,17 +94,7 @@ class KlipperScreen(Gtk.Window):
configfile = os.path.normpath(os.path.expanduser(args.configfile)) configfile = os.path.normpath(os.path.expanduser(args.configfile))
self._config = KlipperScreenConfig(configfile, self) self._config = KlipperScreenConfig(configfile, self)
self.lang = self._config.get_lang() self.lang_ltr = self.set_text_direction(self._config.get_main_config().get("language", None))
logging.debug(f"OS Language: {os.getenv('LANG')}")
self.lang_ltr = True
for lang in self.rtl_languages:
if os.getenv('LANG').lower().startswith(lang):
self.lang_ltr = False
Gtk.Widget.set_default_direction(Gtk.TextDirection.RTL)
logging.debug("Enabling RTL mode")
break
Gtk.Window.__init__(self) Gtk.Window.__init__(self)
monitor = Gdk.Display.get_default().get_primary_monitor() monitor = Gdk.Display.get_default().get_primary_monitor()
@@ -126,7 +116,10 @@ class KlipperScreen(Gtk.Window):
self.base_panel.activate() self.base_panel.activate()
self.printer_initializing(_("Initializing")) self.printer_initializing(_("Initializing"))
if self._config.errors:
self.show_error_modal("Invalid config file", self._config.get_errors())
# Prevent this dialog from being destroyed
self.dialogs = []
self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking')) self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking'))
# Move mouse to 0,0 # Move mouse to 0,0
@@ -144,7 +137,7 @@ class KlipperScreen(Gtk.Window):
pname = list(printers[0])[0] pname = list(printers[0])[0]
self.connect_printer(pname) self.connect_printer(pname)
else: else:
self.show_panel("printer_select", "printer_select", "Printer Select", 2) self.show_printer_select()
def connect_printer_widget(self, widget, name): def connect_printer_widget(self, widget, name):
self.connect_printer(name) self.connect_printer(name)
@@ -168,7 +161,7 @@ class KlipperScreen(Gtk.Window):
if self.printer.get_state() not in ["disconnected", "error", "startup", "shutdown"]: if self.printer.get_state() not in ["disconnected", "error", "startup", "shutdown"]:
self.base_panel.show_heaters(True) self.base_panel.show_heaters(True)
self.base_panel.show_printer_select(True) self.base_panel.show_printer_select(True)
self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut')) self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut', True))
return return
# Cleanup # Cleanup
@@ -263,13 +256,15 @@ class KlipperScreen(Gtk.Window):
"virtual_sdcard": ["file_position", "is_active", "progress"], "virtual_sdcard": ["file_position", "is_active", "progress"],
"webhooks": ["state", "state_message"], "webhooks": ["state", "state_message"],
"firmware_retraction": ["retract_length", "retract_speed", "unretract_extra_length", "unretract_speed"], "firmware_retraction": ["retract_length", "retract_speed", "unretract_extra_length", "unretract_speed"],
"motion_report": ["live_position", "live_velocity", "live_extruder_velocity"] "motion_report": ["live_position", "live_velocity", "live_extruder_velocity"],
"exclude_object": ["current_object", "objects", "excluded_objects"]
} }
} }
for extruder in self.printer.get_tools(): for extruder in self.printer.get_tools():
requested_updates['objects'][extruder] = ["target", "temperature", "pressure_advance", "smooth_time"] requested_updates['objects'][extruder] = [
"target", "temperature", "pressure_advance", "smooth_time", "power"]
for h in self.printer.get_heaters(): for h in self.printer.get_heaters():
requested_updates['objects'][h] = ["target", "temperature"] requested_updates['objects'][h] = ["target", "temperature", "power"]
for f in self.printer.get_fans(): for f in self.printer.get_fans():
requested_updates['objects'][f] = ["speed"] requested_updates['objects'][f] = ["speed"]
for f in self.printer.get_filament_sensors(): for f in self.printer.get_filament_sensors():
@@ -299,7 +294,7 @@ class KlipperScreen(Gtk.Window):
try: try:
return self.load_panel[panel](*args) return self.load_panel[panel](*args)
except Exception as e: except Exception as e:
msg = f"Unable to create panel {panel}" msg = f"Unable to create panel {panel}\n{e}"
logging.exception(msg) logging.exception(msg)
raise Exception(msg) from e raise Exception(msg) from e
@@ -312,11 +307,11 @@ class KlipperScreen(Gtk.Window):
self.panels[panel_name].initialize(panel_name, **kwargs) self.panels[panel_name].initialize(panel_name, **kwargs)
else: else:
self.panels[panel_name].initialize(panel_name) self.panels[panel_name].initialize(panel_name)
except Exception: except Exception as e:
if panel_name in self.panels: if panel_name in self.panels:
del self.panels[panel_name] del self.panels[panel_name]
logging.exception(f"Unable to load panel {panel_type}") logging.exception(f"Unable to load panel {panel_type}")
self.show_error_modal(f"Unable to load panel {panel_type}") self.show_error_modal(f"Unable to load panel {panel_type}", f"{e}")
return return
if hasattr(self.panels[panel_name], "process_update"): if hasattr(self.panels[panel_name], "process_update"):
@@ -344,8 +339,8 @@ class KlipperScreen(Gtk.Window):
if hasattr(self.panels[panel_name], "activate"): if hasattr(self.panels[panel_name], "activate"):
self.panels[panel_name].activate() self.panels[panel_name].activate()
self.show_all() self.show_all()
except Exception: except Exception as e:
logging.exception("Error attaching panel") logging.exception(f"Error attaching panel:\n{e}")
self._cur_panels.append(panel_name) self._cur_panels.append(panel_name)
logging.debug(f"Current panel hierarchy: {self._cur_panels}") logging.debug(f"Current panel hierarchy: {self._cur_panels}")
@@ -389,7 +384,7 @@ class KlipperScreen(Gtk.Window):
self.show_all() self.show_all()
self.popup_message = box self.popup_message = box
if self._config.get_main_config().getboolean('autoclose_popups'): if self._config.get_main_config().getboolean('autoclose_popups', True):
GLib.timeout_add_seconds(10, self.close_popup_message) GLib.timeout_add_seconds(10, self.close_popup_message)
return False return False
@@ -400,29 +395,39 @@ class KlipperScreen(Gtk.Window):
self.base_panel.get().remove(self.popup_message) self.base_panel.get().remove(self.popup_message)
self.popup_message = None self.popup_message = None
self.show_all()
def show_error_modal(self, err): def show_error_modal(self, err, e=""):
logging.exception(f"Showing error modal: {err}")
logging.exception("Showing error modal: %s", err) title = Gtk.Label()
title.set_markup(f"<b>{err}</b>\n")
title.set_line_wrap(True)
title.set_halign(Gtk.Align.START)
title.set_hexpand(True)
version = Gtk.Label(label=f"{self.version}")
version.set_halign(Gtk.Align.END)
message = Gtk.Label(label=f"{e}")
message.set_line_wrap(True)
scroll = self.gtk.ScrolledWindow()
scroll.set_vexpand(True)
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(message)
help_notice = Gtk.Label(label="Provide /tmp/KlipperScreen.log when asking for help.\n")
help_notice.set_line_wrap(True)
grid = Gtk.Grid()
grid.attach(title, 0, 0, 1, 1)
grid.attach(version, 1, 0, 1, 1)
grid.attach(Gtk.Separator(), 0, 1, 2, 1)
grid.attach(scroll, 0, 2, 2, 1)
grid.attach(help_notice, 0, 3, 2, 1)
buttons = [ buttons = [
{"name": _("Go Back"), "response": Gtk.ResponseType.CANCEL} {"name": _("Go Back"), "response": Gtk.ResponseType.CANCEL}
] ]
self.gtk.Dialog(self, buttons, grid, self.error_modal_response)
label = Gtk.Label()
label.set_markup(
f"{err} \n\n" +
_("Check /tmp/KlipperScreen.log for more information.\nPlease submit an issue on GitHub for help.")
)
label.set_hexpand(True)
label.set_halign(Gtk.Align.CENTER)
label.set_vexpand(True)
label.set_valign(Gtk.Align.CENTER)
label.set_line_wrap(True)
label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
self.gtk.Dialog(self, buttons, label, self.error_modal_response)
@staticmethod @staticmethod
def error_modal_response(widget, response_id): def error_modal_response(widget, response_id):
@@ -451,11 +456,6 @@ class KlipperScreen(Gtk.Window):
def restart_ks(self, widget, response_id): def restart_ks(self, widget, response_id):
if response_id == Gtk.ResponseType.OK: if response_id == Gtk.ResponseType.OK:
logging.debug("Restarting") logging.debug("Restarting")
# This can be removed after a grace period
service = self._config.get_main_config().get('service')
if service is not None and service != "KlipperScreen":
self.show_popup_message("Error: option \"service\" is not supported anymore")
# ^^^
self._ws.send_method("machine.services.restart", {"service": "KlipperScreen"}) self._ws.send_method("machine.services.restart", {"service": "KlipperScreen"})
widget.destroy() widget.destroy()
@@ -476,8 +476,8 @@ class KlipperScreen(Gtk.Window):
try: try:
with open(theme_style_conf) as f: with open(theme_style_conf) as f:
style_options.update(json.load(f)) style_options.update(json.load(f))
except Exception: except Exception as e:
logging.error("Unable to parse custom template conf file.") logging.error(f"Unable to parse custom template conf file:\n{e}")
self.gtk.color_list = style_options['graph_colors'] self.gtk.color_list = style_options['graph_colors']
@@ -571,7 +571,7 @@ class KlipperScreen(Gtk.Window):
def _menu_go_back(self, widget=None): def _menu_go_back(self, widget=None):
logging.info("#### Menu go back") logging.info("#### Menu go back")
self.remove_keyboard() self.remove_keyboard()
if self._config.get_main_config().getboolean('autoclose_popups'): if self._config.get_main_config().getboolean('autoclose_popups', True):
self.close_popup_message() self.close_popup_message()
self._remove_current_panel() self._remove_current_panel()
@@ -595,7 +595,7 @@ class KlipperScreen(Gtk.Window):
self.subscriptions.pop(i) self.subscriptions.pop(i)
return return
def reset_screensaver_timeout(self, widget=None): def reset_screensaver_timeout(self, *args):
if self.screensaver_timeout is not None: if self.screensaver_timeout is not None:
GLib.source_remove(self.screensaver_timeout) GLib.source_remove(self.screensaver_timeout)
self.screensaver_timeout = GLib.timeout_add_seconds(self.blanking_time, self.show_screensaver) self.screensaver_timeout = GLib.timeout_add_seconds(self.blanking_time, self.show_screensaver)
@@ -605,6 +605,8 @@ class KlipperScreen(Gtk.Window):
if self.screensaver is not None: if self.screensaver is not None:
self.close_screensaver() self.close_screensaver()
self.remove_keyboard() self.remove_keyboard()
for dialog in self.dialogs:
dialog.hide()
close = Gtk.Button() close = Gtk.Button()
close.connect("clicked", self.close_screensaver) close.connect("clicked", self.close_screensaver)
@@ -614,12 +616,12 @@ class KlipperScreen(Gtk.Window):
box.pack_start(close, True, True, 0) box.pack_start(close, True, True, 0)
box.set_halign(Gtk.Align.CENTER) box.set_halign(Gtk.Align.CENTER)
box.get_style_context().add_class("screensaver") box.get_style_context().add_class("screensaver")
self.base_panel.get().put(box, 0, 0) self.base_panel.get().put(box, 0, 0)
self.show_all()
# Avoid leaving a cursor-handle # Avoid leaving a cursor-handle
close.grab_focus() close.grab_focus()
self.screensaver = box self.screensaver = box
self.screensaver.show_all()
return False return False
def close_screensaver(self, widget=None): def close_screensaver(self, widget=None):
@@ -632,6 +634,8 @@ class KlipperScreen(Gtk.Window):
self.wake_screen() self.wake_screen()
else: else:
self.screensaver_timeout = GLib.timeout_add_seconds(self.blanking_time, self.show_screensaver) self.screensaver_timeout = GLib.timeout_add_seconds(self.blanking_time, self.show_screensaver)
for dialog in self.dialogs:
dialog.show()
self.show_all() self.show_all()
return False return False
@@ -661,7 +665,7 @@ class KlipperScreen(Gtk.Window):
self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking')) self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking'))
def set_screenblanking_timeout(self, time): def set_screenblanking_timeout(self, time):
os.system("xset -display :0 s noblank") os.system("xset -display :0 s blank")
os.system("xset -display :0 s off") os.system("xset -display :0 s off")
self.use_dpms = self._config.get_main_config().getboolean("use_dpms", fallback=True) self.use_dpms = self._config.get_main_config().getboolean("use_dpms", fallback=True)
@@ -710,11 +714,7 @@ class KlipperScreen(Gtk.Window):
logging.debug(f"Saving panel: {self._cur_panels[0]}") logging.debug(f"Saving panel: {self._cur_panels[0]}")
self.printer_select_prepanel = self._cur_panels[0] self.printer_select_prepanel = self._cur_panels[0]
self.base_panel.show_heaters(False) self.base_panel.show_heaters(False)
self.base_panel.show_macro_shortcut(False) self.show_panel("printer_select", "printer_select", _("Printer Select"), 2)
self.base_panel.show_printer_select(False)
self.show_panel("printer_select", "printer_select", "Printer Select", 2)
self.show_all()
self.base_panel.action_bar.hide()
def state_execute(self, callback, prev_state): def state_execute(self, callback, prev_state):
if self.is_updating(): if self.is_updating():
@@ -761,7 +761,7 @@ class KlipperScreen(Gtk.Window):
for panel in list(self.panels): for panel in list(self.panels):
if panel not in ["printer_select", "splash_screen"]: if panel not in ["printer_select", "splash_screen"]:
del self.panels[panel] del self.panels[panel]
if dialog in self.dialogs: for dialog in self.dialogs:
dialog.destroy() dialog.destroy()
def state_paused(self, prev_state): def state_paused(self, prev_state):
@@ -783,7 +783,7 @@ class KlipperScreen(Gtk.Window):
self.printer_select_callbacks = [self.state_ready] self.printer_select_callbacks = [self.state_ready]
return return
self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut')) self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut', True))
self.base_panel.show_heaters(True) self.base_panel.show_heaters(True)
# Do not return to main menu if completing a job, timeouts/user input will return # Do not return to main menu if completing a job, timeouts/user input will return
@@ -819,15 +819,44 @@ class KlipperScreen(Gtk.Window):
def toggle_macro_shortcut(self, value): def toggle_macro_shortcut(self, value):
self.base_panel.show_macro_shortcut(value) self.base_panel.show_macro_shortcut(value)
def set_text_direction(self, lang=None):
rtl_languages = ['he_IL']
if lang is None:
for lng in rtl_languages:
if os.getenv('LANG').startswith(lng):
lang = lng
break
if lang in rtl_languages:
Gtk.Widget.set_default_direction(Gtk.TextDirection.RTL)
logging.debug("Enabling RTL mode")
return False
Gtk.Widget.set_default_direction(Gtk.TextDirection.LTR)
return True
def change_language(self, lang):
self._config.install_language(lang)
self.lang_ltr = self.set_text_direction(lang)
self._config._create_configurable_options(self)
self.reload_panels()
def reload_panels(self, *args):
self._remove_all_panels()
for panel in list(self.panels):
del self.panels[panel]
for dialog in self.dialogs:
dialog.destroy()
self.printer.change_state(self.printer.state)
def _websocket_callback(self, action, data): def _websocket_callback(self, action, data):
if self.connecting is True: if self.connecting is True:
return return
if action == "notify_klippy_disconnected": if action == "notify_klippy_disconnected":
logging.debug("Received notify_klippy_disconnected")
self.printer.change_state("disconnected") self.printer.change_state("disconnected")
return return
elif action == "notify_klippy_shutdown":
self.printer.change_state("shutdown")
elif action == "notify_klippy_ready": elif action == "notify_klippy_ready":
self.printer.change_state("ready") self.printer.change_state("ready")
elif action == "notify_status_update" and self.printer.get_state() != "shutdown": elif action == "notify_status_update" and self.printer.get_state() != "shutdown":
@@ -845,18 +874,12 @@ class KlipperScreen(Gtk.Window):
self.printer.process_power_update(data) self.printer.process_power_update(data)
self.panels['splash_screen'].check_power_status() self.panels['splash_screen'].check_power_status()
elif self.printer.get_state() not in ["error", "shutdown"] and action == "notify_gcode_response": elif self.printer.get_state() not in ["error", "shutdown"] and action == "notify_gcode_response":
if "Klipper state: Shutdown" in data: if not (data.startswith("B:") or data.startswith("T:")):
logging.debug("Shutdown in gcode response, changing state to shutdown")
self.printer.change_state("shutdown")
if not (data.startswith("B:") and
re.search(r'B:[0-9\.]+\s/[0-9\.]+\sT[0-9]+:[0-9\.]+', data)):
if data.startswith("echo: "): if data.startswith("echo: "):
self.show_popup_message(data[6:], 1) self.show_popup_message(data[6:], 1)
elif data.startswith("!! "): elif data.startswith("!! "):
self.show_popup_message(data[3:], 3) self.show_popup_message(data[3:], 3)
logging.debug(json.dumps([action, data], indent=2)) if "SAVE_CONFIG" in data and self.printer.get_state() == "ready":
if "SAVE_CONFIG" in data:
script = {"script": "SAVE_CONFIG"} script = {"script": "SAVE_CONFIG"}
self._confirm_send_action( self._confirm_send_action(
None, None,
@@ -880,11 +903,11 @@ class KlipperScreen(Gtk.Window):
try: try:
env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True) env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True)
env.install_gettext_translations(self.lang) env.install_gettext_translations(self._config.get_lang())
j2_temp = env.from_string(text) j2_temp = env.from_string(text)
text = j2_temp.render() text = j2_temp.render()
except Exception: except Exception as e:
logging.debug("Error parsing jinja for confirm_send_action") logging.debug(f"Error parsing jinja for confirm_send_action\n{e}")
label = Gtk.Label() label = Gtk.Label()
label.set_markup(text) label.set_markup(text)
@@ -899,7 +922,6 @@ class KlipperScreen(Gtk.Window):
self.confirm.destroy() self.confirm.destroy()
self.confirm = self.gtk.Dialog(self, buttons, label, self._confirm_send_action_response, method, params) self.confirm = self.gtk.Dialog(self, buttons, label, self._confirm_send_action_response, method, params)
def _confirm_send_action_response(self, widget, response_id, method, params): def _confirm_send_action_response(self, widget, response_id, method, params):
if response_id == Gtk.ResponseType.OK: if response_id == Gtk.ResponseType.OK:
self._send_action(widget, method, params) self._send_action(widget, method, params)
@@ -911,7 +933,7 @@ class KlipperScreen(Gtk.Window):
def printer_initializing(self, text=None, disconnect=False): def printer_initializing(self, text=None, disconnect=False):
self.close_popup_message() self.close_popup_message()
self.show_panel('splash_screen', "splash_screen", "Splash Screen", 2) self.show_panel('splash_screen', "splash_screen", _("Home"), 2)
if disconnect is True and self.printer is not None: if disconnect is True and self.printer is not None:
self.shutdown = True self.shutdown = True
self.printer.state = "disconnected" self.printer.state = "disconnected"
@@ -988,6 +1010,7 @@ class KlipperScreen(Gtk.Window):
+ self.printer.get_heaters() + self.printer.get_heaters()
+ self.printer.get_fans() + self.printer.get_fans()
+ self.printer.get_filament_sensors() + self.printer.get_filament_sensors()
+ self.printer.get_output_pins()
) )
data = self.apiclient.send_request("printer/objects/query?" + "&".join(PRINTER_BASE_STATUS_OBJECTS + data = self.apiclient.send_request("printer/objects/query?" + "&".join(PRINTER_BASE_STATUS_OBJECTS +
@@ -1014,10 +1037,7 @@ class KlipperScreen(Gtk.Window):
return False return False
def printer_ready(self): def printer_ready(self):
self.close_popup_message() self.close_popup_message()
# Force an update to printer webhooks state in case the update is missed due to websocket subscribe not yet sent
self.printer.process_update({"webhooks": {"state": "ready", "state_message": "Printer is ready"}})
self.show_panel('main_panel', "main_menu", _("Home"), 2, self.show_panel('main_panel', "main_menu", _("Home"), 2,
items=self._config.get_menu_items("__main"), extrudercount=self.printer.get_extruder_count()) items=self._config.get_menu_items("__main"), extrudercount=self.printer.get_extruder_count())
self.ws_subscribe() self.ws_subscribe()
@@ -1027,9 +1047,11 @@ class KlipperScreen(Gtk.Window):
def printer_printing(self): def printer_printing(self):
self.close_popup_message() self.close_popup_message()
self.show_panel('job_status', "job_status", "Print Status", 2) self.show_panel('job_status', "job_status", _("Printing"), 2)
self.base_panel.show_heaters(True) self.base_panel.show_heaters(True)
self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut')) self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut', True))
for dialog in self.dialogs:
dialog.destroy()
def show_keyboard(self, widget=None, event=None, entry=None): def show_keyboard(self, widget=None, event=None, entry=None):
if self.keyboard is not None: if self.keyboard is not None:
@@ -1129,5 +1151,5 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
try: try:
main() main()
except Exception: except Exception as ex:
logging.exception("Fatal error in main loop") logging.exception(f"Fatal error in main loop:\n{ex}")
+19 -6
View File
@@ -9,9 +9,13 @@ FBTURBO="xserver-xorg-video-fbturbo"
FBDEV="xserver-xorg-video-fbdev" FBDEV="xserver-xorg-video-fbdev"
PYTHON="python3-virtualenv virtualenv python3-distutils" PYTHON="python3-virtualenv virtualenv python3-distutils"
PYGOBJECT="libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0" PYGOBJECT="libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0"
MISC="librsvg2-common libopenjp2-7 libatlas-base-dev matchbox-keyboard wireless-tools" MISC="librsvg2-common libopenjp2-7 libatlas-base-dev wireless-tools"
OPTIONAL="xserver-xorg-legacy fonts-nanum" OPTIONAL="xserver-xorg-legacy fonts-nanum"
# moonraker will check this list when updating
# if new packages are required for existing installs add them below too.
PKGLIST=""
Red='\033[0;31m' Red='\033[0;31m'
Green='\033[0;32m' Green='\033[0;32m'
Cyan='\033[0;36m' Cyan='\033[0;36m'
@@ -101,11 +105,12 @@ create_virtualenv()
{ {
echo_text "Creating virtual environment" echo_text "Creating virtual environment"
if [ ! -d ${KSENV} ]; then if [ ! -d ${KSENV} ]; then
GET_PIP="${HOME}/get-pip.py" virtualenv -p /usr/bin/python3 ${KSENV}
virtualenv --no-pip -p /usr/bin/python3 ${KSENV} # GET_PIP="${HOME}/get-pip.py"
curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o ${GET_PIP} # virtualenv --no-pip -p /usr/bin/python3 ${KSENV}
${KSENV}/bin/python ${GET_PIP} # curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o ${GET_PIP}
rm ${GET_PIP} # ${KSENV}/bin/python ${GET_PIP}
# rm ${GET_PIP}
fi fi
source ${KSENV}/bin/activate source ${KSENV}/bin/activate
@@ -157,6 +162,13 @@ update_x11()
fi fi
} }
add_desktop_file()
{
DESKTOP=$(<$SCRIPTPATH/KlipperScreen.desktop)
mkdir -p $HOME/.local/share/applications/
echo "$DESKTOP" | tee $HOME/.local/share/applications/KlipperScreen.desktop > /dev/null
}
start_KlipperScreen() start_KlipperScreen()
{ {
echo_text "Starting service..." echo_text "Starting service..."
@@ -173,4 +185,5 @@ modify_user
install_systemd_service install_systemd_service
update_x11 update_x11
echo_ok "KlipperScreen was installed" echo_ok "KlipperScreen was installed"
add_desktop_file
start_KlipperScreen start_KlipperScreen
+2 -2
View File
@@ -3,6 +3,6 @@ jinja2==3.1.2
matplotlib==3.5.0 matplotlib==3.5.0
netifaces==0.11.0 netifaces==0.11.0
requests==2.28.1 requests==2.28.1
websocket-client==1.3.3 websocket-client==1.4.1
pycairo==1.21.0 pycairo==1.21.0
PyGObject==3.42.1 PyGObject==3.42.2
+11
View File
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=KlipperScreen
GenericName=Touch screen GUI for Klipper via Moonraker
Icon=$HOME/KlipperScreen/styles/icon.svg
Exec=sh -c "$HOME/.KlipperScreen-env/bin/python $HOME/KlipperScreen/screen.py"
Terminal=false
Type=Application
Categories=Graphics;3DGraphics;Engineering;
Keywords=3D;Printing
StartupNotify=false
StartupWMClass=klipper-screen
+3
View File
@@ -0,0 +1,3 @@
# mkdocs build --clean --site-dir _html --config-file mkdocs.yml
# For testing is better to use the integrated server.
mkdocs serve --config-file mkdocs.yml
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
pycodestyle --ignore=E226,E301,E302,E303,E402,W503,W504 --max-line-length=120 --max-doc-length=120 screen.py ks_includes panels pycodestyle --ignore=E402,W503,W504 --max-line-length=120 --max-doc-length=120 screen.py ks_includes panels
Loaded 100 of 129 files, more files were not shown because too many files have changed in this diff. Show more