Compare commits

...
86 Commits
Author SHA1 Message Date
dependabot[bot] a00d5a074c build(deps): bump requests from 2.27.1 to 2.28.1 (#663)
Bumps [requests](https://github.com/psf/requests) from 2.27.1 to 2.28.1.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.27.1...v2.28.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-03 12:08:48 -03:00
Alfredo Monclus 314379e2af Use moonraker to restart KS (#656) 2022-07-03 12:08:36 -03:00
dependabot[bot] 3b73acec37 build(deps): bump websocket-client from 1.3.2 to 1.3.3 (#653)
Bumps [websocket-client](https://github.com/websocket-client/websocket-client) from 1.3.2 to 1.3.3.
- [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.2...v1.3.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-03 12:04:25 -03:00
alfrix d3cd4008a8 job_status and base_panel: safeguard against possible issues with temps 2022-07-03 12:03:50 -03:00
alfrix 784253ca77 extrude: use macro naming when there is no temp 2022-07-03 12:03:50 -03:00
alfrix 0feffff2ac translations: update all 2022-07-03 12:03:50 -03:00
alfrix bde7e8a886 docs: create an adb script 2022-07-03 12:03:50 -03:00
alfrix 71360b44ee docs: update Android guide to use the launcher 2022-07-03 12:03:50 -03:00
alfrix c20149ac25 docs: create an android guide 2022-07-03 12:03:50 -03:00
alfrix 92254942ef installer: restart KS if it's running 2022-07-03 12:03:50 -03:00
alfrix 3ed8142ab9 installer: overwrite the service unit 2022-07-03 12:03:50 -03:00
xcasxcursex 2fd5e6e89f Enable users to inject a custom script to start KlipperScreen (#660)
A helper script is included to ease migration
for the common Android XSDL use-case
2022-07-03 12:03:50 -03:00
alfrix 5e73fb03b5 base_panel: all action bar buttons should close the keyboard 2022-07-03 12:03:50 -03:00
alfrix 5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix 3bb470ded4 Fix keyboard size after being converted to a oriented Box 2022-07-03 12:03:50 -03:00
alfrix 831db2403d Fix potential issues with variables 2022-07-03 12:03:50 -03:00
alfrix b611491997 Optimize imports 2022-07-03 12:03:50 -03:00
alfrix 5c17656567 Remove some unneeded complexity in the macro shortcut 2022-07-03 12:03:50 -03:00
alfrix 06fceec84a Change the deprecated VBox and HBox to oriented Boxes 2022-07-03 12:03:50 -03:00
alfrix 12d90bcffa docs: keep the reqs updated 2022-07-03 12:03:50 -03:00
alfrix a445b89f13 config: deprecate get_main_config_option 2022-07-03 12:03:50 -03:00
alfrix 88ea416110 zcalibrate: fix issue with offset being a float 2022-07-03 12:03:50 -03:00
alfrix 5f1d239211 performance: do not use transparency 2022-07-03 12:03:50 -03:00
alfrix 312d131db5 use images for the sort order, drop freefont dependency 2022-07-03 12:03:50 -03:00
alfrix 5a02ac75ae basic support for extruder_stepper 2022-07-03 12:03:50 -03:00
alfrix c6df1b667c base_panel: fix keyboard not closing when clicking on macro shortcut 2022-07-03 12:03:50 -03:00
alfrix c18e2d148e layout: content margins in css
close #558 (use .action_bar{} and .content{} in a custom theme)
2022-07-03 12:03:50 -03:00
alfrix b76953ebfe theme: material darker use elevation and fix some colors 2022-07-03 12:03:50 -03:00
alfrix c4780fa56e performance: remove the background on default themes it can cause severe performance degradation and scrolling issues 2022-07-03 12:03:50 -03:00
alfrix faf997c7ae keyboard: improve layout and interactions on panels with entry 2022-07-03 12:03:50 -03:00
alfrix bd03a66dde screensaver: fix not having coverage in some situations 2022-07-03 12:03:50 -03:00
alfrix 431eb0058c system: remove unused function 2022-07-03 12:03:50 -03:00
Alfredo Monclus 6051e51f0e fan: add max and stop buttons 2022-07-03 12:03:50 -03:00
alfrix d3ce521bb0 keyboard: fix size while vertical 2022-07-03 12:03:50 -03:00
alfrix da26bf3143 base_panel: layout simplification 2022-07-03 12:03:50 -03:00
ZISQO 05b25cda15 Update ko_KR localization (#659) 2022-06-25 17:50:31 -03:00
alfrix eedf5448a0 docs: add another solution to seeing only console 2022-06-09 13:28:54 -03:00
Selim 8d83801b0e Turkish update (#637) 2022-06-05 23:30:39 -03:00
Adam Shanks 61c5bea9a0 Superscript (#635)
* Use superscript 2 and 3 as appropriate
2022-06-05 09:55:52 -03:00
alfrix 3775dbd44e extruder: fix issue with filament_sensors fixes #634 2022-06-04 11:43:52 -03:00
alfrix 880d4740e6 docs: moonraker update_manager needs managed_services 2022-06-04 11:00:13 -03:00
alfrix 511f715f7e retraction: allow higher limits fix #630 2022-06-03 14:39:15 -03:00
alfrix 9e800dd008 installer: add librsvg2-common as dependency fix #629 2022-06-03 13:38:22 -03:00
Andriy 6869514004 Update Ukrainian (#632) 2022-06-03 13:29:19 -03:00
Alfredo Monclus c6243e37fb Update issue templates 2022-06-03 13:26:45 -03:00
alfrix 73dbae7871 docs: update screenshots and add new panels 2022-06-02 16:20:37 -03:00
alfrix 2568a9262f docs: add DPMS to troubleshooting 2022-06-02 15:31:32 -03:00
alfrix 6bb712f970 Update translation files 2022-06-02 15:07:52 -03:00
Selim b8cf60bd2c Turkish Update (#631) 2022-06-02 12:14:59 -03:00
alfrix 5437eaead0 docs: fix build, re-skin and improve 2022-06-01 16:21:56 -03:00
dependabot[bot] 6b432c167f build(deps): bump pygobject from 3.42.0 to 3.42.1 (#589)
Bumps [pygobject](https://pygobject.readthedocs.io) from 3.42.0 to 3.42.1.

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 11:43:43 -03:00
dependabot[bot] 9d25836df4 build(deps): bump jinja2 from 3.1.1 to 3.1.2 (#605)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.1...3.1.2)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 11:43:25 -03:00
alfrix 54fc0458e0 KlippyGtk: fix style arguments 2022-05-31 11:14:42 -03:00
alfrix 3361c243b7 docs: hardware fix links 2022-05-31 11:14:42 -03:00
alfrix 2da5a4df32 docs: improve install instructions 2022-05-31 11:14:42 -03:00
alfrix 0f4f56bb9f Fix paused state
close #607
fix #611
2022-05-31 11:14:42 -03:00
alfrix 33195f203f Simplify code 2022-05-31 11:14:42 -03:00
alfrix 3889fdbe4c console: remove // 2022-05-31 11:14:42 -03:00
alfrix 7b4a24d079 job_status: simplify timeouts because sometimes it didn't work, also do not autoclose by default because there may be offsets to be saved 2022-05-31 11:14:42 -03:00
alfrix c91deda220 settings: wider scale slider 2022-05-31 11:14:42 -03:00
alfrix cc755edeb2 wider scrollbar because it's hard to use on small screens 2022-05-31 11:14:42 -03:00
alfrix 5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix fd2a717ece settings: remove options that are directly on the panels 2022-05-31 11:14:42 -03:00
alfrix 48860159e9 move: add options to the panel 2022-05-31 11:14:42 -03:00
alfrix 4ff63798c8 job_status: ask for confirmation, and show saved offset 2022-05-31 11:14:42 -03:00
alfrix ea3e7ad3d1 splash_screen: use moonraker for actions if connected, hide system panel if it isn't connected
use systemctl if moonraker isn't available close #615
2022-05-31 11:14:42 -03:00
alfrix 562e49b8d2 logging: exceptions can log more info 2022-05-31 11:14:42 -03:00
alfrix 7c8d4ea4d7 extrude: add filament sensor support 2022-05-31 11:14:42 -03:00
alfrix b77b7c0976 job_status: M117 without text clears the label fix #614 2022-05-31 11:14:42 -03:00
alfrix 8550cbcab6 retraction: add reset 2022-05-31 11:14:42 -03:00
alfrix ade8911ba6 limits: add reset, allow to set above the configured maximum but turn the slider red 2022-05-31 11:14:42 -03:00
alfrix b9036901e7 job_status: animate filename if it's too long 2022-05-31 11:14:42 -03:00
alfrix f88a5c8440 macros: put the hide options on the panel 2022-05-31 11:14:42 -03:00
alfrix 53bc6f25ff macros: allow reverse sorting 2022-05-31 11:14:42 -03:00
alfrix 21633b9302 files: fix local thumbnails 2022-05-31 11:14:42 -03:00
alfrix a0a222c386 print: use the smaller thumb for the list if available 2022-05-31 11:14:42 -03:00
Mikko Gozaloandalfrix fa0d696120 Add Input Shaper panel
Original panel by Mikko Gozalo

Modified layour to fit 16:9 screens
Auto-home
Ability to measure X and Y independently
Get the current active values not the values from the config
Ask for save
Other minor tweaks

close #301

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-05-31 11:14:42 -03:00
alfrix 7e988b3f35 zcalibrate: show the saved offset and offset to be saved 2022-05-31 11:14:42 -03:00
alfrix f98ac0bfe4 Move korean fonts to the optional category 2022-05-31 11:13:56 -03:00
NStevenU a29da7e76c Add Korean language support (#625)
* Add Korean language support

* Add Korean Language Support Font Installation
2022-05-31 11:12:20 -03:00
Ruslan Sayfutdinov 794dbea14e Allow setting 0 in preheat options (#612) 2022-05-31 11:10:27 -03:00
Selim 432b12d67e Turkish Language (#610) 2022-05-16 18:39:14 -03:00
alfrix 8accce00a9 job_status: fix thumbnail issue #608 2022-05-04 09:56:24 -03:00
alfrix 35381beeb6 limits: fix typo in label 2022-05-03 08:38:58 -03:00
alfrix 1eaa82ba2d config: fix print estimate default 2022-05-02 14:08:03 -03:00
alfrix 35c4136bd5 Job_status: fix speed label, fix estimate default 2022-05-02 12:09:12 -03:00
113 changed files with 5929 additions and 2039 deletions

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Logfile**
Attach your [klipperscreen.log](https://klipperscreen.readthedocs.io/en/latest/Troubleshooting/)
+20
View File
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FR]"
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
+94
View File
@@ -0,0 +1,94 @@
# Android
This article describes how to use KlipperScreen from an android device
!!! important
The experience may not be equal to run KlipperScreen natively,
depending on the device there maybe performance degradation or other issues
1. [First installl KlipperScreen on the Pi](Installation.md)
2. Install [XServer-XSDL](https://play.google.com/store/apps/details?id=x.org.server) on the android device
3. Choose [USB(ADB)](#adb) or [WIFI](#wifi)
### ADB
!!! warning
Leaving the phone always connected it's not recommended, remove the battery to avoid issues.
* Install ADB on the Pi
```bash
sudo apt-get install android-tools-adb
```
* Put your Android phone/tablet in Debug mode.
Usually it involves enabling developer mode and "USB debugging" but this varies on different vendors and versions of the device
search "how to enable android debugging on device-model-and-brand"
* Copy the launcher script
```bash
cd ~/KlipperScreen/scripts
cp android-adb.sh launch_KlipperScreen
chmod +x launch_KlipperScreen
```
* Go to [Startup](#startup)
### WIFI
* Create a launcher script
```bash
cd ~/KlipperScreen/scripts
touch launch_KlipperScreen.sh
chmod +x launch_KlipperScreen
nano launch_KlipperScreen
```
* Paste this into the script (edit the IP for example: 192.168.1.2:0)
```bash
DISPLAY=(ip address from blue screen):0 $KS_XCLIENT
```
!!! important
It's recommended to use a static address, because if the address changes your connection will stop working.
* Go to [Startup](#startup)
## Startup
Start Xserver-XSDL On the android device
On the splash-screen of the app go to:
```
“CHANGE DEVICE CONFIGURATION”
└──Mouse Emulation Modde
└──Desktop, No Emulation
```
if you missed it, restart the app.
on the Pi
```bash
sudo service KlipperScreen stop
sudo service KlipperScreen start
```
## Migration from other tutorials
KlipperScreen says error option "service" is not supported anymore.
Stop the other service and Remove it, for example if the service is `KlippyScreenAndroid`:
```bash
sudo service KlippyScreenAndroid stop
sudo rm /etc/systemd/system/KlippyScreenAndroid.service
```
Follow this guide on how to setup the new launcher script with [USB(ADB)](#adb) or [WIFI](#wifi) and restart KS.
## Help
[The Discourse thread has old instructions but you may get some help if needed](https://klipper.discourse.group/t/how-to-klipperscreen-on-android-smart-phones/1196)
[#klipper-screen channel on Discord](https://discord.klipper3d.org/)
+14 -14
View File
@@ -6,25 +6,25 @@ create a blank file in `~/klipper_config/KlipperScreen.conf`, if the file alread
Write in the file only the options that need to be changed, and restart KlipperScreen.
## Include files
```
```py
[include conf.d/*.conf]
# Include another configuration file. Wildcards (*) will expand to match anything.
```
## Main Options
```
```py
[main]
# Invert axis in move panel. Default is False. Change to true to invert
invert_x: False
invert_y: False
invert_z: False
# Time (seconds) before the Job Status page reverts to main menu after a successful job
job_complete_timeout: 30
# Time in seconds before the Job Status page closes itself after a successful job/print
# 0 means disabled
job_complete_timeout: 0
# Time (seconds) before the Job Status page reverts to main menu after a successful job.
# If this option is 0, the user must click on a button to go back to the main menu.
# Time in seconds before the Job Status closes itself if an error is encountered
job_error_timeout: 0
# Specify the language
@@ -48,7 +48,7 @@ use_default_menu: True
## Printer Options
Multiple printers can be defined
```
```py
# Define printer and name. Name is anything after the first printer word
[printer Ender 3 Pro]
# Define the moonraker host/port if different from 127.0.0.1 and 7125
@@ -92,7 +92,7 @@ use_dpms: True
```
## Preheat Options
```
```py
[preheat my_temp_setting]
# Temperature for the heated bed
bed: 40
@@ -106,16 +106,16 @@ temperature_fan: 40
gcode: MY_HEATSOAK_MACRO
```
There is an special preheat setting named cooldown to do additional things when the _cooldown_ button is pressed
There is a special preheat setting named cooldown to do additional things when the _cooldown_ button is pressed
for example:
```
```py
[preheat cooldown]
gcode: M107
```
## Bed Screws
```
```py
[bed_screws]
# Rotation is useful if the screen is not directly in front of the machine.
# Valid values are 0 90 180 270
@@ -129,7 +129,7 @@ button press. There are two menus available in KlipperScreen, __main and __print
printer is idle. The __print menu is accessible from the printing status page.
A menu item is configured as follows:
```
```py
[menu __main my_menu_item]
# To build a sub-menu of this menu item, you would next use [menu __main my_menu_item sub_menu_item]
name: Item Name
@@ -148,7 +148,7 @@ enable: {{ printer.power_devices.count > 0 }}
Available panels are listed here: [docs/panels.md](Panels.md)
Certain variables are available for conditional testing of the enable statement:
```
```py
printer.bltouch # Available if bltouch section defined in config
printer.gcode_macros.count # Number of gcode macros
printer.idle_timeout # Idle timeout section
@@ -159,7 +159,7 @@ printer.power_devices.count # Number of power devices configured in Moonraker
A sample configuration of a main menu would be as follows:
```
```py
[menu __main homing]
name: Homing
icon: home
+1 -3
View File
@@ -8,6 +8,4 @@ You may submit a GitHub issue request for any problems you are having.
## Klipper Community Discord
The invite link: https://discord.klipper3d.org/
Look for the channel `#klipper-screen`
[Look for the channel `#klipper-screen`](https://discord.klipper3d.org/)
+19 -12
View File
@@ -11,27 +11,30 @@ There are no recommended screens, but the minimum supported resolution is 480x32
* [3.5" RPi Display](http://www.lcdwiki.com/3.5inch_RPi_Display)
* [5" HDMI Display-B](http://lcdwiki.com/5inch_HDMI_Display-B)
* [VoCore](https://klipper.discourse.group/t/hardware-known-to-work-with-klipperscreen/35/7)
* [Android Phone](https://klipper.discourse.group/t/how-to-klipperscreen-on-android-smart-phones/1196)
* [WAVESHARE 4.3 inch DSI LCD](https://www.waveshare.com/4.3inch-dsi-lcd.htm)
* [DFrobot DFR0550](https://wiki.dfrobot.com/5%27%27TFT-Display_with_Touchscreen_V1.0_SKU_DFR0550)
* ![Android phone](Android.md)
* [More known hardware in the klipper discourse](https://klipper.discourse.group/t/hardware-known-to-work-with-klipperscreen/35)
#### Configuration
### Configuration
Follow the manufacturer instructions on how to install your screen. In general if you see a white screen, then it's not properly installed, ensure that you at least see a console, Then ![install](Installation.md) KlipperScreen, if you are having troubles refer to the ![troubleshooting page](Troubleshooting.md) for further information.
#### Touchscreen touch rotation
## Touchscreen touch rotation
If your touchscreen isn't registering touches properly after the screen has been rotated, you will need to apply a
transformation matrix.
First you will need your device name.
First you will need your device name, on a terminal run:
Run: `DISPLAY=:0 xinput`
Output
```sh
DISPLAY=:0 xinput
```
Output:
```sh
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ADS7846 Touchscreen id=6 [slave pointer (2)]
@@ -42,7 +45,9 @@ In this case the device is the ADS7846 Touchscreen, yours may be different
You can test a change by running:
`DISPLAY=:0 xinput set-prop "<device name>" 'Coordinate Transformation Matrix' <matrix>`
```sh
DISPLAY=:0 xinput set-prop "<device name>" 'Coordinate Transformation Matrix' <matrix>
```
Where the matrix can be one of the following options:
@@ -55,14 +60,16 @@ Where the matrix can be one of the following options:
For example:
`DISPLAY=:0 xinput set-prop "ADS7846 Touchscreen" 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1`
```sh
DISPLAY=:0 xinput set-prop "ADS7846 Touchscreen" 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
```
To make this permanent, modify the file `/etc/udev/rules.d/51-touchscreen.rules` and add following line:
```
```sh
ACTION=="add", ATTRS{name}=="<device name>", ENV{LIBINPUT_CALIBRATION_MATRIX}="<matrix>"
```
More info about input transformation can be found in:
* [Ubuntu wiki InputCoordinateTransformation]("https://wiki.ubuntu.com/X/InputCoordinateTransformation")
* [Libinput docs]("https://wayland.freedesktop.org/libinput/doc/1.9.0/absolute_axes.html")
* [Ubuntu wiki InputCoordinateTransformation](https://wiki.ubuntu.com/X/InputCoordinateTransformation)
* [Libinput docs](https://wayland.freedesktop.org/libinput/doc/1.9.0/absolute_axes.html)
+56 -34
View File
@@ -1,44 +1,42 @@
# Installation
#### Setup Raspberry Pi
This install process is meant for Raspbian non-desktop version aka Raspbian Lite.
## First steps
If you have installed it on the GUI version, then use `sudo raspi-config` to set boot to console by choosing the following options in order:
Install the screen, following the instructions provided by the manufacturer, Some screens don't neeed extra software but some need to be installed with a script.
It's strongly recommended to test it and ensure your hardware is working with Raspbian, Ubuntu or any distro you like.
Once you stablished that the screen is working, then proceed installing KlipperScreen.
* 1 System Options
* S5 Boot / Auto Login
* B1 Console
## Setup Raspberry Pi
This install process is meant for Raspbian non-desktop version aka Raspbian Lite, but it works on other versions.
#### Klipper and Moonraker Installation
If you want to use it on Raspbian desktop (GUI version), then use `sudo raspi-config` to set boot to console by choosing the following options in order:
Follow the instructions to install Klipper and Moonraker.
* klipper: https://www.klipper3d.org/Installation.html
* moonraker: https://moonraker.readthedocs.io/en/latest/installation/
In moonraker.conf ensure that 127.0.0.1 is a trusted client for moonraker, such as in this example:
```
[authorization]
trusted_clients:
127.0.0.1
```sh
1System Options
└──S5 Boot / Auto Login
└──B1 Console
```
Note: `force_logins: true` requires the moonraker api key in [KlipperScreen.conf](Configuration.md)
!!! note
Other distros will be different on how to boot to console.
If you wish to use the update manager feature of moonraker for KlipperScreen, add the following block into the moonraker
configuration:
```
[update_manager KlipperScreen]
type: git_repo
path: ~/KlipperScreen
origin: https://github.com/jordanruthe/KlipperScreen.git
env: ~/.KlipperScreen-env/bin/python
requirements: scripts/KlipperScreen-requirements.txt
install_script: scripts/KlipperScreen-install.sh
```
## Auto install
#### KlipperScreen Installation
[KIAUH](https://github.com/th33xitus/kiauh) is a tool that helps you install or upgrade Klipper, Moonraker, Mainsail, and other extensions.
![Screenshot](img/install/KIAUH.png)
You can visit [KIAUH on GitHub](https://github.com/th33xitus/kiauh) to learn more and view its documentation.
## Manual Install
First install [Klipper](https://www.klipper3d.org/Installation.html) and [Moonraker](https://moonraker.readthedocs.io/en/latest/installation/).
### KlipperScreen Installation
Execute the following commands:
```
```sh
cd ~/
git clone https://github.com/jordanruthe/KlipperScreen.git
cd ~/KlipperScreen
@@ -46,12 +44,36 @@ cd ~/KlipperScreen
```
This script will install packages that are listed under manual install, create a python virtual environment at
~/.KlipperScreen-env and install a systemd service file.
`~/.KlipperScreen-env` and install a systemd service file.
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.
If your screen needs additional software, proceed with the manufacturer instructions if they are provided
and check out the [hardware page](Hardware.md)
At this point KlipperScreen should be working, if it doesn't start then go to the [troubleshooting page](Troubleshooting.md)
## Moonraker configuration
In moonraker.conf ensure that 127.0.0.1 is a trusted client:
```py
[authorization]
trusted_clients:
127.0.0.1
```
!!! warning
`force_logins: true` requires the moonraker api key in [KlipperScreen.conf](Configuration.md)
If you wish to use the update manager feature of moonraker for KlipperScreen, add the following block to the moonraker.conf:
```py
[update_manager KlipperScreen]
type: git_repo
path: ~/KlipperScreen
origin: https://github.com/jordanruthe/KlipperScreen.git
env: ~/.KlipperScreen-env/bin/python
requirements: scripts/KlipperScreen-requirements.txt
install_script: scripts/KlipperScreen-install.sh
managed_services: KlipperScreen
```
!!! note
If you see warnings in other UIs ignore them until KlipperScreen finishes installing.
+60 -32
View File
@@ -4,11 +4,15 @@
![Main Menu](img/panels/main_panel.png)
### Job Status
```py
panel: job_status
```
![Job Status](img/panels/job_status.png)
### Bed Level
type: bed_level
```py
panel: bed_level
```
![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
@@ -24,76 +28,100 @@ for _Screws Calibrate_ will appear. This button runs the SCREWS_TILT_CALCULATE c
panel.
### Bed Mesh
type: bed_mesh theme:material-dark
```py
panel: bed_mesh
```
![Bed Mesh](img/panels/bed_mesh.png)
### Extrude
type: extrude theme:material-dark
```py
panel: extrude theme:material-dark
```
![Extrude](img/panels/extrude.png)
### Fan
type: fan
```py
panel: fan
```
![Fan](img/panels/fan.png)
### Fine Tune
type: fine_tune theme:custom
```py
panel: fine_tune
```
![Fine Tune Panel](img/panels/fine_tune.png)
### Gcode Macros
type: gcode_macros theme: material-darker
```py
panel: gcode_macros
```
![Gcode Macros Panel](img/panels/gcode_macros.png)
### Menu
type: menu
![Menu Panel](img/panels/menu.png)
### Move
type: move
```py
panel: move
```
![Move Panel](img/panels/move.png)
### Network
type: network
```py
panel: network
```
![Network Panel](img/panels/network.png)
### Power
type: power
```py
panel: power
```
![Power](img/panels/power.png)
### Print
type: print
```py
panel: print
```
![Print Panel](img/panels/print.png)
### Settings
type: settings theme:colorized
```py
panel: settings
```
![Settings](img/panels/settings.png)
### System
type: system
```py
panel: system
```
![System Panel](img/panels/system.png)
### Temperature
type: temperature theme:custom
```py
panel: temperature
```
![Temperature](img/panels/temperature.png)
### Z Calibrate
type: zcalibrate
```py
panel: zcalibrate
```
![Z Calibrate](img/panels/zcalibrate.png)
### Limits
type: limits theme: material-dark
```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)
+2 -2
View File
@@ -6,7 +6,7 @@ quick tips, without much explanation
As you probably already noticed, you can show and hide the gcode macros in the interface settings,
but you can also hide gcode macros by prefixing the name with an underscore.
```
```py
[gcode_macro MY_AWESOME_GCODE]
gcode:
_MY_HELPER_CODE
@@ -21,7 +21,7 @@ Another example:
Lets hide a temperature_fan:
```
```py
[temperature_fan fan1]
[temperature_fan _fan2]
```
+2 -2
View File
@@ -8,7 +8,7 @@ To edit colors and styles, create a css file named `style.css` you can use the c
### Example 1
```
```sh
cd ~/KlipperScreen/styles
mkdir -p mytheme/images
cd mytheme
@@ -24,7 +24,7 @@ At this point `mytheme` should be on the list of themes, and when you select it
Creating a custom background from Mainsail sidebar and this css using Z-bolt icons
```
```css
window { background-image: url("/home/pi/mainsail/img/background.svg");}
button {background-color: rgba(0,0,0,0); border-radius:2em;}
```
+1 -1
View File
@@ -1,6 +1,6 @@
## Create Translations
You can use a editor such as [poedit](https://poedit.net/) to assist in translations. This guide will assume that you
You can use an editor such as [poedit](https://poedit.net/) to assist in translations. This guide will assume that you
will be using poedit.
This guide will refer to `language designation`. This can be found from running `echo $LANG` on your pi, as long as you
+51 -18
View File
@@ -15,7 +15,8 @@ If that file is non-existent, run `journalctl -xe -u KlipperScreen`
Check the file `/var/log/Xorg.0.log` where you can find issues with the X server.
## Cannot open virtual Console
```
If you see this line in the logs:
```sh
xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
```
@@ -27,33 +28,61 @@ This should have the line `allowed_users=anybody` in it
If your username is not listed under that line, you need to add it with the following command:
`usermod -a -G tty pi` (if your username is not 'pi' change 'pi' to your username)
```sh
usermod -a -G tty pi
```
(if your username is not 'pi' change 'pi' to your username)
If it's still failing, try: `sudo apt install xserver-xorg-legacy`
You may also need:
```sh
sudo apt install xserver-xorg-legacy
```
As a last resort add `needs_root_rights=yes` to `/etc/X11/Xwrapper.config`
Restart KlipperScreen:
```sh
sudo service KlipperScreen restart
```
If it's still failing as a last resort add `needs_root_rights=yes` to `/etc/X11/Xwrapper.config`:
```sh
sudo echo needs_root_rights=yes>>/etc/X11/Xwrapper.config
```
restart KS.
## Screen shows console instead of KlipperScreen
If you have multiple framebuffers, you may need to fix the X11 configuration.
If you have multiple framebuffers, you may need to fix the X11 configuration,
list the available framebuffers and check the current one:
```sh
ls /dev/fb*
cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep /dev/fb
```
`ls /dev/fb*` will list the available framebuffers
`cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep /dev/fb` will show you the current one
If you have another fb, try changing it:
`sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf`
If you more than one, try changing it:
```sh
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
```
for example: change `/dev/fb0` to `/dev/fb1`
Once you have saved that file, restart KlipperScreen and it should show up on your display.
Once you have saved that file, restart KlipperScreen.
```sh
sudo service KlipperScreen restart
```
If you have multiple hdmi ports try the other one
## Screen is all white or blank or no signal
If the screen never shows the console even during startup, Then it's tipically an improperly installed screen,
follow the manufacturer instructions on how to physically connect the screen and install the proper drivers.
## The screen starts flashing colors or stays all blue/white or shows 'No signal' when idle
In KliperScreen settings find 'Screen DPMS' and turn it off.
Your screen doesn't seem to support turning off via software, the best you can do is to turn it all black.
## Touch not working on debian Bullseye
Some dsi screens have issues where touch doesn't work with debian bullseye, the current fix
@@ -63,14 +92,18 @@ Run `raspi-config` > go to Advanced > GL Driver > select G2 and reboot.
![config](img/troubleshooting/gldriver.png)
Or manually edit `/boot/config.txt` and change:
*Or*:
`dtoverlay=vc4-kms-v3d`
manually edit `/boot/config.txt` and change:
```sh
dtoverlay=vc4-kms-v3d
```
to:
`dtoverlay=vc4-fkms-v3d`
```sh
dtoverlay=vc4-fkms-v3d
```
and reboot, that should make the touch work, if your screen is rotated 180 degrees, then you may need to adjust
[the touch rotation](Hardware.md) as described in the Hardware page.
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+4 -4
View File
@@ -7,7 +7,7 @@ Load and Unload Filament macros are used in the Extrude-Panel if it is available
The selected speed is transferred to this macro.
The following example macros show how this can be used in the macro.
```
```py
[gcode_macro LOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(500) %}
@@ -16,7 +16,7 @@ gcode:
G1 E50 F{speed}
G92
```
```
```py
[gcode_macro UNLOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(500) %}
@@ -28,7 +28,7 @@ gcode:
this could be interesting to tweak the purge speed, this would be one Example Macro from alfrix:
```
```py
[gcode_macro LOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(300) %}
@@ -42,7 +42,7 @@ gcode:
M300
```
```
```py
[gcode_macro UNLOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(300) %}
+2 -2
View File
@@ -1,2 +1,2 @@
jinja2<3.1
mkdocs
mkdocs>=1.3.0
mkdocs-material>=8.2.16
+1 -3
View File
@@ -1,5 +1,4 @@
class KlippyGcodes:
HOME = "G28"
HOME_X = "G28 X"
HOME_Y = "G28 Y"
@@ -33,7 +32,6 @@ class KlippyGcodes:
RESTART = "RESTART"
FIRMWARE_RESTART = "FIRMWARE_RESTART"
@staticmethod
def set_bed_temp(temp):
return "%s S%s" % (KlippyGcodes.SET_BED_TEMP, str(temp))
@@ -52,7 +50,7 @@ class KlippyGcodes:
@staticmethod
def set_fan_speed(speed):
speed = str(int(float(int(speed) % 101)/100*255))
speed = str(int(float(int(speed) % 101) / 100 * 255))
return "%s S%s" % (KlippyGcodes.SET_FAN_SPEED, speed)
@staticmethod
+48 -29
View File
@@ -7,11 +7,12 @@ import pathlib
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, GdkPixbuf, Gio, Gtk, Pango
class KlippyGtk:
labels = {}
keyboard_ratio = .22
width_ratio = 16
height_ratio = 9.375
keyboard_ratio = .5
def __init__(self, screen, width, height, theme, cursor, fontsize_type):
self.screen = screen
@@ -29,9 +30,10 @@ class KlippyGtk:
))
if fontsize_type == "small":
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.header_size = int(round((self.width / self.width_ratio) / 1.33))
self.titlebar_height = self.font_size * 2
self.img_width = int(round(self.width / self.width_ratio))
self.img_height = int(round(self.height / self.height_ratio))
if self.screen.vertical_mode:
@@ -46,7 +48,7 @@ class KlippyGtk:
for key in self.color_list:
if "base" in self.color_list[key]:
rgb = [int(self.color_list[key]['base'][i:i+2], 16) for i in range(0, 6, 2)]
rgb = [int(self.color_list[key]['base'][i:i + 2], 16) for i in range(0, 6, 2)]
self.color_list[key]['rgb'] = rgb
logging.debug("img width: %s height: %s" % (self.img_width, self.img_height))
@@ -61,11 +63,17 @@ class KlippyGtk:
return self.width - self.action_bar_width
def get_content_height(self):
return self.height - self.header_size
if self.screen.vertical_mode:
return self.height - self.titlebar_height - self.action_bar_height
else:
return self.height - self.titlebar_height
def get_font_size(self):
return self.font_size
def get_titlebar_height(self):
return self.titlebar_height
def get_header_size(self):
return self.header_size
@@ -76,7 +84,7 @@ class KlippyGtk:
return self.img_height
def get_keyboard_height(self):
return (self.width - self.get_action_bar_width()) * self.keyboard_ratio
return self.get_content_height() * self.keyboard_ratio
def get_temp_color(self, device):
# logging.debug("Color list %s" % self.color_list)
@@ -89,14 +97,14 @@ class KlippyGtk:
rgb[1] = rgb[1] + self.color_list[device]['hsplit'] * self.color_list[device]['state']
self.color_list[device]['state'] += 1
color = '{:02X}{:02X}{:02X}'.format(rgb[0], rgb[1], rgb[2])
rgb = [x/255 for x in rgb]
rgb = [x / 255 for x in rgb]
# logging.debug("Assigning color: %s %s %s" % (device, rgb, color))
else:
colors = self.color_list[device]['colors']
if self.color_list[device]['state'] >= len(colors):
self.color_list[device]['state'] = 0
color = colors[self.color_list[device]['state'] % len(colors)]
rgb = [int(color[i:i+2], 16)/255 for i in range(0, 6, 2)]
rgb = [int(color[i:i + 2], 16) / 255 for i in range(0, 6, 2)]
self.color_list[device]['state'] += 1
# logging.debug("Assigning color: %s %s %s" % (device, rgb, color))
@@ -106,14 +114,13 @@ class KlippyGtk:
for key in self.color_list:
self.color_list[key]['state'] = 0
def Label(self, label, style=None):
la = Gtk.Label(label)
if style is not None and style is not False:
if style is not None:
la.get_style_context().add_class(style)
return la
def Image(self, image_name, scale=1):
def Image(self, image_name, scale=1.0):
filename = os.path.join(self.themedir, str(image_name) + ".svg")
if os.path.exists(filename):
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filename,
@@ -125,14 +132,14 @@ class KlippyGtk:
logging.error("Unable to find image %s", filename)
return Gtk.Image()
def PixbufFromFile(self, filename, style=False, width_scale=1, height_scale=1):
def PixbufFromFile(self, filename, width_scale=1, height_scale=1):
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filename,
int(round(self.img_width * width_scale)),
int(round(self.img_height * height_scale)),
True)
return pixbuf
def PixbufFromHttp(self, resource, style=False, width_scale=1, height_scale=1):
def PixbufFromHttp(self, resource, width_scale=1, height_scale=1):
response = self.screen.apiclient.get_thumbnail_stream(resource)
if response is False:
return None
@@ -143,10 +150,10 @@ class KlippyGtk:
True)
return pixbuf
def ProgressBar(self, style=False):
def ProgressBar(self, style=None):
bar = Gtk.ProgressBar()
if style is not False:
if style is not None:
ctx = bar.get_style_context()
ctx.add_class(style)
@@ -164,14 +171,15 @@ class KlippyGtk:
b.connect("clicked", self.screen.reset_screensaver_timeout)
return b
def ButtonImage(self, image_name, label=None, style=None, scale=1.38,
def ButtonImage(self, image_name=None, label=None, style=None, scale=1.38,
position=Gtk.PositionType.TOP, word_wrap=True):
b = Gtk.Button(label=label)
b.set_hexpand(True)
b.set_vexpand(True)
b.set_can_focus(False)
b.set_image(self.Image(image_name, scale))
if image_name is not None:
b.set_image(self.Image(image_name, scale))
b.set_image_position(position)
b.set_always_show_image(True)
@@ -201,7 +209,7 @@ class KlippyGtk:
button = dialog.get_children()[0].get_children()[0].get_children()[0].get_children()[i]
button.get_child().set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
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", callback, *args)
dialog.get_style_context().add_class("dialog")
@@ -222,8 +230,7 @@ class KlippyGtk:
return dialog
def ToggleButtonImage(self, image_name, label, style=False, scale=1.38):
def ToggleButtonImage(self, image_name, label, style=None, scale=1.38):
b = Gtk.ToggleButton(label=label)
b.set_hexpand(True)
@@ -233,7 +240,7 @@ class KlippyGtk:
b.set_image_position(Gtk.PositionType.TOP)
b.set_always_show_image(True)
if style is not False:
if style is not None:
ctx = b.get_style_context()
ctx.add_class(style)
@@ -256,6 +263,14 @@ class KlippyGtk:
b.connect("clicked", self.screen.reset_screensaver_timeout)
return b
def ScrolledWindow(self):
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
return scroll
def formatFileName(self, name):
name = name.split('/')[-1] if "/" in name else name
name = name.split('.gcod')[0] if ".gcode" in name else name
@@ -263,21 +278,25 @@ class KlippyGtk:
return name[0:25] + "\n" + name[25:50]
return name
def formatTimeString(self, seconds):
time = int(seconds)
text = ""
if int(time/86400) != 0:
text += str(int(time/86400))+"d "
if int(time/3600) != 0:
text += str(int(time/3600) % 24)+"h "
if int(time/60) != 0:
text += str(int(time/60) % 60)+"m "
if int(time / 86400) != 0:
text += str(int(time / 86400)) + "d "
if int(time / 3600) != 0:
text += str(int(time / 3600) % 24) + "h "
if int(time / 60) != 0:
text += str(int(time / 60) % 60) + "m "
else:
text = str(time % 60)+"s"
text = str(time % 60) + "s"
return text
def formatTemperatureString(self, temp, target):
if (target > temp-2 and target < temp+2) or round(target, 0) == 0:
if temp is None:
logging.debug("Temp is none")
return
if target is None:
target = 0
if (temp - 2 < target < temp + 2) or round(target, 0) == 0:
return str(round(temp, 1)) + "°C" # °C →"
return str(round(temp)) + " °C\n(" + str(round(target)) + ")"
+5 -2
View File
@@ -2,6 +2,7 @@ import json
import requests
import logging
class KlippyRest:
def __init__(self, ip, port=7125, api_key=False):
self.ip = ip
@@ -34,7 +35,8 @@ class KlippyRest:
headers = {} if self.api_key is False else {"x-api-key": self.api_key}
try:
r = requests.get(url, headers=headers)
except Exception:
except Exception as e:
logging.critical(e, exc_info=True)
return False
if r.status_code != 200:
return False
@@ -42,7 +44,8 @@ class KlippyRest:
# TODO: Try/except
try:
data = json.loads(r.content)
except Exception:
except Exception as e:
logging.critical(e, exc_info=True)
logging.exception("Unable to parse response from moonraker:\n %s" % r.content)
return False
+7 -3
View File
@@ -26,6 +26,7 @@ api = {
}
}
class KlippyWebsocket(threading.Thread):
_req_id = 0
connected = False
@@ -70,11 +71,12 @@ class KlippyWebsocket(threading.Thread):
if self.reconnect_count > 3:
self._screen.panels['splash_screen'].update_text(
_("Cannot connect to Moonraker") +
("\n\n%s\n\n") % self._url +
"\n\n%s\n\n" % self._url +
_("Retry #%s") % self.reconnect_count)
return False
token = self._screen.apiclient.get_oneshot_token()
except Exception:
except Exception as e:
logging.critical(e, exc_info=True)
logging.debug("Unable to get oneshot token")
return False
@@ -86,7 +88,8 @@ class KlippyWebsocket(threading.Thread):
try:
logging.debug("Starting websocket thread")
self._wst.start()
except Exception:
except Exception as e:
logging.critical(e, exc_info=True)
logging.debug("Error starting web socket")
def close(self):
@@ -193,6 +196,7 @@ class KlippyWebsocket(threading.Thread):
def on_error(self, ws, error):
logging.debug("Websocket error: %s" % error)
class MoonrakerApi:
def __init__(self, ws):
self._ws = ws
+41 -41
View File
@@ -12,19 +12,21 @@ from io import StringIO
from os import path
SCREEN_BLANKING_OPTIONS = [
"300", # 5 Minutes
"900", # 15 Minutes
"1800", # 30 Minutes
"3600", # 1 Hour
"7200", # 2 Hours
"300", # 5 Minutes
"900", # 15 Minutes
"1800", # 30 Minutes
"3600", # 1 Hour
"7200", # 2 Hours
"14400", # 4 Hours
]
klipperscreendir = pathlib.Path(__file__).parent.resolve().parent
class ConfigError(Exception):
pass
class KlipperScreenConfig:
config = None
configfile_name = "KlipperScreen.conf"
@@ -90,36 +92,29 @@ class KlipperScreenConfig:
item[name]['moonraker_api_key'] = "redacted"
logging.debug("Configured printers: %s" % json.dumps(conf_printers_debug, indent=2))
lang = self.get_main_config_option("language", None)
lang = self.get_main_config().get("language", None)
lang = [lang] if lang is not None and lang != "default" else None
logging.info("Detected language: %s" % lang)
self.lang = gettext.translation('KlipperScreen', localedir='ks_includes/locales', languages=lang,
fallback=True)
self.lang.install(names=['gettext', 'ngettext'])
self._create_configurable_options(screen)
def _create_configurable_options(self, screen):
_ = self.lang.gettext
_n = self.lang.ngettext
self.configurable_options = [
{"invert_x": {"section": "main", "name": _("Invert X"), "type": "binary", "value": "False"}},
{"invert_y": {"section": "main", "name": _("Invert Y"), "type": "binary", "value": "False"}},
{"invert_z": {"section": "main", "name": _("Invert Z"), "type": "binary", "value": "False"}},
{"language": {"section": "main", "name": _("Language"), "type": "dropdown", "value": "system_lang",
"callback": screen.restart_warning, "options": [
{"name": _("System") + " " + _("(default)"), "value": "system_lang"}
]}},
{"move_speed_xy": {
"section": "main", "name": _("XY Move Speed (mm/s)"), "type": "scale", "value": "20",
"range": [5, 200], "step": 1}},
{"move_speed_z": {
"section": "main", "name": _("Z Move Speed (mm/s)"), "type": "scale", "value": "20",
"range": [5, 200], "step": 1}},
{"print_sort_dir": {"section": "main", "type": None, "value": "name_asc"}},
{"language": {
"section": "main", "name": _("Language"), "type": "dropdown", "value": "system_lang",
"callback": screen.restart_warning, "options": [
{"name": _("System") + " " + _("(default)"), "value": "system_lang"}]}},
{"theme": {
"section": "main", "name": _("Icon Theme"), "type": "dropdown",
"value": "z-bolt", "callback": screen.restart_warning, "options": [
{"name": "Z-bolt" + " " + _("(default)"), "value": "z-bolt"}]}},
{"print_estimate_method": {
"section": "main", "name": _("Estimated Time Method"), "type": "dropdown",
"value": "file", "options": [
"value": "auto", "options": [
{"name": _("Auto") + " " + _("(default)"), "value": "auto"},
{"name": _("File"), "value": "file"},
{"name": _("Filament Used"), "value": "filament"},
@@ -129,10 +124,6 @@ class KlipperScreenConfig:
"value": "3600", "callback": screen.set_screenblanking_timeout, "options": [
{"name": _("Off"), "value": "off"}]
}},
{"theme": {
"section": "main", "name": _("Icon Theme"), "type": "dropdown",
"value": "z-bolt", "callback": screen.restart_warning, "options": [
{"name": "Z-bolt" + " " + _("(default)"), "value": "z-bolt"}]}},
{"24htime": {"section": "main", "name": _("24 Hour Time"), "type": "binary", "value": "True"}},
{"side_macro_shortcut": {
"section": "main", "name": _("Macro shortcut on sidebar"), "type": "binary",
@@ -152,13 +143,26 @@ class KlipperScreenConfig:
{"print_estimate_compensation": {
"section": "main", "name": _("Slicer Time correction (%)"), "type": "scale", "value": "100",
"range": [50, 150], "step": 1}},
# {"": {"section": "main", "name": _(""), "type": ""}}
]
# Options that are in panels and shouldn't be added to the main settings
panel_options = [
{"invert_x": {"section": "main", "name": _("Invert X"), "type": None, "value": "False"}},
{"invert_y": {"section": "main", "name": _("Invert Y"), "type": None, "value": "False"}},
{"invert_z": {"section": "main", "name": _("Invert Z"), "type": None, "value": "False"}},
{"move_speed_xy": {"section": "main", "name": _("XY Move Speed (mm/s)"), "type": None, "value": "50"}},
{"move_speed_z": {"section": "main", "name": _("Z Move Speed (mm/s)"), "type": None, "value": "10"}},
{"print_sort_dir": {"section": "main", "type": None, "value": "name_asc"}},
]
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[3]['language']['options']
lang_opt = self.configurable_options[0]['language']['options']
for lang in langs:
lang_opt.append({"name": lang, "value": lang})
@@ -166,7 +170,7 @@ class KlipperScreenConfig:
t_path = os.path.join(klipperscreendir, 'styles')
themes = [d for d in os.listdir(t_path) if (not os.path.isfile(os.path.join(t_path, d)) and d != "z-bolt")]
themes.sort()
theme_opt = self.configurable_options[9]['theme']['options']
theme_opt = self.configurable_options[1]['theme']['options']
for theme in themes:
theme_opt.append({"name": theme, "value": theme})
@@ -174,11 +178,11 @@ class KlipperScreenConfig:
index = self.configurable_options.index(
[i for i in self.configurable_options if list(i)[0] == "screen_blanking"][0])
for num in SCREEN_BLANKING_OPTIONS:
hour = int(int(num)/3600)
hour = int(int(num) / 3600)
if hour > 0:
name = str(hour) + " " + _n("hour", "hours", hour)
name = str(hour) + " " + ngettext("hour", "hours", hour)
else:
name = str(int(int(num)/60)) + " " + _("minutes")
name = str(int(int(num) / 60)) + " " + _("minutes")
self.configurable_options[index]['screen_blanking']['options'].append({
"name": name,
"value": num
@@ -255,7 +259,7 @@ class KlipperScreenConfig:
user_def.append(line.replace('\n', ''))
else:
if line.startswith(self.do_not_edit_prefix):
saved_def.append(line[(len(self.do_not_edit_prefix)+1):])
saved_def.append(line[(len(self.do_not_edit_prefix) + 1):])
return ["\n".join(user_def), None if saved_def is None else "\n".join(saved_def)]
def get_config_file_location(self, file):
@@ -287,9 +291,6 @@ class KlipperScreenConfig:
def get_main_config(self):
return self.config['main']
def get_main_config_option(self, option, default=None):
return self.config['main'].get(option, default)
def get_menu_items(self, menu="__main", subsection=""):
if subsection != "":
subsection = subsection + " "
@@ -309,7 +310,6 @@ class KlipperScreenConfig:
return False
return self.config[name].get('name')
def get_preheat_options(self):
index = "preheat "
items = [i[len(index):] for i in self.config.sections() if i.startswith(index)]
@@ -443,10 +443,10 @@ class KlipperScreenConfig:
return False
cfg = self.config[name]
item = {
"extruder": cfg.getint("extruder", 0),
"bed": cfg.getint("bed", 0),
"heater_generic": cfg.getint("heater_generic", 0),
"temperature_fan": cfg.getint("temperature_fan", 0),
"extruder": cfg.getint("extruder", None),
"bed": cfg.getint("bed", None),
"heater_generic": cfg.getint("heater_generic", None),
"temperature_fan": cfg.getint("temperature_fan", None),
"gcode": cfg.get("gcode", None)
}
return item
+14 -2
View File
@@ -1,5 +1,4 @@
[main]
service: KlipperScreen
[preheat PLA]
bed = 40
@@ -171,7 +170,7 @@ icon: complete
method: printer.gcode.script
params: {"script":"SAVE_CONFIG"}
confirm:
{{ gettext('Save configuration') }}
{{ gettext('Save configuration?') }}
{{ gettext('Klipper will reboot') }}
@@ -180,6 +179,12 @@ name: {{ gettext('Settings') }}
icon: settings
panel: settings
[menu __main config input_shaper]
name: {{ gettext('Input Shaper') }}
icon: move
panel: input_shaper
enable: {{ printer.input_shaper }}
[menu __print]
name: {{ gettext('Print Control') }}
@@ -195,6 +200,12 @@ icon: fan
panel: fan
enable: {{ printer.fans.count > 0 }}
[menu __print move]
name: {{ gettext('Move') }}
icon: move
panel: move
enable: {{ (printer.pause_resume.is_paused == True) }}
[menu __print extrude]
name: {{ gettext('Extrude') }}
icon: filament
@@ -262,6 +273,7 @@ panel: network
name: {{ gettext('System') }}
icon: info
panel: system
enable: {{ moonraker_connected }}
[menu __splashscreen settings]
name: {{ gettext('Settings') }}
+9 -20
View File
@@ -2,20 +2,17 @@ import logging
import os
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import GLib
class KlippyFiles():
class KlippyFiles:
def __init__(self, screen):
self._screen = screen
self.callbacks = []
self.files = {}
self.filelist = []
self.thumbnail_dir = "/tmp/.KS-thumbnails"
if not os.path.exists(self.thumbnail_dir):
os.makedirs(self.thumbnail_dir)
self.gcodes_path = None
def initialize(self):
@@ -23,7 +20,7 @@ class KlippyFiles():
if "virtual_sdcard" in self._screen.printer.get_config_section_list():
vsd = self._screen.printer.get_config_section("virtual_sdcard")
if "path" in vsd:
self.gcodes_path = vsd['path']
self.gcodes_path = os.path.expanduser(vsd['path'])
logging.info("Gcodes path: %s" % self.gcodes_path)
def reset(self):
@@ -31,7 +28,6 @@ class KlippyFiles():
self.callbacks = None
self.files = None
self.filelist = None
self.thumbnail_dir = None
self.gcodes_path = None
self._screen = None
@@ -150,22 +146,15 @@ class KlippyFiles():
return True
return False
def get_thumbnail_location(self, filename):
def get_thumbnail_location(self, filename, small=False):
thumb = self.files[filename]['thumbnails'][0]
if small and len(self.files[filename]['thumbnails']) > 1:
if self.files[filename]['thumbnails'][0]['width'] > self.files[filename]['thumbnails'][1]['width']:
thumb = self.files[filename]['thumbnails'][1]
if thumb['local'] is False:
return ['http', thumb['path']]
return ['file', thumb['path']]
def get_thumbnail_scale(self, filename):
width = self.files[filename]['thumbnails'][0]['width']
height = self.files[filename]['thumbnails'][0]['height']
logging.info("Thumb size: %d %d" % (width, height))
w = 400 / width
h = 300 / height
factor = min(w, h)
logging.info("Thumb scale w:%.2f h:%.2f final:%.2f" % (w, h, factor))
return factor
def has_thumbnail(self, filename):
if filename not in self.files:
return False
@@ -190,7 +179,7 @@ class KlippyFiles():
self.run_callbacks(deletedfiles=[filename])
def ret_file_data(self, filename):
print("Getting file info for %s" % (filename))
print("Getting file info for %s" % filename)
self._screen._ws.klippy.get_file_metadata(filename, self._callback)
def run_callbacks(self, newfiles=[], deletedfiles=[], mods=[]):
+18 -4
View File
@@ -17,6 +17,7 @@ try:
ctypes.cdll.LoadLibrary('libXext.so.6')
libXext = ctypes.CDLL('libXext.so.6')
class DPMS_State:
Fail = -1
On = 0
@@ -24,6 +25,7 @@ try:
Suspend = 2
Off = 3
def get_DPMS_state(display_name_in_byte_string=b':0'):
state = DPMS_State.Fail
if not isinstance(display_name_in_byte_string, bytes):
@@ -35,8 +37,8 @@ try:
dummy1_i_p = ctypes.create_string_buffer(8)
dummy2_i_p = ctypes.create_string_buffer(8)
if display.value:
if libXext.DPMSQueryExtension(display, dummy1_i_p, dummy2_i_p)\
and libXext.DPMSCapable(display):
if libXext.DPMSQueryExtension(display, dummy1_i_p, dummy2_i_p) \
and libXext.DPMSCapable(display):
onoff_p = ctypes.create_string_buffer(1)
state_p = ctypes.create_string_buffer(2)
if libXext.DPMSInfo(display, state_p, onoff_p):
@@ -45,14 +47,18 @@ try:
state = struct.unpack('H', state_p.raw)[0]
libXext.XCloseDisplay(display)
return state
dpms_loaded = True
except Exception:
pass
def get_network_interfaces():
stream = os.popen("ip addr | grep ^'[0-9]' | cut -d ' ' -f 2 | grep -o '[a-zA-Z0-9\\.]*'")
return [i for i in stream.read().strip().split('\n') if not i.startswith('lo')]
def get_wireless_interfaces():
p = subprocess.Popen(["which", "iwconfig"], stdout=subprocess.PIPE)
@@ -64,7 +70,8 @@ def get_wireless_interfaces():
try:
p = subprocess.Popen(["iwconfig"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
result = p.stdout.read().decode('ascii').split('\n')
except Exception:
except Exception as e:
logging.critical(e, exc_info=True)
logging.info("Error with running iwconfig command")
return None
interfaces = []
@@ -75,6 +82,7 @@ def get_wireless_interfaces():
return interfaces
def get_software_version():
prog = ('git', '-C', os.path.dirname(__file__), 'describe', '--always',
'--tags', '--long', '--dirty')
@@ -94,6 +102,7 @@ def get_software_version():
logging.exception("Error runing git describe")
return "?"
def patch_threading_excepthook():
"""Installs our exception handler into the threading modules Thread object
Inspired by https://bugs.python.org/issue1230540
@@ -111,15 +120,18 @@ def patch_threading_excepthook():
raise
except Exception:
sys.excepthook(*sys.exc_info(), thread_identifier=threading.get_ident())
self.run = run_with_excepthook
threading.Thread.__init__ = new_init
# Timed rotating file handler based on Klipper and Moonraker's implementation
class KlipperScreenLoggingHandler(logging.handlers.TimedRotatingFileHandler):
def __init__(self, software_version, filename, **kwargs):
super(KlipperScreenLoggingHandler, self).__init__(filename, **kwargs)
self.rollover_info = {
'header': f"{'-'*20}KlipperScreen Log Start{'-'*20}",
'header': f"{'-' * 20}KlipperScreen Log Start{'-' * 20}",
'version': f"Git Version: {software_version}",
}
lines = [line for line in self.rollover_info.values() if line]
@@ -135,6 +147,7 @@ class KlipperScreenLoggingHandler(logging.handlers.TimedRotatingFileHandler):
if self.stream is not None:
self.stream.write("\n".join(lines) + "\n")
# Logging based on Arksine's logging setup
def setup_logging(log_file, software_version):
root_logger = logging.getLogger()
@@ -164,6 +177,7 @@ def setup_logging(log_file, software_version):
def logging_exception_handler(type, value, tb, thread_identifier=None):
logging.exception(
"Uncaught exception %s: %s\nTraceback: %s" % (type, value, "\n".join(traceback.format_tb(tb))))
sys.excepthook = logging_exception_handler
logging.captureWarnings(True)
+131 -11
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -31,9 +31,15 @@ msgstr ""
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr ""
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr ""
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr ""
@@ -46,6 +52,17 @@ msgstr ""
msgid "Add bed mesh profile"
msgstr ""
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr ""
@@ -64,6 +81,9 @@ msgstr ""
msgid "Auto"
msgstr ""
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr ""
@@ -79,9 +99,15 @@ msgstr ""
msgid "Calibrate"
msgstr ""
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr ""
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr ""
@@ -108,6 +134,12 @@ msgid ""
"Please submit an issue on GitHub for help."
msgstr ""
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr ""
@@ -154,9 +186,6 @@ msgstr ""
msgid "Disable XY"
msgstr ""
msgid "Displayed Macros"
msgstr ""
msgid "Distance (mm)"
msgstr ""
@@ -191,9 +220,24 @@ msgstr ""
msgid "Filament Used"
msgstr ""
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr ""
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr ""
@@ -205,6 +249,12 @@ msgid ""
"Restart"
msgstr ""
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr ""
@@ -216,6 +266,9 @@ msgstr ""
msgid "Go Back"
msgstr ""
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr ""
@@ -225,6 +278,9 @@ msgstr ""
msgid "Hide sensors in Temp."
msgstr ""
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr ""
@@ -261,6 +317,9 @@ msgstr ""
msgid "Initializing printer..."
msgstr ""
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr ""
@@ -302,6 +361,9 @@ msgstr ""
msgid "Large"
msgstr ""
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr ""
@@ -323,7 +385,10 @@ msgstr ""
msgid "Main Menu"
msgstr ""
msgid "Max Accelation"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
@@ -332,6 +397,15 @@ msgstr ""
msgid "Max Velocity"
msgstr ""
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr ""
@@ -356,6 +430,9 @@ msgstr ""
msgid "Network"
msgstr ""
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr ""
@@ -395,6 +472,9 @@ msgstr ""
msgid "Power On Printer"
msgstr ""
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr ""
@@ -410,6 +490,9 @@ msgstr ""
msgid "Printing"
msgstr ""
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr ""
@@ -440,6 +523,15 @@ msgstr ""
msgid "Retract"
msgstr ""
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr ""
@@ -450,7 +542,17 @@ msgstr ""
msgid "Save Config"
msgstr ""
msgid "Save configuration"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
@@ -490,12 +592,18 @@ msgstr ""
msgid "Slicer Time correction (%)"
msgstr ""
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr ""
msgid "Sort by: "
msgstr ""
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr ""
@@ -505,6 +613,9 @@ msgstr ""
msgid "Speed -"
msgstr ""
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr ""
@@ -543,9 +654,6 @@ msgstr ""
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr ""
msgid "Tool"
msgstr ""
msgid "Total:"
msgstr ""
@@ -555,6 +663,12 @@ msgstr ""
msgid "Unload"
msgstr ""
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr ""
@@ -579,6 +693,9 @@ msgstr ""
msgid "XY Move Speed (mm/s)"
msgstr ""
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr ""
@@ -591,12 +708,15 @@ msgstr ""
msgid "Z Move Speed (mm/s)"
msgstr ""
msgid "Z Position"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr ""
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr ""
@@ -625,5 +745,5 @@ msgstr ""
msgid "mm/s"
msgstr ""
msgid "mm/s^2"
msgid "mm/s²"
msgstr ""
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: SRBJ\n"
"Language-Team: \n"
@@ -26,9 +26,15 @@ msgstr "24-timers visning"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "En FIRMWARE_RESTART kan løse problemet."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Annuller"
msgid "Acceleration:"
msgstr "Acceleration:"
msgid "Accept"
msgstr "OK"
@@ -41,6 +47,17 @@ msgstr "Tilføj printer"
msgid "Add bed mesh profile"
msgstr "Tilføj \"bed-mesh\" profil"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Er du sikker på, at du vil køre nødstop?"
@@ -59,6 +76,9 @@ msgstr "Er du sikker på du vil lukke systemet?"
msgid "Auto"
msgstr "Auto"
msgid "Auto-calibrate"
msgstr "Automatisk kalibrering"
msgid "Auto-scroll"
msgstr "Auto-scroll"
@@ -74,9 +94,15 @@ msgstr "Bltouch fundet anvendt offset"
msgid "Calibrate"
msgstr "Kalibrér"
msgid "Calibrated"
msgstr "Kalibreret"
msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibreret, gem konfiguration for at gøre den permanent"
msgid "Calibrating..."
msgstr "Kalibrerer..."
msgid "Can't set above the maximum:"
msgstr "Kan ikke indstilles over maksimum:"
@@ -105,6 +131,12 @@ msgstr ""
"Tjek /tmp/KlipperScreen.log for mere information.\n"
"Indsend venligst et \"Issue\" på GitHub for hjælp."
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Luk"
@@ -151,9 +183,6 @@ msgstr "Deaktivér motorer"
msgid "Disable XY"
msgstr "Deaktivér XY"
msgid "Displayed Macros"
msgstr "Viste makroer"
msgid "Distance (mm)"
msgstr "Længde (mm)"
@@ -188,9 +217,24 @@ msgstr "Blæser"
msgid "Filament Used"
msgstr "Filament forbrug"
msgid "Filament total:"
msgstr "Filament i alt:"
msgid "Filament used:"
msgstr "Filament brugt:"
msgid "Filament:"
msgstr "Filament:"
msgid "File"
msgstr "Fil"
msgid "File:"
msgstr "Fil:"
msgid "Finding ADXL"
msgstr "At finde ADXL"
msgid "Fine Tuning"
msgstr "Finjustering"
@@ -204,6 +248,12 @@ msgstr ""
"Firmware\n"
"Genstart"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Skriftstørrelse"
@@ -217,6 +267,9 @@ msgstr ""
msgid "Go Back"
msgstr "Gå tilbage"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Skjult"
@@ -226,6 +279,9 @@ msgstr "Skjule"
msgid "Hide sensors in Temp."
msgstr "Skjul sensorer i Temp."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Home"
@@ -262,6 +318,9 @@ msgstr "Initialiserer"
msgid "Initializing printer..."
msgstr "Initialiserer printer..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Interface"
@@ -305,6 +364,9 @@ msgstr "Sprog"
msgid "Large"
msgstr "Stor"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Resterende:"
@@ -326,8 +388,11 @@ msgstr "Makroer"
msgid "Main Menu"
msgstr "Hovedmenu"
msgid "Max Accelation"
msgstr "Maks. acceleration"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "Maks. Acceleration"
msgid "Max Acceleration to Deceleration"
msgstr "Maks. acceleration til decceleration"
@@ -335,6 +400,15 @@ msgstr "Maks. acceleration til decceleration"
msgid "Max Velocity"
msgstr "Maks. hastighed"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Mellem"
@@ -359,6 +433,9 @@ msgstr "Navn"
msgid "Network"
msgstr "Netværk"
msgid "New"
msgstr "Ny"
msgid "Nothing selected"
msgstr "Intet valgt"
@@ -398,6 +475,9 @@ msgstr "Strømstyring"
msgid "Power On Printer"
msgstr "Tænd printer"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Print"
@@ -413,6 +493,9 @@ msgstr "Printer forbindelser"
msgid "Printing"
msgstr "Printer"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe fundet anvendt offset"
@@ -443,6 +526,15 @@ msgstr "Genoptag"
msgid "Retract"
msgstr "Retract"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "Prøv igen #%s"
@@ -453,9 +545,19 @@ msgstr "Gem"
msgid "Save Config"
msgstr "Gem Konfiguration"
msgid "Save configuration"
msgid "Save Z"
msgstr "Gem Z"
msgid "Save configuration?"
msgstr "Gem Konfiguration"
msgid "Saved"
msgstr "Gemt"
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Skærm DPMS"
@@ -493,12 +595,18 @@ msgstr "Slicer"
msgid "Slicer Time correction (%)"
msgstr "Slicer Tidskorrektion (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Lille"
msgid "Sort by: "
msgstr "Sortér efter: "
msgid "Sort:"
msgstr "Sortere: "
msgid "Speed (mm/s)"
msgstr "Hastighed (mm/s)"
@@ -508,6 +616,9 @@ msgstr "Hastighed +"
msgid "Speed -"
msgstr "Hastighed -"
msgid "Speed:"
msgstr "Hastighed"
msgid "Square Corner Velocity"
msgstr "Hastighed for 90° hjørne"
@@ -550,9 +661,6 @@ msgstr "Temperatur"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "KlipperScreen skal genstartes for at anvende %s"
msgid "Tool"
msgstr "Ekstruder"
msgid "Total:"
msgstr "Total:"
@@ -562,6 +670,12 @@ msgstr "Ukendt varmelegeme"
msgid "Unload"
msgstr "Tilbagetræk"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "Up-to-Date"
@@ -586,6 +700,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY Flyt hastighed (mm/s)"
msgid "XY Speed (mm/s)"
msgstr "XY Hastighed (mm/s)"
msgid "Y+"
msgstr "Y+"
@@ -598,12 +715,15 @@ msgstr "Kalibrér Z"
msgid "Z Move Speed (mm/s)"
msgstr "Z Flyt hastighed (mm/s)"
msgid "Z Position"
msgstr "Z-position"
msgid "Z Speed (mm/s)"
msgstr "Z Hastighed (mm/s)"
msgid "Z Tilt"
msgstr "Z-tilt"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -632,8 +752,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Ekstruder"
#~ msgid "Displayed Macros"
#~ msgstr "Viste makroer"
#~ msgid "Z Position"
#~ msgstr "Z-position"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -641,9 +770,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Z-offset"
#~ msgid "Unknown Heater "
#~ msgstr "Ukendt varmelegeme "
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-03-31 10:43-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -31,9 +31,15 @@ msgstr "24h-Zeit"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "Ein FIRMWARE_RESTART kann das Problem beheben."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Abbrechen"
msgid "Acceleration:"
msgstr "Beschleunigung:"
msgid "Accept"
msgstr "OK"
@@ -46,6 +52,17 @@ msgstr "Drucker hinzufügen"
msgid "Add bed mesh profile"
msgstr "Mesh-Level Profil hinzufügen"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Sind Sie sicher, dass Sie Not-Aus ausführen möchten?"
@@ -64,6 +81,9 @@ msgstr "Möchten Sie das System wirklich herunterfahren?"
msgid "Auto"
msgstr "Auto"
msgid "Auto-calibrate"
msgstr "Automatisch kalibrieren"
msgid "Auto-scroll"
msgstr "Auto-scroll"
@@ -79,9 +99,15 @@ msgstr "Bltouch hat angewendeten Offset gefunden"
msgid "Calibrate"
msgstr "Höheneinstellung"
msgid "Calibrated"
msgstr "Kalibriert"
msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibriert, Konfiguration speichern, um sie dauerhaft zu machen"
msgid "Calibrating..."
msgstr "Kalibrieren..."
msgid "Can't set above the maximum:"
msgstr "Kann nicht über dem Maximum eingestellt werden:"
@@ -110,6 +136,12 @@ 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"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Schließen"
@@ -156,9 +188,6 @@ msgstr "Motoren deaktivieren"
msgid "Disable XY"
msgstr "Achse XY deaktivieren"
msgid "Displayed Macros"
msgstr "Aktive Macros"
msgid "Distance (mm)"
msgstr "Entfernung (mm)"
@@ -193,9 +222,24 @@ msgstr "Lüfter"
msgid "Filament Used"
msgstr "Filamentverbrauch"
msgid "Filament total:"
msgstr "Filament insgesamt:"
msgid "Filament used:"
msgstr "Filamentverbrauch:"
msgid "Filament:"
msgstr "Filament:"
msgid "File"
msgstr "Datei"
msgid "File:"
msgstr "Datei:"
msgid "Finding ADXL"
msgstr "ADXL finden"
msgid "Fine Tuning"
msgstr "Feintuning"
@@ -209,6 +253,12 @@ msgstr ""
"Firmware\n"
"Neu starten"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Schriftgröße"
@@ -222,6 +272,9 @@ msgstr ""
msgid "Go Back"
msgstr "Zurück"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Versteckt"
@@ -231,6 +284,9 @@ msgstr "Verstecken"
msgid "Hide sensors in Temp."
msgstr "Sensoren in Temp ausblenden."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Grundposition"
@@ -277,6 +333,9 @@ msgstr "Startvorgang"
msgid "Initializing printer..."
msgstr "Drucker wird initialisiert..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Interface"
@@ -320,6 +379,9 @@ msgstr "Sprache"
msgid "Large"
msgstr "Groß"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Restzeit:"
@@ -341,7 +403,10 @@ msgstr "Makros"
msgid "Main Menu"
msgstr "Hauptmenü"
msgid "Max Accelation"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "Max Beschleunigung"
msgid "Max Acceleration to Deceleration"
@@ -350,6 +415,15 @@ msgstr "Max Verzögerung"
msgid "Max Velocity"
msgstr "Max Geschwindigkeit"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Mittel"
@@ -374,6 +448,9 @@ msgstr "Name"
msgid "Network"
msgstr "Netzwerk"
msgid "New"
msgstr "Neu"
msgid "Nothing selected"
msgstr "Nichts ausgewählt"
@@ -413,6 +490,9 @@ msgstr "Ein"
msgid "Power On Printer"
msgstr "Drucker einschalten"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Druck"
@@ -428,6 +508,9 @@ msgstr "Drucker Verbindungen"
msgid "Printing"
msgstr "Drucken"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe hat angewendeten Offset gefunden"
@@ -440,13 +523,9 @@ msgstr "Quad Gantry Level"
msgid "Raise Nozzle"
msgstr "Düse anheben"
# Respect the number of characters!
# english text barely fits in small screens
msgid "Recover Hard"
msgstr "Rücksetzen Hard"
# Respect the number of characters!
# english text barely fits in small screens
msgid "Recover Soft"
msgstr "Rücksetzen Soft"
@@ -462,6 +541,15 @@ msgstr "Fortsetzen"
msgid "Retract"
msgstr "Zurückziehen"
msgid "Retraction"
msgstr "Rückzug"
msgid "Retraction Length"
msgstr "Rückzugslänge"
msgid "Retraction Speed"
msgstr "Rückzugsgeschwindigkeit"
#, python-format
msgid "Retry #%s"
msgstr "Wiederholen #%s"
@@ -472,8 +560,18 @@ msgstr "Speichern"
msgid "Save Config"
msgstr "Einstellungen speichern"
msgid "Save configuration"
msgstr "Speichere Einstellungen"
msgid "Save Z"
msgstr "Speichern Sie Z"
msgid "Save configuration?"
msgstr "Konfiguration speichern?"
msgid "Saved"
msgstr "Gerettet"
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Bildschirm-DPMS"
@@ -512,12 +610,18 @@ msgstr "Slicer"
msgid "Slicer Time correction (%)"
msgstr "Slicer-Zeitkorrektur (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Klein"
msgid "Sort by: "
msgstr "Sortierung: "
msgid "Sort:"
msgstr "Sortieren: "
msgid "Speed (mm/s)"
msgstr "Geschwindigkeit (mm/s)"
@@ -527,6 +631,9 @@ msgstr "Geschwindigkeit +"
msgid "Speed -"
msgstr "Geschwindigkeit -"
msgid "Speed:"
msgstr "Geschwindigkeit:"
msgid "Square Corner Velocity"
msgstr "Eckgeschwindigkeit"
@@ -569,9 +676,6 @@ msgstr "Temperatur"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Zum Übernehmen von %s benötigt Klipperscreen einen Neustart"
msgid "Tool"
msgstr "Druckkopf"
msgid "Total:"
msgstr "Gesamt:"
@@ -581,6 +685,12 @@ msgstr "Unbekannte Heizung"
msgid "Unload"
msgstr "Entladen"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
# Respect the number of characters
# english text barely fits in small screens
msgid "Up To Date"
@@ -607,6 +717,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY Bewegungsgeschwindigkeit (mm/s)"
msgid "XY Speed (mm/s)"
msgstr "XY Geschwindigkeit (mm/s)"
msgid "Y+"
msgstr "Y+"
@@ -619,12 +732,15 @@ msgstr "Höhe Kalibrieren"
msgid "Z Move Speed (mm/s)"
msgstr "Z Bewegungsgeschwindigkeit (mm/s)"
msgid "Z Position"
msgstr "Z-Position"
msgid "Z Speed (mm/s)"
msgstr "Z Geschwindigkeit (mm/s)"
msgid "Z Tilt"
msgstr "Z-Achse ausrichten"
msgid "Z offset:"
msgstr "Z Offset:"
msgid "Z+"
msgstr "Z+"
@@ -653,8 +769,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Druckkopf"
#~ msgid "Displayed Macros"
#~ msgstr "Aktive Macros"
#~ msgid "Z Position"
#~ msgstr "Z-Position"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -662,9 +787,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Z Offset"
#~ msgid "Unknown Heater "
#~ msgstr "Unbekannte Heizung "
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -26,9 +26,15 @@ msgstr ""
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr ""
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr ""
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr ""
@@ -41,6 +47,17 @@ msgstr ""
msgid "Add bed mesh profile"
msgstr ""
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr ""
@@ -59,6 +76,9 @@ msgstr ""
msgid "Auto"
msgstr ""
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr ""
@@ -74,9 +94,15 @@ msgstr ""
msgid "Calibrate"
msgstr ""
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr ""
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr ""
@@ -103,6 +129,12 @@ msgid ""
"Please submit an issue on GitHub for help."
msgstr ""
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr ""
@@ -149,9 +181,6 @@ msgstr ""
msgid "Disable XY"
msgstr ""
msgid "Displayed Macros"
msgstr ""
msgid "Distance (mm)"
msgstr ""
@@ -186,9 +215,24 @@ msgstr ""
msgid "Filament Used"
msgstr ""
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr ""
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr ""
@@ -200,6 +244,12 @@ msgid ""
"Restart"
msgstr ""
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr ""
@@ -211,6 +261,9 @@ msgstr ""
msgid "Go Back"
msgstr ""
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr ""
@@ -220,6 +273,9 @@ msgstr ""
msgid "Hide sensors in Temp."
msgstr ""
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr ""
@@ -256,6 +312,9 @@ msgstr ""
msgid "Initializing printer..."
msgstr ""
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr ""
@@ -297,6 +356,9 @@ msgstr ""
msgid "Large"
msgstr ""
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr ""
@@ -318,7 +380,10 @@ msgstr ""
msgid "Main Menu"
msgstr ""
msgid "Max Accelation"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
@@ -327,6 +392,15 @@ msgstr ""
msgid "Max Velocity"
msgstr ""
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr ""
@@ -351,6 +425,9 @@ msgstr ""
msgid "Network"
msgstr ""
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr ""
@@ -390,6 +467,9 @@ msgstr ""
msgid "Power On Printer"
msgstr ""
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr ""
@@ -405,6 +485,9 @@ msgstr ""
msgid "Printing"
msgstr ""
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr ""
@@ -435,6 +518,15 @@ msgstr ""
msgid "Retract"
msgstr ""
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr ""
@@ -445,7 +537,17 @@ msgstr ""
msgid "Save Config"
msgstr ""
msgid "Save configuration"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
@@ -485,12 +587,18 @@ msgstr ""
msgid "Slicer Time correction (%)"
msgstr ""
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr ""
msgid "Sort by: "
msgstr ""
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr ""
@@ -500,6 +608,9 @@ msgstr ""
msgid "Speed -"
msgstr ""
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr ""
@@ -538,9 +649,6 @@ msgstr ""
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr ""
msgid "Tool"
msgstr ""
msgid "Total:"
msgstr ""
@@ -550,6 +658,12 @@ msgstr ""
msgid "Unload"
msgstr ""
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr ""
@@ -574,6 +688,9 @@ msgstr ""
msgid "XY Move Speed (mm/s)"
msgstr ""
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr ""
@@ -586,12 +703,15 @@ msgstr ""
msgid "Z Move Speed (mm/s)"
msgstr ""
msgid "Z Position"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr ""
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr ""
@@ -620,5 +740,5 @@ msgstr ""
msgid "mm/s"
msgstr ""
msgid "mm/s^2"
msgid "mm/s²"
msgstr ""
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"PO-Revision-Date: 2022-03-31 10:46-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-06-02 13:54-0300\n"
"Last-Translator: alfrix\n"
"Language-Team: \n"
"Language: es\n"
@@ -31,9 +31,15 @@ msgstr "Formato 24 Horas"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "Un FIRMWARE_RESTART puede solucionar el problema."
msgid "ADXL Not Configured"
msgstr "ADXL No Configurado"
msgid "Abort"
msgstr "Cancelar"
msgid "Acceleration:"
msgstr "Aceleración:"
msgid "Accept"
msgstr "Aceptar"
@@ -46,6 +52,17 @@ msgstr "Agregar impresora"
msgid "Add bed mesh profile"
msgstr "Agregar pefil de malla de cama"
msgid "Apply"
msgstr "Aplicar"
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr "Aplicar %.2f desfase al final de carrera?"
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr "Aplicar %s%.2f desfase al sensor?"
msgid "Are you sure you want to run Emergency Stop?"
msgstr "¿Parada de emergencia?"
@@ -64,6 +81,9 @@ msgstr "Está seguro que desea apagar el sistema?"
msgid "Auto"
msgstr "Auto"
msgid "Auto-calibrate"
msgstr "Auto-Calibrar"
msgid "Auto-scroll"
msgstr "Auto-scroll"
@@ -79,9 +99,15 @@ msgstr "Encontrado Bltouch aplicado desfase"
msgid "Calibrate"
msgstr "Calibrar"
msgid "Calibrated"
msgstr "Calibrado"
msgid "Calibrated, save configuration to make it permanent"
msgstr "Calibrado, guarde su configuración para hacerlo permanente"
msgid "Calibrating..."
msgstr "Calibrando..."
msgid "Can't set above the maximum:"
msgstr "Error: Valor sobre el máximo:"
@@ -110,6 +136,12 @@ msgstr ""
"Revise /tmp/KlipperScreen.log para mas información.\n"
"Por favor crear un 'issue' en GitHub para ser ayudado."
msgid "Check ADXL Wiring"
msgstr "Verificar cableado del ADXL"
msgid "Clear"
msgstr "Limpiar"
msgid "Close"
msgstr "Cerrar"
@@ -156,9 +188,6 @@ msgstr "Desactivar Motores"
msgid "Disable XY"
msgstr "Desactivar XY"
msgid "Displayed Macros"
msgstr "Macros mostrados"
msgid "Distance (mm)"
msgstr "Distancia (mm)"
@@ -193,9 +222,24 @@ msgstr "Ventilador"
msgid "Filament Used"
msgstr "Filamento Usado"
msgid "Filament total:"
msgstr "Filamento total:"
msgid "Filament used:"
msgstr "Filamento usado:"
msgid "Filament:"
msgstr "Filamento:"
msgid "File"
msgstr "Archivo"
msgid "File:"
msgstr "Archivo:"
msgid "Finding ADXL"
msgstr "Buscando ADXL"
msgid "Fine Tuning"
msgstr "Ajuste Fino"
@@ -209,6 +253,12 @@ msgstr ""
"Reiniciar\n"
"Firmware"
msgid "Flow:"
msgstr "Flujo:"
msgid "Flowrate:"
msgstr "Flujo:"
msgid "Font Size"
msgstr "Tamaño del texto"
@@ -222,6 +272,9 @@ msgstr ""
msgid "Go Back"
msgstr "Volver"
msgid "Height:"
msgstr "Alto:"
msgid "Hidden"
msgstr "Oculto"
@@ -231,6 +284,9 @@ msgstr "Ocultar"
msgid "Hide sensors in Temp."
msgstr "Ocultar sensores en Temp."
msgid "Hide temp."
msgstr "Ocultar temp."
msgid "Home"
msgstr "Inicio"
@@ -267,6 +323,9 @@ msgstr "Iniciando"
msgid "Initializing printer..."
msgstr "Iniciando Impresora..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Interfaz"
@@ -310,6 +369,9 @@ msgstr "Idioma"
msgid "Large"
msgstr "Grande"
msgid "Layer:"
msgstr "Capa:"
msgid "Left:"
msgstr "Restante:"
@@ -331,8 +393,11 @@ msgstr "Macros"
msgid "Main Menu"
msgstr "Menú"
msgid "Max Accelation"
msgstr "Max. Aceleración"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "Aceleración Max."
msgid "Max Acceleration to Deceleration"
msgstr "Max. Aceleración a Desaceleración"
@@ -340,6 +405,15 @@ msgstr "Max. Aceleración a Desaceleración"
msgid "Max Velocity"
msgstr "Max. Velocidad"
msgid "Measure Both"
msgstr "Medir Ambos"
msgid "Measure X"
msgstr "Medir X"
msgid "Measure Y"
msgstr "Medir Y"
msgid "Medium"
msgstr "Medio"
@@ -364,6 +438,9 @@ msgstr "Nombre"
msgid "Network"
msgstr "Red"
msgid "New"
msgstr "Nuevo"
msgid "Nothing selected"
msgstr "Nada seleccionado"
@@ -392,7 +469,7 @@ msgid "Paused"
msgstr "Pausado"
msgid "Perform a full upgrade?"
msgstr " ¿Actualizar Todo?"
msgstr "¿Actualizar Todo?"
msgid "Please recompile and flash the micro-controller."
msgstr "Por favor recompile y flashee el micro-controlador."
@@ -403,6 +480,9 @@ msgstr "Energía"
msgid "Power On Printer"
msgstr "Encender Impresora"
msgid "Pressure Advance:"
msgstr "Avance de presión:"
msgid "Print"
msgstr "Imprimir"
@@ -418,6 +498,9 @@ msgstr "Conexiones a impresoras"
msgid "Printing"
msgstr "Imprimiendo"
msgid "Probe Offset"
msgstr "Desfase del sensor"
msgid "Probe found applied offset"
msgstr "Encontrado Probe aplicado desfase"
@@ -448,6 +531,15 @@ msgstr "Continuar"
msgid "Retract"
msgstr "Retraer"
msgid "Retraction"
msgstr "Retracción"
msgid "Retraction Length"
msgstr "Largo de Retracción"
msgid "Retraction Speed"
msgstr "Velocidad de Retracción"
#, python-format
msgid "Retry #%s"
msgstr "Intento #%s"
@@ -458,8 +550,18 @@ msgstr "Guardar"
msgid "Save Config"
msgstr "Guardar Config"
msgid "Save configuration"
msgstr "Guardar Configuración"
msgid "Save Z"
msgstr "Guardar Z"
msgid "Save configuration?"
msgstr "Guardar Configuración?"
msgid "Saved"
msgstr "Guardado"
#, python-format
msgid "Saved offset: %s"
msgstr "Desfase Guardado: %s"
msgid "Screen DPMS"
msgstr "Pantalla DPMS"
@@ -498,12 +600,18 @@ msgstr "Slicer"
msgid "Slicer Time correction (%)"
msgstr "Corrección del tiempo del Slicer (%)"
msgid "Slicer:"
msgstr "Slicer:"
msgid "Small"
msgstr "Pequeño"
msgid "Sort by: "
msgstr "Ordenar por: "
msgid "Sort:"
msgstr "Ordenar:"
msgid "Speed (mm/s)"
msgstr "Velocidad (mm/s)"
@@ -513,6 +621,9 @@ msgstr "Velocidad +"
msgid "Speed -"
msgstr "Velocidad -"
msgid "Speed:"
msgstr "Velocidad:"
msgid "Square Corner Velocity"
msgstr "Velocidad de esquina"
@@ -555,9 +666,6 @@ msgstr "Temperatura"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Para aplicar %s KlipperScreen necesita reiniciarse"
msgid "Tool"
msgstr "Herrmienta"
msgid "Total:"
msgstr "Total:"
@@ -567,6 +675,12 @@ msgstr "Calentador Desconocido"
msgid "Unload"
msgstr "Descargar"
msgid "Unretract Extra Length"
msgstr "Distancia extra al desretraer"
msgid "Unretract Speed"
msgstr "Velocidad de Desretracción"
msgid "Up To Date"
msgstr "Actualizado"
@@ -591,6 +705,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "Velocidad XY (mm/s)"
msgid "XY Speed (mm/s)"
msgstr "XY Velocidad (mm/s)"
msgid "Y+"
msgstr "Y+"
@@ -603,12 +720,15 @@ msgstr "Calibrar Z"
msgid "Z Move Speed (mm/s)"
msgstr "Velocidad Z (mm/s)"
msgid "Z Position"
msgstr "Posición Z"
msgid "Z Speed (mm/s)"
msgstr "Z Velocidad (mm/s)"
msgid "Z Tilt"
msgstr "Inclinación Z"
msgid "Z offset:"
msgstr "Desfase Z:"
msgid "Z+"
msgstr "Z+"
@@ -637,8 +757,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Herrmienta"
#~ msgid "Displayed Macros"
#~ msgstr "Macros mostrados"
#~ msgid "Z Position"
#~ msgstr "Posición Z"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -646,9 +775,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Desfase Z"
#~ msgid "Unknown Heater "
#~ msgstr "Calentador Desconocido "
@@ -717,9 +843,6 @@ msgstr "mm/s^2"
#~ msgid "Fast"
#~ msgstr "Rápido"
#~ msgid "Set Speed"
#~ msgstr "Establecer"
#~ msgid "Slow"
#~ msgstr "Lento"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-03-31 10:50-0300\n"
"Last-Translator: O. Robardet\n"
"Language-Team: \n"
@@ -31,9 +31,15 @@ msgstr "Format 24 heures"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "Un FIRMWARE_RESTART peut résoudre le problème."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Annuler"
msgid "Acceleration:"
msgstr "Accélération:"
msgid "Accept"
msgstr "Accepter"
@@ -46,6 +52,17 @@ msgstr "Ajouter une imprimante"
msgid "Add bed mesh profile"
msgstr "Ajouter un profil de maillage"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Êtes-vous sûr de vouloir exécuter l'arrêt d'urgence?"
@@ -64,6 +81,9 @@ msgstr "Êtes-vous sûr de vouloir arrêter le système?"
msgid "Auto"
msgstr "Auto"
msgid "Auto-calibrate"
msgstr "Calibrage automatique"
msgid "Auto-scroll"
msgstr "Auto-scroll"
@@ -79,9 +99,15 @@ msgstr "Bltouch a trouvé le décalage appliqué"
msgid "Calibrate"
msgstr "Étalonner"
msgid "Calibrated"
msgstr "Calibré"
msgid "Calibrated, save configuration to make it permanent"
msgstr "Calibré, enregistrez la configuration pour la rendre permanente"
msgid "Calibrating..."
msgstr "Calibrage..."
msgid "Can't set above the maximum:"
msgstr "Impossible de définir au-dessus du maximum:"
@@ -110,6 +136,12 @@ 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"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Fermer"
@@ -156,9 +188,6 @@ msgstr "Désactiver les moteurs"
msgid "Disable XY"
msgstr "Désactiver XY"
msgid "Displayed Macros"
msgstr "Macros affichées"
msgid "Distance (mm)"
msgstr "Distance (mm)"
@@ -193,9 +222,24 @@ msgstr "Ventilateur"
msgid "Filament Used"
msgstr "Filament utilisé"
msgid "Filament total:"
msgstr "Total de filaments:"
msgid "Filament used:"
msgstr "Filament utilisé:"
msgid "Filament:"
msgstr "Filament:"
msgid "File"
msgstr "Fichier"
msgid "File:"
msgstr "Fichier:"
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "Réglages fins"
@@ -209,6 +253,12 @@ msgstr ""
"Micrologiciel\n"
"Redémarrage"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Taille de police"
@@ -222,6 +272,9 @@ msgstr ""
msgid "Go Back"
msgstr "Retourner"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Caché"
@@ -231,6 +284,9 @@ msgstr "Cacher"
msgid "Hide sensors in Temp."
msgstr "Masquer les capteurs dans Temp."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Accueil"
@@ -267,6 +323,9 @@ msgstr "Initialisation"
msgid "Initializing printer..."
msgstr "Démarrage de l'imprimante..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Interface"
@@ -310,6 +369,9 @@ msgstr "Langue"
msgid "Large"
msgstr "Grand"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Restant:"
@@ -331,8 +393,11 @@ msgstr "Macros"
msgid "Main Menu"
msgstr "Menu principal"
msgid "Max Accelation"
msgstr "Accélération maximale"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "Accélération Max"
msgid "Max Acceleration to Deceleration"
msgstr "Accélération maximale à décélération"
@@ -340,6 +405,15 @@ msgstr "Accélération maximale à décélération"
msgid "Max Velocity"
msgstr "Vélocité maximale"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Moyen"
@@ -364,6 +438,9 @@ msgstr "Nom"
msgid "Network"
msgstr "Réseau"
msgid "New"
msgstr "Nouveau"
msgid "Nothing selected"
msgstr "Rien de sélectionné"
@@ -403,6 +480,9 @@ msgstr "Alimentation"
msgid "Power On Printer"
msgstr "Allumer l'imprimante"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Imprimer"
@@ -418,6 +498,9 @@ msgstr "Connexions aux imprimantes"
msgid "Printing"
msgstr "Impression"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe a trouvé le décalage appliqué"
@@ -448,6 +531,15 @@ msgstr "Reprendre"
msgid "Retract"
msgstr "Rétracter"
msgid "Retraction"
msgstr "Rétraction"
msgid "Retraction Length"
msgstr "Longueur de rétraction"
msgid "Retraction Speed"
msgstr "Vitesse de rétraction"
#, python-format
msgid "Retry #%s"
msgstr "Réessayez #%s"
@@ -458,8 +550,18 @@ msgstr "Enregistrer"
msgid "Save Config"
msgstr "Enregistrer la config"
msgid "Save configuration"
msgstr "Enregistrer la configuration"
msgid "Save Z"
msgstr "Enregistrer Z"
msgid "Save configuration?"
msgstr "Enregistrer la configuration?"
msgid "Saved"
msgstr "Enregistré"
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Écran DPMS"
@@ -498,12 +600,18 @@ msgstr "Trancheur"
msgid "Slicer Time correction (%)"
msgstr "Correction du temps de trancheuse (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Petit"
msgid "Sort by: "
msgstr "Trier par: "
msgid "Sort:"
msgstr "Trier:"
msgid "Speed (mm/s)"
msgstr "Vitesse de déplacement (mm/s)"
@@ -513,6 +621,9 @@ msgstr "Vitesse +"
msgid "Speed -"
msgstr "Vitesse -"
msgid "Speed:"
msgstr "Vitesse:"
msgid "Square Corner Velocity"
msgstr "Vélocité des angles droits"
@@ -553,9 +664,6 @@ msgstr "Température"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Pour appliquer %s KlipperScreen doit être redémarré"
msgid "Tool"
msgstr "Outil"
msgid "Total:"
msgstr "Total:"
@@ -565,13 +673,18 @@ msgstr "Chauffage inconnu"
msgid "Unload"
msgstr "Décharger"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "À jour"
msgid "Update"
msgstr "Mise à jour"
#, fuzzy
msgid "Updating"
msgstr "Mise à jour"
@@ -590,6 +703,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "Vitesse de déplacement XY (mm/s)"
msgid "XY Speed (mm/s)"
msgstr "Vitesse XY (mm/s)"
msgid "Y+"
msgstr "Y+"
@@ -602,12 +718,15 @@ msgstr "Calibration Z"
msgid "Z Move Speed (mm/s)"
msgstr "Vitesse de déplacement Z (mm/s)"
msgid "Z Position"
msgstr "Position Z"
msgid "Z Speed (mm/s)"
msgstr "Vitesse Z (mm/s)"
msgid "Z Tilt"
msgstr "Z Tilt"
msgid "Z offset:"
msgstr "Décalage Z"
msgid "Z+"
msgstr "Z+"
@@ -636,8 +755,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Outil"
#~ msgid "Displayed Macros"
#~ msgstr "Macros affichées"
#~ msgid "Z Position"
#~ msgstr "Position Z"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -645,9 +773,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Décalage Z"
#~ msgid "Unknown Heater "
#~ msgstr "Chauffage inconnu "
@@ -716,9 +841,6 @@ msgstr "mm/s^2"
#~ msgid "Fast"
#~ msgstr "Rapide"
#~ msgid "Set Speed"
#~ msgstr "Définir"
#~ msgid "Slow"
#~ msgstr "Lent"
@@ -749,9 +871,6 @@ msgstr "mm/s^2"
#~ msgid "Fan -"
#~ msgstr "Ventilateur-"
#~ msgid "Speed"
#~ msgstr "Vitesse"
#~ msgid "System Information"
#~ msgstr "Info systeme"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Klipperscreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-03-31 10:54-0300\n"
"Last-Translator: Emanuel Sharvit <manu7irl@gmail.com>\n"
"Language-Team: \n"
@@ -33,9 +33,15 @@ msgstr "זמן 24 שעות"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "FIRMWARE_RESTART עשוי לפתור את הבעיה."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "בטל"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "אשר"
@@ -48,6 +54,17 @@ msgstr "הוסף מדפסת"
msgid "Add bed mesh profile"
msgstr "הוסף פרופיל רשת למיטה"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr ""
"האם אתה בטוח שברצונך להדפיסהאם אתה בטוח שברצונך להפעיל את עצירת החירום?"
@@ -67,6 +84,9 @@ msgstr "האם אתה בטוח שברצונך לסגור את המערכת?"
msgid "Auto"
msgstr "אוטומטי"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "גלילה אוטומטית"
@@ -82,9 +102,15 @@ msgstr "Bltouch נמצא היסט מוחל"
msgid "Calibrate"
msgstr "לְדַרֵג"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "מכויל, שמור את התצורה כדי שהיא תהיה קבועה"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "לא ניתן להגדיר מעל המקסימום:"
@@ -113,6 +139,12 @@ msgstr ""
"בדוק KlipperScreen.log, בתיקית tmp ליותר פרטים.\n"
"אנא שלח דוח תקלה ב- GITHUB, לעזרה."
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "סגור"
@@ -159,9 +191,6 @@ msgstr "השבת מנועים"
msgid "Disable XY"
msgstr "השבת את XY"
msgid "Displayed Macros"
msgstr "מוצגים מאקרו"
msgid "Distance (mm)"
msgstr "מרחק (מ\"מ)"
@@ -196,9 +225,24 @@ msgstr "מאוורר"
msgid "Filament Used"
msgstr "נימה בשימוש"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "קוֹבֶץ"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "כוונון עדין"
@@ -212,6 +256,12 @@ msgstr ""
"קושחה\n"
"איתחול"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "גודל טקסט"
@@ -225,6 +275,9 @@ msgstr ""
msgid "Go Back"
msgstr "חזרה"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "מוּסתָר"
@@ -234,6 +287,9 @@ msgstr "להתחבא"
msgid "Hide sensors in Temp."
msgstr "הסתר חיישנים בטמפ'."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "איפוס"
@@ -270,6 +326,9 @@ msgstr "מאתחל"
msgid "Initializing printer..."
msgstr "מאתחל מדפסת..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "מִמְשָׁק"
@@ -313,6 +372,9 @@ msgstr "שפה"
msgid "Large"
msgstr "גָדוֹל"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "זמן שנותר:"
@@ -334,8 +396,11 @@ msgstr "מקרואים"
msgid "Main Menu"
msgstr "תפריט ראשי"
msgid "Max Accelation"
msgstr "האצה מרבית"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "האצה מרבית להאטה"
@@ -343,6 +408,15 @@ msgstr "האצה מרבית להאטה"
msgid "Max Velocity"
msgstr "מהירות מרבית"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "ממוצע"
@@ -367,6 +441,9 @@ msgstr "שֵׁם"
msgid "Network"
msgstr "רשת"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "שום דבר לא נבחר"
@@ -408,6 +485,9 @@ msgstr "הפעלה"
msgid "Power On Printer"
msgstr "הפעל מדפסת"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "הדפס"
@@ -423,6 +503,9 @@ msgstr "חיבורי מדפסת"
msgid "Printing"
msgstr "מדפיס"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe נמצא היסט מוחל"
@@ -453,6 +536,15 @@ msgstr "המשך"
msgid "Retract"
msgstr "שיחול לאחור"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "נסה שוב #%s"
@@ -463,8 +555,18 @@ msgstr "להציל"
msgid "Save Config"
msgstr "שמור קונפיג"
msgid "Save configuration"
msgstr "שמור תצורה"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "DPMS מסך"
@@ -503,12 +605,18 @@ msgstr "Slicer"
msgid "Slicer Time correction (%)"
msgstr "תיקון זמן פריסה (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "קָטָן"
msgid "Sort by: "
msgstr "מיין לפי: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "מהירות (מ\"מ/שניות)"
@@ -518,6 +626,9 @@ msgstr "מהירות +"
msgid "Speed -"
msgstr "מהירות -"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "מהירות פינה מרובעת"
@@ -560,9 +671,6 @@ msgstr "טמפרטורה"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "כדי ליישם %s צריך להפעיל מחדש את KlipperScreen"
msgid "Tool"
msgstr "כלי"
msgid "Total:"
msgstr "סך הכל:"
@@ -572,6 +680,12 @@ msgstr "מחמם לא ידוע"
msgid "Unload"
msgstr "לִפְרוֹק"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "עדכני"
@@ -596,6 +710,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "מהירות תנועה XY (מ\"מ/שנייה)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -608,12 +725,15 @@ msgstr "כיול Z"
msgid "Z Move Speed (mm/s)"
msgstr "מהירות תנועה Z (מ\"מ/שניות)"
msgid "Z Position"
msgstr "מיקום Z"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "הטיה Z"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -646,8 +766,17 @@ msgstr "מ''מ"
msgid "mm/s"
msgstr "מ\"מ/ש"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "כלי"
#~ msgid "Displayed Macros"
#~ msgstr "מוצגים מאקרו"
#~ msgid "Z Position"
#~ msgstr "מיקום Z"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -655,9 +784,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "הפרז גובה Z"
#~ msgid "Unknown Heater "
#~ msgstr "מחמם לא ידוע "
@@ -720,9 +846,6 @@ msgstr "mm/s^2"
#~ msgid "Fast"
#~ msgstr "מהיר"
#~ msgid "Set Speed"
#~ msgstr "קבע מהירות"
#~ msgid "Slow"
#~ msgstr "האט"
@@ -753,9 +876,6 @@ msgstr "mm/s^2"
#~ msgid "Fan -"
#~ msgstr "מאוורר -"
#~ msgid "Speed"
#~ msgstr "מהירות"
#~ msgid "System Information"
#~ msgstr "מידע אודות המערכת"
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: AntoszHUN\n"
"Language-Team: \n"
@@ -26,9 +26,15 @@ msgstr "24 Órás Idő"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "A FIRMWARE_RESTART javíthatja a problémát."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Megszakít"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "Elfogad"
@@ -41,6 +47,17 @@ msgstr "Nyomtató hozzáadása"
msgid "Add bed mesh profile"
msgstr "Ágyháló profil hozzáadása"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Biztosan Vészleállítást végez?"
@@ -59,6 +76,9 @@ msgstr "Biztos, hogy le szeretné állítani a rendszert?"
msgid "Auto"
msgstr "Auto"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "Automatikus görgetés"
@@ -74,9 +94,15 @@ msgstr "A Bltouch alkalmazott eltolást talált"
msgid "Calibrate"
msgstr "Kalibrálás"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibrálva! Mentse el a konfigurációt, hogy az állandó legyen"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "Nem állítható a maximum fölé:"
@@ -105,6 +131,12 @@ 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"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Bezárás"
@@ -151,9 +183,6 @@ msgstr "Motorok letiltása"
msgid "Disable XY"
msgstr "XY Letiltása"
msgid "Displayed Macros"
msgstr "Megjelenített makrók"
msgid "Distance (mm)"
msgstr "Távolság (mm)"
@@ -188,9 +217,24 @@ msgstr "Hűtés"
msgid "Filament Used"
msgstr "Használt nyomtatószál"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "Fájl"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "Finomhangolás"
@@ -204,6 +248,12 @@ msgstr ""
"Firmware\n"
"Újraindítása"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Betűméret"
@@ -217,6 +267,9 @@ msgstr ""
msgid "Go Back"
msgstr "Visszalépés"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Rejtett"
@@ -226,6 +279,9 @@ msgstr "Elrejt"
msgid "Hide sensors in Temp."
msgstr "Szenzorok elrejtése Hőfok."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Kezdőpontok"
@@ -262,6 +318,9 @@ msgstr "Inicializálás"
msgid "Initializing printer..."
msgstr "Nyomtató inicializálása..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Felület"
@@ -305,6 +364,9 @@ msgstr "Nyelv"
msgid "Large"
msgstr "Nagy"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Bal:"
@@ -326,8 +388,11 @@ msgstr "Makrók"
msgid "Main Menu"
msgstr "Főmenü"
msgid "Max Accelation"
msgstr "Max gyorsulás"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "Lassulás max gyorsulása"
@@ -335,6 +400,15 @@ msgstr "Lassulás max gyorsulása"
msgid "Max Velocity"
msgstr "Max sebesség"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Közepes"
@@ -359,6 +433,9 @@ msgstr "Név"
msgid "Network"
msgstr "Hálózat"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "Nincs kiválasztva"
@@ -398,6 +475,9 @@ msgstr "Bekapcsolás"
msgid "Power On Printer"
msgstr "Nyomtató bekapcsolása"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Nyomtatás"
@@ -413,6 +493,9 @@ msgstr "Nyomtató csatlakozások"
msgid "Printing"
msgstr "Nyomtatás"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "A szonda alkalmazott eltolást talált"
@@ -443,6 +526,15 @@ msgstr "Folytat"
msgid "Retract"
msgstr "Visszahúz"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "Újra #%s"
@@ -453,8 +545,18 @@ msgstr "Mentés"
msgid "Save Config"
msgstr "Konfiguráció mentése"
msgid "Save configuration"
msgstr "Konfiguráció mentése"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Képernyő DPMS"
@@ -493,12 +595,18 @@ msgstr "Szeletelő"
msgid "Slicer Time correction (%)"
msgstr "Szeletelő idő javítása (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Kicsi"
msgid "Sort by: "
msgstr "Sorrend: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "Sebesség (mm/s)"
@@ -508,6 +616,9 @@ msgstr "Sebesség +"
msgid "Speed -"
msgstr "Sebesség -"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "Sebesség a sarkokban"
@@ -550,9 +661,6 @@ msgstr "Hőfok"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "A %s KlipperScreen alkalmazásához újra kell indítani"
msgid "Tool"
msgstr "Eszköz"
msgid "Total:"
msgstr "Teljes:"
@@ -562,6 +670,12 @@ msgstr "Ismeretlen melegítő"
msgid "Unload"
msgstr "Kiadás"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "Naprakész"
@@ -586,6 +700,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY Mozgási seb. (mm/s)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -598,12 +715,15 @@ msgstr "Z Kalibrálás"
msgid "Z Move Speed (mm/s)"
msgstr "Z Mozgási seb. (mm/s)"
msgid "Z Position"
msgstr "Z Pozíció"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "Z Dőlés"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -632,8 +752,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Eszköz"
#~ msgid "Displayed Macros"
#~ msgstr "Megjelenített makrók"
#~ msgid "Z Position"
#~ msgstr "Z Pozíció"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -641,9 +770,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Z Eltolás"
#~ msgid "Unknown Heater "
#~ msgstr "Ismeretlen melegítő "
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: pappicio\n"
"Language-Team: \n"
@@ -26,9 +26,15 @@ msgstr "24H"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "Un FIRMWARE_RESTART potrebbe risolvere il problema."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Annulla"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "Accetta"
@@ -41,6 +47,17 @@ msgstr "Aggiungi Stampante"
msgid "Add bed mesh profile"
msgstr "Aggiungi Profilo Mesh"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Sei sicuro di voler eseguire l'arresto di emergenza?"
@@ -59,6 +76,9 @@ msgstr "Spegnere il Sistema?"
msgid "Auto"
msgstr "Auto"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "Auto-scroll"
@@ -74,9 +94,15 @@ msgstr "Bltouch ha trovato l'offset applicato"
msgid "Calibrate"
msgstr "Calibra"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "Calibrato, salva la configurazione per renderla permanente"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "Impossibile impostare al di sopra del massimo:"
@@ -105,6 +131,12 @@ msgstr ""
"Verifica /tmp/KlipperScreen.log per info.\n"
"Aggiungi un problema sul GitHub."
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Chiudi"
@@ -151,9 +183,6 @@ msgstr "Disab. Motori"
msgid "Disable XY"
msgstr "Disab. XY"
msgid "Displayed Macros"
msgstr "Mostra/Nascondi Macros"
msgid "Distance (mm)"
msgstr "Distanza (mm)"
@@ -188,9 +217,24 @@ msgstr "Ventola"
msgid "Filament Used"
msgstr "Filamento Usato"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "File"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "Messa a Punto"
@@ -204,6 +248,12 @@ msgstr ""
"Firmware\n"
"Riavvio"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Dimensione del testo"
@@ -217,6 +267,9 @@ msgstr ""
msgid "Go Back"
msgstr "Indietro"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Nascosto"
@@ -226,6 +279,9 @@ msgstr "Nascondere"
msgid "Hide sensors in Temp."
msgstr "Nascondi sensori in Temp."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Inizio"
@@ -262,6 +318,9 @@ msgstr "Inizializzo"
msgid "Initializing printer..."
msgstr "Inizializzo stampante..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Interfaccia"
@@ -305,6 +364,9 @@ msgstr "Lingua"
msgid "Large"
msgstr "Grande"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Restante:"
@@ -326,8 +388,11 @@ msgstr "Macros"
msgid "Main Menu"
msgstr "Menu Principale"
msgid "Max Accelation"
msgstr "Acceleraz. Massima"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "Da acceleraz. Massima a Deceleraz. Massima"
@@ -335,6 +400,15 @@ msgstr "Da acceleraz. Massima a Deceleraz. Massima"
msgid "Max Velocity"
msgstr "Velocità Massima"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Medio"
@@ -359,6 +433,9 @@ msgstr "Nome"
msgid "Network"
msgstr "Rete"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "Niente selezionato"
@@ -398,6 +475,9 @@ msgstr "Power"
msgid "Power On Printer"
msgstr "Accendi Stampante"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Stampa"
@@ -413,6 +493,9 @@ msgstr "Connessioni Stampante"
msgid "Printing"
msgstr "In Stampa"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe ha trovato l'offset applicato"
@@ -443,6 +526,15 @@ msgstr "Riprendi"
msgid "Retract"
msgstr "Ritrai"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "Riprova #%s"
@@ -453,8 +545,18 @@ msgstr "Salva"
msgid "Save Config"
msgstr "Salva Config"
msgid "Save configuration"
msgstr "Salva configurazione"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Schermo DPMS"
@@ -493,12 +595,18 @@ msgstr "Slicer"
msgid "Slicer Time correction (%)"
msgstr "Affettatrice Correzione del tempo (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Piccola"
msgid "Sort by: "
msgstr "Ordine: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "Velocità (mm/s)"
@@ -508,6 +616,9 @@ msgstr "Velocità+"
msgid "Speed -"
msgstr "Velocità-"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "Velocità Square Corner"
@@ -550,9 +661,6 @@ msgstr "Temperatura"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Riavvia KlipperScreen per applicare %s"
msgid "Tool"
msgstr "Strumenti"
msgid "Total:"
msgstr "Totale:"
@@ -562,6 +670,12 @@ msgstr "Riscaldatore sconosciuto"
msgid "Unload"
msgstr "Scaricare"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "Aggiornato"
@@ -586,6 +700,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "Velocità di spostamento XY (mm/s)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -598,12 +715,15 @@ msgstr "Calibra Z"
msgid "Z Move Speed (mm/s)"
msgstr "Velocità di spostamento Z (mm/s)"
msgid "Z Position"
msgstr "Posizione Z"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "Z Tilt"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -632,8 +752,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Strumenti"
#~ msgid "Displayed Macros"
#~ msgstr "Mostra/Nascondi Macros"
#~ msgid "Z Position"
#~ msgstr "Posizione Z"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -641,9 +770,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Offset Z"
#~ msgid "Unknown Heater "
#~ msgstr "Riscaldatore sconosciuto "
+15 -19
View File
@@ -69,12 +69,6 @@
</key>
</row>
<row>
<key obey-caps='true'>
<default display="Caps" action="modifier:caps" />
<shifted display="Caps" action="modifier:caps" />
<mod1 display="@" />
<mod2 display="£" />
</key>
<key obey-caps='true'>
<default display="a" />
<shifted display="A" />
@@ -129,10 +123,16 @@
<mod1 display="/" />
<mod2 display="\" />
</key>
<key obey-caps='true'>
<default display="ñ" />
<shifted display="Ñ" />
<mod1 display="@" />
<mod2 display="£" />
</key>
</row>
<row>
<key obey-caps='true'>
<default display="↑" action="modifier:shift" />
<default display="image:shift.png" action="modifier:shift" />
</key>
<key obey-caps='true'>
<default display="z" />
@@ -162,7 +162,7 @@
<default display="b" />
<shifted display="B" />
<mod1 display=";" />
<mod2 display="✓" />
<mod2 display="¿" />
</key>
<key obey-caps='true'>
<default display="n" />
@@ -177,31 +177,27 @@
<mod2 display="]" />
</key>
<key obey-caps='true'>
<default display="⌫" action="backspace" />
<default display="image:arrow.png" action="backspace" />
</key>
</row>
<row>
<key>
<default display="?123" action="modifier:mod1" />
<key width="2000" fill="false">
<default display="123" action="modifier:mod1" />
</key>
<key>
<key width="2000" fill="false">
<default display="=\&lt;" action="modifier:mod2" />
</key>
<key>
<key fill="false">
<default display="," />
<mod2 display="&lt;" />
</key>
<key width="6000" fill="true">
<key width="3000" fill="true">
<default display=" " action="space" />
</key>
<key>
<key fill="false">
<default display="." />
<mod2 display="&gt;" />
</key>
<key width="1000">
<!-- <default display="◀┛" action="return"/> -->
<default display="◀┛" action="return"/>
</key>
</row>
</layout>
@@ -0,0 +1,762 @@
msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: NSteven\n"
"Language-Team: NSteven\n"
"Language: ko_KR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.1\n"
#, python-format
msgid "%s will be updated to version"
msgstr "%s 버전으로 업데이트 됩니다"
msgid "(default)"
msgstr "(기본)"
msgid "24 Hour Time"
msgstr "24시간"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "펌웨어를 재시작해 문제를 해결할 수 있습니다"
msgid "ADXL Not Configured"
msgstr "가속도계 설정이 없습니다"
msgid "Abort"
msgstr "취소"
msgid "Acceleration:"
msgstr "가속도:"
msgid "Accept"
msgstr "확인"
msgid "Actions"
msgstr "툴 헤드 제어"
msgid "Add Printer"
msgstr "프린터 추가"
msgid "Add bed mesh profile"
msgstr "베드 메시 프로파일 추가"
msgid "Apply"
msgstr "확인"
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr "엔드스탑 높이 기준을 %.2f 높이의 옵셋으로 설정 하시겠습니까?"
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr "프로브 높이 기준을 %s%.2f 높이의 옵셋으로 설정 하시겠습니까?"
msgid "Are you sure you want to run Emergency Stop?"
msgstr "비상정지 시킬까요?"
msgid "Are you sure you wish to cancel this print?"
msgstr "지금 출력을 취소 하시겠습니까?"
msgid "Are you sure you wish to disable motors?"
msgstr "모터 전원을 끄시겠습니까?"
msgid "Are you sure you wish to reboot the system?"
msgstr "시스템을 재시작 하시겠습니까?"
msgid "Are you sure you wish to shutdown the system?"
msgstr "시스템을 종료 하시겠습니까?"
msgid "Auto"
msgstr "오토"
msgid "Auto-calibrate"
msgstr "자동 교정"
msgid "Auto-scroll"
msgstr "오토 스크롤"
msgid "Bed Level"
msgstr "베드 레베"
msgid "Bed Mesh"
msgstr "배드 메시"
msgid "Bltouch found applied offset"
msgstr "Bltouch가 적용된 오프셋"
msgid "Calibrate"
msgstr "교정"
msgid "Calibrated"
msgstr "교정됨"
msgid "Calibrated, save configuration to make it permanent"
msgstr "교정됨, 설정을 저장합니다"
msgid "Calibrating..."
msgstr "교정 중.."
msgid "Can't set above the maximum:"
msgstr "최대 값을 초과하는 설정은 할 수 없습니다:"
msgid "Cancel"
msgstr "취소"
msgid "Cancel Print"
msgstr "출력 취소"
msgid "Cancelled"
msgstr "취소됨"
msgid "Cancelling"
msgstr "취소중"
msgid "Cannot connect to Moonraker"
msgstr "문래커에 연결할 수 없음"
msgid "Channel"
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"
msgstr "가속도계 배선을 확인해 주세요"
msgid "Clear"
msgstr "초기화"
msgid "Close"
msgstr "닫기"
msgid "Complete"
msgstr "완료"
msgid "Configuration"
msgstr "환경 설정"
msgid "Confirm Emergency Stop"
msgstr "비상정지 확인창 표시"
msgid "Connected"
msgstr "연결됨"
#, python-format
msgid "Connecting to %s"
msgstr "%s에 연결 중.."
msgid "Console"
msgstr "콘솔 제어 명령"
msgid "Continue"
msgstr "계속"
msgid "Cooldown"
msgstr "가열 중단"
msgid "Date"
msgstr "날짜"
msgid "Decrease"
msgstr "낮추기"
msgid "Delete"
msgstr "삭제"
msgid "Deselect"
msgstr "선택 해제"
msgid "Disable Motors"
msgstr "모터 전원 끄기"
msgid "Disable XY"
msgstr "XY 비활성화"
msgid "Distance (mm)"
msgstr "거리 (mm)"
#, python-format
msgid "Do you want to recover %s?"
msgstr "%s을(를) 복구하시겠습니까?"
msgid "Elapsed:"
msgstr "경과:"
msgid "Error"
msgstr "오류"
msgid "Estimated Time Method"
msgstr "예상시간 옵션"
msgid "Extrude"
msgstr "압출 "
msgid "Extrusion +"
msgstr "압출 +"
msgid "Extrusion -"
msgstr "압출 -"
msgid "Failed, adjust position first"
msgstr "실패, 먼저 위치를 조정해 주세요"
msgid "Fan"
msgstr "쿨링 팬 제어"
msgid "Filament Used"
msgstr "사용된 필라멘트"
msgid "Filament total:"
msgstr "필라멘트 총계:"
msgid "Filament used:"
msgstr "사용된 필라멘트:"
msgid "Filament:"
msgstr "필라멘트:"
msgid "File"
msgstr "파일"
msgid "File:"
msgstr "파일:"
msgid "Finding ADXL"
msgstr "가속도계 찾는 중.."
msgid "Fine Tuning"
msgstr "미세 조정"
msgid "Finish"
msgstr "완료됨"
msgid ""
"Firmware\n"
"Restart"
msgstr ""
"펌웨어\n"
"재시작"
msgid "Flow:"
msgstr "유량:"
msgid "Flowrate:"
msgstr "유량:"
msgid "Font Size"
msgstr "글꼴 크기"
msgid ""
"Full\n"
"Update"
msgstr ""
"전체\n"
"업데이트"
msgid "Go Back"
msgstr "뒤로"
msgid "Height:"
msgstr "높이:"
msgid "Hidden"
msgstr "숨김"
msgid "Hide"
msgstr "가리기"
msgid "Hide sensors in Temp."
msgstr "온도 섹션에서 센서 항목 숨김."
msgid "Hide temp."
msgstr "온도 숨김"
msgid "Home"
msgstr "홈"
msgid "Home All"
msgstr "전체 홈"
msgid "Home X"
msgstr "X축 홈"
msgid "Home XY"
msgstr "XY축 홈"
msgid "Home Y"
msgstr "Y축 홈"
msgid "Home Z"
msgstr "Z축 홈"
msgid "Homing"
msgstr "툴 헤드 위치 초기화"
msgid "Hostname"
msgstr "호스트 이름"
msgid "Icon Theme"
msgstr "아이콘 테마"
msgid "Increase"
msgstr "높이기"
msgid "Initializing"
msgstr "초기화 중.."
msgid "Initializing printer..."
msgstr "프린터 초기화 중.."
msgid "Input Shaper"
msgstr "인풋 셰이퍼"
msgid "Interface"
msgstr "인터페이스"
msgid "Invalid"
msgstr "존재하지 않음"
msgid "Invert X"
msgstr "X축 반전"
msgid "Invert Y"
msgstr "Y축 반전"
msgid "Invert Z"
msgstr "Z축 반전"
msgid ""
"Klipper\n"
"Restart"
msgstr ""
"클리퍼\n"
"재시작"
msgid "Klipper has disconnected"
msgstr "클리퍼와 연결이 끊어졌습니다"
msgid "Klipper has encountered an error."
msgstr "클리퍼에 오류가 발생했습니다"
msgid "Klipper has shutdown"
msgstr "클리퍼가 종료되었습니다"
msgid "Klipper is attempting to start"
msgstr "클리퍼 시작하는 중"
msgid "Klipper will reboot"
msgstr "클리퍼를 다시 시작합니다"
msgid "Language"
msgstr "언어"
msgid "Large"
msgstr "크게"
msgid "Layer:"
msgstr "레이어:"
msgid "Left:"
msgstr "남음:"
msgid "Limits"
msgstr "가속도 설정"
msgid "Load"
msgstr "필라 넣기"
msgid "Lower Nozzle"
msgstr "노즐 낮춤"
msgid "Macro shortcut on sidebar"
msgstr "사이드바에 매크로 아이콘 표시"
msgid "Macros"
msgstr "매크로"
msgid "Main Menu"
msgstr "메인 메뉴"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "최대 가속"
msgid "Max Acceleration to Deceleration"
msgstr "감속을 위한 최대 가속"
msgid "Max Velocity"
msgstr "출력 속도"
msgid "Measure Both"
msgstr "XY축 모두 측정"
msgid "Measure X"
msgstr "X축 측정"
msgid "Measure Y"
msgstr "Y축 측정"
msgid "Medium"
msgstr "중간"
msgid "Menu"
msgstr "메뉴"
msgid "Modified"
msgstr "수정됨"
msgid "Moonraker: connected"
msgstr "문래커: 연결됨"
msgid "Move"
msgstr "툴 헤드 이동"
msgid "Move Distance (mm)"
msgstr "이동 거리 (mm)"
msgid "Name"
msgstr "이름"
msgid "Network"
msgstr "네트워크"
msgid "New"
msgstr "신규"
msgid "Nothing selected"
msgstr "아무것도 선택하지 않ㅇ"
msgid "Off"
msgstr "끄기"
#, python-format
msgid "Outdated by %d"
msgstr "%d 보다 오래됨"
msgid "PSK for"
msgstr "PSK 키 값(비밀번호)"
msgid "Package will be updated"
msgid_plural "Packages will be updated"
msgstr[0] "패키지가 업데이트 됩니다"
msgid "Password saved"
msgstr "비밀번호 저장됨"
msgid "Pause"
msgstr "일시정지"
msgid "Paused"
msgstr "일시정지됨"
msgid "Perform a full upgrade?"
msgstr "전체 업그레이드를 실행합니까?"
msgid "Please recompile and flash the micro-controller."
msgstr "MCU 펌웨어를 다시 컴파일 한 다음 플래싱 해주세요"
msgid "Power"
msgstr "전원"
msgid "Power On Printer"
msgstr "프린터 전원 켜기"
msgid "Pressure Advance:"
msgstr "모서리 압출 제어"
msgid "Print"
msgstr "출력"
msgid "Print Control"
msgstr "출력 제어"
msgid "Print Time"
msgstr "출력 시간"
msgid "Printer Connections"
msgstr "프린터 연결"
msgid "Printing"
msgstr "출력중"
msgid "Probe Offset"
msgstr "프로브 오프셋"
msgid "Probe found applied offset"
msgstr "프로브가 오프셋을 찾았습니다"
msgid "Profile Name:"
msgstr "프로파일 이름:"
msgid "Quad Gantry Level"
msgstr "쿼드 갠트리 레벨"
msgid "Raise Nozzle"
msgstr "노즐 높임"
msgid "Recover Hard"
msgstr "강화 복구 모드"
msgid "Recover Soft"
msgstr "일반 복구 모드"
msgid "Reference"
msgstr "참조"
msgid "Restart"
msgstr "재시작"
msgid "Resume"
msgstr "재개"
msgid "Retract"
msgstr "퇴출"
msgid "Retraction"
msgstr "필라 퇴출"
msgid "Retraction Length"
msgstr "퇴추 길이"
msgid "Retraction Speed"
msgstr "퇴출 속도"
#, python-format
msgid "Retry #%s"
msgstr "재시도 #%s"
msgid "Save"
msgstr "저장"
msgid "Save Config"
msgstr "설정 저장"
msgid "Save Z"
msgstr "Z 옵셋 저장"
msgid "Save configuration?"
msgstr "구성을 저장하시겠습니까?"
msgid "Saved"
msgstr "저장됨"
#, python-format
msgid "Saved offset: %s"
msgstr "저장된 옵세: %s"
msgid "Screen DPMS"
msgstr "화면 DPMS"
msgid "Screen Power Off Time"
msgstr "화면 절전 시간"
msgid "Screws Adjust"
msgstr "베드 스크류 조정"
msgid "Select"
msgstr "선택"
msgid "Send"
msgstr "보내기"
#, python-format
msgid "Sending Power ON signal to: %s"
msgstr "전원 켜기 신호 송신 ㅈ: %s"
msgid "Set Temp"
msgstr "온도 설정"
msgid "Settings"
msgstr "설정"
msgid "Show"
msgstr "보기"
msgid "Size"
msgstr "크기"
msgid "Slicer"
msgstr "슬라이서"
msgid "Slicer Time correction (%)"
msgstr "슬라이서 시간 보정(%)"
msgid "Slicer:"
msgstr "슬라이서:"
msgid "Small"
msgstr "작은"
msgid "Sort by: "
msgstr "분류 기준: "
msgid "Sort:"
msgstr "종류:"
msgid "Speed (mm/s)"
msgstr "속도 (mm/s)"
msgid "Speed +"
msgstr "속도 +"
msgid "Speed -"
msgstr "속도 -"
msgid "Speed:"
msgstr "속도:"
msgid "Square Corner Velocity"
msgstr "모서리 통과 속도"
msgid "Start"
msgstr "시작"
msgid "Starting WiFi Association"
msgstr "WiFi 연결을 시작하는 중"
msgid "Starting recovery for"
msgstr "에 대한 복구 시작"
msgid "Starting update for"
msgstr "업데이트 시작 중"
msgid "System"
msgstr "시스템"
msgid ""
"System\n"
"Restart"
msgstr ""
"시스템\n"
"재시작"
msgid ""
"System\n"
"Shutdown"
msgstr ""
"시스템\n"
"종료"
msgid "Temp (°C)"
msgstr "온도 (°C)"
msgid "Temperature"
msgstr "온도 제어"
#, python-format
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "%s을(를) 적용하려면 클리퍼 스크린을 다시 시작해야 합니다"
msgid "Total:"
msgstr "총:"
msgid "Unknown Heater"
msgstr "알 수 없는 히터"
msgid "Unload"
msgstr "필라 꺼내기"
msgid "Unretract Extra Length"
msgstr "필라멘트 퇴출 길이"
msgid "Unretract Speed"
msgstr "필라멘트 퇴출 속도"
msgid "Up To Date"
msgstr "최신 버전 유지 중"
msgid "Update"
msgstr "업데이트"
msgid "Updating"
msgstr "업데이트 중.."
msgid "Uploaded"
msgstr "업로드됨"
msgid "View Mesh"
msgstr "메쉬 프로파일 보기"
msgid "X+"
msgstr "X+"
msgid "X-"
msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY 이동 속도 (mm/s)"
msgid "XY Speed (mm/s)"
msgstr "XY 속도 (mm/s)"
msgid "Y+"
msgstr "Y+"
msgid "Y-"
msgstr "Y-"
msgid "Z Calibrate"
msgstr "Z 옵셋 교정"
msgid "Z Move Speed (mm/s)"
msgstr "Z 이동 속도 (mm/s)"
msgid "Z Speed (mm/s)"
msgstr "Z 속도 (mm/s)"
msgid "Z Tilt"
msgstr "Z 기울기"
msgid "Z offset:"
msgstr "Z 옵셋:"
msgid "Z+"
msgstr "Z+"
msgid "Z-"
msgstr "Z-"
msgid "commit"
msgid_plural "commits"
msgstr[0] "커밋"
msgid "dBm"
msgstr "dBm"
msgid "hour"
msgid_plural "hours"
msgstr[0] "시간"
msgid "minutes"
msgstr "분"
msgid "mm"
msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "툴"
#~ msgid "Displayed Macros"
#~ msgstr "표시할 매크로"
#~ msgid "Z Position"
#~ msgstr "Z 위치"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-03-31 11:06-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -32,9 +32,15 @@ msgstr "Zegar 24-godzinny"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "FIRMWARE_RESTART może rozwiązać problem."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Odwołaj"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "Akceptuj"
@@ -47,6 +53,17 @@ msgstr "Dodaj drukarkę"
msgid "Add bed mesh profile"
msgstr "Dodaj profil siatki stołu"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Czy na pewno chcesz Awaryjnie Zatrzymać?"
@@ -65,6 +82,9 @@ msgstr "Czy na pewno chcesz wyłączyć system?"
msgid "Auto"
msgstr "Automatyczny"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "Auto-scroll"
@@ -80,9 +100,15 @@ msgstr "Bltouch znalazł zastosowane przesunięcie"
msgid "Calibrate"
msgstr "Kalibracja"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "Skalibrowano, zapisz konfigurację aby została na stałe"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "Nie można ustawić powyżej maksymum:"
@@ -111,6 +137,12 @@ msgstr ""
"Sprawdź /tmp/KlipperScreen.log aby uzyskać więcej informacji.\n"
"Proszę zgłosić usterkę na GitHub by uzyskać pomoc."
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Zamknij"
@@ -157,9 +189,6 @@ msgstr "Wyłącz Silniki"
msgid "Disable XY"
msgstr "Odłącz XY"
msgid "Displayed Macros"
msgstr "Wyświetlone Makra"
msgid "Distance (mm)"
msgstr "Dystans (mm)"
@@ -194,20 +223,40 @@ msgstr "Wentylator"
msgid "Filament Used"
msgstr "Filament w Użytku"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "Plik"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "Regulacja Precyzyjna"
msgid "Finish"
msgstr "Zakończ"
#, fuzzy
msgid ""
"Firmware\n"
"Restart"
msgstr "Firmware Restart"
msgstr ""
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Rozmiar trzcionki"
@@ -222,6 +271,9 @@ msgstr ""
msgid "Go Back"
msgstr "Powróć"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Ukryty"
@@ -231,6 +283,9 @@ msgstr "Schowaj"
msgid "Hide sensors in Temp."
msgstr "Ukryj czujniki w Temp."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Baza"
@@ -267,6 +322,9 @@ msgstr "Startowanie"
msgid "Initializing printer..."
msgstr "Drukarka Startuje..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Interfejs"
@@ -282,11 +340,10 @@ msgstr "Odwróć Y"
msgid "Invert Z"
msgstr "Odwróć Z"
#, fuzzy
msgid ""
"Klipper\n"
"Restart"
msgstr "Restart Klippera"
msgstr ""
msgid "Klipper has disconnected"
msgstr "Klipper się rozłączył"
@@ -309,6 +366,9 @@ msgstr "Język"
msgid "Large"
msgstr "Duży"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Lewo:"
@@ -330,8 +390,11 @@ msgstr "Makro"
msgid "Main Menu"
msgstr "Główne Menu"
msgid "Max Accelation"
msgstr "Maks akceleracja"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "Maks Przyśpieszenie i Opóźnienie"
@@ -339,6 +402,15 @@ msgstr "Maks Przyśpieszenie i Opóźnienie"
msgid "Max Velocity"
msgstr "Maks Prędkość"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Średni"
@@ -363,6 +435,9 @@ msgstr "Nazwa"
msgid "Network"
msgstr "Sieć"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "Nic nie wybrano"
@@ -403,6 +478,9 @@ msgstr "Zasilanie"
msgid "Power On Printer"
msgstr "Zasilanie włączone"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Drukuj"
@@ -418,6 +496,9 @@ msgstr "Połączenia Drukarki"
msgid "Printing"
msgstr "Drukujemy"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe znalazł zastosowane przesunięcie"
@@ -448,6 +529,15 @@ msgstr "Dokończ"
msgid "Retract"
msgstr "Cofnij"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "Spróbuj ponownie #%s"
@@ -458,8 +548,18 @@ msgstr "Zapisz"
msgid "Save Config"
msgstr "Zapisz Konfigurację"
msgid "Save configuration"
msgstr "Zapisz konfigurację"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Ekran DPMS"
@@ -498,12 +598,18 @@ msgstr "Slicer"
msgid "Slicer Time correction (%)"
msgstr "Korekta czasu krajalnicy (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Mały"
msgid "Sort by: "
msgstr "Sortuj wg: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "Prędkość (mm/s)"
@@ -513,6 +619,9 @@ msgstr "Prędkość +"
msgid "Speed -"
msgstr "Prędkość -"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "Prędkość w narożniku kwadratowym"
@@ -555,9 +664,6 @@ msgstr "Temperatura"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Aby zastosować %s KlipperScreen musi zostać ponownie uruchomiony"
msgid "Tool"
msgstr "Narzędzie"
msgid "Total:"
msgstr "Całkowity:"
@@ -567,6 +673,12 @@ msgstr "Nieznany Podgrzewacz"
msgid "Unload"
msgstr "Wyładuj"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "Aktualne"
@@ -591,6 +703,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "Prędkość ruchu XY (mm/s)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -603,12 +718,15 @@ msgstr "Kalibracja Z"
msgid "Z Move Speed (mm/s)"
msgstr "Prędkość ruchu Z (mm/s)"
msgid "Z Position"
msgstr "Pozycja Z"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "Przechył Z"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -637,10 +755,19 @@ msgid "mm"
msgstr "mm"
msgid "mm/s"
msgstr "mm/s^2"
msgstr "mm/s²"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Narzędzie"
#~ msgid "Displayed Macros"
#~ msgstr "Wyświetlone Makra"
#~ msgid "Z Position"
#~ msgstr "Pozycja Z"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -648,9 +775,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Przesunięcie Z"
#~ msgid "Unknown Heater "
#~ msgstr "Nieznany Podgrzewacz "
@@ -6,16 +6,16 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"PO-Revision-Date: 2022-03-31 11:10-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-06-03 20:25-0500\n"
"Last-Translator: Jakob Kais <schpuntik@freenet.de>\n"
"Language-Team: \n"
"Language: ru_RU\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Poedit-Flags-xgettext: --add-comments\n"
@@ -32,9 +32,15 @@ msgstr "24-часовой формат"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "FIRMWARE_RESTART может решить проблему."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Отменить"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "Применить"
@@ -47,6 +53,17 @@ msgstr "Добавить принтер"
msgid "Add bed mesh profile"
msgstr "Добавить профиль сетки стола"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Вы уверены, что хотите запустить аварийную остановку?"
@@ -65,6 +82,9 @@ msgstr "Вы хотите выключить принтер?"
msgid "Auto"
msgstr "Авто"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "Автопрокрутка"
@@ -80,9 +100,15 @@ msgstr "Bltouch обнаружил примененное смещение"
msgid "Calibrate"
msgstr "Калибровка"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "Откалибровано, сохраните конфигурацию, чтобы сделать ее постоянной"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "Невозможно установить выше максимума:"
@@ -111,6 +137,12 @@ msgstr ""
"Проверьте /tmp/KlipperScreen.log для дополнитольной информации.\n"
"Создайте issues на GitHub что-бы получить помощь."
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Закрыть"
@@ -157,9 +189,6 @@ msgstr "Откл. моторы"
msgid "Disable XY"
msgstr "Отключить XY"
msgid "Displayed Macros"
msgstr "Показать макросы"
msgid "Distance (mm)"
msgstr "Расстояние (mm)"
@@ -194,9 +223,24 @@ msgstr "Обдув"
msgid "Filament Used"
msgstr "Использование филамента"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "Файл"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "Точная настройка"
@@ -210,6 +254,12 @@ msgstr ""
"Прошивка\n"
"Рестарт"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Размер шрифта"
@@ -223,6 +273,9 @@ msgstr ""
msgid "Go Back"
msgstr "Назад"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Скрытый"
@@ -232,6 +285,9 @@ msgstr "Скрывать"
msgid "Hide sensors in Temp."
msgstr "Скрыть датчики в Temp."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Парковка"
@@ -268,6 +324,9 @@ msgstr "Запуск"
msgid "Initializing printer..."
msgstr "Принтер стартует..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Интерфейс"
@@ -311,6 +370,9 @@ msgstr "Язык"
msgid "Large"
msgstr "Большой"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Осталось:"
@@ -332,8 +394,11 @@ msgstr "Макросы"
msgid "Main Menu"
msgstr "Главное меню"
msgid "Max Accelation"
msgstr "Ускорения"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "Ускорения торможения"
@@ -341,6 +406,15 @@ msgstr "Ускорения торможения"
msgid "Max Velocity"
msgstr "Скорость"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Среднее"
@@ -365,6 +439,9 @@ msgstr "Имя"
msgid "Network"
msgstr "Сеть"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "Ничего не выбрано"
@@ -405,6 +482,9 @@ msgstr "Включено"
msgid "Power On Printer"
msgstr "Включить принтер"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Печать"
@@ -420,6 +500,9 @@ msgstr "Подключение принтера"
msgid "Printing"
msgstr "Печатается"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe обнаружил примененное смещение"
@@ -450,6 +533,15 @@ msgstr "Продолжить"
msgid "Retract"
msgstr "Втянуть"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "Повторить #%s"
@@ -460,8 +552,18 @@ msgstr "Сохранить"
msgid "Save Config"
msgstr "Сохр. Конфиг"
msgid "Save configuration"
msgstr "Настройки сохраняются"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "Экран DPMS"
@@ -500,12 +602,18 @@ msgstr "Слайсер"
msgid "Slicer Time correction (%)"
msgstr "Коррекция времени слайсера (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Маленький"
msgid "Sort by: "
msgstr "Орден: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "Скорость (мм/с)"
@@ -515,6 +623,9 @@ msgstr "Скорость +"
msgid "Speed -"
msgstr "Скорость -"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "Квадратная угловая скорость"
@@ -555,9 +666,6 @@ msgstr "Tемпература"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Чтобы применить %s необходимо перезапустить KlipperScreen"
msgid "Tool"
msgstr "Инструмент"
msgid "Total:"
msgstr "Всего:"
@@ -567,6 +675,12 @@ msgstr "Неизвестный обогреватель"
msgid "Unload"
msgstr "Загружено"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "Обновлено"
@@ -591,6 +705,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "Скорость перемещения по осям XY (мм/с)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -603,12 +720,15 @@ msgstr "Калибр. Z"
msgid "Z Move Speed (mm/s)"
msgstr "Скорость перемещения по оси Z (мм/с)"
msgid "Z Position"
msgstr "Позиция Z"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "Z Наклон"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -639,8 +759,17 @@ msgstr "мм"
msgid "mm/s"
msgstr "мм/с"
msgid "mm/s^2"
msgstr "мм/с^2"
msgid "mm/s²"
msgstr "мм/с²"
#~ msgid "Tool"
#~ msgstr "Инструмент"
#~ msgid "Displayed Macros"
#~ msgstr "Показать макросы"
#~ msgid "Z Position"
#~ msgstr "Позиция Z"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -648,9 +777,6 @@ msgstr "мм/с^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Офсет Z"
#~ msgid "Unknown Heater "
#~ msgstr "Неизвестный обогреватель "
@@ -719,9 +845,6 @@ msgstr "мм/с^2"
#~ msgid "Fast"
#~ msgstr "Быстро"
#~ msgid "Set Speed"
#~ msgstr "Скорость"
#~ msgid "Slow"
#~ msgstr "Mедленно"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-04-15 17:25+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -31,9 +31,15 @@ msgstr "24 timmars tid"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "En FIRMWARE_RESTART kan lösa problemet."
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "Avbryt"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "Godkänn"
@@ -46,6 +52,17 @@ msgstr "Lägg till skrivare"
msgid "Add bed mesh profile"
msgstr "Lägg till mesh profil"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Är du säker på att du vill köra Nödstopp?"
@@ -64,16 +81,17 @@ msgstr "Är du säker på att du vill stänga av systemet?"
msgid "Auto"
msgstr "Automatisk"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "Auto-scrolla"
#, fuzzy
msgid "Bed Level"
msgstr "Bed Level"
msgstr ""
#, fuzzy
msgid "Bed Mesh"
msgstr "Bed Mesh"
msgstr ""
msgid "Bltouch found applied offset"
msgstr "Bltouch hittade tillämpad offset"
@@ -81,9 +99,15 @@ msgstr "Bltouch hittade tillämpad offset"
msgid "Calibrate"
msgstr "Kalibrera"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibrerad, spara konfiguration för att göra den permanent"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "Kan inte ställa in över maxgränsen:"
@@ -102,9 +126,8 @@ msgstr "Avbryter"
msgid "Cannot connect to Moonraker"
msgstr "Kan inte ansluta till Moonraker"
#, fuzzy
msgid "Channel"
msgstr "Kanal"
msgstr ""
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
@@ -113,6 +136,12 @@ msgstr ""
"Kontrollera /tmp/KlipperScreen.log för mer information.\n"
"Skicka in ett problem på GitHub för hjälp."
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "Stäng"
@@ -159,9 +188,6 @@ msgstr "Inaktivera motorer"
msgid "Disable XY"
msgstr "Inaktivera XY"
msgid "Displayed Macros"
msgstr "Makron visas"
msgid "Distance (mm)"
msgstr "Avstånd (mm)"
@@ -175,9 +201,8 @@ msgstr "Förfluten:"
msgid "Error"
msgstr "Fel"
#, fuzzy
msgid "Estimated Time Method"
msgstr "Uppskattad tid metod"
msgstr ""
msgid "Extrude"
msgstr "Extrudera"
@@ -194,13 +219,27 @@ msgstr "Misslyckades, justera positionen först"
msgid "Fan"
msgstr "Fläkt"
#, fuzzy
msgid "Filament Used"
msgstr "Filament använt"
msgstr ""
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "Fil"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "Finjustering"
@@ -214,6 +253,12 @@ msgstr ""
"Firmware\n"
"Omstart"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "Textstorlek"
@@ -227,6 +272,9 @@ msgstr ""
msgid "Go Back"
msgstr "Gå tillbaka"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "Dold"
@@ -236,6 +284,9 @@ msgstr "Dölj"
msgid "Hide sensors in Temp."
msgstr "Dölj sensorer i Temp."
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "Hem"
@@ -254,9 +305,8 @@ msgstr "Hem Y"
msgid "Home Z"
msgstr "Hem Z"
#, fuzzy
msgid "Homing"
msgstr "Homing"
msgstr ""
msgid "Hostname"
msgstr "Värdnamn"
@@ -273,6 +323,9 @@ msgstr "Initierar"
msgid "Initializing printer..."
msgstr "Initierar skrivaren..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Gränssnitt"
@@ -295,9 +348,8 @@ msgstr ""
"Klipper\n"
"Omstart"
#, fuzzy
msgid "Klipper has disconnected"
msgstr "Klipper har kopplat från"
msgstr ""
msgid "Klipper has encountered an error."
msgstr "Klipper har stött på ett fel."
@@ -317,6 +369,9 @@ msgstr "Språk"
msgid "Large"
msgstr "Stor"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "Återstående:"
@@ -338,17 +393,26 @@ msgstr "Makron"
msgid "Main Menu"
msgstr "Huvudmeny"
#, fuzzy
msgid "Max Accelation"
msgstr "Maximal acceleration"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
#, fuzzy
msgid "Max Acceleration to Deceleration"
msgstr "Maximal acceleration till inbromsning"
msgstr ""
#, fuzzy
msgid "Max Velocity"
msgstr "Maximal hastighet"
msgstr ""
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "Medium"
@@ -374,15 +438,18 @@ msgstr "Namn"
msgid "Network"
msgstr "Nätverk"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "Inget valt"
msgid "Off"
msgstr "Avstängd"
#, fuzzy, python-format
#, python-format
msgid "Outdated by %d"
msgstr "Föråldrad med %d"
msgstr ""
msgid "PSK for"
msgstr "PSK för"
@@ -413,45 +480,44 @@ msgstr "Ström"
msgid "Power On Printer"
msgstr "Slå på skrivaren"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "Skriv ut"
msgid "Print Control"
msgstr "Utskriftskontroll"
#, fuzzy
msgid "Print Time"
msgstr "Tid för utskrift"
msgstr ""
#, fuzzy
msgid "Printer Connections"
msgstr "Skrivaranslutningar"
msgstr ""
msgid "Printing"
msgstr "Skriver ut"
#, fuzzy
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Sond hittat tillämpad offset"
msgstr ""
msgid "Profile Name:"
msgstr "Profilens namn:"
#, fuzzy
msgid "Quad Gantry Level"
msgstr "Quad Gantry nivå"
msgstr ""
#, fuzzy
msgid "Raise Nozzle"
msgstr "Höj munstycket"
msgstr ""
#, fuzzy
msgid "Recover Hard"
msgstr "Återhämta Hårt"
msgstr ""
#, fuzzy
msgid "Recover Soft"
msgstr "Återhämta Mjukt"
msgstr ""
msgid "Reference"
msgstr "Referens"
@@ -462,13 +528,21 @@ msgstr "Starta om"
msgid "Resume"
msgstr "Återuppta"
#, fuzzy
msgid "Retract"
msgstr "Dra tillbaka"
msgstr ""
#, fuzzy, python-format
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "Försök #%s"
msgstr ""
msgid "Save"
msgstr "Spara"
@@ -476,19 +550,27 @@ msgstr "Spara"
msgid "Save Config"
msgstr "Spara konfiguration"
msgid "Save configuration"
msgstr "Spara konfigurationen"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
#, fuzzy
msgid "Screen DPMS"
msgstr "DPMS för skärm"
msgstr ""
msgid "Screen Power Off Time"
msgstr "Avstängningstid för skärmen"
#, fuzzy
msgid "Screws Adjust"
msgstr "Justera skruvar"
msgstr ""
msgid "Select"
msgstr "Välj"
@@ -500,9 +582,8 @@ msgstr "Skicka"
msgid "Sending Power ON signal to: %s"
msgstr "Skickar ström PÅ-signal till: %s"
#, fuzzy
msgid "Set Temp"
msgstr "Ställ in temp"
msgstr ""
msgid "Settings"
msgstr "Inställningar"
@@ -513,13 +594,14 @@ msgstr "Visa"
msgid "Size"
msgstr "Storlek"
#, fuzzy
msgid "Slicer"
msgstr "Slicer"
msgstr ""
#, fuzzy
msgid "Slicer Time correction (%)"
msgstr "Slicer Tidskorrigering (%)"
msgstr ""
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "Liten"
@@ -527,6 +609,9 @@ msgstr "Liten"
msgid "Sort by: "
msgstr "Sortera efter: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "Hastighet (mm/s)"
@@ -536,24 +621,23 @@ msgstr "Hastighet +"
msgid "Speed -"
msgstr "Hastighet -"
#, fuzzy
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "Fyrkantig hörnhastighet"
msgstr ""
msgid "Start"
msgstr "Starta"
#, fuzzy
msgid "Starting WiFi Association"
msgstr "Startar WiFi Association"
msgstr ""
#, fuzzy
msgid "Starting recovery for"
msgstr "Startar återhämtning för"
msgstr ""
#, fuzzy
msgid "Starting update for"
msgstr "Startar uppdatering för"
msgstr ""
msgid "System"
msgstr "System"
@@ -582,19 +666,20 @@ msgstr "Temperatur"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "För att tillämpa %s måste KlipperScreen startas om"
msgid "Tool"
msgstr "Verktyg"
#, fuzzy
msgid "Total:"
msgstr "Sammanlagt:"
msgstr ""
msgid "Unknown Heater"
msgstr "Okänt värmeelement"
#, fuzzy
msgid "Unload"
msgstr "Lasta av"
msgstr ""
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "Aktuellt"
@@ -608,9 +693,8 @@ msgstr "Uppdaterar"
msgid "Uploaded"
msgstr "Uppladdad"
#, fuzzy
msgid "View Mesh"
msgstr "Visa Mesh"
msgstr ""
msgid "X+"
msgstr "X+"
@@ -621,6 +705,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY rörelsehastighet (mm/s)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -633,12 +720,14 @@ msgstr "Z Kalibrering"
msgid "Z Move Speed (mm/s)"
msgstr "Z rörelsehastighet (mm/s)"
msgid "Z Position"
msgstr "Z Position"
msgid "Z Speed (mm/s)"
msgstr ""
#, fuzzy
msgid "Z Tilt"
msgstr "Z Lutning"
msgstr ""
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -646,11 +735,10 @@ msgstr "Z+"
msgid "Z-"
msgstr "Z-"
#, fuzzy
msgid "commit"
msgid_plural "commits"
msgstr[0] "commit"
msgstr[1] "commits"
msgstr[0] ""
msgstr[1] ""
msgid "dBm"
msgstr "dBm"
@@ -669,5 +757,14 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Verktyg"
#~ msgid "Displayed Macros"
#~ msgstr "Makron visas"
#~ msgid "Z Position"
#~ msgstr "Z Position"
@@ -0,0 +1,770 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-06-05 21:11+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"
#, python-format
msgid "%s will be updated to version"
msgstr "%s sürüme güncellenecektir"
msgid "(default)"
msgstr "(varsayılan)"
msgid "24 Hour Time"
msgstr "24 Saat Zaman"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "Bir FIRMWARE_RESTART sorunu çözebilir."
msgid "ADXL Not Configured"
msgstr "ADXL Yapılandırılmadı"
msgid "Abort"
msgstr "İptal et"
msgid "Acceleration:"
msgstr "Hızlanma:"
msgid "Accept"
msgstr "Kabul et"
msgid "Actions"
msgstr "Eylemler"
msgid "Add Printer"
msgstr "Yazıcı Ekle"
msgid "Add bed mesh profile"
msgstr "Tabla Örgüsü profili ekle"
msgid "Apply"
msgstr "Uygula"
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr "Sonlandırıcı için %.2f ofset uygula?"
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr "Prob için %s%.2f ofset uygula?"
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Acil Durdurma'yı çalıştırmak istediğinizden emin misiniz?"
msgid "Are you sure you wish to cancel this print?"
msgstr "Bu baskıyı iptal etmek istediğinizden emin misiniz?"
msgid "Are you sure you wish to disable motors?"
msgstr "Motorları devre dışı bırakmak istediğinizden emin misiniz?"
msgid "Are you sure you wish to reboot the system?"
msgstr "Sistemi yeniden başlatmak istediğinizden emin misiniz?"
msgid "Are you sure you wish to shutdown the system?"
msgstr "Sistemi kapatmak istediğinizden emin misiniz?"
msgid "Auto"
msgstr "Otomatik"
msgid "Auto-calibrate"
msgstr "Otomatik-Kalibrasyon"
msgid "Auto-scroll"
msgstr "Otomatik kaydırma"
msgid "Bed Level"
msgstr "Tabla Ayarı"
msgid "Bed Mesh"
msgstr "Tabla Örgüsü"
msgid "Bltouch found applied offset"
msgstr "Bltouch uygulanmış ofseti buldu"
msgid "Calibrate"
msgstr "Kalibre et"
msgid "Calibrated"
msgstr "Kalibre Edildi"
msgid "Calibrated, save configuration to make it permanent"
msgstr "Kalibre edildi, kalıcı hale getirmek için yapılandırmayı kaydedin"
msgid "Calibrating..."
msgstr "Kalibre Ediliyor..."
msgid "Can't set above the maximum:"
msgstr "Maksimumun üzerine ayarlanamaz:"
msgid "Cancel"
msgstr "İptal"
msgid "Cancel Print"
msgstr "Baskıyı iptal et"
msgid "Cancelled"
msgstr "İptal edildi"
msgid "Cancelling"
msgstr "İptal ediliyor"
msgid "Cannot connect to Moonraker"
msgstr "Moonraker'a bağlanılamıyor"
msgid "Channel"
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"
msgstr "ADXL Bağlantılarını Kontrol Et"
msgid "Clear"
msgstr "Temizle"
msgid "Close"
msgstr "Kapat"
msgid "Complete"
msgstr "Tamamlandı"
msgid "Configuration"
msgstr "Yapılandırma"
msgid "Confirm Emergency Stop"
msgstr "Acil Durdurmayı Onaylayın"
msgid "Connected"
msgstr "Bağlandı"
#, python-format
msgid "Connecting to %s"
msgstr "%s'e Bağlanılıyor"
msgid "Console"
msgstr "Konsol"
msgid "Continue"
msgstr "Devam et"
msgid "Cooldown"
msgstr "Soğutma"
msgid "Date"
msgstr "Tarih"
msgid "Decrease"
msgstr "Azalt"
msgid "Delete"
msgstr "Sil"
msgid "Deselect"
msgstr "Seçimi kaldır"
msgid "Disable Motors"
msgstr "Motorları Devre Dışı Bırak"
msgid "Disable XY"
msgstr "XY Devre dışı bırak"
msgid "Distance (mm)"
msgstr "Uzaklık (mm)"
#, python-format
msgid "Do you want to recover %s?"
msgstr "%s Kurtarmak istiyor musunuz?"
msgid "Elapsed:"
msgstr "Geçen:"
msgid "Error"
msgstr "Hata"
msgid "Estimated Time Method"
msgstr "Tahmini Zaman Metodu"
msgid "Extrude"
msgstr "Ekstrüzyon"
msgid "Extrusion +"
msgstr "Ekstrüzyon +"
msgid "Extrusion -"
msgstr "Ekstrüzyon -"
msgid "Failed, adjust position first"
msgstr "Başarısız, önce konumu ayarlayın"
msgid "Fan"
msgstr "Fan"
msgid "Filament Used"
msgstr "Kullanılan Filament"
msgid "Filament total:"
msgstr "Toplam Filament:"
msgid "Filament used:"
msgstr "Kullanılan Filament:"
msgid "Filament:"
msgstr "Filament:"
msgid "File"
msgstr "Dosya"
msgid "File:"
msgstr "Dosya:"
msgid "Finding ADXL"
msgstr "ADXL Bulunuyor"
msgid "Fine Tuning"
msgstr "İnce Ayar"
msgid "Finish"
msgstr "Bitir"
msgid ""
"Firmware\n"
"Restart"
msgstr ""
"Firmware\n"
"Yeniden Başlat"
msgid "Flow:"
msgstr "Akış:"
msgid "Flowrate:"
msgstr "Akış oranı:"
msgid "Font Size"
msgstr "Yazı boyutu"
msgid ""
"Full\n"
"Update"
msgstr ""
"Tam\n"
"Güncelleme"
msgid "Go Back"
msgstr "Geri git"
msgid "Height:"
msgstr "Yükseklik:"
msgid "Hidden"
msgstr "Gizli"
msgid "Hide"
msgstr "Gizle"
msgid "Hide sensors in Temp."
msgstr "Sıcaklıktaki sensörleri gizleyin."
msgid "Hide temp."
msgstr "Sıcaklığı gizle."
msgid "Home"
msgstr "Ana Ekran"
msgid "Home All"
msgstr "Eksenleri Sıfırla"
msgid "Home X"
msgstr "X Sıfırla"
msgid "Home XY"
msgstr "XY Sıfırla"
msgid "Home Y"
msgstr "Y Sıfırla"
msgid "Home Z"
msgstr "Z Sıfırla"
msgid "Homing"
msgstr "Eksen Sıfırlama"
msgid "Hostname"
msgstr "Ana bilgisayar adı"
msgid "Icon Theme"
msgstr "Simge Teması"
msgid "Increase"
msgstr "Artır"
msgid "Initializing"
msgstr "Başlatılıyor"
msgid "Initializing printer..."
msgstr "Yazıcı başlatılıyor..."
msgid "Input Shaper"
msgstr "İvme Düzenleyicisi"
msgid "Interface"
msgstr "Arayüz"
msgid "Invalid"
msgstr "Geçersiz"
msgid "Invert X"
msgstr "X Ters çevir"
msgid "Invert Y"
msgstr "Y Ters çevir"
msgid "Invert Z"
msgstr "Z Ters çevir"
msgid ""
"Klipper\n"
"Restart"
msgstr ""
"Klipper\n"
"Yeniden başlat"
msgid "Klipper has disconnected"
msgstr "Klipper bağlantısı kesildi"
msgid "Klipper has encountered an error."
msgstr "Klipper bir hatayla karşılaştı."
msgid "Klipper has shutdown"
msgstr "Klipper Kapandı"
msgid "Klipper is attempting to start"
msgstr "Klipper başlatılmaya çalışılıyor"
msgid "Klipper will reboot"
msgstr "Klipper yeniden başlayacak"
msgid "Language"
msgstr "Dil"
msgid "Large"
msgstr "Büyük"
msgid "Layer:"
msgstr "Katman:"
msgid "Left:"
msgstr "Kalan:"
msgid "Limits"
msgstr "Limitler"
msgid "Load"
msgstr "Yükle"
msgid "Lower Nozzle"
msgstr "Nozzle düşür"
msgid "Macro shortcut on sidebar"
msgstr "Kenar çubuğunda makro kısayolu"
msgid "Macros"
msgstr "Makrolar"
msgid "Main Menu"
msgstr "Ana Menü"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "Maksimum Hızlanma"
msgid "Max Acceleration to Deceleration"
msgstr "Maksimum Hızlanma ve Yavaşlama"
msgid "Max Velocity"
msgstr "Maksimum Hız"
msgid "Measure Both"
msgstr "İkisini de ölçüle"
msgid "Measure X"
msgstr "X Ölçüle"
msgid "Measure Y"
msgstr "Y Ölçüle"
msgid "Medium"
msgstr "Orta"
msgid "Menu"
msgstr "Menü"
msgid "Modified"
msgstr "Değiştirilmiş"
msgid "Moonraker: connected"
msgstr "Moonraker: bağlandı"
msgid "Move"
msgstr "Hareket"
msgid "Move Distance (mm)"
msgstr "Hareket Mesafesi (mm)"
msgid "Name"
msgstr "İsim"
msgid "Network"
msgstr "Ağ"
msgid "New"
msgstr "Yeni"
msgid "Nothing selected"
msgstr "Hiçbir şey seçilmedi"
msgid "Off"
msgstr "Kapa"
#, python-format
msgid "Outdated by %d"
msgstr "Güncelliğini yitiren %d"
msgid "PSK for"
msgstr "PSK için"
msgid "Package will be updated"
msgid_plural "Packages will be updated"
msgstr[0] "Paket yükseltilecek"
msgstr[1] "Paketler yükseltilecek"
msgid "Password saved"
msgstr "Şifre kaydedildi"
msgid "Pause"
msgstr "Duraklat"
msgid "Paused"
msgstr "Duraklatıldı"
msgid "Perform a full upgrade?"
msgstr "Tam yükseltme yap?"
msgid "Please recompile and flash the micro-controller."
msgstr "Lütfen mikro denetleyiciyi yeniden derleyin ve flaşlayın."
msgid "Power"
msgstr "Güç"
msgid "Power On Printer"
msgstr "Yazıcıya Güç Ver (aç)"
msgid "Pressure Advance:"
msgstr "Akış Dengeleme:"
msgid "Print"
msgstr "Yazdır"
msgid "Print Control"
msgstr "Yazdırma Kontrolü"
msgid "Print Time"
msgstr "Yazdırma Süresi"
msgid "Printer Connections"
msgstr "Yazıcı Bağlantıları"
msgid "Printing"
msgstr "Yazdırılıyor"
msgid "Probe Offset"
msgstr "Prob ofseti"
msgid "Probe found applied offset"
msgstr "Prob uygulanmış ofset bulundu"
msgid "Profile Name:"
msgstr "Profil ismi:"
msgid "Quad Gantry Level"
msgstr "Dörtlü Köprü Seviyesi"
msgid "Raise Nozzle"
msgstr "Nozzle yükselt"
msgid "Recover Hard"
msgstr "Zorla Kurtar"
msgid "Recover Soft"
msgstr "Yumuşak Kurtar"
msgid "Reference"
msgstr "Referans"
msgid "Restart"
msgstr "Yeniden Başlat"
msgid "Resume"
msgstr "Devam Et"
msgid "Retract"
msgstr "Geri çek"
msgid "Retraction"
msgstr "Geri Çekme"
msgid "Retraction Length"
msgstr "Geri Çekme Uzunluğu"
msgid "Retraction Speed"
msgstr "Geri Çekme Hızı"
#, python-format
msgid "Retry #%s"
msgstr "Yeniden Dene #%s"
msgid "Save"
msgstr "Kaydet"
msgid "Save Config"
msgstr "Yapılandırma Kayıt"
msgid "Save Z"
msgstr "Z Kaydet"
msgid "Save configuration?"
msgstr "Yapılandırmayı kaydet?"
msgid "Saved"
msgstr "Kaydedildi"
#, python-format
msgid "Saved offset: %s"
msgstr "Kaydedilen ofset: %s"
msgid "Screen DPMS"
msgstr "Ekran DPMS"
msgid "Screen Power Off Time"
msgstr "Ekran kapatma zamanı"
msgid "Screws Adjust"
msgstr "Vida Ayarı"
msgid "Select"
msgstr "Seç"
msgid "Send"
msgstr "Gönder"
#, python-format
msgid "Sending Power ON signal to: %s"
msgstr "Güç AÇ sinyalı gönderilen: %s"
msgid "Set Temp"
msgstr "Sıcaklık Ayarla"
msgid "Settings"
msgstr "Ayarlar"
msgid "Show"
msgstr "Göster"
msgid "Size"
msgstr "Boyut"
msgid "Slicer"
msgstr "Dilimleme"
msgid "Slicer Time correction (%)"
msgstr "Dilimleme Zamanı doğrulama (%)"
msgid "Slicer:"
msgstr "Dilimleyici:"
msgid "Small"
msgstr "Küçük"
msgid "Sort by: "
msgstr "Sırala: "
msgid "Sort:"
msgstr "Sırala:"
msgid "Speed (mm/s)"
msgstr "Hız (mm/s)"
msgid "Speed +"
msgstr "Hız +"
msgid "Speed -"
msgstr "Hız -"
msgid "Speed:"
msgstr "Hız:"
msgid "Square Corner Velocity"
msgstr "Kare Köşe Hızı"
msgid "Start"
msgstr "Başlat"
msgid "Starting WiFi Association"
msgstr "WiFi Bağlantısı başlatılıyor"
msgid "Starting recovery for"
msgstr "Kurtarma başlatılıyor"
msgid "Starting update for"
msgstr "Güncelleme başlatılıyor"
msgid "System"
msgstr "Sistem"
msgid ""
"System\n"
"Restart"
msgstr ""
"Sistem\n"
"Yeniden Başlat"
msgid ""
"System\n"
"Shutdown"
msgstr ""
"Sistem\n"
"Kapat"
msgid "Temp (°C)"
msgstr "Sıcaklık (°C)"
msgid "Temperature"
msgstr "Sıcaklık"
#, python-format
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Uygulamak için %s KlipperScreen yeniden başlatılmalı"
msgid "Total:"
msgstr "Toplam:"
msgid "Unknown Heater"
msgstr "Bilinmeyen Isıtıcı"
msgid "Unload"
msgstr "Boşalt"
msgid "Unretract Extra Length"
msgstr "İleri İtme Ekstra Uzunluk"
msgid "Unretract Speed"
msgstr "İleri itme Hızı"
msgid "Up To Date"
msgstr "Güncel"
msgid "Update"
msgstr "Güncelle"
msgid "Updating"
msgstr "Yükleniyor"
msgid "Uploaded"
msgstr "Yüklendi"
msgid "View Mesh"
msgstr "Örgüyü Görüntüle"
msgid "X+"
msgstr "X+"
msgid "X-"
msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY Hareket hızı (mm/s)"
msgid "XY Speed (mm/s)"
msgstr "XY Hızı (mm/s)"
msgid "Y+"
msgstr "Y+"
msgid "Y-"
msgstr "Y-"
msgid "Z Calibrate"
msgstr "Z Kalibrasyonu"
msgid "Z Move Speed (mm/s)"
msgstr "Z Hareket hızı (mm/s)"
msgid "Z Speed (mm/s)"
msgstr "Z Hızı (mm/s)"
msgid "Z Tilt"
msgstr "Z Eğim"
msgid "Z offset:"
msgstr "Z ofset:"
msgid "Z+"
msgstr "Z+"
msgid "Z-"
msgstr "Z-"
msgid "commit"
msgid_plural "commits"
msgstr[0] "commit"
msgstr[1] "commits"
msgid "dBm"
msgstr "dBm"
msgid "hour"
msgid_plural "hours"
msgstr[0] "saat"
msgstr[1] "saatler"
msgid "minutes"
msgstr "dakika"
msgid "mm"
msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "Araç"
#~ msgid "Displayed Macros"
#~ msgstr "Görüntülenen Makrolar"
#~ msgid "Z Position"
#~ msgstr "Z Pozisyonu"
@@ -5,19 +5,20 @@
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Project-Id-Version: 2022-06-02 14:53-0300\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"PO-Revision-Date: 2022-03-31 11:18-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-06-03 10:02+0300\n"
"Last-Translator: \n"
"Language-Team: Andrii Komarovskiy\n"
"Language: uk_UA\n"
"Language-Team: Andrii Komarovskyi\n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Poedit-SourceCharset: UTF-8\n"
#, python-format
msgid "%s will be updated to version"
@@ -32,9 +33,15 @@ msgstr "24-годинний час"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "РЕСТАРТ ПРОШИВКИ може вирішити проблему."
msgid "ADXL Not Configured"
msgstr "ADXL не налаштовано"
msgid "Abort"
msgstr "Перервати"
msgid "Acceleration:"
msgstr "Прискорення:"
msgid "Accept"
msgstr "Прийняти"
@@ -47,6 +54,17 @@ msgstr "Додати принтер"
msgid "Add bed mesh profile"
msgstr "Додати сітку столу"
msgid "Apply"
msgstr "Застосувати"
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr "Застосувати зміщення %.2f до кінцевика?"
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr "Застосувати зміщення %s%.2f до зонда?"
msgid "Are you sure you want to run Emergency Stop?"
msgstr "Ви впевнені, що хочете запустити аварійну зупинку?"
@@ -54,7 +72,7 @@ msgid "Are you sure you wish to cancel this print?"
msgstr "Ви впевнені, що хочете скасувати цей друк?"
msgid "Are you sure you wish to disable motors?"
msgstr "Ви впевнені, що хочете відключити двигуни?"
msgstr "Ви дійсно бажаєте вимкнути двигуни?"
msgid "Are you sure you wish to reboot the system?"
msgstr "Ви впевнені, що хочете перезавантажити систему?"
@@ -65,6 +83,9 @@ msgstr "Ви впевнені, що хочете вимкнути систему
msgid "Auto"
msgstr "Автоматично"
msgid "Auto-calibrate"
msgstr "Автоматичне калібрування"
msgid "Auto-scroll"
msgstr "Автоматична прокрутка"
@@ -80,14 +101,20 @@ msgstr "Зонд знайшов застосоване зміщення"
msgid "Calibrate"
msgstr "Калібрування"
msgid "Calibrated"
msgstr "Відкалібрований"
msgid "Calibrated, save configuration to make it permanent"
msgstr "Відкалібровано, збережіть конфігурацію, щоб зробити її постійною"
msgid "Calibrating..."
msgstr "Калібрування..."
msgid "Can't set above the maximum:"
msgstr "Не встановити вище макс.:"
msgid "Cancel"
msgstr "Скасувати"
msgstr "СКАСУВАТИ"
msgid "Cancel Print"
msgstr "Скасувати друк"
@@ -111,6 +138,12 @@ msgstr ""
"Перевірте /tmp/KlipperScreen.log для отримання додаткової інформації.\n"
"Будь ласка, надішліть проблему на GitHub, щоб отримати допомогу."
msgid "Check ADXL Wiring"
msgstr "Перевірте підключення ADXL"
msgid "Clear"
msgstr "Очистити"
msgid "Close"
msgstr "Закрити"
@@ -157,9 +190,6 @@ msgstr "Вимкнути мотори"
msgid "Disable XY"
msgstr "Вимкнути XY"
msgid "Displayed Macros"
msgstr "Відображення Макросів"
msgid "Distance (mm)"
msgstr "Відстань (мм)"
@@ -194,9 +224,24 @@ msgstr "Вентилятор"
msgid "Filament Used"
msgstr "Філамент"
msgid "Filament total:"
msgstr "Загальна кількість прутка:"
msgid "Filament used:"
msgstr "Використано прутка:"
msgid "Filament:"
msgstr "Пруток:"
msgid "File"
msgstr "Файл"
msgid "File:"
msgstr "Файл:"
msgid "Finding ADXL"
msgstr "Знаходження ADXL"
msgid "Fine Tuning"
msgstr "Підправити"
@@ -207,8 +252,14 @@ msgid ""
"Firmware\n"
"Restart"
msgstr ""
"Firmware\n"
"Перезавантажте"
"Перезапуск\n"
"Прошивки"
msgid "Flow:"
msgstr "Потік:"
msgid "Flowrate:"
msgstr "Швидкість потоку:"
msgid "Font Size"
msgstr "Розмір шрифту"
@@ -217,20 +268,26 @@ msgid ""
"Full\n"
"Update"
msgstr ""
"Повний\n"
"Повне\n"
"Оновлення"
msgid "Go Back"
msgstr "Назад"
msgid "Height:"
msgstr "Висота:"
msgid "Hidden"
msgstr "Оновлення"
msgstr "Прихований"
msgid "Hide"
msgstr "Сховати"
msgid "Hide sensors in Temp."
msgstr "Сховати датчик темп."
msgstr "Сховати датчик t°."
msgid "Hide temp."
msgstr "Приховати темп."
msgid "Home"
msgstr "Домашня сторінка"
@@ -268,6 +325,9 @@ msgstr "Ініціалізація"
msgid "Initializing printer..."
msgstr "Ініціалізація принтера..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "Інтерфейс"
@@ -287,8 +347,8 @@ msgid ""
"Klipper\n"
"Restart"
msgstr ""
"Klipper\n"
"Перезавантажте"
"Перезапуск\n"
"Кліппера"
msgid "Klipper has disconnected"
msgstr "Klipper відключився"
@@ -311,6 +371,9 @@ msgstr "Мова"
msgid "Large"
msgstr "Великий"
msgid "Layer:"
msgstr "Шар:"
msgid "Left:"
msgstr "Залишилось:"
@@ -332,7 +395,10 @@ msgstr "Макрос"
msgid "Main Menu"
msgstr "Main Menu"
msgid "Max Accelation"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr "Макс. прискорення"
msgid "Max Acceleration to Deceleration"
@@ -341,6 +407,15 @@ msgstr "Макс. прискорення до гальмування"
msgid "Max Velocity"
msgstr "Макс. швидкість"
msgid "Measure Both"
msgstr "Виміряти все"
msgid "Measure X"
msgstr "Виміряти X"
msgid "Measure Y"
msgstr "Виміряти Y"
msgid "Medium"
msgstr "Середній"
@@ -365,6 +440,9 @@ msgstr "Ім'я"
msgid "Network"
msgstr "Сітка"
msgid "New"
msgstr "Новий"
msgid "Nothing selected"
msgstr "Не вибрано"
@@ -381,17 +459,17 @@ msgstr "PSK для"
msgid "Package will be updated"
msgid_plural "Packages will be updated"
msgstr[0] "Пакет буде оновлено"
msgstr[1] "Пакет буде оновлено"
msgstr[2] "Пакет буде оновлено"
msgstr[1] "Пакет оновлено"
msgstr[2] "Пакет оновлено"
msgid "Password saved"
msgstr "Пароль збережено"
msgid "Pause"
msgstr "Пауза"
msgstr "ПАУЗА"
msgid "Paused"
msgstr "Пауза"
msgstr "ПАУЗА"
msgid "Perform a full upgrade?"
msgstr "Виконати повне оновлення?"
@@ -405,6 +483,9 @@ msgstr "Живлення"
msgid "Power On Printer"
msgstr "Увімкнути принтер"
msgid "Pressure Advance:"
msgstr "Випередження тиску:"
msgid "Print"
msgstr "Друк"
@@ -420,6 +501,9 @@ msgstr "Підключення принтера"
msgid "Printing"
msgstr "Друк"
msgid "Probe Offset"
msgstr "Зміщення зонда"
msgid "Probe found applied offset"
msgstr "Зонд знайшов застосоване зміщення"
@@ -445,11 +529,20 @@ msgid "Restart"
msgstr "Перезапуск"
msgid "Resume"
msgstr "Відновити"
msgstr "ВІДНОВИТИ"
msgid "Retract"
msgstr "Ретракт"
msgid "Retraction"
msgstr "Втягнення"
msgid "Retraction Length"
msgstr "Довжина втягування"
msgid "Retraction Speed"
msgstr "Швидкість втягування"
#, python-format
msgid "Retry #%s"
msgstr "Повторіть #%s"
@@ -460,8 +553,18 @@ msgstr "Зберегти"
msgid "Save Config"
msgstr "Зберегти конфіг"
msgid "Save configuration"
msgstr "Зберегти конфігурацію"
msgid "Save Z"
msgstr "Зберегти Z"
msgid "Save configuration?"
msgstr "Зберегти конфігурацію?"
msgid "Saved"
msgstr "Збережено"
#, python-format
msgid "Saved offset: %s"
msgstr "Збережено зміщення: %s"
msgid "Screen DPMS"
msgstr "Екран DPMS"
@@ -500,12 +603,18 @@ msgstr "Слайсер"
msgid "Slicer Time correction (%)"
msgstr "Виправлення часу слайсера (%)"
msgid "Slicer:"
msgstr "Слайсер:"
msgid "Small"
msgstr "Малий"
msgid "Sort by: "
msgstr "Сортувати за: "
msgid "Sort:"
msgstr "Сортувати:"
msgid "Speed (mm/s)"
msgstr "Швидкість (мм/с)"
@@ -515,11 +624,14 @@ msgstr "Швидкість +"
msgid "Speed -"
msgstr "Швидкість -"
msgid "Speed:"
msgstr "Швидкість:"
msgid "Square Corner Velocity"
msgstr "Квадратна кутова швидкість"
msgid "Start"
msgstr "Старт"
msgstr "СТАРТ"
msgid "Starting WiFi Association"
msgstr "Запуск асоціації WiFi"
@@ -557,9 +669,6 @@ msgstr "Температура"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "Щоб застосувати %s, потрібно перезапустити KlipperScreen"
msgid "Tool"
msgstr "Інструмент"
msgid "Total:"
msgstr "Всього:"
@@ -569,13 +678,18 @@ msgstr "Невідомий нагрівач"
msgid "Unload"
msgstr "Вийняти"
msgid "Unretract Extra Length"
msgstr "Додаткова довжина втягування"
msgid "Unretract Speed"
msgstr "Швидкість повернення"
msgid "Up To Date"
msgstr "Оновити"
msgid "Update"
msgstr "Оновлення"
#, fuzzy
msgid "Updating"
msgstr "Оновлення"
@@ -592,6 +706,9 @@ msgid "X-"
msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "Швидкість переміщення XY (мм/с)"
msgid "XY Speed (mm/s)"
msgstr "Швидкість XY (мм/с)"
msgid "Y+"
@@ -604,14 +721,17 @@ msgid "Z Calibrate"
msgstr "Калібровка Z"
msgid "Z Move Speed (mm/s)"
msgstr "Швидкість Z (мм/с)"
msgstr "Швидкість переміщення Z (мм/с)"
msgid "Z Position"
msgstr "Позиція Z"
msgid "Z Speed (mm/s)"
msgstr "Швидкість Z (мм/с)"
msgid "Z Tilt"
msgstr "Z Нахил"
msgid "Z offset:"
msgstr "Зміщення по Z:"
msgid "Z+"
msgstr "Бебістеп Z+"
@@ -621,8 +741,8 @@ msgstr "Бебістеп Z-"
msgid "commit"
msgid_plural "commits"
msgstr[0] "коментар"
msgstr[1] "коментар"
msgstr[2] "коментар"
msgstr[1] "коментарі"
msgstr[2] "коментарі"
msgid "dBm"
msgstr "dBm"
@@ -631,7 +751,7 @@ msgid "hour"
msgid_plural "hours"
msgstr[0] "година"
msgstr[1] "години"
msgstr[2] "годин"
msgstr[2] "години"
msgid "minutes"
msgstr "хвилин"
@@ -642,14 +762,8 @@ msgstr "мм"
msgid "mm/s"
msgstr "мм/с"
msgid "mm/s^2"
msgid "mm/s²"
msgstr "мм/с²"
#~ msgid "IPv4"
#~ msgstr "IPv4"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Зміщення Z"
#~ msgid "Tool"
#~ msgstr "Інструмент"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-03-31 11:21-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -31,9 +31,15 @@ msgstr "使用 24 小时制"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr "FIRMWARE_RESTART 可能会解决此问题。"
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "终止"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "接受"
@@ -46,6 +52,17 @@ msgstr "添加打印机"
msgid "Add bed mesh profile"
msgstr "添加热床网格"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "您确定要紧急停止吗?"
@@ -64,6 +81,9 @@ msgstr "您确定要关闭系统吗?"
msgid "Auto"
msgstr "汽车"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "自动滚屏"
@@ -79,9 +99,15 @@ msgstr "Bltouch 发现应用的偏移量"
msgid "Calibrate"
msgstr "校准"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "已校准,保存配置后生效"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "设置值超出最大值:"
@@ -110,6 +136,12 @@ msgstr ""
"检查/tmp/KlipperScreen.log以获取更多信息。\n"
"请在GitHub上提交问题以寻求帮助。"
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "关闭"
@@ -156,9 +188,6 @@ msgstr "禁用步进电机"
msgid "Disable XY"
msgstr "关闭 XY 电机"
msgid "Displayed Macros"
msgstr "宏命令显示开关"
msgid "Distance (mm)"
msgstr "挤出距离(mm)"
@@ -193,9 +222,24 @@ msgstr "风扇"
msgid "Filament Used"
msgstr "已用耗材"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "文件"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "微调"
@@ -209,6 +253,12 @@ msgstr ""
"重启\n"
"Firmware"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "字体大小"
@@ -222,6 +272,9 @@ msgstr ""
msgid "Go Back"
msgstr "返回"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "隐"
@@ -231,6 +284,9 @@ msgstr "隐藏"
msgid "Hide sensors in Temp."
msgstr "在温度中隐藏传感器。"
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "归零"
@@ -267,6 +323,9 @@ msgstr "初始化中"
msgid "Initializing printer..."
msgstr "初始化打印机中..."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "接口"
@@ -310,6 +369,9 @@ msgstr "界面语言"
msgid "Large"
msgstr "大"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "剩余时间:"
@@ -331,8 +393,11 @@ msgstr "宏"
msgid "Main Menu"
msgstr "主菜单"
msgid "Max Accelation"
msgstr "加速度"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "加速到减速度"
@@ -340,6 +405,15 @@ msgstr "加速到减速度"
msgid "Max Velocity"
msgstr "速度"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "中"
@@ -364,6 +438,9 @@ msgstr "文件名称"
msgid "Network"
msgstr "网络"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "未选择任何内容"
@@ -402,6 +479,9 @@ msgstr "电源开关"
msgid "Power On Printer"
msgstr "启动打印机"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "打印"
@@ -417,6 +497,9 @@ msgstr "打印机列表"
msgid "Printing"
msgstr "印刷"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe 发现应用的偏移量"
@@ -447,6 +530,15 @@ msgstr "恢复"
msgid "Retract"
msgstr "回抽"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "重试 #%s"
@@ -457,8 +549,18 @@ msgstr "保存"
msgid "Save Config"
msgstr "保存配置"
msgid "Save configuration"
msgstr "即将保存配置文件"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "屏幕DPMS"
@@ -497,12 +599,18 @@ msgstr "切片软件"
msgid "Slicer Time correction (%)"
msgstr "切片器时间校正 (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "小"
msgid "Sort by: "
msgstr "排序: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "速度(mm/s)"
@@ -512,6 +620,9 @@ msgstr "速度 +"
msgid "Speed -"
msgstr "速度 -"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "转角速度"
@@ -550,9 +661,6 @@ msgstr "设置温度"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "要应用 %s 主题,需要重新启动 KlipperScreen"
msgid "Tool"
msgstr "工具"
msgid "Total:"
msgstr "全部的:"
@@ -562,15 +670,20 @@ msgstr "未知加热器"
msgid "Unload"
msgstr "退出耗材"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "最新"
msgid "Update"
msgstr "更新"
#, fuzzy
msgid "Updating"
msgstr "更新"
msgstr ""
msgid "Uploaded"
msgstr "上传时间"
@@ -587,6 +700,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY 移动速度 (mm/s)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -599,12 +715,15 @@ msgstr "Z 校准"
msgid "Z Move Speed (mm/s)"
msgstr "Z 移动速度 (mm/s)"
msgid "Z Position"
msgstr "Z 位置"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "Z 倾斜校准"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -631,8 +750,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "工具"
#~ msgid "Displayed Macros"
#~ msgstr "宏命令显示开关"
#~ msgid "Z Position"
#~ msgstr "Z 位置"
#~ msgid "IPv4"
#~ msgstr "IPv4 地址"
@@ -640,9 +768,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6 地址"
#~ msgid "Z Offset"
#~ msgstr "Z 偏移"
#~ msgid "Unknown Heater "
#~ msgstr "未知加热器 "
@@ -705,9 +830,6 @@ msgstr "mm/s^2"
#~ msgid "Fast"
#~ msgstr "加速"
#~ msgid "Set Speed"
#~ msgstr "设置速度"
#~ msgid "Slow"
#~ msgstr "减速"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: KlipperScreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-31 11:25-0300\n"
"POT-Creation-Date: 2022-07-02 13:43-0300\n"
"PO-Revision-Date: 2022-03-31 11:25-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -31,9 +31,15 @@ msgstr "24 小時制"
msgid "A FIRMWARE_RESTART may fix the issue."
msgstr ""
msgid "ADXL Not Configured"
msgstr ""
msgid "Abort"
msgstr "中止"
msgid "Acceleration:"
msgstr ""
msgid "Accept"
msgstr "接受"
@@ -46,6 +52,17 @@ msgstr "新增列印機"
msgid "Add bed mesh profile"
msgstr "新增網床輪廓"
msgid "Apply"
msgstr ""
#, python-format
msgid "Apply %.2f offset to Endstop?"
msgstr ""
#, python-format
msgid "Apply %s%.2f offset to Probe?"
msgstr ""
msgid "Are you sure you want to run Emergency Stop?"
msgstr "您確定要運行緊急停止嗎?"
@@ -64,6 +81,9 @@ msgstr "您確定要關閉系統嗎?"
msgid "Auto"
msgstr "汽車"
msgid "Auto-calibrate"
msgstr ""
msgid "Auto-scroll"
msgstr "自動滾屏"
@@ -79,9 +99,15 @@ msgstr "Bltouch 發現應用的偏移量"
msgid "Calibrate"
msgstr "校正"
msgid "Calibrated"
msgstr ""
msgid "Calibrated, save configuration to make it permanent"
msgstr "校準,保存配置以使其永久化"
msgid "Calibrating..."
msgstr ""
msgid "Can't set above the maximum:"
msgstr "不能設置超過最大值:"
@@ -110,6 +136,12 @@ msgstr ""
"檢查/tmp/KlipperScreen.log 日誌檔以了解更多訊息。\n"
"請在GitHub上提交問題以尋求幫助。"
msgid "Check ADXL Wiring"
msgstr ""
msgid "Clear"
msgstr ""
msgid "Close"
msgstr "關閉"
@@ -156,9 +188,6 @@ msgstr "禁用步進電機"
msgid "Disable XY"
msgstr "禁用 XY"
msgid "Displayed Macros"
msgstr "顯示巨集"
msgid "Distance (mm)"
msgstr "距離(mm)"
@@ -193,9 +222,24 @@ msgstr "風扇"
msgid "Filament Used"
msgstr "已消耗的耗材"
msgid "Filament total:"
msgstr ""
msgid "Filament used:"
msgstr ""
msgid "Filament:"
msgstr ""
msgid "File"
msgstr "檔案"
msgid "File:"
msgstr ""
msgid "Finding ADXL"
msgstr ""
msgid "Fine Tuning"
msgstr "微調"
@@ -209,6 +253,12 @@ msgstr ""
"Firmware\n"
"重新啟動"
msgid "Flow:"
msgstr ""
msgid "Flowrate:"
msgstr ""
msgid "Font Size"
msgstr "字體大小"
@@ -222,6 +272,9 @@ msgstr ""
msgid "Go Back"
msgstr "返回"
msgid "Height:"
msgstr ""
msgid "Hidden"
msgstr "隱"
@@ -231,6 +284,9 @@ msgstr "隱藏"
msgid "Hide sensors in Temp."
msgstr "在溫度中隱藏傳感器。"
msgid "Hide temp."
msgstr ""
msgid "Home"
msgstr "首頁"
@@ -267,6 +323,9 @@ msgstr "初始化中"
msgid "Initializing printer..."
msgstr "初始化列印機中.."
msgid "Input Shaper"
msgstr ""
msgid "Interface"
msgstr "介面"
@@ -310,6 +369,9 @@ msgstr "語言"
msgid "Large"
msgstr "大的"
msgid "Layer:"
msgstr ""
msgid "Left:"
msgstr "剩下時間:"
@@ -331,8 +393,11 @@ msgstr "巨集"
msgid "Main Menu"
msgstr "主選單"
msgid "Max Accelation"
msgstr "最大加速度"
msgid "Max"
msgstr ""
msgid "Max Acceleration"
msgstr ""
msgid "Max Acceleration to Deceleration"
msgstr "最大加速到減速"
@@ -340,6 +405,15 @@ msgstr "最大加速到減速"
msgid "Max Velocity"
msgstr "最大速度"
msgid "Measure Both"
msgstr ""
msgid "Measure X"
msgstr ""
msgid "Measure Y"
msgstr ""
msgid "Medium"
msgstr "中"
@@ -364,6 +438,9 @@ msgstr "名稱"
msgid "Network"
msgstr "網路"
msgid "New"
msgstr ""
msgid "Nothing selected"
msgstr "未選擇任何內容"
@@ -402,6 +479,9 @@ msgstr "電源"
msgid "Power On Printer"
msgstr "啟動列印機"
msgid "Pressure Advance:"
msgstr ""
msgid "Print"
msgstr "列印"
@@ -417,6 +497,9 @@ msgstr "連接列印機"
msgid "Printing"
msgstr "列印中"
msgid "Probe Offset"
msgstr ""
msgid "Probe found applied offset"
msgstr "Probe 發現應用的偏移量"
@@ -447,6 +530,15 @@ msgstr "恢復"
msgid "Retract"
msgstr "回抽"
msgid "Retraction"
msgstr ""
msgid "Retraction Length"
msgstr ""
msgid "Retraction Speed"
msgstr ""
#, python-format
msgid "Retry #%s"
msgstr "重試 #%s"
@@ -457,8 +549,18 @@ msgstr "儲存"
msgid "Save Config"
msgstr "儲存設定"
msgid "Save configuration"
msgstr "儲存設定檔案"
msgid "Save Z"
msgstr ""
msgid "Save configuration?"
msgstr ""
msgid "Saved"
msgstr ""
#, python-format
msgid "Saved offset: %s"
msgstr ""
msgid "Screen DPMS"
msgstr "屏幕DPMS"
@@ -497,12 +599,18 @@ msgstr "切片"
msgid "Slicer Time correction (%)"
msgstr "切片器時間校正 (%)"
msgid "Slicer:"
msgstr ""
msgid "Small"
msgstr "小的"
msgid "Sort by: "
msgstr "排序: "
msgid "Sort:"
msgstr ""
msgid "Speed (mm/s)"
msgstr "速度(mm/s)"
@@ -512,6 +620,9 @@ msgstr "速度 +"
msgid "Speed -"
msgstr "速度 -"
msgid "Speed:"
msgstr ""
msgid "Square Corner Velocity"
msgstr "方角速度"
@@ -550,9 +661,6 @@ msgstr "溫度"
msgid "To apply %s KlipperScreen needs to be restarted"
msgstr "要應用 %s,需要重新啟動 KlipperScreen"
msgid "Tool"
msgstr "工具"
msgid "Total:"
msgstr "全部的:"
@@ -562,6 +670,12 @@ msgstr "未知加熱器"
msgid "Unload"
msgstr "卸載"
msgid "Unretract Extra Length"
msgstr ""
msgid "Unretract Speed"
msgstr ""
msgid "Up To Date"
msgstr "最新"
@@ -586,6 +700,9 @@ msgstr "X-"
msgid "XY Move Speed (mm/s)"
msgstr "XY 移動速度 (mm/s)"
msgid "XY Speed (mm/s)"
msgstr ""
msgid "Y+"
msgstr "Y+"
@@ -598,12 +715,15 @@ msgstr "Z 校準"
msgid "Z Move Speed (mm/s)"
msgstr "Z 移動速度 (mm/s)"
msgid "Z Position"
msgstr "Z 位置"
msgid "Z Speed (mm/s)"
msgstr ""
msgid "Z Tilt"
msgstr "Z 傾斜"
msgid "Z offset:"
msgstr ""
msgid "Z+"
msgstr "Z+"
@@ -630,8 +750,17 @@ msgstr "mm"
msgid "mm/s"
msgstr "mm/s"
msgid "mm/s^2"
msgstr "mm/s^2"
msgid "mm/s²"
msgstr "mm/s²"
#~ msgid "Tool"
#~ msgstr "工具"
#~ msgid "Displayed Macros"
#~ msgstr "顯示巨集"
#~ msgid "Z Position"
#~ msgstr "Z 位置"
#~ msgid "IPv4"
#~ msgstr "IPv4"
@@ -639,9 +768,6 @@ msgstr "mm/s^2"
#~ msgid "IPv6"
#~ msgstr "IPv6"
#~ msgid "Z Offset"
#~ msgstr "Z 間隙"
#~ msgid "Unknown Heater "
#~ msgstr "未知加熱器 "
+21 -21
View File
@@ -19,7 +19,6 @@ class Printer:
"shutdown": None
}
tools = []
toolcount = 0
extrudercount = 0
tempdevcount = 0
fancount = 0
@@ -38,7 +37,6 @@ class Printer:
self.power_devices = None
self.state_callbacks = None
self.tools = None
self.toolcount = None
self.extrudercount = None
self.tempdevcount = None
self.fancount = None
@@ -51,7 +49,6 @@ class Printer:
def reinit(self, printer_info, data):
logging.debug("Moonraker object status: %s" % data)
self.config = data['configfile']['config']
self.toolcount = 0
self.extrudercount = 0
self.tempdevcount = 0
self.fancount = 0
@@ -69,19 +66,15 @@ class Printer:
for x in self.config.keys():
if x[0:8] == "extruder":
self.tools.append(x)
self.tools = sorted(self.tools)
self.extrudercount += 1
if x.startswith('extruder_stepper'):
continue
self.devices[x] = {
"temperature": 0,
"target": 0
}
self.tools.append(x)
self.tools = sorted(self.tools)
self.toolcount += 1
if "shared_heater" in self.config[x]:
continue
self.extrudercount += 1
if x == 'heater_bed' or x.startswith('heater_generic ') or x.startswith('temperature_sensor ') \
or x.startswith('temperature_fan '):
self.devices[x] = {
@@ -104,7 +97,6 @@ class Printer:
self.process_update(data)
logging.info("Klipper version: %s", self.klipper['version'])
logging.info("# Toolcount: %s", str(self.toolcount))
logging.info("# Extruders: %s", str(self.extrudercount))
logging.info("# Temperature devices: %s", str(self.tempdevcount))
logging.info("# Fans: %s", str(self.fancount))
@@ -125,7 +117,7 @@ class Printer:
'motion_report'
]
for x in (self.get_tools() + self.get_heaters()):
for x in (self.get_tools() + self.get_heaters() + self.get_filament_sensors()):
if x in data:
for i in data[x]:
self.set_dev_stat(x, i, data[x][i])
@@ -137,7 +129,7 @@ class Printer:
self.data[x] = {}
self.data[x].update(data[x])
if "webhooks" in data or "idle_timeout" in data or "print_stats" in data:
if "webhooks" in data or "idle_timeout" in data or "print_stats" in data or "pause_resume" in data:
self.evaluate_state()
def get_updates(self):
@@ -150,7 +142,9 @@ class Printer:
if wh_state == "ready":
new_state = "ready"
if self.data['print_stats']:
if self.data['pause_resume']['is_paused']:
new_state = "paused"
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"
@@ -209,11 +203,6 @@ class Printer:
return self.config[section]
return False
def get_config_section(self, section):
if section not in self.config:
return False
return self.config[section]
def get_data(self):
return self.data
@@ -242,6 +231,14 @@ class Printer:
heaters.append(h)
return heaters
def get_filament_sensors(self):
sensors = []
for s in self.get_config_section_list("filament_switch_sensor "):
sensors.append(s)
for s in self.get_config_section_list("filament_motion_sensor "):
sensors.append(s)
return sensors
def get_printer_status_data(self):
data = {
"printer": {
@@ -259,12 +256,15 @@ class Printer:
"count": len(self.get_gcode_macros())
},
"idle_timeout": self.get_stat("idle_timeout").copy(),
"pause_resume": self.get_stat("pause_resume").copy(),
"pause_resume": {
"is_paused": True if self.state == "paused" else False
},
"power_devices": {
"count": len(self.get_power_devices())
},
"probe": self.config_section_exists("probe"),
"firmware_retraction": self.config_section_exists("firmware_retraction")
"firmware_retraction": self.config_section_exists("firmware_retraction"),
"input_shaper": self.config_section_exists("input_shaper")
}
}
+62 -9
View File
@@ -1,10 +1,12 @@
import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from ks_includes.KlippyGcodes import KlippyGcodes
class ScreenPanel:
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
@@ -23,16 +25,18 @@ class ScreenPanel:
self.layout = Gtk.Layout()
self.layout.set_size(self._screen.width, self._screen.height)
self.content = Gtk.Box(spacing=0)
self.content = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.content.get_style_context().add_class("content")
self.content.set_hexpand(True)
self.content.set_vexpand(True)
def initialize(self, panel_name):
# Create gtk items here
return
def emergency_stop(self, widget):
_ = self.lang.gettext
if self._config.get_main_config_option('confirm_estop') == "True":
if self._config.get_main_config().getboolean('confirm_estop'):
self._screen._confirm_send_action(widget, _("Are you sure you want to run Emergency Stop?"),
"printer.emergency_stop")
else:
@@ -42,7 +46,7 @@ class ScreenPanel:
if temp <= 0:
return ""
else:
return ("(%s)" % str(int(temp)))
return "(%s)" % str(int(temp))
def format_temp(self, temp, places=1):
if places == 0:
@@ -57,17 +61,17 @@ class ScreenPanel:
def get_content(self):
return self.content
def get_file_image(self, filename, width=1.6, height=1.6):
def get_file_image(self, filename, width=1, height=1, small=False):
if not self._files.has_thumbnail(filename):
return None
loc = self._files.get_thumbnail_location(filename)
loc = self._files.get_thumbnail_location(filename, small)
if loc is None:
return None
if loc[0] == "file":
return self._gtk.PixbufFromFile(loc[1], None, width, height)
return self._gtk.PixbufFromFile(loc[1], width, height)
if loc[0] == "http":
return self._gtk.PixbufFromHttp(loc[1], None, width, height)
return self._gtk.PixbufFromHttp(loc[1], width, height)
return None
def get_title(self):
@@ -111,8 +115,57 @@ class ScreenPanel:
self.labels[label]['l'].set_text(text)
def update_temp(self, dev, temp, target, name=None):
if dev in self.labels:
if dev in self.labels and temp is not None:
if name is None:
self.labels[dev].set_label(self._gtk.formatTemperatureString(temp, target))
else:
self.labels[dev].set_label("%s\n%s" % (name, self._gtk.formatTemperatureString(temp, target)))
def load_menu(self, widget, name):
if ("%s_menu" % name) not in self.labels:
return
for child in self.content.get_children():
self.content.remove(child)
self.menu.append('%s_menu' % name)
self.content.add(self.labels[self.menu[-1]])
self.content.show_all()
def unload_menu(self, widget=None):
logging.debug("self.menu: %s" % self.menu)
if len(self.menu) <= 1 or self.menu[-2] not in self.labels:
return
self.menu.pop()
for child in self.content.get_children():
self.content.remove(child)
self.content.add(self.labels[self.menu[-1]])
self.content.show_all()
def on_dropdown_change(self, combo, section, option, callback=None):
tree_iter = combo.get_active_iter()
if tree_iter is not None:
model = combo.get_model()
value = model[tree_iter][1]
logging.debug("[%s] %s changed to %s" % (section, option, value))
self._config.set(section, option, value)
self._config.save_user_config_options()
if callback is not None:
callback(value)
def scale_moved(self, widget, event, section, option):
logging.debug("[%s] %s changed to %s" % (section, option, widget.get_value()))
if section not in self._config.get_config().sections():
self._config.get_config().add_section(section)
self._config.set(section, option, str(int(widget.get_value())))
self._config.save_user_config_options()
def switch_config_option(self, switch, gparam, section, option, callback=None):
logging.debug("[%s] %s toggled %s" % (section, option, switch.get_active()))
if section not in self._config.get_config().sections():
self._config.get_config().add_section(section)
self._config.set(section, option, "True" if switch.get_active() else "False")
self._config.save_user_config_options()
if callback is not None:
callback(switch.get_active())
+6 -7
View File
@@ -91,7 +91,6 @@ class HeaterGraph(Gtk.DrawingArea):
max_num = math.ceil(self.get_max_num(data_points) * 1.1 / 10) * 10
d_width = 1 / points_per_pixel
d_height_scale = self.graph_lines(ctx, gsize, max_num)
self.graph_time(ctx, gsize, points_per_pixel)
@@ -115,10 +114,10 @@ class HeaterGraph(Gtk.DrawingArea):
ctx.set_dash([1, 0])
d_len = len(data) - 1
for d in data:
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_x = i * swidth + gsize[0][0] if i != d_len else gsize[1][0] - 1
p_y = gsize[1][1] - 1 - (d * hscale)
if i == 0:
ctx.move_to(gsize[0][0]+1, p_y)
ctx.move_to(gsize[0][0] + 1, p_y)
i += 1
continue
ctx.line_to(p_x, p_y)
@@ -139,15 +138,15 @@ class HeaterGraph(Gtk.DrawingArea):
while (max_num / nscale) > 5:
nscale += 10
# nscale = math.floor((max_num / 10) / 4) * 10
r = int(max_num/nscale) + 1
r = int(max_num / nscale) + 1
hscale = (gsize[1][1] - gsize[0][1]) / (r * nscale)
for i in range(r):
ctx.set_source_rgb(.5, .5, .5)
lheight = gsize[1][1] - nscale*i*hscale
lheight = gsize[1][1] - nscale * i * hscale
ctx.move_to(6, lheight + 3)
ctx.set_font_size(self.font_size)
ctx.show_text(str(nscale*i).rjust(3, " "))
ctx.show_text(str(nscale * i).rjust(3, " "))
ctx.stroke()
ctx.set_source_rgba(.5, .5, .5, .2)
ctx.move_to(gsize[0][0], lheight)
+2 -1
View File
@@ -16,6 +16,7 @@ class Keypad(Gtk.Box):
numpad = self._gtk.HomogeneousGrid()
numpad.set_direction(Gtk.TextDirection.LTR)
numpad.get_style_context().add_class('numpad')
keys = [
['1', 'numpad_tleft'],
@@ -48,7 +49,7 @@ class Keypad(Gtk.Box):
self.labels['entry'].props.xalign = 0.5
self.labels['entry'].connect("activate", self.update_entry, "E")
b = self._gtk.ButtonImage('cancel', _('Close'), None, 1)
b = self._gtk.ButtonImage('cancel', _('Close'), None, .66, Gtk.PositionType.LEFT, False)
b.connect("clicked", close_function)
self.add(self.labels['entry'])
+66 -62
View File
@@ -9,10 +9,12 @@ from threading import Thread
from queue import Queue
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import GLib, Gdk
class WifiManager():
class WifiManager:
networks_in_supplicant = []
connected = False
_stop_loop = False
@@ -50,8 +52,9 @@ class WifiManager():
self.soc = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
self.soc.bind(KS_SOCKET_FILE)
self.soc.connect("/var/run/wpa_supplicant/%s" % interface)
except Exception:
logging.info("Error connecting to wifi socket: %s" % interface)
except Exception as e:
logging.critical(e, exc_info=True)
logging.error("Error connecting to wifi socket: %s" % interface)
return
self.wpa_thread = WpaSocket(self, self.queue, self.callback)
@@ -76,7 +79,7 @@ class WifiManager():
# TODO: Add wpa_cli error checking
network_id = self.wpa_cli("ADD_NETWORK")
commands = [
'ENABLE_NETWORK %s' % (network_id),
'ENABLE_NETWORK %s' % network_id,
'SET_NETWORK %s ssid "%s"' % (network_id, ssid.replace('"', '\"')),
'SET_NETWORK %s psk "%s"' % (network_id, psk.replace('"', '\"'))
]
@@ -324,7 +327,8 @@ class WpaSocket(Thread):
while self._stop_loop is False:
try:
msg = self.soc.recv(4096).decode().strip()
except Exception:
except Exception as e:
logging.critical(e, exc_info=True)
# TODO: Socket error
continue
if msg.startswith("<"):
@@ -363,117 +367,117 @@ class WifiChannels:
@staticmethod
def lookup(freq):
if freq == "2412":
return ("2.4", "1")
return "2.4", "1"
if freq == "2417":
return ("2.4", "2")
return "2.4", "2"
if freq == "2422":
return ("2.4", "3")
return "2.4", "3"
if freq == "2427":
return ("2.4", "4")
return "2.4", "4"
if freq == "2432":
return ("2.4", "5")
return "2.4", "5"
if freq == "2437":
return ("2.4", "6")
return "2.4", "6"
if freq == "2442":
return ("2.4", "7")
return "2.4", "7"
if freq == "2447":
return ("2.4", "8")
return "2.4", "8"
if freq == "2452":
return ("2.4", "9")
return "2.4", "9"
if freq == "2457":
return ("2.4", "10")
return "2.4", "10"
if freq == "2462":
return ("2.4", "11")
return "2.4", "11"
if freq == "2467":
return ("2.4", "12")
return "2.4", "12"
if freq == "2472":
return ("2.4", "13")
return "2.4", "13"
if freq == "2484":
return ("2.4", "14")
return "2.4", "14"
if freq == "5035":
return ("5", "7")
return "5", "7"
if freq == "5040":
return ("5", "8")
return "5", "8"
if freq == "5045":
return ("5", "9")
return "5", "9"
if freq == "5055":
return ("5", "11")
return "5", "11"
if freq == "5060":
return ("5", "12")
return "5", "12"
if freq == "5080":
return ("5", "16")
return "5", "16"
if freq == "5170":
return ("5", "34")
return "5", "34"
if freq == "5180":
return ("5", "36")
return "5", "36"
if freq == "5190":
return ("5", "38")
return "5", "38"
if freq == "5200":
return ("5", "40")
return "5", "40"
if freq == "5210":
return ("5", "42")
return "5", "42"
if freq == "5220":
return ("5", "44")
return "5", "44"
if freq == "5230":
return ("5", "46")
return "5", "46"
if freq == "5240":
return ("5", "48")
return "5", "48"
if freq == "5260":
return ("5", "52")
return "5", "52"
if freq == "5280":
return ("5", "56")
return "5", "56"
if freq == "5300":
return ("5", "60")
return "5", "60"
if freq == "5320":
return ("5", "64")
return "5", "64"
if freq == "5500":
return ("5", "100")
return "5", "100"
if freq == "5520":
return ("5", "104")
return "5", "104"
if freq == "5540":
return ("5", "108")
return "5", "108"
if freq == "5560":
return ("5", "112")
return "5", "112"
if freq == "5580":
return ("5", "116")
return "5", "116"
if freq == "5600":
return ("5", "120")
return "5", "120"
if freq == "5620":
return ("5", "124")
return "5", "124"
if freq == "5640":
return ("5", "128")
return "5", "128"
if freq == "5660":
return ("5", "132")
return "5", "132"
if freq == "5680":
return ("5", "136")
return "5", "136"
if freq == "5700":
return ("5", "140")
return "5", "140"
if freq == "5720":
return ("5", "144")
return "5", "144"
if freq == "5745":
return ("5", "149")
return "5", "149"
if freq == "5765":
return ("5", "153")
return "5", "153"
if freq == "5785":
return ("5", "157")
return "5", "157"
if freq == "5805":
return ("5", "161")
return "5", "161"
if freq == "5825":
return ("5", "165")
return "5", "165"
if freq == "4915":
return ("5", "183")
return "5", "183"
if freq == "4920":
return ("5", "184")
return "5", "184"
if freq == "4925":
return ("5", "185")
return "5", "185"
if freq == "4935":
return ("5", "187")
return "5", "187"
if freq == "4940":
return ("5", "188")
return "5", "188"
if freq == "4945":
return ("5", "189")
return "5", "189"
if freq == "4960":
return ("5", "192")
return "5", "192"
if freq == "4980":
return ("5", "196")
return "5", "196"
return None
+54 -12
View File
@@ -1,16 +1,58 @@
site_name: KlipperScreen
nav:
- Hardware.md
- Installation.md
- Configuration.md
- Quicktips.md
- Theming.md
- Troubleshooting.md
- Translations.md
- Changelog.md
- Panels.md
- Contact.md
theme: readthedocs
site_url: https://klipperscreen.readthedocs.io
site_description: >-
KlipperScreen documentation.
repo_name: jordanruthe/KlipperScreen/
repo_url: https://github.com/jordanruthe/KlipperScreen/
nav:
- Home: index.md
- Setup:
- Hardware.md
- Installation.md
- Configuration.md
- Quicktips.md
- Macros: macros.md
- Android.md
- Troubleshooting.md
- Theming.md
- Translations.md
- Breaking Changes: Changelog.md
- Screenshots: Panels.md
- Contact.md
theme:
name: material
language: en
features:
- content.code.annotate
- content.tooltips
- navigation.indexes
- navigation.sections
- navigation.top
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
palette:
- scheme: slate
primary: deep purple
plugins:
- search
markdown_extensions:
- admonition
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/jordanruthe/klipperScreen/
- icon: fontawesome/brands/discord
link: https://discord.klipper3d.org/
- icon: fontawesome/brands/python
+105 -198
View File
@@ -9,31 +9,22 @@ from jinja2 import Environment
from ks_includes.screen_panel import ScreenPanel
class BasePanel(ScreenPanel):
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
super().__init__(screen, title, back, action_bar, printer_name)
self.current_panel = None
self.time_min = -1
self.time_format = self._config.get_main_config_option("24htime")
self.title_spacing = self._gtk.font_size * 2
self.time_format = self._config.get_main_config().getboolean("24htime", True)
self.time_update = None
self.titlebar_name_type = None
self.buttons_showing = {
'back': False if back else True,
'back': not(back),
'macros_shortcut': False,
'printer_select': False
}
self.layout = Gtk.Layout()
self.layout.set_size(self._screen.width, self._screen.height)
action_bar_width = self._gtk.get_action_bar_width() if action_bar is True else 0
action_bar_height = self._gtk.get_action_bar_height() if action_bar is True else 0
self.control_grid = self._gtk.HomogeneousGrid()
self.control_grid.set_size_request(action_bar_width, action_bar_height)
self.control_grid.get_style_context().add_class('action_bar')
# Action bar buttons
self.control['back'] = self._gtk.ButtonImage('back', None, None, 1)
self.control['back'].connect("clicked", self.back)
self.control['home'] = self._gtk.ButtonImage('main', None, None, 1)
@@ -43,8 +34,8 @@ class BasePanel(ScreenPanel):
self.control['printer_select'] = self._gtk.ButtonImage('shuffle', None, None, 1)
self.control['printer_select'].connect("clicked", self._screen.show_printer_select)
self.control['macro_shortcut'] = self._gtk.ButtonImage('custom-script', None, None, 1)
self.control['macro_shortcut'].connect("clicked", self.menu_item_clicked, "gcode_macros", {
self.control['macros_shortcut'] = self._gtk.ButtonImage('custom-script', None, None, 1)
self.control['macros_shortcut'].connect("clicked", self.menu_item_clicked, "gcode_macros", {
"name": "Macros",
"panel": "gcode_macros"
})
@@ -52,124 +43,118 @@ class BasePanel(ScreenPanel):
self.control['estop'] = self._gtk.ButtonImage('emergency', None, None, 1)
self.control['estop'].connect("clicked", self.emergency_stop)
self.locations = {
'macro_shortcut': 2,
'printer_select': 2
}
button_range = 3
if len(self._config.get_printers()) > 1:
self.locations['macro_shortcut'] = 3
if self._config.get_main_config_option('side_macro_shortcut') == "True":
button_range = 4
# Any action bar button should close the keyboard
for item in self.control:
self.control[item].connect("clicked", self._screen.remove_keyboard)
for i in range(button_range):
self.control['space%s' % i] = Gtk.Label("")
if self._screen.vertical_mode:
self.control_grid.attach(self.control['space%s' % i], i, 0, 1, 1)
else:
self.control_grid.attach(self.control['space%s' % i], 0, i, 1, 1)
# Action bar
self.action_bar = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=5)
if self._screen.vertical_mode:
self.control_grid.attach(self.control['estop'], 4, 0, 1, 1)
self.action_bar.set_hexpand(True)
self.action_bar.set_vexpand(False)
self.action_bar.set_size_request(0, self._gtk.get_action_bar_height())
else:
self.control_grid.attach(self.control['estop'], 0, 4, 1, 1)
self.action_bar.set_hexpand(False)
self.action_bar.set_vexpand(True)
self.action_bar.set_size_request(self._gtk.get_action_bar_width(), 0)
try:
env = Environment(extensions=["jinja2.ext.i18n"])
env.install_gettext_translations(self.lang)
j2_temp = env.from_string(title)
title = j2_temp.render()
except Exception:
logging.debug("Error parsing jinja for title: %s" % title)
self.action_bar.get_style_context().add_class('action_bar')
self.action_bar.add(self.control['back'])
self.action_bar.add(self.control['home'])
if len(self._config.get_printers()) > 1:
self.action_bar.add(self.control['printer_select'])
self.action_bar.add(self.control['macros_shortcut'])
self.action_bar.add(self.control['estop'])
# Titlebar
# This box will be populated by show_heaters
self.control['temp_box'] = Gtk.Box(spacing=10)
self.titlelbl = Gtk.Label()
self.titlelbl.set_hexpand(True)
self.titlelbl.set_vexpand(True)
self.titlelbl.set_halign(Gtk.Align.CENTER)
self.titlelbl.set_ellipsize(True)
self.titlelbl.set_ellipsize(Pango.EllipsizeMode.END)
self.set_title(title)
self.hmargin = 5
self.content = Gtk.VBox(spacing=0)
if self._screen.vertical_mode:
self.content.set_size_request(self._screen.width - self.hmargin * 2,
self._screen.height - self.title_spacing - action_bar_height)
else:
self.content.set_size_request(self._screen.width - action_bar_width - self.hmargin,
self._screen.height - self.title_spacing)
if action_bar is True:
if self._screen.vertical_mode:
self.layout.put(self.control_grid, 0, self._screen.height - action_bar_height)
else:
self.layout.put(self.control_grid, 0, 0)
self.control['time'] = Gtk.Label("00:00 AM")
self.control['time_box'] = Gtk.Box()
self.control['time_box'].set_halign(Gtk.Align.END)
self.control['time'] = Gtk.Label("00:00 AM")
self.control['time_box'].pack_end(self.control['time'], True, True, self.hmargin)
self.control['time_box'].pack_end(self.control['time'], True, True, 5)
self.control['temp_box'] = Gtk.Box()
self.titlebar = Gtk.Grid()
self.titlebar = Gtk.Box(spacing=5)
self.titlebar.set_size_request(0, self._gtk.get_titlebar_height())
self.titlebar.set_valign(Gtk.Align.CENTER)
self.titlebar.set_property("column-spacing", 5)
if self._screen.vertical_mode:
self.titlebar.set_size_request(self._screen.width, self.title_spacing)
else:
self.titlebar.set_size_request(self._screen.width - action_bar_width, self.title_spacing)
self.titlebar.attach(self.control['temp_box'], 0, 0, 1, 1)
self.titlebar.attach(self.titlelbl, 1, 0, 1, 1)
self.titlebar.attach(self.control['time_box'], 2, 0, 1, 1)
self.titlebar.add(self.control['temp_box'])
self.titlebar.add(self.titlelbl)
self.titlebar.add(self.control['time_box'])
# Main layout
self.main_grid = Gtk.Grid()
# To achieve rezisability this needs to be removed
# The main issue is that currently the content doesn't expand correctly
self.main_grid.set_size_request(self._screen.width, self._screen.height)
if self._screen.vertical_mode:
self.layout.put(self.titlebar, 0, 0)
self.layout.put(self.content, self.hmargin, self.title_spacing)
self.main_grid.attach(self.titlebar, 0, 0, 1, 1)
self.main_grid.attach(self.content, 0, 1, 1, 1)
self.main_grid.attach(self.action_bar, 0, 2, 1, 1)
self.action_bar.set_orientation(orientation=Gtk.Orientation.HORIZONTAL)
else:
self.layout.put(self.titlebar, action_bar_width, 0)
self.layout.put(self.content, action_bar_width + self.hmargin, self.title_spacing)
self.main_grid.attach(self.action_bar, 0, 0, 1, 2)
self.action_bar.set_orientation(orientation=Gtk.Orientation.VERTICAL)
self.main_grid.attach(self.titlebar, 1, 0, 1, 1)
self.main_grid.attach(self.content, 1, 1, 1, 1)
# Layout is and content are on screen_panel
self.layout.add(self.main_grid)
def initialize(self, panel_name):
self.update_time()
return
def show_heaters(self, show=True):
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
self.titlebar_name_type = printer_cfg.get("titlebar_name_type", None)
logging.info("Titlebar name type: %s", self.titlebar_name_type)
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):
if not show or self._screen.printer.get_temp_store_devices() is None:
return
for device in self._screen.printer.get_temp_store_devices():
logging.info(device)
self.labels[device + '_box'] = Gtk.Box(spacing=0)
self.labels[device] = Gtk.Label(label="100º")
self.labels[device].set_ellipsize(True)
self.labels[device].set_ellipsize(Pango.EllipsizeMode.START)
if device.startswith("extruder"):
if self._screen.printer.extrudercount > 1:
if device == "extruder":
ext_img = self._gtk.Image("extruder-0", .5)
icon = self._gtk.Image("extruder-0", .5)
else:
ext_img = self._gtk.Image("extruder-%s" % device[8:], .5)
icon = self._gtk.Image("extruder-%s" % device[8:], .5)
else:
ext_img = self._gtk.Image("extruder", .5)
self.labels[device + '_box'].pack_start(ext_img, True, True, 3)
icon = self._gtk.Image("extruder", .5)
elif device.startswith("heater_bed"):
bed_img = self._gtk.Image("bed", .5)
self.labels[device + '_box'].pack_start(bed_img, True, True, 3)
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"):
fan_img = self._gtk.Image("fan", .5)
self.labels[device + '_box'].pack_start(fan_img, True, True, 3)
icon = self._gtk.Image("fan", .5)
elif device.startswith("heater_generic"):
heat_img = self._gtk.Image("heater", .5)
self.labels[device + '_box'].pack_start(heat_img, True, True, 3)
icon = self._gtk.Image("heater", .5)
else:
temp_img = self._gtk.Image("heat-up", .5)
self.labels[device + '_box'].pack_start(temp_img, True, True, 3)
self.labels[device + '_box'].pack_start(self.labels[device], True, True, 0)
icon = self._gtk.Image("heat-up", .5)
self.labels[device] = Gtk.Label(label="100º")
self.labels[device].set_ellipsize(Pango.EllipsizeMode.START)
self.labels[device + '_box'] = Gtk.Box()
if icon is not None:
self.labels[device + '_box'].pack_start(icon, False, False, 3)
self.labels[device + '_box'].pack_start(self.labels[device], False, False, 0)
# Limit the number of items according to resolution
if self._screen.width <= 480:
nlimit = 3
elif self._screen.width <= 800:
@@ -180,22 +165,19 @@ class BasePanel(ScreenPanel):
n = 0
if self._screen.printer.get_tools():
self.current_extruder = self._screen.printer.get_stat("toolhead", "extruder")
self.control['temp_box'].pack_start(self.labels["%s_box" % self.current_extruder], True, True, 3)
self.control['temp_box'].add(self.labels["%s_box" % self.current_extruder])
n += 1
if self._screen.printer.has_heated_bed():
self.control['temp_box'].pack_start(self.labels['heater_bed_box'], True, True, 3)
self.control['temp_box'].add(self.labels['heater_bed_box'])
n += 1
# Options in the config have priority
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
if printer_cfg is not None:
titlebar_items = printer_cfg.get("titlebar_items", "")
if titlebar_items is not None:
titlebar_items = [str(i.strip()) for i in titlebar_items.split(',')]
logging.info("Titlebar items: %s", titlebar_items)
self.titlebar_name_type = printer_cfg.get("titlebar_name_type", None)
logging.info("Titlebar name type: %s", self.titlebar_name_type)
for device in self._screen.printer.get_temp_store_devices():
# Users can fill the bar if they want
if n >= nlimit + 1:
@@ -206,7 +188,7 @@ class BasePanel(ScreenPanel):
name = device
for item in titlebar_items:
if name == item:
self.control['temp_box'].pack_start(self.labels["%s_box" % device], True, True, 3)
self.control['temp_box'].add(self.labels["%s_box" % device])
n += 1
break
@@ -215,7 +197,7 @@ class BasePanel(ScreenPanel):
if n >= nlimit:
break
if device.startswith("heater_generic"):
self.control['temp_box'].pack_start(self.labels["%s_box" % device], True, True, 3)
self.control['temp_box'].add(self.labels["%s_box" % device])
n += 1
self.control['temp_box'].show_all()
@@ -232,8 +214,7 @@ class BasePanel(ScreenPanel):
if self.current_panel is None:
return
if self._screen.is_keyboard_showing():
self._screen.remove_keyboard()
self._screen.remove_keyboard()
if hasattr(self.current_panel, "back"):
if not self.current_panel.back():
@@ -241,9 +222,6 @@ class BasePanel(ScreenPanel):
else:
self._screen._menu_go_back()
def get(self):
return self.layout
def process_update(self, action, data):
if action != "notify_status_update" or self._screen.printer is None:
return
@@ -251,14 +229,14 @@ class BasePanel(ScreenPanel):
devices = self._screen.printer.get_temp_store_devices()
if devices is not None:
for device in devices:
name = ""
if not (device.startswith("extruder") or device.startswith("heater_bed")):
if self.titlebar_name_type == "full":
name = device.split(" ")[1:][0].capitalize().replace("_", " ") + ": "
elif self.titlebar_name_type == "short":
name = device.split(" ")[1:][0][:1].upper() + ": "
temp = self._screen.printer.get_dev_stat(device, "temperature")
if temp is not None:
if temp is not None and device in self.labels:
name = ""
if not (device.startswith("extruder") or device.startswith("heater_bed")):
if self.titlebar_name_type == "full":
name = device.split(" ")[1:][0].capitalize().replace("_", " ") + ": "
elif self.titlebar_name_type == "short":
name = device.split(" ")[1:][0][:1].upper() + ": "
self.labels[device].set_label("%s%d°" % (name, round(temp)))
if "toolhead" in data and "extruder" in data["toolhead"]:
@@ -269,105 +247,41 @@ class BasePanel(ScreenPanel):
self.control['temp_box'].reorder_child(self.labels["%s_box" % self.current_extruder], 0)
self.control['temp_box'].show_all()
def remove(self, widget):
self.content.remove(widget)
def show_back(self, show=True):
if show is True and self.buttons_showing['back'] is False:
self.control_grid.remove(self.control_grid.get_child_at(0, 0))
self.control_grid.attach(self.control['back'], 0, 0, 1, 1)
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(1, 0))
self.control_grid.attach(self.control['home'], 1, 0, 1, 1)
else:
self.control_grid.remove(self.control_grid.get_child_at(0, 1))
self.control_grid.attach(self.control['home'], 0, 1, 1, 1)
self.control['back'].set_sensitive(True)
self.control['home'].set_sensitive(True)
self.buttons_showing['back'] = True
elif show is False and self.buttons_showing['back'] is True:
for i in range(0, 2):
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(i, 0))
self.control_grid.attach(self.control['space%s' % i], i, 0, 1, 1)
else:
self.control_grid.remove(self.control_grid.get_child_at(0, i))
self.control_grid.attach(self.control['space%s' % i], 0, i, 1, 1)
self.control['back'].set_sensitive(False)
self.control['home'].set_sensitive(False)
self.buttons_showing['back'] = False
self.control_grid.show()
def show_macro_shortcut(self, show=True, mod_row=False):
if show == "True":
show = True
def show_macro_shortcut(self, show=True):
if show is True and self.buttons_showing['macros_shortcut'] is False:
if len(self._config.get_printers()) > 1 and mod_row is True:
if self._screen.vertical_mode:
self.control_grid.insert_column(self.locations['macro_shortcut'])
else:
self.control_grid.insert_row(self.locations['macro_shortcut'])
self.action_bar.add(self.control['macros_shortcut'])
if self.buttons_showing['printer_select'] is False:
self.action_bar.reorder_child(self.control['macros_shortcut'], 2)
else:
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(self.locations['macro_shortcut'], 0))
else:
self.control_grid.remove(self.control_grid.get_child_at(0, self.locations['macro_shortcut']))
if 'space%s' % self.locations['macro_shortcut'] in self.control:
self.control_grid.remove(self.control['space%s' % self.locations['macro_shortcut']])
if self._screen.vertical_mode:
self.control_grid.attach(self.control['macro_shortcut'], self.locations['macro_shortcut'], 0, 1, 1)
else:
self.control_grid.attach(self.control['macro_shortcut'], 0, self.locations['macro_shortcut'], 1, 1)
self.action_bar.reorder_child(self.control['macros_shortcut'], 3)
self.buttons_showing['macros_shortcut'] = True
elif show is not True and self.buttons_showing['macros_shortcut'] is True:
if ('space%s' % self.locations['macro_shortcut']) not in self.control:
self.control['space%s' % self.locations['macro_shortcut']] = Gtk.Label("")
if len(self._config.get_printers()) > 1 and mod_row is True:
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(self.locations['macro_shortcut'], 0))
self.control_grid.remove_column(self.locations['macro_shortcut'])
else:
self.control_grid.remove(self.control_grid.get_child_at(0, self.locations['macro_shortcut']))
self.control_grid.remove_row(self.locations['macro_shortcut'])
self.control_grid.remove(self.control['macro_shortcut'])
else:
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(self.locations['macro_shortcut'], 0))
else:
self.control_grid.remove(self.control_grid.get_child_at(0, self.locations['macro_shortcut']))
if ('space%s' % self.locations['macro_shortcut']) not in self.control:
self.control['space%s' % self.locations['macro_shortcut']] = Gtk.Label("")
if self._screen.vertical_mode:
self.control_grid.attach(self.control['space%s' % self.locations['macro_shortcut']],
self.locations['macro_shortcut'], 0, 1, 1)
else:
self.control_grid.attach(self.control['space%s' % self.locations['macro_shortcut']],
0, self.locations['macro_shortcut'], 1, 1)
elif show is False and self.buttons_showing['macros_shortcut'] is True:
self.action_bar.remove(self.control['macros_shortcut'])
self.buttons_showing['macros_shortcut'] = False
self._screen.show_all()
def show_printer_select(self, show=True):
if len(self._config.get_printers()) <= 1:
return
if show and self.buttons_showing['printer_select'] is False:
logging.info("Turning on printer_select button")
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(self.locations['printer_select'], 0))
self.control_grid.attach(self.control['printer_select'], self.locations['printer_select'], 0, 1, 1)
else:
self.control_grid.remove(self.control_grid.get_child_at(0, self.locations['printer_select']))
self.control_grid.attach(self.control['printer_select'], 0, self.locations['printer_select'], 1, 1)
self.action_bar.add(self.control['printer_select'])
self.action_bar.reorder_child(self.control['printer_select'], 2)
self.buttons_showing['printer_select'] = True
elif show is False and self.buttons_showing['printer_select']:
logging.info("Turning off printer_select button")
if self._screen.vertical_mode:
self.control_grid.remove(self.control_grid.get_child_at(self.locations['printer_select'], 0))
self.control_grid.attach(self.control['space%s' % self.locations['printer_select']],
self.locations['printer_select'], 0, 1, 1)
else:
self.control_grid.remove(self.control_grid.get_child_at(0, self.locations['printer_select']))
self.control_grid.attach(self.control['space%s' % self.locations['printer_select']],
0, self.locations['printer_select'], 1, 1)
self.action_bar.remove(self.control['printer_select'])
self.buttons_showing['printer_select'] = False
self._screen.show_all()
@@ -382,18 +296,11 @@ class BasePanel(ScreenPanel):
self.titlelbl.set_label("%s | %s" % (self._screen.connecting_to_printer, title))
def show_back_buttons(self):
self.control_grid.attach(self.control['back'], 0, 0, 1, 1)
if self._screen.vertical_mode:
self.control_grid.attach(self.control['home'], 1, 0, 1, 1)
else:
self.control_grid.attach(self.control['home'], 0, 1, 1, 1)
def update_time(self):
now = datetime.datetime.now()
confopt = self._config.get_main_config_option("24htime")
confopt = self._config.get_main_config().getboolean("24htime", True)
if now.minute != self.time_min or self.time_format != confopt:
if confopt == "True":
if confopt:
self.control['time'].set_text(now.strftime("%H:%M"))
else:
self.control['time'].set_text(now.strftime("%I:%M %p"))
+11 -9
View File
@@ -8,15 +8,17 @@ from gi.repository import Gtk
from ks_includes.KlippyGcodes import KlippyGcodes
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return BedLevelPanel(*args)
class BedLevelPanel(ScreenPanel):
x_offset = 0
y_offset = 0
def initialize(self, panel_name):
_ = self.lang.gettext
self.panel_name = panel_name
self.screws = None
grid = self._gtk.HomogeneousGrid()
@@ -47,19 +49,19 @@ class BedLevelPanel(ScreenPanel):
logging.debug("%d bed_screws not supported: calculating 4 locations", nscrews)
xconf = self._screen.printer.get_config_section("stepper_x")
yconf = self._screen.printer.get_config_section("stepper_y")
x = int(int(xconf['position_max'])/4)
y = int(int(yconf['position_max'])/4)
x = int(int(xconf['position_max']) / 4)
y = int(int(yconf['position_max']) / 4)
self.screws = [
[x, y],
[x*3, y],
[x, y*3],
[x*3, y*3],
[x * 3, y],
[x, y * 3],
[x * 3, y * 3],
]
else:
self.screws = screws
if (("bltouch" in self._screen.printer.get_config_section_list() or
"probe" in self._screen.printer.get_config_section_list()) and
"probe" in self._screen.printer.get_config_section_list()) and
config_section_name == "screws_tilt_adjust"):
if "bltouch" in self._screen.printer.get_config_section_list():
bltouch = self._screen.printer.get_config_section("bltouch")
@@ -287,7 +289,7 @@ class BedLevelPanel(ScreenPanel):
)
def process_update(self, action, data):
_ = self.lang.gettext
if action == "notify_gcode_response":
if data.startswith('!!'):
self.response_count = 0
@@ -307,7 +309,7 @@ class BedLevelPanel(ScreenPanel):
self.labels[key].set_label(result.group(5))
break
self.response_count += 1
if self.response_count >= len(self.screws)-1:
if self.response_count >= len(self.screws) - 1:
self.labels['screws'].set_sensitive(True)
else:
result = re.match(
+34 -47
View File
@@ -3,7 +3,7 @@ import logging
import numpy as np
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
from gi.repository import Gtk, Pango
import matplotlib.pyplot as plt
from matplotlib import cm
@@ -15,29 +15,25 @@ from matplotlib.ticker import LinearLocator
from ks_includes.KlippyGcodes import KlippyGcodes
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return BedMeshPanel(*args)
class BedMeshPanel(ScreenPanel):
active_mesh = None
graphs = {}
def initialize(self, panel_name):
_ = self.lang.gettext
self.show_create = False
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
# Create a grid for all profiles
self.labels['profiles'] = Gtk.Grid()
scroll.add(self.labels['profiles'])
addprofile = self._gtk.ButtonImage("increase", " %s" % _("Add bed mesh profile"),
"color1", .5, Gtk.PositionType.LEFT, False)
addprofile.connect("clicked", self.show_create_profile)
@@ -87,12 +83,11 @@ class BedMeshPanel(ScreenPanel):
self._screen.show_all()
def add_profile(self, profile):
_ = self.lang.gettext
frame = Gtk.Frame()
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big>" % (profile))
name.set_markup("<big><b>%s</b></big>" % profile)
name.set_hexpand(True)
name.set_vexpand(True)
name.set_halign(Gtk.Align.START)
@@ -177,7 +172,7 @@ class BedMeshPanel(ScreenPanel):
if "default" in pl:
pl.remove('default')
profiles = sorted(pl)
pos = profiles.index(profile)+1 if profile != "default" else 0
pos = profiles.index(profile) + 1 if profile != "default" else 0
self.labels['profiles'].insert_row(pos)
self.labels['profiles'].attach(self.profiles[profile]['row'], 0, pos, 1, 1)
@@ -240,7 +235,7 @@ class BedMeshPanel(ScreenPanel):
if "default" in pl:
pl.remove('default')
profiles = sorted(pl)
pos = profiles.index(profile)+1 if profile != "default" else 0
pos = profiles.index(profile) + 1 if profile != "default" else 0
self.labels['profiles'].remove_row(pos)
del self.profiles[profile]
@@ -261,47 +256,40 @@ class BedMeshPanel(ScreenPanel):
self.remove_profile(profile)
def show_create_profile(self, widget):
_ = self.lang.gettext
for child in self.content.get_children():
self.content.remove(child)
if "create_profile" not in self.labels:
self.labels['create_profile'] = Gtk.VBox()
self.labels['create_profile'].set_valign(Gtk.Align.START)
box = Gtk.Box(spacing=5)
box.set_size_request(self._gtk.get_content_width(), self._gtk.get_content_height() -
self._screen.keyboard_height - 20)
box.set_hexpand(True)
box.set_vexpand(False)
self.labels['create_profile'].add(box)
pl = self._gtk.Label(_("Profile Name:"))
pl.set_hexpand(False)
entry = Gtk.Entry()
entry.set_hexpand(True)
entry.connect("activate", self.create_profile)
self.labels['profile_name'] = Gtk.Entry()
self.labels['profile_name'].set_text('')
self.labels['profile_name'].set_hexpand(True)
self.labels['profile_name'].connect("activate", self.create_profile)
self.labels['profile_name'].connect("focus-in-event", self._screen.show_keyboard)
self.labels['profile_name'].grab_focus_without_selecting()
save = self._gtk.ButtonImage("sd", _("Save"), "color3")
save.set_hexpand(False)
save.connect("clicked", self.create_profile)
self.labels['profile_name'] = entry
box.pack_start(pl, False, False, 5)
box.pack_start(entry, True, True, 5)
box = Gtk.Box()
box.pack_start(self.labels['profile_name'], True, True, 5)
box.pack_start(save, False, False, 5)
self.show_create = True
self.labels['profile_name'].set_text('')
self.labels['create_profile'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=5)
self.labels['create_profile'].set_valign(Gtk.Align.CENTER)
self.labels['create_profile'].set_hexpand(True)
self.labels['create_profile'].set_vexpand(True)
self.labels['create_profile'].pack_start(pl, True, True, 5)
self.labels['create_profile'].pack_start(box, True, True, 5)
self.content.add(self.labels['create_profile'])
self.content.show()
self._screen.show_keyboard()
self.labels['profile_name'].grab_focus_without_selecting()
self.show_create = True
def show_mesh(self, widget, profile):
_ = self.lang.gettext
bm = self._printer.get_config_section("bed_mesh %s" % profile)
if bm is False:
@@ -324,19 +312,19 @@ class BedMeshPanel(ScreenPanel):
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])]
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:
x_range = [int(bm['min_x']), int(bm['max_x'])]
y_range = [int(bm['min_y']), int(bm['max_y'])]
z_range = [min(min(bm['points'])), max(max(bm['points']))]
deltas = [(x_range[1] - x_range[0]) / (int(bm['x_count'])-1),
(y_range[1] - y_range[0]) / (int(bm['y_count'])-1)]
x = [(i*deltas[0])+x_range[0] for i in range(bm['x_count'])]
y = [(i*deltas[0])+y_range[0] for i in range(bm['y_count'])]
deltas = [(x_range[1] - x_range[0]) / (int(bm['x_count']) - 1),
(y_range[1] - y_range[0]) / (int(bm['y_count']) - 1)]
x = [(i * deltas[0]) + x_range[0] for i in range(bm['x_count'])]
y = [(i * deltas[0]) + y_range[0] for i in range(bm['y_count'])]
x, y = np.meshgrid(x, y)
z = np.asarray(bm['points'])
@@ -349,8 +337,8 @@ class BedMeshPanel(ScreenPanel):
fig.add_axes(ax)
surf = ax.plot_surface(x, y, z, cmap=cm.coolwarm, vmin=-0.1, vmax=0.1)
chartBox = ax.get_position()
ax.set_position([chartBox.x0, chartBox.y0+0.1, chartBox.width*.92, chartBox.height])
chartbox = ax.get_position()
ax.set_position([chartbox.x0, chartbox.y0 + 0.1, chartbox.width * .92, chartbox.height])
ax.set_zlim(z_range[0], z_range[1])
ax.zaxis.set_major_locator(LinearLocator(5))
@@ -358,7 +346,7 @@ class BedMeshPanel(ScreenPanel):
ax.zaxis.set_major_formatter('{x:.02f}')
fig.colorbar(surf, shrink=0.7, aspect=5, pad=0.25)
box = Gtk.VBox()
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_hexpand(True)
box.set_vexpand(True)
@@ -381,7 +369,7 @@ class BedMeshPanel(ScreenPanel):
alloc = canvas_box.get_allocation()
canvas = FigureCanvas(fig)
canvas.set_size_request(alloc.width, self._screen.height/3*2)
canvas.set_size_request(alloc.width, self._screen.height / 3 * 2)
canvas_box.add(canvas)
canvas_box.show_all()
# Remove the "matplotlib-canvas" class which forces a white background.
@@ -390,6 +378,5 @@ class BedMeshPanel(ScreenPanel):
for css_class in style_ctx.list_classes():
style_ctx.remove_class(css_class)
def _close_dialog(self, widget, response):
widget.destroy()
+20 -21
View File
@@ -9,6 +9,7 @@ from gi.repository import Gtk
from datetime import datetime
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return ConsolePanel(*args)
@@ -21,9 +22,10 @@ COLORS = {
"warning": "#c9c9c9"
}
class ConsolePanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
self.autoscroll = True
self.hidetemps = True
@@ -32,29 +34,29 @@ class ConsolePanel(ScreenPanel):
o1_lbl = Gtk.Label(_("Auto-scroll"))
o1_lbl.set_halign(Gtk.Align.END)
o1_switch = Gtk.Switch()
o1_switch.set_property("width-request", round(self._gtk.get_font_size()*5))
o1_switch.set_property("height-request", round(self._gtk.get_font_size()*2.5))
o1_switch.set_property("width-request", round(self._gtk.get_font_size() * 5))
o1_switch.set_property("height-request", round(self._gtk.get_font_size() * 2.5))
o1_switch.set_active(self.autoscroll)
o1_switch.connect("notify::active", self.set_autoscroll)
o2_lbl = Gtk.Label(_("Hide temp."))
o2_lbl.set_halign(Gtk.Align.END)
o2_switch = Gtk.Switch()
o2_switch.set_property("width-request", round(self._gtk.get_font_size()*5))
o2_switch.set_property("height-request", round(self._gtk.get_font_size()*2.5))
o2_switch.set_property("width-request", round(self._gtk.get_font_size() * 5))
o2_switch.set_property("height-request", round(self._gtk.get_font_size() * 2.5))
o2_switch.set_active(self.hidetemps)
o2_switch.connect("notify::active", self.hide_temps)
o3_button = self._gtk.ButtonImage("refresh", _('Clear') + " ", None, .66, Gtk.PositionType.RIGHT, False)
o3_button.connect("clicked", self.clear)
options = Gtk.HBox()
options = Gtk.Box()
options.set_hexpand(True)
options.set_vexpand(False)
options.add(o1_lbl)
options.pack_start(o1_switch, False, 0, 5)
options.pack_start(o1_switch, False, False, 5)
options.add(o2_lbl)
options.pack_start(o2_switch, False, 0, 5)
options.pack_start(o2_switch, False, False, 5)
options.add(o3_button)
sw = Gtk.ScrolledWindow()
@@ -67,6 +69,7 @@ class ConsolePanel(ScreenPanel):
tv.set_editable(False)
tv.set_cursor_visible(False)
tv.connect("size-allocate", self._autoscroll)
tv.connect("focus-in-event", self._screen.remove_keyboard)
sw.add(tv)
@@ -77,15 +80,15 @@ class ConsolePanel(ScreenPanel):
entry = Gtk.Entry()
entry.set_hexpand(True)
entry.set_vexpand(False)
entry.connect("focus-in-event", self._show_keyboard)
entry.connect("focus-out-event", self._remove_keyboard)
entry.connect("button-press-event", self._screen.show_keyboard)
entry.connect("focus-in-event", self._screen.show_keyboard)
entry.connect("activate", self._send_command)
entry.grab_focus_without_selecting()
enter = self._gtk.ButtonImage("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, False)
enter.set_hexpand(False)
enter.connect("clicked", self._send_command)
ebox.add(entry)
ebox.add(enter)
@@ -96,10 +99,10 @@ class ConsolePanel(ScreenPanel):
"tv": tv
})
content_box = Gtk.VBox()
content_box.pack_start(options, False, 0, 5)
content_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
content_box.pack_start(options, False, False, 5)
content_box.add(sw)
content_box.pack_end(ebox, False, 0, 0)
content_box.pack_end(ebox, False, False, 0)
self.content.add(content_box)
def clear(self, widget):
@@ -108,11 +111,12 @@ class ConsolePanel(ScreenPanel):
def add_gcode(self, type, time, message):
if type == "command":
color = COLORS['command']
message = '$ %s' % message
elif message.startswith("!!"):
color = COLORS['error']
message = message.replace("!! ", "")
elif message.startswith("//"):
color = COLORS['warning']
message = message.replace("// ", "")
elif self.hidetemps and re.match('^(?:ok\\s+)?(B|C|T\\d*):', message):
return
else:
@@ -153,15 +157,10 @@ class ConsolePanel(ScreenPanel):
adj = self.labels['sw'].get_vadjustment()
adj.set_value(adj.get_upper() - adj.get_page_size())
def _show_keyboard(self, *args):
self._screen.show_keyboard()
def _remove_keyboard(self, *args):
self._screen.remove_keyboard()
def _send_command(self, *args):
cmd = self.labels['entry'].get_text()
self.labels['entry'].set_text('')
self._screen.remove_keyboard()
self.add_gcode("command", time.time(), cmd)
self._screen._ws.klippy.gcode_script(cmd)
+3 -1
View File
@@ -5,12 +5,14 @@ from gi.repository import Gtk
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return ExamplePanel(*args)
class ExamplePanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
# Create gtk items here
self.content.add(Gtk.Box())
+103 -39
View File
@@ -2,28 +2,27 @@ import gi
import logging
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.screen_panel import ScreenPanel
def create_panel(*args):
return ExtrudePanel(*args)
class ExtrudePanel(ScreenPanel):
distance = 5
distances = ['5', '10', '15', '25']
def initialize(self, panel_name):
_ = self.lang.gettext
self.load_filament = self.unload_filament = False
self.find_gcode_macros()
self.speed = 1
self.speeds = ['1', '2', '5', '25']
grid = Gtk.Grid()
self.labels['extrude'] = self._gtk.ButtonImage("extrude", _("Extrude"), "color4")
self.labels['extrude'].connect("clicked", self.extrude, "+")
if not self.load_filament:
@@ -47,63 +46,53 @@ class ExtrudePanel(ScreenPanel):
extgrid = self._gtk.HomogeneousGrid()
self.current_extruder = self._printer.get_stat("toolhead", "extruder")
limit = 5
for i, extruder in enumerate(self._printer.get_tools()):
i = 0
for extruder in self._printer.get_tools():
if self._printer.extrudercount > 1:
self.labels[extruder] = self._gtk.ButtonImage("extruder-%s" % i, _("Tool") + " %s" % str(i))
self.labels[extruder] = self._gtk.ButtonImage("extruder-%s" % i,
"T%s" % self._printer.get_tool_number(extruder))
else:
self.labels[extruder] = self._gtk.ButtonImage("extruder", _("Tool"))
self.labels[extruder] = self._gtk.ButtonImage("extruder", "")
self.labels[extruder].connect("clicked", self.change_extruder, extruder)
if extruder == self.current_extruder:
self.labels[extruder].get_style_context().add_class("button_active")
if i < limit:
extgrid.attach(self.labels[extruder], i, 0, 1, 1)
i += 1
if i < (limit - 1):
extgrid.attach(self.labels['temperature'], i+1, 0, 1, 1)
grid.attach(extgrid, 0, 0, 4, 1)
if self._screen.vertical_mode:
grid.attach(self.labels['extrude'], 0, 1, 2, 1)
grid.attach(self.labels['retract'], 2, 1, 2, 1)
grid.attach(self.labels['load'], 0, 2, 2, 1)
grid.attach(self.labels['unload'], 2, 2, 2, 1)
else:
grid.attach(self.labels['extrude'], 0, 1, 1, 1)
grid.attach(self.labels['load'], 1, 1, 1, 1)
grid.attach(self.labels['unload'], 2, 1, 1, 1)
grid.attach(self.labels['retract'], 3, 1, 1, 1)
extgrid.attach(self.labels['temperature'], i + 1, 0, 1, 1)
distgrid = Gtk.Grid()
j = 0
for i in self.distances:
self.labels["dist"+str(i)] = self._gtk.ToggleButton(i)
self.labels["dist"+str(i)].connect("clicked", self.change_distance, i)
ctx = self.labels["dist"+str(i)].get_style_context()
self.labels["dist" + str(i)] = self._gtk.ToggleButton(i)
self.labels["dist" + str(i)].connect("clicked", self.change_distance, i)
ctx = self.labels["dist" + str(i)].get_style_context()
if ((self._screen.lang_ltr is True and j == 0) or
(self._screen.lang_ltr is False and j == len(self.distances)-1)):
(self._screen.lang_ltr is False and j == len(self.distances) - 1)):
ctx.add_class("distbutton_top")
elif ((self._screen.lang_ltr is False and j == 0) or
(self._screen.lang_ltr is True and j == len(self.distances)-1)):
(self._screen.lang_ltr is True and j == len(self.distances) - 1)):
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
if i == "5":
ctx.add_class("distbutton_active")
distgrid.attach(self.labels["dist"+str(i)], j, 0, 1, 1)
distgrid.attach(self.labels["dist" + str(i)], j, 0, 1, 1)
j += 1
self.labels["dist5"].set_active(True)
speedgrid = Gtk.Grid()
j = 0
for i in self.speeds:
self.labels["speed"+str(i)] = self._gtk.ToggleButton(_(i))
self.labels["speed"+str(i)].connect("clicked", self.change_speed, i)
ctx = self.labels["speed"+str(i)].get_style_context()
self.labels["speed" + str(i)] = self._gtk.ToggleButton(_(i))
self.labels["speed" + str(i)].connect("clicked", self.change_speed, i)
ctx = self.labels["speed" + str(i)].get_style_context()
if ((self._screen.lang_ltr is True and j == 0) or
(self._screen.lang_ltr is False and j == len(self.speeds)-1)):
(self._screen.lang_ltr is False and j == len(self.speeds) - 1)):
ctx.add_class("distbutton_top")
elif ((self._screen.lang_ltr is False and j == 0) or
(self._screen.lang_ltr is True and j == len(self.speeds)-1)):
(self._screen.lang_ltr is True and j == len(self.speeds) - 1)):
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
@@ -122,13 +111,60 @@ class ExtrudePanel(ScreenPanel):
speedbox.pack_start(self.labels['extrude_speed'], True, True, 0)
speedbox.add(speedgrid)
filament_sensors = self._printer.get_filament_sensors()
if len(filament_sensors) > 0:
sensors = Gtk.Grid()
sensors.set_column_spacing(5)
sensors.set_row_spacing(5)
sensors.set_halign(Gtk.Align.CENTER)
sensors.set_valign(Gtk.Align.CENTER)
for s, x in enumerate(filament_sensors):
if s > limit:
break
name = x[23:].strip()
self.labels[x] = {
'label': Gtk.Label(name.capitalize().replace('_', ' ')),
'switch': Gtk.Switch(),
'box': Gtk.Box()
}
self.labels[x]['label'].set_halign(Gtk.Align.CENTER)
self.labels[x]['label'].set_hexpand(True)
self.labels[x]['label'].set_ellipsize(Pango.EllipsizeMode.END)
self.labels[x]['switch'].set_property("width-request", round(self._gtk.get_font_size() * 2))
self.labels[x]['switch'].set_property("height-request", round(self._gtk.get_font_size()))
self.labels[x]['switch'].connect("notify::active", self.enable_disable_fs, name, x)
self.labels[x]['box'].pack_start(self.labels[x]['label'], True, True, 5)
self.labels[x]['box'].pack_start(self.labels[x]['switch'], False, False, 5)
self.labels[x]['box'].get_style_context().add_class("filament_sensor")
self.labels[x]['box'].set_hexpand(True)
if self._printer.get_dev_stat(x, "filament_detected"):
self.labels[x]['box'].get_style_context().add_class("filament_sensor_detected")
else:
self.labels[x]['box'].get_style_context().add_class("filament_sensor_empty")
sensors.attach(self.labels[x]['box'], s, 0, 1, 1)
grid = Gtk.Grid()
grid.set_column_homogeneous(True)
grid.attach(extgrid, 0, 0, 4, 1)
if self._screen.vertical_mode:
grid.attach(self.labels['extrude'], 0, 1, 2, 1)
grid.attach(self.labels['retract'], 2, 1, 2, 1)
grid.attach(self.labels['load'], 0, 2, 2, 1)
grid.attach(self.labels['unload'], 2, 2, 2, 1)
grid.attach(distbox, 0, 3, 4, 1)
grid.attach(speedbox, 0, 4, 4, 1)
if len(filament_sensors) > 0:
grid.attach(sensors, 0, 5, 4, 1)
else:
grid.attach(distbox, 0, 2, 2, 1)
grid.attach(speedbox, 2, 2, 2, 1)
grid.attach(self.labels['extrude'], 0, 2, 1, 1)
grid.attach(self.labels['load'], 1, 2, 1, 1)
grid.attach(self.labels['unload'], 2, 2, 1, 1)
grid.attach(self.labels['retract'], 3, 2, 1, 1)
grid.attach(distbox, 0, 3, 2, 1)
grid.attach(speedbox, 2, 3, 2, 1)
if len(filament_sensors) > 0:
grid.attach(sensors, 0, 4, 4, 1)
self.content.add(grid)
@@ -150,25 +186,43 @@ class ExtrudePanel(ScreenPanel):
self.current_extruder = data["toolhead"]["extruder"]
self.labels[self.current_extruder].get_style_context().add_class("button_active")
for x in self._printer.get_filament_sensors():
if x in data:
if 'enabled' in data[x]:
self._printer.set_dev_stat(x, "enabled", data[x]['enabled'])
self.labels[x]['switch'].set_active(data[x]['enabled'])
logging.info("%s Enabled: %s" % (x, data[x]['enabled']))
if 'filament_detected' in data[x]:
self._printer.set_dev_stat(x, "filament_detected", data[x]['filament_detected'])
if data[x]['filament_detected']:
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_empty")
self.labels[x]['box'].get_style_context().add_class("filament_sensor_detected")
else:
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_detected")
self.labels[x]['box'].get_style_context().add_class("filament_sensor_empty")
logging.info("%s: Filament detected: %s" % (x, data[x]['filament_detected']))
def change_distance(self, widget, distance):
if self.distance == distance:
return
logging.info("### Distance " + str(distance))
ctx = self.labels["dist"+str(self.distance)].get_style_context()
ctx = self.labels["dist" + str(self.distance)].get_style_context()
ctx.remove_class("distbutton_active")
self.distance = distance
ctx = self.labels["dist"+self.distance].get_style_context()
ctx = self.labels["dist" + self.distance].get_style_context()
ctx.add_class("distbutton_active")
for i in self.distances:
if i == self.distance:
continue
self.labels["dist"+str(i)].set_active(False)
self.labels["dist" + str(i)].set_active(False)
def change_extruder(self, widget, extruder):
if extruder == self.current_extruder:
return
logging.info("Changing extruder to %s", extruder)
for tool in self._printer.get_tools():
self.labels[tool].get_style_context().remove_class("button_active")
self.labels[extruder].get_style_context().add_class("button_active")
self._screen._ws.klippy.gcode_script("T%s" % self._printer.get_tool_number(extruder))
@@ -217,3 +271,13 @@ class ExtrudePanel(ScreenPanel):
if macro == "UNLOAD_FILAMENT":
logging.info("Found %s" % macro)
self.unload_filament = True
def enable_disable_fs(self, switch, gparams, name, x):
if switch.get_active():
self._printer.set_dev_stat(x, "enabled", True)
self._screen._ws.klippy.gcode_script("SET_FILAMENT_SENSOR SENSOR=" + name + " ENABLE=1")
else:
self._printer.set_dev_stat(x, "enabled", False)
self._screen._ws.klippy.gcode_script("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_detected")
+46 -34
View File
@@ -2,30 +2,28 @@ import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, Pango
from gi.repository import Gtk, GLib, Pango
from ks_includes.KlippyGcodes import KlippyGcodes
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return FanPanel(*args)
CHANGEABLE_FANS = ["fan", "fan_generic"]
class FanPanel(ScreenPanel):
fan_speed = {}
user_selecting = False
def initialize(self, panel_name):
_ = self.lang.gettext
self.devices = {}
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
# Create a grid for all devices
self.labels['devices'] = Gtk.Grid()
@@ -41,28 +39,32 @@ class FanPanel(ScreenPanel):
self.content.add(box)
def process_update(self, action, data):
if (action != "notify_status_update"):
if action != "notify_status_update":
return
for fan in self.devices:
if fan in data and "speed" in data[fan]:
self.update_fan_speed(fan, self._printer.get_fan_speed(fan, data[fan]["speed"]))
self.update_fan_speed(None, fan, self._printer.get_fan_speed(fan, data[fan]["speed"]))
def update_fan_speed(self, fan, speed):
def update_fan_speed(self, widget, fan, speed):
if fan not in self.devices:
return
if self.devices[fan]['changeable'] is True:
if self.devices[fan]['scale'].has_grab():
return
self.fan_speed[fan] = round(float(speed) * 100)
self.devices[fan]["speed"] = round(float(speed) * 100)
self.devices[fan]['scale'].disconnect_by_func(self.set_fan_speed)
self.devices[fan]['scale'].set_value(self.fan_speed[fan])
self.devices[fan]['scale'].set_value(self.devices[fan]["speed"])
self.devices[fan]['scale'].connect("button-release-event", self.set_fan_speed, fan)
else:
self.fan_speed[fan] = float(speed)
self.devices[fan]['scale'].set_fraction(self.fan_speed[fan])
self.devices[fan]["speed"] = float(speed)
self.devices[fan]['scale'].set_fraction(self.devices[fan]["speed"])
if widget is not None:
self.set_fan_speed(None, None, fan)
def add_fan(self, fan):
logging.info("Adding fan: %s" % fan)
changeable = False
for x in CHANGEABLE_FANS:
@@ -70,17 +72,12 @@ class FanPanel(ScreenPanel):
changeable = True
break
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
self.fan_speed[fan] = float(self._printer.get_fan_speed(fan))
name = Gtk.Label()
if fan == "fan":
fan_name = "Part Fan"
else:
fan_name = " ".join(fan.split(" ")[1:])
name.set_markup("<big><b>%s</b></big>" % (fan_name))
name.set_markup("<big><b>%s</b></big>" % fan_name)
name.set_hexpand(True)
name.set_vexpand(True)
name.set_halign(Gtk.Align.START)
@@ -89,36 +86,51 @@ class FanPanel(ScreenPanel):
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
adj = Gtk.Adjustment(0, 0, 100, 1, 5, 0)
fan_col = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
fan_col.set_hexpand(True)
fan_col.set_vexpand(False)
stop_btn = self._gtk.ButtonImage("cancel", None, "color1", 1)
stop_btn.set_hexpand(False)
stop_btn.connect("clicked", self.update_fan_speed, fan, 0)
max_btn = self._gtk.ButtonImage("fan-on", _("Max"), "color2", 1)
max_btn.set_hexpand(False)
max_btn.connect("clicked", self.update_fan_speed, fan, 100)
speed = float(self._printer.get_fan_speed(fan))
if changeable is True:
self.fan_speed[fan] = round(self.fan_speed[fan] * 100)
speed = round(speed * 100)
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_value(self.fan_speed[fan])
scale.set_value(speed)
scale.set_digits(0)
scale.set_hexpand(True)
scale.set_has_origin(True)
scale.get_style_context().add_class("fan_slider")
scale.connect("button-release-event", self.set_fan_speed, fan)
fan_col.add(stop_btn)
fan_col.add(scale)
fan_col.add(max_btn)
else:
scale = Gtk.ProgressBar()
scale.set_fraction(self.fan_speed[fan])
scale.set_fraction(speed)
scale.set_show_text(True)
scale.set_hexpand(True)
# scale.get_style_context().add_class("fan_slider")
fan_col.pack_start(scale, True, True, 10)
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
labels.add(name)
labels.add(scale)
fan_row = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=5)
fan_row.set_hexpand(True)
fan_row.set_vexpand(False)
fan_row.add(name)
fan_row.add(fan_col)
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
dev.set_hexpand(True)
dev.set_vexpand(False)
dev.add(labels)
frame.add(dev)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
frame.add(fan_row)
self.devices[fan] = {
"changeable": changeable,
"row": frame,
"scale": scale,
"speed": speed,
}
devices = sorted(self.devices)
@@ -150,10 +162,10 @@ class FanPanel(ScreenPanel):
self._screen._ws.klippy.gcode_script(KlippyGcodes.set_fan_speed(value))
else:
f = " ".join(fan.split(" ")[1:])
self._screen._ws.klippy.gcode_script("SET_FAN_SPEED FAN=%s SPEED=%s" % (f, float(value)/100))
self._screen._ws.klippy.gcode_script("SET_FAN_SPEED FAN=%s SPEED=%s" % (f, float(value) / 100))
# Check the speed in case it wasn't applied
GLib.timeout_add_seconds(1, self.check_fan_speed, fan)
def check_fan_speed(self, fan):
self.update_fan_speed(fan, self._printer.get_fan_speed(fan))
self.update_fan_speed(None, fan, self._printer.get_fan_speed(fan))
return False
+8 -6
View File
@@ -8,9 +8,11 @@ from gi.repository import Gtk
from ks_includes.KlippyGcodes import KlippyGcodes
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return FineTunePanel(*args)
class FineTunePanel(ScreenPanel):
user_selecting = False
@@ -23,7 +25,6 @@ class FineTunePanel(ScreenPanel):
speed = 100
def initialize(self, panel_name):
_ = self.lang.gettext
logging.debug("FineTunePanel")
@@ -47,7 +48,7 @@ class FineTunePanel(ScreenPanel):
ctx = self.labels[i].get_style_context()
if j == 0:
ctx.add_class("distbutton_top")
elif j == len(self.bs_deltas)-1:
elif j == len(self.bs_deltas) - 1:
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
@@ -65,7 +66,7 @@ class FineTunePanel(ScreenPanel):
ctx = self.labels[i].get_style_context()
if j == 0:
ctx.add_class("distbutton_top")
elif j == len(self.percent_deltas)-1:
elif j == len(self.percent_deltas) - 1:
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
@@ -147,7 +148,6 @@ class FineTunePanel(ScreenPanel):
self.content.add(grid)
def process_update(self, action, data):
_ = self.lang.gettext
if action != "notify_status_update":
return
@@ -156,10 +156,10 @@ class FineTunePanel(ScreenPanel):
if "homing_origin" in data["gcode_move"]:
self.labels['zoffset'].set_label(" %.2fmm" % data["gcode_move"]["homing_origin"][2])
if "extrude_factor" in data["gcode_move"]:
self.extrusion = int(round(data["gcode_move"]["extrude_factor"]*100))
self.extrusion = int(round(data["gcode_move"]["extrude_factor"] * 100))
self.labels['extrudefactor'].set_label(" %3d%%" % self.extrusion)
if "speed_factor" in data["gcode_move"]:
self.speed = int(round(data["gcode_move"]["speed_factor"]*100))
self.speed = int(round(data["gcode_move"]["speed_factor"] * 100))
self.labels['speedfactor'].set_label(" %3d%%" % self.speed)
def change_babystepping(self, widget, dir):
@@ -173,6 +173,8 @@ class FineTunePanel(ScreenPanel):
gcode = "SET_GCODE_OFFSET Z_ADJUST=-%s MOVE=1" % self.bs_delta
elif dir == "reset":
gcode = "SET_GCODE_OFFSET Z=0 MOVE=1"
else:
gcode = ""
self._screen._ws.klippy.gcode_script(gcode)
+130 -42
View File
@@ -2,50 +2,65 @@ import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
from gi.repository import Gtk, GLib, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return MacroPanel(*args)
class MacroPanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
self.macros = {}
self.loaded_macros = []
self.sort_reverse = False
self.menu = ['macros_menu']
# Create a scroll window for the macros
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
sort = Gtk.Label(_("Sort:"))
sort.set_hexpand(False)
self.sort_lbl = _("Name")
self.sort_btn = self._gtk.ButtonImage("arrow-up", self.sort_lbl, "color1", .66, Gtk.PositionType.RIGHT, False)
self.sort_btn.connect("clicked", self.change_sort)
self.sort_btn.set_hexpand(True)
adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, False)
adjust.connect("clicked", self.load_menu, 'options')
adjust.set_hexpand(False)
# Create a grid for all macros
sbox = Gtk.Box()
sbox.set_vexpand(False)
sbox.pack_start(sort, False, False, 5)
sbox.pack_start(self.sort_btn, True, True, 5)
sbox.pack_start(adjust, True, True, 5)
self.labels['macros_list'] = self._gtk.ScrolledWindow()
self.labels['macros'] = Gtk.Grid()
scroll.add(self.labels['macros'])
self.labels['macros_list'].add(self.labels['macros'])
# 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.labels['macros_menu'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.labels['macros_menu'].set_vexpand(True)
self.labels['macros_menu'].pack_start(sbox, False, False, 0)
self.labels['macros_menu'].pack_start(self.labels['macros_list'], True, True, 0)
self.content.add(box)
self.content.add(self.labels['macros_menu'])
self.labels['options_menu'] = self._gtk.ScrolledWindow()
self.labels['options'] = Gtk.Grid()
self.labels['options_menu'].add(self.labels['options'])
def activate(self):
self.unload_gcode_macros()
self.load_gcode_macros()
while len(self.menu) > 1:
self.unload_menu()
self.reload_macros()
def add_gcode_macro(self, macro):
# Support for hiding macros by name
if macro.startswith("_"):
return
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big>" % (macro))
name.set_markup("<big><b>%s</b></big>" % macro)
name.set_hexpand(True)
name.set_vexpand(True)
name.set_halign(Gtk.Align.START)
@@ -53,33 +68,53 @@ class MacroPanel(ScreenPanel):
name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
open = self._gtk.ButtonImage("resume", None, "color3")
open.connect("clicked", self.run_gcode_macro, macro)
open.set_hexpand(False)
open.set_halign(Gtk.Align.END)
btn = self._gtk.ButtonImage("resume", None, "color3")
btn.connect("clicked", self.run_gcode_macro, macro)
btn.set_hexpand(False)
btn.set_halign(Gtk.Align.END)
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
labels.add(name)
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
dev.set_hexpand(True)
dev.set_vexpand(False)
dev = Gtk.Box(spacing=5)
dev.add(labels)
dev.add(open)
dev.add(btn)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
frame.add(dev)
self.macros[macro] = {
"row": frame
}
macros = sorted(self.macros)
macros = sorted(self.macros, reverse=self.sort_reverse, key=str.casefold)
pos = macros.index(macro)
self.loaded_macros.append(macro)
self.labels['macros'].insert_row(pos)
self.labels['macros'].attach(self.macros[macro]['row'], 0, pos, 1, 1)
self.labels['macros'].show_all()
def run_gcode_macro(self, widget, macro):
self._screen._ws.klippy.gcode_script(macro)
def change_sort(self, widget):
self.sort_reverse ^= True
if self.sort_reverse:
self.sort_btn.set_image(self._gtk.Image("arrow-down", .66))
else:
self.sort_btn.set_image(self._gtk.Image("arrow-up", .66))
self.sort_btn.show()
GLib.idle_add(self.reload_macros)
def reload_macros(self):
self.labels['macros'].remove_column(0)
self.macros = {}
self.loaded_macros = []
self.allmacros = {}
self.labels['options'].remove_column(0)
self.load_gcode_macros()
def load_gcode_macros(self):
macros = self._screen.printer.get_gcode_macros()
@@ -96,15 +131,68 @@ class MacroPanel(ScreenPanel):
self._config.get_config().getboolean(section_name, macro.lower(), fallback=True)):
self.add_gcode_macro(macro)
def run_gcode_macro(self, widget, macro):
self._screen._ws.klippy.gcode_script(macro)
for macro in self._printer.get_config_section_list("gcode_macro "):
macro = macro[12:]
# Support for hiding macros by name
if macro.startswith("_"):
continue
def unload_gcode_macros(self):
section_name = "displayed_macros %s" % self._screen.connected_printer
for macro in self.loaded_macros:
if (section_name in self._config.get_config().sections() and
not self._config.get_config().getboolean(section_name, macro.lower(), fallback=True)):
macros = sorted(self.macros)
pos = macros.index(macro)
self.labels['macros'].remove_row(pos)
self.labels['macros'].show_all()
self.allmacros[macro] = {
"name": macro,
"section": "displayed_macros %s" % self._screen.connected_printer,
}
for macro in list(self.allmacros):
self.add_option('options', self.allmacros, macro, self.allmacros[macro])
self.labels['macros'].show_all()
def add_option(self, boxname, opt_array, opt_name, option):
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big>" % (option['name']))
name.set_hexpand(True)
name.set_vexpand(True)
name.set_halign(Gtk.Align.START)
name.set_valign(Gtk.Align.CENTER)
name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
box = Gtk.Box()
box.set_vexpand(False)
switch = Gtk.Switch()
switch.set_hexpand(False)
switch.set_vexpand(False)
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name, fallback=True))
switch.connect("notify::active", self.switch_config_option, option['section'], opt_name)
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
box.add(switch)
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
dev.set_hexpand(True)
dev.set_vexpand(False)
dev.set_valign(Gtk.Align.CENTER)
dev.add(name)
dev.add(box)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
frame.add(dev)
frame.show_all()
opt_array[opt_name] = {
"name": option['name'],
"row": frame
}
opts = sorted(self.allmacros, key=str.casefold)
pos = opts.index(opt_name)
self.labels[boxname].insert_row(pos)
self.labels[boxname].attach(opt_array[opt_name]['row'], 0, pos, 1, 1)
self.labels[boxname].show_all()
def back(self):
if len(self.menu) > 1:
self.unload_menu()
self.reload_macros()
return True
return False
+200
View File
@@ -0,0 +1,200 @@
import gi
import re
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Pango
from ks_includes.KlippyGcodes import KlippyGcodes
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return InputShaperPanel(*args)
# X and Y frequencies
XY_FREQ = [
{'name': 'X', 'config': 'shaper_freq_x', 'min': 0, 'max': 133},
{'name': 'Y', 'config': 'shaper_freq_y', 'min': 0, 'max': 133},
]
SHAPERS = ['zv', 'mzv', 'zvd', 'ei', '2hump_ei', '3hump_ei']
class InputShaperPanel(ScreenPanel):
def initialize(self, panel_name):
self.has_sensor = False
self.calibrating_axis = None
auto_calibration_label = Gtk.Label()
auto_calibration_label.set_markup('<big><b>Auto Calibration</b></big>')
auto_calibration_label.set_hexpand(True)
self.calibrate_btn = self._gtk.ButtonImage("move", _('Finding ADXL'), "color1", word_wrap=False)
self.calibrate_btn.connect("clicked", self.on_popover_clicked)
self.calibrate_btn.set_sensitive(False)
auto_grid = Gtk.Grid()
auto_grid.attach(auto_calibration_label, 0, 0, 1, 1)
auto_grid.attach(self.calibrate_btn, 1, 0, 1, 1)
manual_calibration_label = Gtk.Label()
manual_calibration_label.set_markup('<big><b>Manual Calibration</b></big>')
manual_calibration_label.set_vexpand(True)
disclaimer = Gtk.Label()
disclaimer.set_markup('<small>NOTE: Edit your printer.cfg to save manual calibration changes.</small>')
disclaimer.set_line_wrap(True)
disclaimer.set_halign(Gtk.Align.CENTER)
input_grid = Gtk.Grid()
input_grid.attach(manual_calibration_label, 0, 0, 3, 1)
input_grid.attach(disclaimer, 0, 1, 3, 1)
self.freq_xy_adj = {}
self.freq_xy_combo = {}
for i, dim_freq in enumerate(XY_FREQ):
axis_lbl = Gtk.Label()
axis_lbl.set_markup("<b>{}</b>".format(dim_freq['name']))
axis_lbl.set_hexpand(False)
axis_lbl.set_vexpand(True)
axis_lbl.set_halign(Gtk.Align.START)
axis_lbl.set_valign(Gtk.Align.CENTER)
axis_lbl.set_line_wrap(True)
self.freq_xy_adj[dim_freq['config']] = Gtk.Adjustment(0, dim_freq['min'], dim_freq['max'], 0.1)
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=self.freq_xy_adj[dim_freq['config']])
scale.set_digits(1)
scale.set_hexpand(True)
scale.set_valign(Gtk.Align.END)
scale.set_has_origin(True)
scale.get_style_context().add_class("option_slider")
scale.connect("button-release-event", self.set_opt_value, dim_freq['config'])
shaper_slug = dim_freq['config'].replace('_freq_', '_type_')
self.freq_xy_combo[shaper_slug] = Gtk.ComboBoxText()
for shaper in SHAPERS:
self.freq_xy_combo[shaper_slug].append(shaper, shaper)
self.freq_xy_combo[shaper_slug].set_active(0)
input_grid.attach(axis_lbl, 0, i + 2, 1, 1)
input_grid.attach(scale, 1, i + 2, 1, 1)
input_grid.attach(self.freq_xy_combo[shaper_slug], 2, i + 2, 1, 1)
self.status = Gtk.Label("")
self.status.set_hexpand(True)
self.status.set_vexpand(False)
self.status.set_halign(Gtk.Align.START)
self.status.set_ellipsize(Pango.EllipsizeMode.END)
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.add(auto_grid)
box.add(input_grid)
box.add(self.status)
self.content.add(box)
pobox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
test_x = self._gtk.Button(_("Measure X"))
test_x.connect("clicked", self.start_calibration, "x")
pobox.pack_start(test_x, True, True, 5)
test_y = self._gtk.Button(_("Measure Y"))
test_y.connect("clicked", self.start_calibration, "y")
pobox.pack_start(test_y, True, True, 5)
test_both = self._gtk.Button(_("Measure Both"))
test_both.connect("clicked", self.start_calibration, "both")
pobox.pack_start(test_both, True, True, 5)
self.labels['popover'] = Gtk.Popover()
self.labels['popover'].add(pobox)
self.labels['popover'].set_position(Gtk.PositionType.LEFT)
def on_popover_clicked(self, widget):
self.labels['popover'].set_relative_to(widget)
self.labels['popover'].show_all()
def start_calibration(self, widget, method):
self.labels['popover'].popdown()
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
self.calibrating_axis = method
if method == "x":
self._screen._ws.klippy.gcode_script('SHAPER_CALIBRATE AXIS=X')
if method == "y":
self._screen._ws.klippy.gcode_script('SHAPER_CALIBRATE AXIS=Y')
if method == "both":
self._screen._ws.klippy.gcode_script('SHAPER_CALIBRATE')
self.calibrate_btn.set_label(self.lang.gettext('Calibrating...'))
self.calibrate_btn.set_sensitive(False)
def set_opt_value(self, widget, opt, *args):
shaper_freq_x = self.freq_xy_adj['shaper_freq_x'].get_value()
shaper_freq_y = self.freq_xy_adj['shaper_freq_y'].get_value()
shaper_type_x = self.freq_xy_combo['shaper_type_x'].get_active_text()
shaper_type_y = self.freq_xy_combo['shaper_type_y'].get_active_text()
self._screen._ws.klippy.gcode_script(
'SET_INPUT_SHAPER SHAPER_FREQ_X={} SHAPER_TYPE_X={} SHAPER_FREQ_Y={} SHAPER_TYPE_Y={}'.format(
shaper_freq_x, shaper_type_x, shaper_freq_y, shaper_type_y
)
)
def save_config(self):
script = {"script": "SAVE_CONFIG"}
self._screen._confirm_send_action(
None,
_("Save configuration?") + "\n\n" + _("Klipper will reboot"),
"printer.gcode.script",
script
)
def activate(self):
# This will return the current values
self._screen._ws.klippy.gcode_script(
'SET_INPUT_SHAPER'
)
# Check for the accelerometer
self._screen._ws.klippy.gcode_script(
'ACCELEROMETER_QUERY'
)
# Send at least two commands, with my accelerometer the first command after a reboot will fail
self._screen._ws.klippy.gcode_script(
'MEASURE_AXES_NOISE'
)
def process_update(self, action, data):
if action == "notify_gcode_response":
self.status.set_text('{}'.format(data.replace('shaper_', '').replace('damping_', '')))
data = data.lower()
if 'got 0' in data:
self.calibrate_btn.set_label(_('Check ADXL Wiring'))
self.calibrate_btn.set_sensitive(False)
if 'unknown command:"accelerometer_query"' in data:
self.calibrate_btn.set_label(_('ADXL Not Configured'))
self.calibrate_btn.set_sensitive(False)
if 'adxl345 values' in data or 'axes noise' in data:
self.has_sensor = True
self.calibrate_btn.set_sensitive(True)
self.calibrate_btn.set_label(_('Auto-calibrate'))
# Recommended shaper_type_y = ei, shaper_freq_y = 48.4 Hz
if 'recommended shaper_type_' in data:
results = re.search(r'shaper_type_(?P<axis>[xy])\s*=\s*(?P<shaper_type>.*?), shaper_freq_.\s*=\s*('
r'?P<shaper_freq>[0-9.]+)', data).groupdict()
self.freq_xy_adj['shaper_freq_' + results['axis']].set_value(float(results['shaper_freq']))
self.freq_xy_combo['shaper_type_' + results['axis']].set_active(SHAPERS.index(results['shaper_type']))
if self.calibrating_axis == results['axis']:
self.calibrate_btn.set_sensitive(True)
self.calibrate_btn.set_label(_('Calibrated'))
self.save_config()
elif self.calibrating_axis == "both" and results['axis'] == 'y':
self.calibrate_btn.set_sensitive(True)
self.calibrate_btn.set_label(_('Calibrated'))
self.save_config()
# shaper_type_y:ei shaper_freq_y:48.400 damping_ratio_y:0.100000
if 'shaper_type_' in data:
results = re.search(r'shaper_type_(?P<axis>[xy]):(?P<shaper_type>.*?) shaper_freq_.:('
r'?P<shaper_freq>[0-9.]+)', data).groupdict()
self.freq_xy_adj['shaper_freq_' + results['axis']].set_value(float(results['shaper_freq']))
self.freq_xy_combo['shaper_type_' + results['axis']].set_active(SHAPERS.index(results['shaper_type']))
+128 -69
View File
@@ -9,24 +9,25 @@ from gi.repository import GLib, Gtk, Pango
from numpy import sqrt, pi, dot, array, median
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return JobStatusPanel(*args)
class JobStatusPanel(ScreenPanel):
is_paused = False
filename = state_timeout = prev_pos = prev_gpos = vel_timeout = None
filename = state_timeout = prev_pos = prev_gpos = vel_timeout = animation_timeout = close_timeout = None
file_metadata = labels = {}
state = "standby"
timeleft_type = "file"
timeleft_type = "auto"
progress = zoffset = flowrate = vel = 0
main_status_displayed = True
close_timeouts = velstore = flowstore = []
velstore = flowstore = []
def __init__(self, screen, title, back=False):
super().__init__(screen, title, False)
def initialize(self, panel_name):
_ = self.lang.gettext
data = ['pos_x', 'pos_y', 'pos_z', 'time_left', 'duration', 'slicer_time', 'file_time',
'filament_time', 'est_time', 'speed_factor', 'req_speed', 'max_accel', 'extrude_factor', 'zoffset',
@@ -85,10 +86,9 @@ class JobStatusPanel(ScreenPanel):
for label in self.labels:
self.labels[label].set_halign(Gtk.Align.START)
self.labels[label].set_ellipsize(True)
self.labels[label].set_ellipsize(Pango.EllipsizeMode.END)
fi_box = Gtk.VBox(spacing=0)
fi_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
fi_box.add(self.labels['file'])
fi_box.add(self.labels['status'])
fi_box.add(self.labels['lcdmessage'])
@@ -109,9 +109,9 @@ class JobStatusPanel(ScreenPanel):
self.labels['thumbnail'] = self._gtk.Image("file", 2)
if self._screen.vertical_mode:
self.labels['thumbnail'].set_size_request(0, self._screen.height/4)
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['thumbnail'].set_size_request(self._screen.width / 3, 0)
self.labels['info_grid'] = Gtk.Grid()
self.labels['info_grid'].attach(self.labels['thumbnail'], 0, 0, 1, 1)
@@ -133,7 +133,7 @@ class JobStatusPanel(ScreenPanel):
self.fila_section = pi * ((diameter / 2) ** 2)
def create_status_grid(self, widget=None):
_ = self.lang.gettext
self.main_status_displayed = True
self.labels['temp_grid'] = Gtk.Grid()
@@ -245,8 +245,7 @@ class JobStatusPanel(ScreenPanel):
szfe.attach(self.extrusion_button, 0, 1, 1, 1)
szfe.attach(self.fan_button, 1, 1, 1, 1)
info = Gtk.VBox(spacing=0)
info = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
info.get_style_context().add_class("printing-info")
info.add(self.labels['temp_grid'])
info.add(szfe)
@@ -286,7 +285,7 @@ class JobStatusPanel(ScreenPanel):
goback.set_hexpand(False)
goback.get_style_context().add_class("printing-info")
pos_box = Gtk.HBox(spacing=5)
pos_box = Gtk.Box(spacing=5)
pos_box.add(self.labels['pos_x'])
pos_box.add(self.labels['pos_y'])
pos_box.add(self.labels['pos_z'])
@@ -345,19 +344,19 @@ class JobStatusPanel(ScreenPanel):
def on_draw(self, da, ctx):
w = da.get_allocated_width()
h = da.get_allocated_height()
r = min(w, h)*.42
r = min(w, h) * .42
ctx.set_source_rgb(0.13, 0.13, 0.13)
ctx.set_line_width(self._gtk.get_font_size() * .75)
ctx.translate(w / 2, h / 2)
ctx.arc(0, 0, r, 0, 2*pi)
ctx.arc(0, 0, r, 0, 2 * pi)
ctx.stroke()
ctx.set_source_rgb(0.718, 0.110, 0.110)
ctx.arc(0, 0, r, 3/2*pi, 3/2*pi+(self.progress*2*pi))
ctx.arc(0, 0, r, 3 / 2 * pi, 3 / 2 * pi + (self.progress * 2 * pi))
ctx.stroke()
def activate(self):
_ = self.lang.gettext
ps = self._printer.get_stat("print_stats")
self.set_state(ps['state'])
if self.state_timeout is None:
@@ -365,7 +364,7 @@ class JobStatusPanel(ScreenPanel):
self.create_status_grid()
def create_buttons(self):
_ = self.lang.gettext
self.buttons = {
'cancel': self._gtk.ButtonImage("stop", _("Cancel"), "color2"),
'control': self._gtk.ButtonImage("settings", _("Settings"), "color3"),
@@ -385,16 +384,51 @@ class JobStatusPanel(ScreenPanel):
self.buttons['pause'].connect("clicked", self.pause)
self.buttons['restart'].connect("clicked", self.restart)
self.buttons['resume'].connect("clicked", self.resume)
self.buttons['save_offset_probe'].connect("clicked", self.save_offset_probe)
self.buttons['save_offset_endstop'].connect("clicked", self.save_offset_endstop)
self.buttons['save_offset_probe'].connect("clicked", self.save_offset, "probe")
self.buttons['save_offset_endstop'].connect("clicked", self.save_offset, "endstop")
def save_offset_probe(self, widget):
self._screen._ws.klippy.gcode_script("Z_OFFSET_APPLY_PROBE")
self._screen._ws.klippy.gcode_script("SAVE_CONFIG")
def save_offset(self, widget, device):
def save_offset_endstop(self, widget):
self._screen._ws.klippy.gcode_script("Z_OFFSET_APPLY_ENDSTOP")
self._screen._ws.klippy.gcode_script("SAVE_CONFIG")
saved_z_offset = 0
if self._printer.config_section_exists("probe"):
saved_z_offset = float(self._screen.printer.get_config_section("probe")['z_offset'])
elif self._printer.config_section_exists("bltouch"):
saved_z_offset = float(self._screen.printer.get_config_section("bltouch")['z_offset'])
if self.zoffset > 0:
sign = "+"
else:
sign = "-"
label = Gtk.Label()
if device == "probe":
label.set_text(_("Apply %s%.2f offset to Probe?") % (sign, abs(self.zoffset))
+ "\n\n"
+ _("Saved offset: %s") % saved_z_offset)
elif device == "endstop":
label.set_text(_("Apply %.2f offset to Endstop?") % self.zoffset)
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)
grid = self._gtk.HomogeneousGrid()
grid.attach(label, 0, 0, 1, 1)
buttons = [
{"name": _("Apply"), "response": Gtk.ResponseType.APPLY},
{"name": _("Cancel"), "response": Gtk.ResponseType.CANCEL}
]
self._gtk.Dialog(self._screen, buttons, grid, self.save_confirm, device)
def save_confirm(self, widget, response_id, device):
if response_id == Gtk.ResponseType.APPLY:
if device == "probe":
self._screen._ws.klippy.gcode_script("Z_OFFSET_APPLY_PROBE")
if device == "endstop":
self._screen._ws.klippy.gcode_script("Z_OFFSET_APPLY_ENDSTOP")
self._screen._ws.klippy.gcode_script("SAVE_CONFIG")
widget.destroy()
def restart(self, widget):
if self.filename != "none":
@@ -410,7 +444,6 @@ class JobStatusPanel(ScreenPanel):
self._screen.show_all()
def cancel(self, widget):
_ = self.lang.gettext
buttons = [
{"name": _("Cancel Print"), "response": Gtk.ResponseType.OK},
@@ -454,9 +487,9 @@ class JobStatusPanel(ScreenPanel):
return False
def remove_close_timeout(self):
for to in self.close_timeouts:
GLib.source_remove(to)
self.close_timeouts.remove(to)
if self.close_timeout is not None:
GLib.source_remove(self.close_timeout)
self.close_timeout = None
def enable_button(self, *args):
for arg in args:
@@ -489,7 +522,6 @@ class JobStatusPanel(ScreenPanel):
return
elif action != "notify_status_update":
return
_ = self.lang.gettext
if self.main_status_displayed:
for x in self._printer.get_tools():
@@ -518,7 +550,7 @@ class JobStatusPanel(ScreenPanel):
self.labels['temp_grid'].attach(self.extruder_button[self.current_extruder], 0, 0, 1, 1)
self._screen.show_all()
if "max_accel" in data["toolhead"]:
self.labels['max_accel'].set_text("%d mm/s2" % (data["toolhead"]["max_accel"]))
self.labels['max_accel'].set_text("%d mm/s²" % (data["toolhead"]["max_accel"]))
if "extruder" in data and "pressure_advance" in data['extruder']:
self.labels['advance'].set_text("%.2f" % data['extruder']['pressure_advance'])
@@ -553,7 +585,6 @@ class JobStatusPanel(ScreenPanel):
self.labels['speed_factor'].set_text("%3d%%" % self.speed)
if "speed" in data["gcode_move"]:
self.req_speed = int(round(data["gcode_move"]["speed"] / 60 * self.speed_factor))
self.labels['req_speed'].set_text("%d mm/s" % self.req_speed)
if "homing_origin" in data["gcode_move"]:
self.zoffset = data["gcode_move"]["homing_origin"][2]
self.labels['zoffset'].set_text("%.2f" % self.zoffset)
@@ -580,7 +611,7 @@ class JobStatusPanel(ScreenPanel):
for fan in self.fans:
if fan in data and "speed" in data[fan]:
fan_speed = int(round(self._printer.get_fan_speed(fan, data[fan]["speed"]), 2)*100)
fan_speed = int(round(self._printer.get_fan_speed(fan, data[fan]["speed"]), 2) * 100)
self.fans[fan]['speed'] = ("%3d%%" % fan_speed)
fan_label = ""
for fan in self.fans:
@@ -625,15 +656,16 @@ class JobStatusPanel(ScreenPanel):
def update_velocity(self):
if len(self.velstore) > 0:
self.vel = (self.vel + median(array(self.velstore))) / 2
self.labels['req_speed'].set_text("%d/%d mm/s" % (self.vel, self.req_speed))
self.velstore = []
if len(self.flowstore) > 0:
self.flowrate = (self.flowrate + median(array(self.flowstore))) / 2
self.labels['flowrate'].set_label("%.1f mm3/s" % self.flowrate)
self.flowstore = []
self.labels['flowrate'].set_label("%.1f mm³/s" % self.flowrate)
self.labels['req_speed'].set_text("%d/%d mm/s" % (self.vel, self.req_speed))
if self.main_status_displayed:
self.speed_button.set_label("%3d%% %5d mm/s" % (self.speed, self.vel))
self.extrusion_button.set_label("%3d%% %5.1f mm3/s" % (self.extrusion, self.flowrate))
self.extrusion_button.set_label("%3d%% %5.1f mm³/s" % (self.extrusion, self.flowrate))
return True
def calculate_time_left(self, duration=0, filament_used=0):
@@ -650,6 +682,9 @@ class JobStatusPanel(ScreenPanel):
slicer_time = (self.file_metadata['estimated_time'] * slicer_correction) / spdcomp
if slicer_time < duration:
slicer_time = None
self.update_text("slicer_time", "-")
else:
self.update_text("slicer_time", str(self._gtk.formatTimeString(slicer_time)))
if "filament_total" in self.file_metadata:
if self.file_metadata['filament_total'] > 0 and filament_used > 0:
@@ -657,9 +692,15 @@ class JobStatusPanel(ScreenPanel):
filament_time = duration / (filament_used / self.file_metadata['filament_total'])
if filament_time < duration:
filament_time = None
self.update_text("filament_time", "-")
else:
self.update_text("filament_time", str(self._gtk.formatTimeString(slicer_time)))
if self.progress > 0:
file_time = duration / self.progress
self.update_text("file_time", str(self._gtk.formatTimeString(file_time)))
else:
self.update_text("file_time", "-")
if timeleft_type == "file" and file_time is not None:
total_duration = file_time
@@ -681,23 +722,17 @@ class JobStatusPanel(ScreenPanel):
else:
total_duration = file_time
if total_duration is None:
if total_duration is not None:
self.update_text("est_time", str(self._gtk.formatTimeString(total_duration)))
return str(self._gtk.formatTimeString((total_duration - duration)))
else:
return "-"
self.update_text("est_time", str(self._gtk.formatTimeString(total_duration)))
if slicer_time is not None:
self.update_text("slicer_time", str(self._gtk.formatTimeString(slicer_time)))
if file_time is not None:
self.update_text("file_time", str(self._gtk.formatTimeString(file_time)))
if filament_time is not None:
self.update_text("filament_time", str(self._gtk.formatTimeString(filament_time)))
return str(self._gtk.formatTimeString((total_duration - duration)))
def state_check(self):
ps = self._printer.get_stat("print_stats")
if ps['state'] == self.state:
return True
_ = self.lang.gettext
if ps['state'] == "printing":
if self.state == "cancelling":
@@ -710,9 +745,9 @@ class JobStatusPanel(ScreenPanel):
self.set_state("complete")
self._screen.wake_screen()
self.remove_close_timeout()
timeout = self._config.get_main_config().getint("job_complete_timeout", 30)
timeout = self._config.get_main_config().getint("job_complete_timeout", 0)
if timeout != 0:
self.close_timeouts.append(GLib.timeout_add_seconds(timeout, self.close_panel))
self.close_timeout = GLib.timeout_add_seconds(timeout, self.close_panel)
return False
elif ps['state'] == "error":
logging.debug("Error!")
@@ -723,7 +758,7 @@ class JobStatusPanel(ScreenPanel):
self.remove_close_timeout()
timeout = self._config.get_main_config().getint("job_error_timeout", 0)
if timeout != 0:
self.close_timeouts.append(GLib.timeout_add_seconds(timeout, self.close_panel))
self.close_timeout = GLib.timeout_add_seconds(timeout, self.close_panel)
return False
elif ps['state'] == "cancelled":
# Print was cancelled
@@ -732,7 +767,7 @@ class JobStatusPanel(ScreenPanel):
self.remove_close_timeout()
timeout = self._config.get_main_config().getint("job_cancelled_timeout", 0)
if timeout != 0:
self.close_timeouts.append(GLib.timeout_add_seconds(timeout, self.close_panel))
self.close_timeout = GLib.timeout_add_seconds(timeout, self.close_panel)
return False
elif ps['state'] == "paused":
self.set_state("paused")
@@ -741,7 +776,6 @@ class JobStatusPanel(ScreenPanel):
return True
def set_state(self, state):
_ = self.lang.gettext
if self.state != state:
logging.debug("Changing job_status state from '%s' to '%s'" % (self.state, state))
@@ -758,7 +792,6 @@ class JobStatusPanel(ScreenPanel):
self.state = state
self.show_buttons_for_state()
def show_buttons_for_state(self):
self.buttons['button_grid'].remove_row(0)
self.buttons['button_grid'].insert_row(0)
@@ -782,7 +815,7 @@ class JobStatusPanel(ScreenPanel):
self.buttons['button_grid'].attach(self.buttons["save_offset_endstop"], 0, 0, 1, 1)
else:
self.buttons['button_grid'].attach(Gtk.Label(""), 0, 0, 1, 1)
if (self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch")):
if self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch"):
self.buttons['button_grid'].attach(self.buttons["save_offset_probe"], 1, 0, 1, 1)
else:
self.buttons['button_grid'].attach(Gtk.Label(""), 1, 0, 1, 1)
@@ -797,17 +830,41 @@ class JobStatusPanel(ScreenPanel):
def show_file_thumbnail(self):
if self._files.has_thumbnail(self.filename):
scale = 5 * self._files.get_thumbnail_scale(self.filename)
pixbuf = self.get_file_image(self.filename, scale, scale)
pixbuf = self.get_file_image(self.filename, 5, 5)
if pixbuf is not None:
self.labels['thumbnail'].set_from_pixbuf(pixbuf)
def update_filename(self):
self.filename = self._printer.get_stat('print_stats', 'filename')
self.update_text("file", os.path.splitext(self._printer.get_stat('print_stats', 'filename'))[0])
self.update_text("file", os.path.splitext(self.filename)[0])
self.filename_label = {
"complete": self.labels['file'].get_label(),
"current": self.labels['file'].get_label(),
"position": 0,
"limit": 24,
"length": len(self.labels['file'].get_label())
}
if self.animation_timeout is None:
# 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_file_metadata()
def animate_label(self):
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']):
self.filename_label['position'] = 0
self.labels['file'].set_label(complete)
else:
self.labels['file'].set_label(current[pos:self.filename_label['length']])
self.filename_label['position'] += 1
return True
def update_file_metadata(self):
if self._files.file_metadata_exists(self.filename):
self.file_metadata = self._files.get_file_info(self.filename)
@@ -821,14 +878,14 @@ class JobStatusPanel(ScreenPanel):
i['data'] = ""
self.show_file_thumbnail()
if "object_height" in self.file_metadata:
self.height = self.file_metadata['object_height']
self.height = float(self.file_metadata['object_height'])
self.labels['height'].set_label(str(self.height) + " mm")
if "layer_height" in self.file_metadata:
self.layer_h = self.file_metadata['layer_height']
self.layer_h = float(self.file_metadata['layer_height'])
if "first_layer_height" in self.file_metadata:
self.f_layer_h = self.file_metadata['first_layer_height']
self.f_layer_h = float(self.file_metadata['first_layer_height'])
else:
self.f_layer_h = layer_h
self.f_layer_h = self.layer_h
self.labels['total_layers'].set_label(str(int((self.height - self.f_layer_h) / self.layer_h) + 1))
if "filament_total" in self.file_metadata:
filament_total = float(self.file_metadata['filament_total']) / 1000
@@ -848,8 +905,8 @@ class JobStatusPanel(ScreenPanel):
if "gcode_start_byte" in self.file_metadata:
progress = (max(self._printer.get_stat('virtual_sdcard', 'file_position') -
self.file_metadata['gcode_start_byte'], 0) / (self.file_metadata['gcode_end_byte'] -
self.file_metadata['gcode_start_byte']))
self.file_metadata['gcode_start_byte'], 0) / (self.file_metadata['gcode_end_byte'] -
self.file_metadata['gcode_start_byte']))
else:
progress = self._printer.get_stat('virtual_sdcard', 'progress')
@@ -864,17 +921,19 @@ class JobStatusPanel(ScreenPanel):
def update_progress(self):
if self.progress < 1:
self.labels['progress_text'].set_text("%s%%" % (str((int(self.progress*100)))))
self.labels['progress_text'].set_text("%s%%" % (str((int(self.progress * 100)))))
else:
self.labels['progress_text'].set_text("100")
def update_message(self):
msg = self._printer.get_stat("display_status", "message")
if type(msg) == str:
self.labels['lcdmessage'].set_text(msg)
if msg is None:
msg = " "
self.labels['lcdmessage'].set_text(str(msg))
def update_temp(self, x, temp, target):
if target > 0:
self.labels[x].set_label("%3d/%3d°" % (temp, target))
else:
self.labels[x].set_label("%3d°" % (temp))
if x in self.labels and temp is not None:
if target is not None and target > 0:
self.labels[x].set_label("%3d/%3d°" % (temp, target))
else:
self.labels[x].set_label("%3d°" % temp)
+58 -54
View File
@@ -2,10 +2,11 @@ import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
from gi.repository import Gtk, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return LimitsPanel(*args)
@@ -14,72 +15,66 @@ class LimitsPanel(ScreenPanel):
values = {}
def initialize(self, panel_name):
_ = self.lang.gettext
self.devices = {}
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
self.limits = {}
# Create a grid for all devices
self.labels['devices'] = Gtk.Grid()
scroll.add(self.labels['devices'])
scroll = self._gtk.ScrolledWindow()
# 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)
# Create a grid for all limits
self.grid = Gtk.Grid()
scroll.add(self.grid)
conf = self._printer.get_config_section("printer")
self.options = [
{"name": _("Max Accelation"), "units": _("mm/s^2"), "option": "max_accel",
"value": self.stn(conf['max_accel'])},
{"name": _("Max Acceleration to Deceleration"), "units": _("mm/s^2"), "option": "max_accel_to_decel",
"value": self.stn(conf['max_accel_to_decel']) if "max_accel_to_decel" in conf else
round(self.stn(conf['max_accel'])/2)},
{"name": _("Max Acceleration"), "units": _("mm/s²"), "option": "max_accel",
"max": self.stn(conf['max_accel'])},
{"name": _("Max Acceleration to Deceleration"), "units": _("mm/s²"), "option": "max_accel_to_decel",
"max": self.stn(conf['max_accel_to_decel']) if "max_accel_to_decel" in conf else
round(self.stn(conf['max_accel']) / 2)},
{"name": _("Max Velocity"), "units": _("mm/s"), "option": "max_velocity",
"value": self.stn(conf["max_velocity"])},
"max": self.stn(conf["max_velocity"])},
{"name": _("Square Corner Velocity"), "units": _("mm/s"), "option": "square_corner_velocity",
"value": self.stn(conf['square_corner_velocity']) if "square_corner_velocity" in conf else 5}
"max": self.stn(conf['square_corner_velocity']) if "square_corner_velocity" in conf else 5}
]
for opt in self.options:
self.add_option(opt['option'], opt['name'], opt['units'], opt['value'])
self.add_option(opt['option'], opt['name'], opt['units'], opt['max'])
self.content.add(box)
self.content.add(scroll)
self.content.show_all()
def stn(self, str):
return int(float(str))
def process_update(self, action, data):
if (action != "notify_status_update"):
if action != "notify_status_update":
return
for opt in self.devices:
for opt in self.limits:
if "toolhead" in data and opt in data["toolhead"]:
self.update_option(opt, data["toolhead"][opt])
def update_option(self, option, value):
if option not in self.devices:
if option not in self.limits:
return
if self.devices[option]['scale'].has_grab():
if self.limits[option]['scale'].has_grab():
return
self.values[option] = int(value)
self.devices[option]['scale'].disconnect_by_func(self.set_opt_value)
self.devices[option]['scale'].set_value(self.values[option])
self.devices[option]['scale'].connect("button-release-event", self.set_opt_value, option)
self.limits[option]['scale'].disconnect_by_func(self.set_opt_value)
self.limits[option]['scale'].set_value(self.values[option])
for opt in self.options:
if opt["option"] == option:
if self.values[option] > opt["max"]:
self.limits[option]['scale'].get_style_context().add_class("option_slider_max")
else:
self.limits[option]['scale'].get_style_context().remove_class("option_slider_max")
self.limits[option]['scale'].connect("button-release-event", self.set_opt_value, option)
def add_option(self, option, optname, units, value):
logging.info("Adding option: %s" % option)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big> (%s)" % (optname, units))
name.set_hexpand(True)
@@ -89,7 +84,7 @@ class LimitsPanel(ScreenPanel):
name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
adj = Gtk.Adjustment(0, 0, value, 1, 5, 0)
adj = Gtk.Adjustment(0, 1, (value * 1.5), 1, 5, 0)
self.values[option] = value
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_value(self.values[option])
@@ -99,36 +94,45 @@ class LimitsPanel(ScreenPanel):
scale.get_style_context().add_class("option_slider")
scale.connect("button-release-event", self.set_opt_value, option)
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
labels.add(name)
labels.add(scale)
reset = self._gtk.ButtonImage("refresh", None, "color1")
reset.connect("clicked", self.reset_value, option)
reset.set_hexpand(False)
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
dev.set_hexpand(True)
dev.set_vexpand(False)
dev.add(labels)
frame.add(dev)
item = Gtk.Grid()
item.attach(name, 0, 0, 2, 1)
item.attach(scale, 0, 1, 1, 1)
item.attach(reset, 1, 1, 1, 1)
self.devices[option] = {
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
frame.add(item)
self.limits[option] = {
"row": frame,
"scale": scale,
}
devices = sorted(self.devices)
pos = devices.index(option)
limits = sorted(self.limits)
pos = limits.index(option)
self.labels['devices'].insert_row(pos)
self.labels['devices'].attach(self.devices[option]['row'], 0, pos, 1, 1)
self.labels['devices'].show_all()
self.grid.insert_row(pos)
self.grid.attach(self.limits[option]['row'], 0, pos, 1, 1)
self.grid.show_all()
def reset_value(self, widget, option):
for x in self.options:
if x["option"] == option:
self.update_option(option, x["max"])
self.set_opt_value(None, None, option)
def set_opt_value(self, widget, event, opt):
value = self.devices[opt]['scale'].get_value()
value = self.limits[opt]['scale'].get_value()
if opt == "max_accel":
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT ACCEL=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT ACCEL=%s" % value)
elif opt == "max_accel_to_decel":
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT ACCEL_TO_DECEL=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT ACCEL_TO_DECEL=%s" % value)
elif opt == "max_velocity":
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT VELOCITY=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT VELOCITY=%s" % value)
elif opt == "square_corner_velocity":
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=%s" % value)
+7 -15
View File
@@ -2,15 +2,17 @@ import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, Pango
from gi.repository import Gtk, GLib, Pango
from panels.menu import MenuPanel
from ks_includes.widgets.graph import HeaterGraph
from ks_includes.widgets.keypad import Keypad
def create_panel(*args):
return MainPanel(*args)
class MainPanel(MenuPanel):
def __init__(self, screen, title, back=False):
super().__init__(screen, title, False)
@@ -59,7 +61,7 @@ class MainPanel(MenuPanel):
self.graph_update = None
def add_device(self, device):
_ = self.lang.gettext
logging.info("Adding device: %s" % device)
temperature = self._printer.get_dev_stat(device, "temperature")
@@ -106,7 +108,7 @@ class MainPanel(MenuPanel):
image = "fan"
class_name = "graph_label_fan_%s" % f
type = "fan"
elif self._config.get_main_config_option('only_heaters') == "True":
elif self._config.get_main_config().getboolean("only_heaters", False):
return False
else:
s = 1
@@ -135,7 +137,6 @@ class MainPanel(MenuPanel):
name.set_alignment(0, .5)
name.get_style_context().add_class(class_name)
child = name.get_children()[0].get_children()[0].get_children()[1]
child.set_ellipsize(True)
child.set_ellipsize(Pango.EllipsizeMode.END)
temp = self._gtk.Button("")
@@ -172,7 +173,6 @@ class MainPanel(MenuPanel):
return True
def change_target_temp(self, temp):
_ = self.lang.gettext
MAX_TEMP = int(float(self._printer.get_config_section(self.active_heater)['max_temp']))
if temp > MAX_TEMP:
@@ -194,7 +194,6 @@ class MainPanel(MenuPanel):
self._printer.set_dev_stat(self.active_heater, "target", temp)
def create_left_panel(self):
_ = self.lang.gettext
self.labels['devices'] = Gtk.Grid()
self.labels['devices'].get_style_context().add_class('heater-grid')
@@ -211,12 +210,7 @@ class MainPanel(MenuPanel):
da.set_vexpand(True)
self.labels['da'] = da
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_hexpand(True)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(self.labels['devices'])
@@ -225,7 +219,6 @@ class MainPanel(MenuPanel):
box.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"))
@@ -234,7 +227,7 @@ class MainPanel(MenuPanel):
self.labels['graph_show'].connect("clicked", self.graph_show_device)
popover = Gtk.Popover()
self.labels['popover_vbox'] = Gtk.VBox()
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
@@ -318,7 +311,6 @@ class MainPanel(MenuPanel):
return
def show_numpad(self, widget):
_ = self.lang.gettext
if self.active_heater is not None:
self.devices[self.active_heater]['name'].get_style_context().remove_class("active_device")
+14 -13
View File
@@ -7,32 +7,30 @@ from jinja2 import Environment, Template
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return MenuPanel(*args)
class MenuPanel(ScreenPanel):
i = 0
j2_data = None
def initialize(self, panel_name, display_name, items):
_ = self.lang.gettext
self.items = items
self.create_menu_items()
self.grid = self._gtk.HomogeneousGrid()
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_hexpand(True)
scroll.set_vexpand(True)
scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(self.grid)
self.content.add(scroll)
def activate(self):
if not self.j2_data:
self.j2_data = self._printer.get_printer_status_data()
self.j2_data = self._printer.get_printer_status_data()
self.j2_data.update({
'moonraker_connected': self._screen._ws.is_connected()
})
@@ -57,15 +55,15 @@ class MenuPanel(ScreenPanel):
if length <= 4:
# Arrange 2 x 2
columns = 2
elif length > 4 and length <= 6:
elif 4 < length <= 6:
# Arrange 3 x 2
columns = 3
col = i % columns
row = int(i/columns)
row = int(i / columns)
width = height = 1
if expandLast is True and i+1 == length and length % 2 == 1:
if expandLast is True and i + 1 == length and length % 2 == 1:
width = 2
self.grid.attach(self.labels[key], col, row, width, height)
@@ -84,7 +82,7 @@ class MenuPanel(ScreenPanel):
parsed_name = j2_temp.render()
b = self._gtk.ButtonImage(
item['icon'], parsed_name, "color"+str((i % 4)+1)
item['icon'], parsed_name, "color" + str((i % 4) + 1)
)
if item['panel'] is not False:
b.connect("clicked", self.menu_item_clicked, item['panel'], item)
@@ -104,8 +102,11 @@ class MenuPanel(ScreenPanel):
if enable is False:
return False
if not self.j2_data:
self.j2_data = self._printer.get_printer_status_data()
if enable == "{{ moonraker_connected }}":
logging.info("moonraker is_connected %s", self._screen._ws.is_connected())
return self._screen._ws.is_connected()
self.j2_data = self._printer.get_printer_status_data()
try:
logging.debug("Template: '%s'" % enable)
logging.debug("Data: %s" % self.j2_data)
+112 -15
View File
@@ -2,7 +2,7 @@ import gi
import logging
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.screen_panel import ScreenPanel
@@ -11,16 +11,19 @@ AXIS_X = "X"
AXIS_Y = "Y"
AXIS_Z = "Z"
def create_panel(*args):
return MovePanel(*args)
class MovePanel(ScreenPanel):
distance = 1
distances = ['.1', '.5', '1', '5', '10', '25', '50']
def initialize(self, panel_name):
_ = self.lang.gettext
self.settings = {}
self.menu = ['move_menu']
grid = self._gtk.HomogeneousGrid()
@@ -102,9 +105,9 @@ class MovePanel(ScreenPanel):
self.labels[i].set_direction(Gtk.TextDirection.LTR)
self.labels[i].connect("clicked", self.change_distance, i)
ctx = self.labels[i].get_style_context()
if (self._screen.lang_ltr and j == 0) or (not self._screen.lang_ltr and j == len(self.distances)-1):
if (self._screen.lang_ltr and j == 0) or (not self._screen.lang_ltr and j == len(self.distances) - 1):
ctx.add_class("distbutton_top")
elif (not self._screen.lang_ltr and j == 0) or (self._screen.lang_ltr and j == len(self.distances)-1):
elif (not self._screen.lang_ltr and j == 0) or (self._screen.lang_ltr and j == len(self.distances) - 1):
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
@@ -115,23 +118,55 @@ class MovePanel(ScreenPanel):
self.labels["1"].set_active(True)
bottomgrid = self._gtk.HomogeneousGrid()
bottomgrid.set_direction(Gtk.TextDirection.LTR)
self.labels['pos_x'] = Gtk.Label("X: 0")
self.labels['pos_y'] = Gtk.Label("Y: 0")
self.labels['pos_z'] = Gtk.Label("Z: 0")
adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, False)
adjust.connect("clicked", self.load_menu, 'options')
adjust.set_hexpand(False)
self.labels['move_dist'] = Gtk.Label(_("Move Distance (mm)"))
bottomgrid = self._gtk.HomogeneousGrid()
bottomgrid.set_direction(Gtk.TextDirection.LTR)
bottomgrid.attach(self.labels['pos_x'], 0, 0, 1, 1)
bottomgrid.attach(self.labels['pos_y'], 1, 0, 1, 1)
bottomgrid.attach(self.labels['pos_z'], 2, 0, 1, 1)
self.labels['move_dist'] = Gtk.Label(_("Move Distance (mm)"))
bottomgrid.attach(self.labels['move_dist'], 0, 1, 3, 1)
bottomgrid.attach(adjust, 3, 0, 1, 2)
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.pack_start(grid, True, True, 0)
box.pack_start(bottomgrid, True, True, 0)
box.pack_start(self.labels['move_dist'], True, True, 0)
box.pack_start(distgrid, True, True, 0)
self.labels['move_menu'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.labels['move_menu'].set_vexpand(True)
self.labels['move_menu'].pack_start(grid, True, True, 0)
self.labels['move_menu'].pack_start(bottomgrid, True, True, 0)
self.labels['move_menu'].pack_start(distgrid, True, True, 0)
self.content.add(box)
self.content.add(self.labels['move_menu'])
printer_cfg = self._printer.get_config_section("printer")
max_velocity = int(float(printer_cfg["max_velocity"]))
if "max_z_velocity" in printer_cfg:
max_z_velocity = int(float(printer_cfg["max_z_velocity"]))
else:
max_z_velocity = max_velocity
configurable_options = [
{"invert_x": {"section": "main", "name": _("Invert X"), "type": "binary", "value": "False"}},
{"invert_y": {"section": "main", "name": _("Invert Y"), "type": "binary", "value": "False"}},
{"invert_z": {"section": "main", "name": _("Invert Z"), "type": "binary", "value": "False"}},
{"move_speed_xy": {
"section": "main", "name": _("XY Speed (mm/s)"), "type": "scale", "value": "50",
"range": [1, max_velocity], "step": 1}},
{"move_speed_z": {
"section": "main", "name": _("Z Speed (mm/s)"), "type": "scale", "value": "10",
"range": [1, max_z_velocity], "step": 1}}
]
self.labels['options_menu'] = self._gtk.ScrolledWindow()
self.labels['options'] = Gtk.Grid()
self.labels['options_menu'].add(self.labels['options'])
for option in configurable_options:
name = list(option)[0]
self.add_option('options', self.settings, name, option[name])
def process_update(self, action, data):
if action != "notify_status_update":
@@ -196,7 +231,69 @@ class MovePanel(ScreenPanel):
self._screen._ws.klippy.gcode_script(
"%s\n%s %s%s F%s%s" % (
KlippyGcodes.MOVE_RELATIVE, KlippyGcodes.MOVE, axis, dist, speed*60,
KlippyGcodes.MOVE_RELATIVE, KlippyGcodes.MOVE, axis, dist, speed * 60,
"\nG90" if self._printer.get_stat("gcode_move", "absolute_coordinates") is True else ""
)
)
def add_option(self, boxname, opt_array, opt_name, option):
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big>" % (option['name']))
name.set_hexpand(True)
name.set_vexpand(True)
name.set_halign(Gtk.Align.START)
name.set_valign(Gtk.Align.CENTER)
name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
dev.set_hexpand(True)
dev.set_vexpand(False)
dev.set_valign(Gtk.Align.CENTER)
dev.add(name)
if option['type'] == "binary":
box = Gtk.Box()
box.set_vexpand(False)
switch = Gtk.Switch()
switch.set_hexpand(False)
switch.set_vexpand(False)
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name))
switch.connect("notify::active", self.switch_config_option, option['section'], opt_name)
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
box.add(switch)
dev.add(box)
elif option['type'] == "scale":
dev.set_orientation(Gtk.Orientation.VERTICAL)
val = int(self._config.get_config().get(option['section'], opt_name, fallback=option['value']))
adj = Gtk.Adjustment(val, option['range'][0], option['range'][1], option['step'], option['step'] * 5)
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_hexpand(True)
scale.set_digits(0)
scale.connect("button-release-event", self.scale_moved, option['section'], opt_name)
dev.add(scale)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
frame.add(dev)
frame.show_all()
opt_array[opt_name] = {
"name": option['name'],
"row": frame
}
opts = sorted(opt_array)
opts = sorted(list(opt_array), key=lambda x: opt_array[x]['name'])
pos = opts.index(opt_name)
self.labels[boxname].insert_row(pos)
self.labels[boxname].attach(opt_array[opt_name]['row'], 0, pos, 1, 1)
self.labels[boxname].show_all()
def back(self):
if len(self.menu) > 1:
self.unload_menu()
return True
return False
+23 -35
View File
@@ -8,14 +8,16 @@ gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return NetworkPanel(*args)
class NetworkPanel(ScreenPanel):
initialized = False
def initialize(self, menu):
_ = self.lang.gettext
self.show_add = False
self.networks = {}
self.update_timeout = None
@@ -38,7 +40,7 @@ class NetworkPanel(ScreenPanel):
ints = netifaces.interfaces()
if 'lo' in ints:
ints.pop(ints.index('lo'))
if (len(ints) > 0):
if len(ints) > 0:
self.interface = ints[0]
else:
self.interface = 'lo'
@@ -69,12 +71,7 @@ class NetworkPanel(ScreenPanel):
sbox.add(self.labels['ip'])
sbox.add(reload_networks)
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
box.set_vexpand(True)
@@ -117,7 +114,6 @@ class NetworkPanel(ScreenPanel):
self.content.show_all()
def add_network(self, ssid, show=True):
_ = self.lang.gettext
if ssid is None:
logging.info("SSID is None")
@@ -151,7 +147,7 @@ class NetworkPanel(ScreenPanel):
display_name += " (" + _("Connected") + ")"
name = Gtk.Label("")
name.set_markup("<big><b>%s</b></big>" % (display_name))
name.set_markup("<big><b>%s</b></big>" % display_name)
name.set_hexpand(True)
name.set_halign(Gtk.Align.START)
name.set_line_wrap(True)
@@ -273,7 +269,6 @@ class NetworkPanel(ScreenPanel):
self.check_missing_networks()
def connect_network(self, widget, ssid, showadd=True):
_ = self.lang.gettext
snets = self.wifi.get_supplicant_networks()
isdef = False
@@ -345,44 +340,38 @@ class NetworkPanel(ScreenPanel):
if self.show_add:
return
_ = self.lang.gettext
for child in self.content.get_children():
self.content.remove(child)
if "add_network" in self.labels:
del self.labels['add_network']
self.labels['add_network'] = Gtk.VBox()
self.labels['add_network'].set_valign(Gtk.Align.START)
box = Gtk.Box(spacing=5)
box.set_size_request(self._gtk.get_content_width(), self._gtk.get_content_height() -
self._screen.keyboard_height - 20)
box.set_hexpand(True)
box.set_vexpand(False)
self.labels['add_network'].add(box)
label = self._gtk.Label("%s %s:" % (_("PSK for"), ssid))
label.set_hexpand(False)
entry = Gtk.Entry()
entry.set_hexpand(True)
entry.connect("activate", self.add_new_network, ssid, True)
self.labels['network_psk'] = Gtk.Entry()
self.labels['network_psk'].set_text('')
self.labels['network_psk'].set_hexpand(True)
self.labels['network_psk'].connect("activate", self.add_new_network, ssid, True)
self.labels['network_psk'].connect("focus-in-event", self._screen.show_keyboard)
self.labels['network_psk'].grab_focus_without_selecting()
save = self._gtk.ButtonImage("sd", _("Save"), "color3")
save.set_hexpand(False)
save.connect("clicked", self.add_new_network, ssid, True)
self.labels['network_psk'] = entry
box.pack_start(label, False, False, 5)
box.pack_start(entry, True, True, 5)
box = Gtk.Box()
box.pack_start(self.labels['network_psk'], True, True, 5)
box.pack_start(save, False, False, 5)
self.show_create = True
self.labels['network_psk'].set_text('')
self.labels['add_network'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=5)
self.labels['add_network'].set_valign(Gtk.Align.CENTER)
self.labels['add_network'].set_hexpand(True)
self.labels['add_network'].set_vexpand(True)
self.labels['add_network'].pack_start(label, True, True, 5)
self.labels['add_network'].pack_start(box, True, True, 5)
self.content.add(self.labels['add_network'])
self._screen.show_keyboard()
self.labels['network_psk'].grab_focus_without_selecting()
self.content.show_all()
self.show_add = True
@@ -392,7 +381,7 @@ class NetworkPanel(ScreenPanel):
return True
def update_network_info(self, ssid):
_ = self.lang.gettext
info = freq = encr = chan = lvl = ipv4 = ipv6 = ""
if ssid not in list(self.networks) or ssid not in self.labels['networks']:
@@ -428,11 +417,10 @@ class NetworkPanel(ScreenPanel):
lvl = netinfo['signal_level_dBm'] + " " + _("dBm")
self.labels['networks'][ssid]['info'].set_markup("%s <small>%s %s %s %s</small>" % (
info, encr, freq, chan, lvl))
info, encr, freq, chan, lvl))
self.labels['networks'][ssid]['info'].show_all()
def update_single_network_info(self):
_ = self.lang.gettext
stream = os.popen('hostname -f')
hostname = stream.read().strip()
+8 -10
View File
@@ -2,24 +2,22 @@ import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
from gi.repository import Gtk, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return PowerPanel(*args)
class PowerPanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
self.devices = {}
# Create a scroll window for the power devices
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
# Create a grid for all devices
self.labels['devices'] = Gtk.Grid()
@@ -47,7 +45,7 @@ class PowerPanel(ScreenPanel):
frame.get_style_context().add_class("frame-item")
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big>" % (device))
name.set_markup("<big><b>%s</b></big>" % device)
name.set_hexpand(True)
name.set_vexpand(True)
name.set_halign(Gtk.Align.START)
@@ -59,8 +57,8 @@ class PowerPanel(ScreenPanel):
switch.set_hexpand(False)
switch.set_active(True if self._screen.printer.get_power_device_status(device) == "on" else False)
switch.connect("notify::active", self.on_switch, device)
switch.set_property("width-request", round(self._gtk.get_font_size()*7))
switch.set_property("height-request", round(self._gtk.get_font_size()*3.5))
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
labels.add(name)
+21 -27
View File
@@ -4,40 +4,38 @@ import logging
import os
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, Pango
from gi.repository import Gtk, GLib, Pango
from datetime import datetime
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return PrintPanel(*args)
class PrintPanel(ScreenPanel):
cur_directory = "gcodes"
dir_panels = {}
filelist = {'gcodes': {'directories': [], 'files': []}}
def initialize(self, panel_name):
_ = self.lang.gettext
self.labels['directories'] = {}
self.labels['files'] = {}
self.sort_items = {
"name": _("Name"),
"date": _("Date")
}
self.sort_char = ["↑", "↓"]
self.sort_icon = ["arrow-up", "arrow-down"]
sortdir = self._config.get_main_config_option("print_sort_dir", "name_asc")
sortdir = self._config.get_main_config().get("print_sort_dir", "name_asc")
sortdir = sortdir.split('_')
if sortdir[0] not in ["name", "date"] or sortdir[1] not in ["asc", "desc"]:
sortdir = ["name", "asc"]
self.sort_current = [sortdir[0], 0 if sortdir[1] == "asc" else 1] # 0 for asc, 1 for desc
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
sort = Gtk.Label()
sort.set_text(_("Sort by: "))
@@ -46,10 +44,9 @@ class PrintPanel(ScreenPanel):
sbox.add(sort)
i = 1
for name, val in self.sort_items.items():
s = self._gtk.Button(val, "color%s" % (i % 4))
s.set_label(val)
s = self._gtk.ButtonImage(None, val, "color%s" % (i % 4), .66, Gtk.PositionType.RIGHT, False)
if name == sortdir[0]:
s.set_label("%s %s" % (s.get_label(), self.sort_char[self.sort_current[1]]))
s.set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], .66))
s.connect("clicked", self.change_sort, name)
self.labels['sort_%s' % name] = s
sbox.add(s)
@@ -156,7 +153,6 @@ class PrintPanel(ScreenPanel):
self.dir_panels[parent_dir].show_all()
def add_file(self, filepath, show=True):
_ = self.lang.gettext
fileinfo = self._screen.files.get_file_info(filepath)
if fileinfo is None:
@@ -167,13 +163,13 @@ class PrintPanel(ScreenPanel):
filename = filepath.split('/')[-1]
for i in range(1, len(dir)):
curdir = "/".join(dir[0:i])
newdir = "/".join(dir[0:i+1])
newdir = "/".join(dir[0:i + 1])
if newdir not in self.filelist[curdir]['directories']:
self.add_directory(newdir)
if filename not in self.filelist[directory]['files']:
for i in range(1, len(dir)):
curdir = "/".join(dir[0:i+1])
curdir = "/".join(dir[0:i + 1])
if curdir != "gcodes" and fileinfo['modified'] > self.filelist[curdir]['modified']:
self.filelist[curdir]['modified'] = fileinfo['modified']
self.labels['directories'][curdir]['info'].set_markup(
@@ -212,7 +208,7 @@ class PrintPanel(ScreenPanel):
file.set_vexpand(False)
icon = Gtk.Image()
pixbuf = self.get_file_image(filepath)
pixbuf = self.get_file_image(filepath, small=True)
if pixbuf is not None:
icon.set_from_pixbuf(pixbuf)
else:
@@ -272,10 +268,10 @@ class PrintPanel(ScreenPanel):
else:
oldkey = self.sort_current[0]
logging.info("Changing %s to %s" % ('sort_%s' % oldkey, self.sort_items[self.sort_current[0]]))
self.labels['sort_%s' % oldkey].set_label("%s" % self.sort_items[oldkey])
self.labels['sort_%s' % oldkey].set_image(None)
self.labels['sort_%s' % oldkey].show_all()
self.sort_current = [key, 0]
self.labels['sort_%s' % key].set_label("%s %s" % (self.sort_items[key], self.sort_char[self.sort_current[1]]))
self.labels['sort_%s' % key].set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], .66))
self.labels['sort_%s' % key].show()
GLib.idle_add(self.reload_files)
@@ -283,14 +279,14 @@ class PrintPanel(ScreenPanel):
self._config.save_user_config_options()
def confirm_print(self, widget, filename):
_ = self.lang.gettext
buttons = [
{"name": _("Print"), "response": Gtk.ResponseType.OK},
{"name": _("Cancel"), "response": Gtk.ResponseType.CANCEL}
]
label = Gtk.Label()
label.set_markup("<b>%s</b>\n" % (filename))
label.set_markup("<b>%s</b>\n" % filename)
label.set_hexpand(True)
label.set_halign(Gtk.Align.CENTER)
label.set_vexpand(True)
@@ -300,7 +296,6 @@ class PrintPanel(ScreenPanel):
grid = Gtk.Grid()
grid.add(label)
grid.set_size_request(self._screen.width - 60, -1)
pixbuf = self.get_file_image(filename, 8, 3.2)
if pixbuf is not None:
@@ -319,7 +314,7 @@ class PrintPanel(ScreenPanel):
if response_id == Gtk.ResponseType.CANCEL:
return
logging.info("Starting print: %s" % (filename))
logging.info("Starting print: %s" % filename)
self._screen._ws.klippy.print_start(filename)
def delete_file(self, filename):
@@ -349,7 +344,6 @@ class PrintPanel(ScreenPanel):
self.files.pop(filename)
def get_file_info_str(self, filename):
_ = self.lang.gettext
fileinfo = self._screen.files.get_file_info(filename)
if fileinfo is None:
@@ -370,7 +364,7 @@ class PrintPanel(ScreenPanel):
for i, suffix in enumerate(suffixes, start=2):
unit = 1024 ** i
if size < unit:
return ("%.1f %s") % ((1024 * size / unit), suffix)
return "%.1f %s" % ((1024 * size / unit), suffix)
def get_print_time(self, filename):
fileinfo = self._screen.files.get_file_info(filename)
@@ -382,16 +376,16 @@ class PrintPanel(ScreenPanel):
print_str = ""
# Figure out how many days
print_val = int(print_time/86400)
print_val = int(print_time / 86400)
if print_val > 0:
print_str = "%sd " % print_val
# Take remainder from days and divide by hours
print_val = int((print_time % 86400)/3600)
print_val = int((print_time % 86400) / 3600)
if print_val > 0:
print_str = "%s%sh " % (print_str, print_val)
print_val = int(((print_time % 86400) % 3600)/60)
print_val = int(((print_time % 86400) % 3600) / 60)
print_str = "%s%sm" % (print_str, print_val)
return print_str
return "Unavailable"
+6 -8
View File
@@ -7,23 +7,21 @@ from ks_includes.screen_panel import ScreenPanel
logger = logging.getLogger("KlipperScreen.PrinterSelect")
def create_panel(*args):
return PrinterSelect(*args)
class PrinterSelect(ScreenPanel):
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
super().__init__(screen, title, False, False, False)
def initialize(self, panel_name):
_ = self.lang.gettext
printers = self._config.get_printers()
grid = self._gtk.HomogeneousGrid()
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_hexpand(True)
scroll.set_vexpand(True)
scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(grid)
self.content.add(scroll)
@@ -32,7 +30,7 @@ class PrinterSelect(ScreenPanel):
if length == 4:
# Arrange 2 x 2
columns = 2
elif length > 4 and length <= 6:
elif 4 < length <= 6:
# Arrange 3 x 2
columns = 3
else:
@@ -44,8 +42,8 @@ class PrinterSelect(ScreenPanel):
self.labels[name].connect("clicked", self._screen.connect_printer_widget, name)
if self._screen.vertical_mode:
row = i % columns
col = int(i/columns)
col = int(i / columns)
else:
col = i % columns
row = int(i/columns)
row = int(i / columns)
grid.attach(self.labels[name], col, row, 1, 1)
+48 -37
View File
@@ -3,10 +3,11 @@ import logging
import re
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
from gi.repository import Gtk, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return FWRetractionPanel(*args)
@@ -16,46 +17,49 @@ class FWRetractionPanel(ScreenPanel):
list = {}
def initialize(self, panel_name):
_ = self.lang.gettext
self.grid = Gtk.Grid()
conf = self._printer.get_config_section("firmware_retraction")
retract_length = float(conf['retract_length']) if 'retract_length' in conf else 0
retract_speed = int(float((conf['retract_speed']))) if 'retract_speed' in conf else 20
unretract_extra_length = float(conf['unretract_extra_length']) if 'unretract_extra_length' in conf else 0
unretract_speed = int(float((conf['unretract_speed']))) if 'unretract_speed' in conf else 10
maxlength = retract_length * 1.2 if retract_length >= 6 else 6
maxspeed = retract_speed * 1.2 if retract_speed >= 100 else 100
self.options = [
{"name": _("Retraction Length"),
"units": _("mm"),
"option": "retract_length",
"value": float(conf['retract_length']) if 'retract_length' in conf else 0,
"digits":2,
"maxval":4},
"value": retract_length,
"digits": 2,
"maxval": maxlength},
{"name": _("Retraction Speed"),
"units": _("mm/s"),
"option": "retract_speed",
"value": int(float((conf['retract_speed']))) if 'retract_speed' in conf else 20,
"digits":0,
"maxval":100},
"value": retract_speed,
"digits": 0,
"maxval": maxspeed},
{"name": _("Unretract Extra Length"),
"units": _("mm"),
"option": "unretract_extra_length",
"value": float(conf['unretract_extra_length']) if 'unretract_extra_length' in conf else 0,
"digits":2,
"maxval":15},
"value": unretract_extra_length,
"digits": 2,
"maxval": maxlength},
{"name": _("Unretract Speed"),
"units": _("mm/s"),
"option": "unretract_speed",
"value": int(float((conf['unretract_speed']))) if 'unretract_speed' in conf else 10,
"digits":0,
"maxval":60}
"value": unretract_speed,
"digits": 0,
"maxval": maxspeed}
]
for opt in self.options:
self.add_option(opt['option'], opt['name'], opt['units'], opt['value'], opt['digits'], opt["maxval"])
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll = self._gtk.ScrolledWindow()
scroll.add(self.grid)
self.content.add(scroll)
@@ -70,7 +74,6 @@ class FWRetractionPanel(ScreenPanel):
if opt in data["firmware_retraction"]:
self.update_option(opt, data["firmware_retraction"][opt])
elif action == "notify_gcode_response":
logging.info("data")
# // RETRACT_LENGTH=0.00000 RETRACT_SPEED=20.00000 UNRETRACT_EXTRA_LENGTH=0.00000 UNRETRACT_SPEED=10.00000
result = re.match(
"^// [RETRACT_LENGTH= ]+([\\-0-9\\.]+)" +
@@ -99,8 +102,6 @@ class FWRetractionPanel(ScreenPanel):
def add_option(self, option, optname, units, value, digits, maxval):
logging.info("Adding option: %s" % option)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
name = Gtk.Label()
name.set_markup("<big><b>%s</b></big> (%s)" % (optname, units))
@@ -110,11 +111,12 @@ class FWRetractionPanel(ScreenPanel):
name.set_valign(Gtk.Align.CENTER)
name.set_line_wrap(True)
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
adj = Gtk.Adjustment(0, 0, value, 1, 5, 0)
if option in ["retract_speed", "unretract_speed"]:
adj = Gtk.Adjustment(0, 1, maxval, 1, 5, 0)
else:
adj = Gtk.Adjustment(0, 0, maxval, 1, 5, 0)
self.values[option] = value
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_range(0, maxval)
scale.set_value(self.values[option])
scale.set_digits(digits)
scale.set_hexpand(True)
@@ -122,15 +124,18 @@ class FWRetractionPanel(ScreenPanel):
scale.get_style_context().add_class("option_slider")
scale.connect("button-release-event", self.set_opt_value, option)
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
labels.add(name)
labels.add(scale)
reset = self._gtk.ButtonImage("refresh", None, "color1")
reset.connect("clicked", self.reset_value, option)
reset.set_hexpand(False)
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
dev.set_hexpand(True)
dev.set_vexpand(False)
dev.add(labels)
frame.add(dev)
item = Gtk.Grid()
item.attach(name, 0, 0, 2, 1)
item.attach(scale, 0, 1, 1, 1)
item.attach(reset, 1, 1, 1, 1)
frame = Gtk.Frame()
frame.get_style_context().add_class("frame-item")
frame.add(item)
self.list[option] = {
"row": frame,
@@ -141,14 +146,20 @@ class FWRetractionPanel(ScreenPanel):
self.grid.attach(self.list[option]['row'], 0, pos, 1, 1)
self.grid.show_all()
def reset_value(self, widget, option):
for x in self.options:
if x["option"] == option:
self.update_option(option, x["value"])
self.set_opt_value(None, None, option)
def set_opt_value(self, widget, event, opt):
value = self.list[opt]['scale'].get_value()
if opt == "retract_speed":
self._screen._ws.klippy.gcode_script("SET_RETRACTION RETRACT_SPEED=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_RETRACTION RETRACT_SPEED=%s" % value)
elif opt == "retract_length":
self._screen._ws.klippy.gcode_script("SET_RETRACTION RETRACT_LENGTH=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_RETRACTION RETRACT_LENGTH=%s" % value)
elif opt == "unretract_extra_length":
self._screen._ws.klippy.gcode_script("SET_RETRACTION UNRETRACT_EXTRA_LENGTH=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_RETRACTION UNRETRACT_EXTRA_LENGTH=%s" % value)
elif opt == "unretract_speed":
self._screen._ws.klippy.gcode_script("SET_RETRACTION UNRETRACT_SPEED=%s" % (value))
self._screen._ws.klippy.gcode_script("SET_RETRACTION UNRETRACT_SPEED=%s" % value)
+19 -122
View File
@@ -2,59 +2,39 @@ import gi
import logging
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
from gi.repository import Gtk, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return SettingsPanel(*args)
class SettingsPanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
self.settings = {}
self.macros = {}
self.menu_cur = 'main_box'
self.menu = ['main_box']
self.labels['main_box'] = self.create_box('main')
self.labels['macros_box'] = self.create_box('macros')
printbox = Gtk.Box(spacing=0)
printbox.set_vexpand(False)
self.menu = ['settings_menu']
self.labels['add_printer_button'] = self._gtk.Button(_("Add Printer"), "color1")
self.labels['printers_box'] = self.create_box('printers', printbox)
options = self._config.get_configurable_options().copy()
options.append({"macros": {
"name": _("Displayed Macros"),
"type": "menu",
"menu": "macros"}
})
options.append({"printers": {
"name": _("Printer Connections"),
"type": "menu",
"menu": "printers"
}})
self.labels['settings_menu'] = self._gtk.ScrolledWindow()
self.labels['settings'] = Gtk.Grid()
self.labels['settings_menu'].add(self.labels['settings'])
for option in options:
name = list(option)[0]
self.add_option('main', self.settings, name, option[name])
for macro in self._printer.get_config_section_list("gcode_macro "):
macro = macro[12:]
# Support for hiding macros by name
if macro.startswith("_"):
continue
self.macros[macro] = {
"name": macro,
"section": "displayed_macros %s" % self._screen.connected_printer,
"type": "macro"
}
for macro in list(self.macros):
self.add_option('macros', self.macros, macro, self.macros[macro])
self.add_option('settings', self.settings, name, option[name])
self.labels['printers_menu'] = self._gtk.ScrolledWindow()
self.labels['printers'] = Gtk.Grid()
self.labels['printers_menu'].add(self.labels['printers'])
self.printers = {}
for printer in self._config.get_printers():
logging.debug("Printer: %s" % printer)
@@ -68,7 +48,7 @@ class SettingsPanel(ScreenPanel):
}
self.add_option("printers", self.printers, pname, self.printers[pname])
self.content.add(self.labels['main_box'])
self.content.add(self.labels['settings_menu'])
def activate(self):
while len(self.menu) > 1:
@@ -80,26 +60,6 @@ class SettingsPanel(ScreenPanel):
return True
return False
def create_box(self, name, insert=None):
# Create a scroll window for the macros
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
# Create a grid for all macros
self.labels[name] = Gtk.Grid()
scroll.add(self.labels[name])
# Create a box to contain all of the above
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
box.set_vexpand(True)
if insert is not None:
box.pack_start(insert, False, False, 0)
box.pack_start(scroll, True, True, 0)
return box
def add_option(self, boxname, opt_array, opt_name, option):
if option['type'] is None:
return
@@ -125,20 +85,17 @@ class SettingsPanel(ScreenPanel):
dev.set_valign(Gtk.Align.CENTER)
dev.add(labels)
if option['type'] == "binary" or option['type'] == "macro":
if option['type'] == "binary":
box = Gtk.Box()
box.set_vexpand(False)
switch = Gtk.Switch()
switch.set_hexpand(False)
switch.set_vexpand(False)
if option['type'] == "macro":
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name, fallback=True))
else:
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name))
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name))
switch.connect("notify::active", self.switch_config_option, option['section'], opt_name,
option['callback'] if "callback" in option else None)
switch.set_property("width-request", round(self._gtk.get_font_size()*7))
switch.set_property("height-request", round(self._gtk.get_font_size()*3.5))
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
box.add(switch)
dev.add(box)
elif option['type'] == "dropdown":
@@ -154,13 +111,13 @@ class SettingsPanel(ScreenPanel):
dropdown.set_entry_text_column(0)
dev.add(dropdown)
elif option['type'] == "scale":
dev.set_orientation(Gtk.Orientation.VERTICAL)
val = int(self._config.get_config().get(option['section'], opt_name, fallback=option['value']))
adj = Gtk.Adjustment(val, option['range'][0], option['range'][1], option['step'], option['step']*5)
adj = Gtk.Adjustment(val, option['range'][0], option['range'][1], option['step'], option['step'] * 5)
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
scale.set_hexpand(True)
scale.set_digits(0)
scale.connect("button-release-event", self.scale_moved, option['section'], opt_name)
scale.set_property("width-request", round(self._screen.width/2.2))
dev.add(scale)
elif option['type'] == "printer":
logging.debug("Option: %s" % option)
@@ -193,63 +150,3 @@ class SettingsPanel(ScreenPanel):
self.labels[boxname].insert_row(pos)
self.labels[boxname].attach(opt_array[opt_name]['row'], 0, pos, 1, 1)
self.labels[boxname].show_all()
def load_menu(self, widget, name):
if ("%s_box" % name) not in self.labels:
return
for child in self.content.get_children():
self.content.remove(child)
self.menu.append('%s_box' % name)
self.content.add(self.labels[self.menu[-1]])
self.content.show_all()
def unload_menu(self, widget=None):
logging.debug("self.menu: %s" % self.menu)
if len(self.menu) <= 1 or self.menu[-2] not in self.labels:
return
self.menu.pop()
for child in self.content.get_children():
self.content.remove(child)
self.content.add(self.labels[self.menu[-1]])
self.content.show_all()
def on_dropdown_change(self, combo, section, option, callback=None):
tree_iter = combo.get_active_iter()
if tree_iter is not None:
model = combo.get_model()
value = model[tree_iter][1]
logging.debug("[%s] %s changed to %s" % (section, option, value))
self._config.set(section, option, value)
self._config.save_user_config_options()
if callback is not None:
callback(value)
def scale_moved(self, widget, event, section, option):
logging.debug("[%s] %s changed to %s" % (section, option, widget.get_value()))
if section not in self._config.get_config().sections():
self._config.get_config().add_section(section)
self._config.set(section, option, str(int(widget.get_value())))
self._config.save_user_config_options()
def switch_config_option(self, switch, gparam, section, option, callback=None):
logging.debug("[%s] %s toggled %s" % (section, option, switch.get_active()))
if section not in self._config.get_config().sections():
self._config.get_config().add_section(section)
self._config.set(section, option, "True" if switch.get_active() else "False")
self._config.save_user_config_options()
if callback is not None:
callback(switch.get_active())
def add_gcode_option(self):
macros = self._screen.printer.get_gcode_macros()
for x in macros:
self.add_gcode_macro("macros", self.macros, x, {
"name": x[12:],
"type": binary
})
def run_gcode_macro(self, widget, macro):
self._screen._ws.klippy.gcode_script(macro)
+18 -9
View File
@@ -7,20 +7,18 @@ from gi.repository import Gdk, Gtk, Pango
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return SplashScreenPanel(*args)
class SplashScreenPanel(ScreenPanel):
box = None
def __init__(self, screen, title, back=True):
super().__init__(screen, title, back)
self.layout = Gtk.Layout()
self.layout.set_size(self._screen.width, self._screen.height)
def initialize(self, panel_name):
_ = self.lang.gettext
image = self._gtk.Image("klipper", 3.2)
@@ -78,7 +76,6 @@ class SplashScreenPanel(ScreenPanel):
self.labels['actions'].remove(child)
def show_restart_buttons(self):
_ = self.lang.gettext
self.clear_action_bar()
printer = self._screen.connected_printer
@@ -103,7 +100,6 @@ class SplashScreenPanel(ScreenPanel):
def add_power_button(self, powerdevs):
if powerdevs is not None:
_ = self.lang.gettext
self.labels['power'] = self._gtk.ButtonImage("shutdown", _("Power On Printer"), "color3")
self.labels['power'].connect("clicked", self._screen.power_on, powerdevs)
self.check_power_status()
@@ -129,9 +125,22 @@ class SplashScreenPanel(ScreenPanel):
def restart(self, widget):
self._screen._ws.klippy.restart()
def shutdown(self, widget):
os.system("sudo shutdown -P now")
if self._screen._ws.is_connected():
self._screen._confirm_send_action(widget,
_("Are you sure you wish to shutdown the system?"),
"machine.shutdown")
else:
logging.info("OS Shutdown")
os.system("systemctl poweroff")
def restart_system(self, widget):
os.system("sudo reboot now")
if self._screen._ws.is_connected():
self._screen._confirm_send_action(widget,
_("Are you sure you wish to reboot the system?"),
"machine.reboot")
else:
logging.info("OS Reboot")
os.system("systemctl reboot")
+7 -24
View File
@@ -1,6 +1,5 @@
import gi
import logging
import os
gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gtk, Pango
@@ -8,15 +7,16 @@ from datetime import datetime
from ks_includes.screen_panel import ScreenPanel
def create_panel(*args):
return SystemPanel(*args)
ALLOWED_SERVICES = ["KlipperScreen", "MoonCord", "klipper", "moonraker"]
class SystemPanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
grid = self._gtk.HomogeneousGrid()
grid.set_row_homogeneous(False)
@@ -37,12 +37,8 @@ class SystemPanel(ScreenPanel):
_("Are you sure you wish to shutdown the system?"), "machine.shutdown")
shutdown.set_vexpand(False)
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
infogrid = Gtk.Grid()
infogrid.get_style_context().add_class("system-program-grid")
@@ -74,7 +70,6 @@ class SystemPanel(ScreenPanel):
logging.info("Updating program: %s " % prog)
self.update_program_info(prog)
infogrid.attach(self.labels[prog], 1, i, 1, 1)
self.labels[prog].get_style_context().add_class('updater-item')
i = i + 1
@@ -116,7 +111,6 @@ class SystemPanel(ScreenPanel):
if 'application' in data:
self.labels['update_progress'].set_text(self.labels['update_progress'].get_text().strip() + "\n" +
data['message'] + "\n")
self.labels['update_progress'].set_ellipsize(True)
self.labels['update_progress'].set_ellipsize(Pango.EllipsizeMode.END)
adjustment = self.labels['update_scroll'].get_vadjustment()
adjustment.set_value(adjustment.get_upper() - adjustment.get_page_size())
@@ -133,8 +127,6 @@ class SystemPanel(ScreenPanel):
self._screen._ws.send_method("machine.services.restart", {"service": program})
def show_update_info(self, widget, program):
_ = self.lang.gettext
_n = self.lang.ngettext
if not self.update_status:
return
@@ -176,7 +168,7 @@ class SystemPanel(ScreenPanel):
ncommits = len(info['commits_behind'])
label.set_markup("<b>" +
_("Outdated by %d") % ncommits +
" " + _n("commit", "commits", ncommits) +
" " + ngettext("commit", "commits", ncommits) +
":</b>\n")
grid.attach(label, 0, i, 1, 1)
i = i + 1
@@ -199,14 +191,14 @@ class SystemPanel(ScreenPanel):
grid.attach(label, 0, i, 1, 1)
i = i + 1
details = Gtk.Label(label=c['message']+"\n\n\n")
details = Gtk.Label(label=c['message'] + "\n\n\n")
details.set_line_wrap(True)
details.set_halign(Gtk.Align.START)
grid.attach(details, 0, i, 1, 1)
i = i + 1
if "package_count" in info:
label.set_markup("<b>%d " % info['package_count'] +
_n("Package will be updated", "Packages will be updated", info['package_count']) +
ngettext("Package will be updated", "Packages will be updated", info['package_count']) +
":</b>\n")
label.set_halign(Gtk.Align.CENTER)
grid.attach(label, 0, i, 3, 1)
@@ -216,12 +208,11 @@ class SystemPanel(ScreenPanel):
label = Gtk.Label()
label.set_markup(" %s " % c)
label.set_halign(Gtk.Align.START)
label.set_ellipsize(True)
label.set_ellipsize(Pango.EllipsizeMode.END)
pos = (j % 3)
grid.attach(label, pos, i, 1, 1)
j = j + 1
if (pos == 2):
if pos == 2:
i = i + 1
elif "full" in info:
label.set_markup("<b>" + _("Perform a full upgrade?") + "</b>")
@@ -260,8 +251,6 @@ class SystemPanel(ScreenPanel):
if self._screen.is_updating():
return
_ = self.lang.gettext
buttons = [
{"name": _("Finish"), "response": Gtk.ResponseType.CANCEL}
]
@@ -295,8 +284,6 @@ class SystemPanel(ScreenPanel):
if self._screen.is_updating():
return
_ = self.lang.gettext
if not self.update_status:
return
@@ -350,7 +337,6 @@ class SystemPanel(ScreenPanel):
self._screen.set_updating(True)
def update_program_info(self, p):
_ = self.lang.gettext
logging.info("Updating program: %s " % p)
if 'version_info' not in self.update_status or p not in self.update_status['version_info']:
@@ -405,6 +391,3 @@ class SystemPanel(ScreenPanel):
self._screen._ws.klippy.restart_firmware()
else:
self._screen._ws.klippy.restart()
def restart_ks(self, widget):
os.system("sudo systemctl restart %s" % self._config.get_main_config_option('service'))
+26 -32
View File
@@ -8,9 +8,11 @@ from ks_includes.screen_panel import ScreenPanel
from ks_includes.widgets.graph import HeaterGraph
from ks_includes.widgets.keypad import Keypad
def create_panel(*args):
return TemperaturePanel(*args)
class TemperaturePanel(ScreenPanel):
graph_update = None
active_heater = None
@@ -25,12 +27,14 @@ class TemperaturePanel(ScreenPanel):
# When printing start in temp_delta mode and only select tools
state = self._printer.get_state()
logging.info(state)
selection = []
if "extruder" in self._printer.get_tools():
selection.append("extruder")
if state not in ["printing", "paused"]:
self.show_preheat = True
selection = self._printer.get_tools() + self._printer.get_heaters()
selection.extend(self._printer.get_heaters())
else:
self.show_preheat = False
selection = self._printer.get_tools()
# Select heaters
for h in selection:
@@ -52,7 +56,6 @@ class TemperaturePanel(ScreenPanel):
self.layout.show_all()
def create_right_panel(self):
_ = self.lang.gettext
cooldown = self._gtk.ButtonImage('cool-down', _('Cooldown'), "color4", 1, Gtk.PositionType.LEFT, False)
adjust = self._gtk.ButtonImage('fine-tune', '', "color3", 1, Gtk.PositionType.LEFT, False)
@@ -84,21 +87,16 @@ class TemperaturePanel(ScreenPanel):
self.labels["preheat_grid"] = self._gtk.HomogeneousGrid()
for i, option in enumerate(self.preheat_options):
if option != "cooldown":
self.labels[option] = self._gtk.Button(option, "color%d" % ((i % 4)+1))
self.labels[option] = self._gtk.Button(option, "color%d" % ((i % 4) + 1))
self.labels[option].connect("clicked", self.set_temperature, option)
self.labels['preheat_grid'].attach(self.labels[option], (i % 2), int(i/2), 1, 1)
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_hexpand(True)
scroll.set_vexpand(True)
self.labels['preheat_grid'].attach(self.labels[option], (i % 2), int(i / 2), 1, 1)
scroll = self._gtk.ScrolledWindow()
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
scroll.add(self.labels["preheat_grid"])
return scroll
def delta_adjust(self):
_ = self.lang.gettext
self.tempdeltas = ["1", "5", "10", "25"]
self.tempdelta = "10"
@@ -116,7 +114,7 @@ class TemperaturePanel(ScreenPanel):
ctx = self.labels['deg' + i].get_style_context()
if j == 0:
ctx.add_class("distbutton_top")
elif j == len(self.tempdeltas)-1:
elif j == len(self.tempdeltas) - 1:
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
@@ -127,7 +125,7 @@ class TemperaturePanel(ScreenPanel):
self.labels["deg" + self.tempdelta].set_active(True)
vbox = Gtk.VBox()
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
vbox.pack_start(Gtk.Label(_("Temperature") + " (°C)"), False, False, 8)
vbox.pack_end(tempgrid, True, True, 2)
@@ -158,7 +156,7 @@ class TemperaturePanel(ScreenPanel):
self.labels["deg" + str(i)].set_active(False)
def change_target_temp_incremental(self, widget, dir):
_ = self.lang.gettext
if len(self.active_heaters) == 0:
self._screen.show_popup_message(_("Nothing selected"))
else:
@@ -199,7 +197,6 @@ class TemperaturePanel(ScreenPanel):
self.graph_update = None
def select_heater(self, widget, device):
_ = self.lang.gettext
if self.devices[device]["can_target"]:
if device in self.active_heaters:
@@ -213,7 +210,7 @@ class TemperaturePanel(ScreenPanel):
return
def set_temperature(self, widget, setting):
_ = self.lang.gettext
if len(self.active_heaters) == 0:
self._screen.show_popup_message(_("Nothing selected"))
else:
@@ -228,30 +225,33 @@ class TemperaturePanel(ScreenPanel):
logging.info("Setting %s to %d" % (heater, 0))
self._printer.set_dev_stat(heater, "target", 0)
else:
target = None
for heater in self.active_heaters:
MAX_TEMP = int(float(self._printer.get_config_section(heater)['max_temp']))
if heater.startswith('extruder'):
target = self.preheat_options[setting]["extruder"]
if target > 0 and target <= MAX_TEMP:
if target is not None and target >= 0 and target <= MAX_TEMP:
self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(heater), target)
elif heater.startswith('heater_bed'):
target = self.preheat_options[setting]["bed"]
if target > 0 and target <= MAX_TEMP:
if target is not None and target >= 0 and target <= MAX_TEMP:
self._screen._ws.klippy.set_bed_temp(target)
elif heater.startswith('heater_generic '):
target = self.preheat_options[setting]["heater_generic"]
if target > 0 and target <= MAX_TEMP:
if target is not None and target >= 0 and target <= MAX_TEMP:
self._screen._ws.klippy.set_heater_temp(" ".join(heater.split(" ")[1:]), target)
elif heater.startswith('temperature_fan '):
target = self.preheat_options[setting]["temperature_fan"]
if target > 0 and target <= MAX_TEMP:
if target is not None and target >= 0 and target <= MAX_TEMP:
self._screen._ws.klippy.set_temp_fan_temp(" ".join(heater.split(" ")[1:]), target)
else:
logging.info("Unknown heater: %s" % heater)
self._screen.show_popup_message(_("Unknown Heater") + " " + heater)
if target is None:
continue
if target <= MAX_TEMP:
if target > 0:
self._printer.set_dev_stat(heater, "target", int(target))
if target >= 0:
self._printer.set_dev_stat(heater, "target", target)
logging.info("Setting %s to %d" % (heater, target))
else:
self._screen.show_popup_message(_("Can't set above the maximum:") + (" %s" % MAX_TEMP))
@@ -265,7 +265,7 @@ class TemperaturePanel(ScreenPanel):
return False
def add_device(self, device):
_ = self.lang.gettext
logging.info("Adding device: %s" % device)
temperature = self._printer.get_dev_stat(device, "temperature")
@@ -312,7 +312,7 @@ class TemperaturePanel(ScreenPanel):
image = "fan"
class_name = "graph_label_fan_%s" % f
type = "fan"
elif self._config.get_main_config_option('only_heaters') == "True":
elif self._config.get_main_config().getboolean("only_heaters", False):
return False
else:
s = 1
@@ -341,7 +341,6 @@ class TemperaturePanel(ScreenPanel):
name.set_alignment(0, .5)
name.get_style_context().add_class(class_name)
child = name.get_children()[0].get_children()[0].get_children()[1]
child.set_ellipsize(True)
child.set_ellipsize(Pango.EllipsizeMode.END)
temp = self._gtk.Button("")
@@ -380,7 +379,6 @@ class TemperaturePanel(ScreenPanel):
return True
def change_target_temp(self, temp):
_ = self.lang.gettext
MAX_TEMP = int(float(self._printer.get_config_section(self.active_heater)['max_temp']))
if temp > MAX_TEMP:
@@ -402,7 +400,6 @@ class TemperaturePanel(ScreenPanel):
self._printer.set_dev_stat(self.active_heater, "target", temp)
def create_left_panel(self):
_ = self.lang.gettext
self.labels['devices'] = Gtk.Grid()
self.labels['devices'].get_style_context().add_class('heater-grid')
@@ -433,7 +430,6 @@ class TemperaturePanel(ScreenPanel):
box.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"))
@@ -442,7 +438,7 @@ class TemperaturePanel(ScreenPanel):
self.labels['graph_show'].connect("clicked", self.graph_show_device)
popover = Gtk.Popover()
self.labels['popover_vbox'] = Gtk.VBox()
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
@@ -459,7 +455,6 @@ class TemperaturePanel(ScreenPanel):
self.labels['da'].set_size_request(0, graph_height)
return box
def graph_show_device(self, widget, show=True):
logging.info("Graph show: %s %s" % (self.popover_device, show))
self.labels['da'].set_showing(self.popover_device, show)
@@ -526,7 +521,6 @@ class TemperaturePanel(ScreenPanel):
return
def show_numpad(self, widget):
_ = self.lang.gettext
if self.active_heater is not None:
self.devices[self.active_heater]['name'].get_style_context().remove_class("button_active")
+45 -28
View File
@@ -8,9 +8,11 @@ from ks_includes.screen_panel import ScreenPanel
import logging
def create_panel(*args):
return ZCalibratePanel(*args)
class ZCalibratePanel(ScreenPanel):
_screen = None
widgets = {}
@@ -21,16 +23,27 @@ class ZCalibratePanel(ScreenPanel):
super().__init__(screen, title, False)
def initialize(self, panel_name):
_ = self.lang.gettext
grid = Gtk.Grid()
pos_label = Gtk.Label(_("Z Position") + ": \n")
self.widgets['zposition'] = Gtk.Label("?")
pos = Gtk.VBox()
pos.set_vexpand(False)
pos.set_valign(Gtk.Align.CENTER)
pos.add(pos_label)
pos.add(self.widgets['zposition'])
if self._printer.config_section_exists("probe"):
self.z_offset = self._screen.printer.get_config_section("probe")['z_offset']
elif self._printer.config_section_exists("bltouch"):
self.z_offset = self._screen.printer.get_config_section("bltouch")['z_offset']
elif self._printer.config_section_exists("smart_effector"):
self.z_offset = self._screen.printer.get_config_section("smart_effector")['z_offset']
else:
self.z_offset = None
self.widgets['zposition'] = Gtk.Label("Z: ?")
pos = self._gtk.HomogeneousGrid()
pos.attach(self.widgets['zposition'], 0, 1, 2, 1)
if self.z_offset is not None:
self.widgets['zoffset'] = Gtk.Label("?")
pos.attach(Gtk.Label(_("Probe Offset") + ": "), 0, 2, 2, 1)
pos.attach(Gtk.Label(_("Saved")), 0, 3, 1, 1)
pos.attach(Gtk.Label(_("New")), 1, 3, 1, 1)
pos.attach(Gtk.Label(str(round(float(self.z_offset), 2))), 0, 4, 1, 1)
pos.attach(self.widgets['zoffset'], 1, 4, 1, 1)
self.widgets['zpos'] = self._gtk.ButtonImage('z-farther', _("Raise Nozzle"), 'color4')
self.widgets['zpos'].connect("clicked", self.move, "+")
@@ -43,7 +56,7 @@ class ZCalibratePanel(ScreenPanel):
self.widgets['cancel'].connect("clicked", self.abort)
functions = ["endstop", "probe", "mesh", "delta", "delta_manual"]
pobox = Gtk.VBox()
pobox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
endstop = (self._printer.config_section_exists("stepper_z") and
not self._screen.printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe"))
if endstop:
@@ -53,7 +66,7 @@ class ZCalibratePanel(ScreenPanel):
else:
functions.remove("endstop")
if (self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch")):
if self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch"):
probe = self._gtk.Button(label="Probe")
probe.connect("clicked", self.start_calibration, "probe")
pobox.pack_start(probe, True, True, 5)
@@ -69,7 +82,7 @@ class ZCalibratePanel(ScreenPanel):
functions.remove("mesh")
if "delta" in self._screen.printer.get_config_section("printer")['kinematics']:
if (self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch")):
if self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch"):
delta = self._gtk.Button(label="Delta Automatic")
delta.connect("clicked", self.start_calibration, "delta")
pobox.pack_start(delta, True, True, 5)
@@ -100,9 +113,9 @@ class ZCalibratePanel(ScreenPanel):
self.widgets[i].set_direction(Gtk.TextDirection.LTR)
self.widgets[i].connect("clicked", self.change_distance, i)
ctx = self.widgets[i].get_style_context()
if (self._screen.lang_ltr and j == 0) or (not self._screen.lang_ltr and j == len(self.distances)-1):
if (self._screen.lang_ltr and j == 0) or (not self._screen.lang_ltr and j == len(self.distances) - 1):
ctx.add_class("distbutton_top")
elif (not self._screen.lang_ltr and j == 0) or (self._screen.lang_ltr and j == len(self.distances)-1):
elif (not self._screen.lang_ltr and j == 0) or (self._screen.lang_ltr and j == len(self.distances) - 1):
ctx.add_class("distbutton_bottom")
else:
ctx.add_class("distbutton")
@@ -118,6 +131,7 @@ class ZCalibratePanel(ScreenPanel):
distances.pack_start(self.widgets['move_dist'], True, True, 0)
distances.pack_start(distgrid, True, True, 0)
grid = Gtk.Grid()
grid.set_column_homogeneous(True)
if self._screen.vertical_mode:
grid.attach(self.widgets['zpos'], 0, 1, 1, 1)
@@ -156,12 +170,12 @@ class ZCalibratePanel(ScreenPanel):
printer_cfg = self._config.get_printer_config(printer)
logging.info(printer_cfg)
if printer_cfg is not None:
x_position = printer_cfg.getint("calibrate_x_position", 0)
y_position = printer_cfg.getint("calibrate_y_position", 0)
x_position = printer_cfg.getfloat("calibrate_x_position", 0)
y_position = printer_cfg.getfloat("calibrate_y_position", 0)
elif 'z_calibrate_position' in self._config.get_config():
# OLD global way, this should be deprecated
x_position = self._config.get_config()['z_calibrate_position'].getint("calibrate_x_position", 0)
y_position = self._config.get_config()['z_calibrate_position'].getint("calibrate_y_position", 0)
x_position = self._config.get_config()['z_calibrate_position'].getfloat("calibrate_x_position", 0)
y_position = self._config.get_config()['z_calibrate_position'].getfloat("calibrate_y_position", 0)
if x_position > 0 and y_position > 0:
logging.debug("Configured probing position X: %.0f Y: %.0f", x_position, y_position)
@@ -171,8 +185,8 @@ class ZCalibratePanel(ScreenPanel):
self._screen._ws.klippy.gcode_script('G0 X%d Y%d F3000' % (0, 0))
else:
logging.debug("Position not configured, probing the middle of the bed")
x_position = int(int(self._screen.printer.get_config_section("stepper_x")['position_max'])/2)
y_position = int(int(self._screen.printer.get_config_section("stepper_y")['position_max'])/2)
x_position = int(int(self._screen.printer.get_config_section("stepper_x")['position_max']) / 2)
y_position = int(int(self._screen.printer.get_config_section("stepper_y")['position_max']) / 2)
# Find probe offset
klipper_cfg = self._screen.printer.get_config_section_list()
@@ -210,31 +224,34 @@ class ZCalibratePanel(ScreenPanel):
return max(0, int(float(pos) - offset))
def process_update(self, action, data):
_ = self.lang.gettext
if action == "notify_status_update":
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
self.widgets['zposition'].set_text("?")
self.widgets['zposition'].set_text("Z: ?")
elif "toolhead" in data and "position" in data['toolhead']:
self.updatePosition(data['toolhead']['position'])
elif action == "notify_gcode_response":
if "unknown" in data.lower():
data = data.lower()
logging.info(data)
if "unknown" in data:
self.buttons_not_calibrating()
elif "save_config" in data.lower():
elif "save_config" in data:
self.buttons_not_calibrating()
self._screen.show_popup_message(_("Calibrated, save configuration to make it permanent"), level=1)
elif "out of range" in data.lower():
elif "out of range" in data:
self._screen.show_popup_message("%s" % data)
self.buttons_not_calibrating()
elif "fail" in data.lower() and "use testz" in data.lower():
elif "fail" in data and "use testz" in data:
self._screen.show_popup_message(_("Failed, adjust position first"))
self.buttons_not_calibrating()
elif "use testz" in data.lower() or "use abort" in data.lower() or "z position" in data.lower():
elif "use testz" in data or "use abort" in data or "z position" in data:
self.buttons_calibrating()
return
def updatePosition(self, position):
self.widgets['zposition'].set_text(str(round(position[2], 2)))
self.widgets['zposition'].set_text("Z: " + str(round(position[2], 2)))
if self.z_offset is not None:
self.widgets['zoffset'].set_text(str(round(position[2] + float(self.z_offset), 2)))
def change_distance(self, widget, distance):
if self.distance == distance:
+59 -61
View File
@@ -51,6 +51,7 @@ PRINTER_BASE_STATUS_OBJECTS = [
klipperscreendir = pathlib.Path(__file__).parent.resolve()
class KlipperScreen(Gtk.Window):
""" Class for creating a screen for Klipper via HDMI """
_cur_panels = []
@@ -62,7 +63,6 @@ class KlipperScreen(Gtk.Window):
files = None
filename = ""
keyboard = None
keyboard_height = 200
last_update = {}
load_panel = {}
number_tools = 1
@@ -104,7 +104,7 @@ class KlipperScreen(Gtk.Window):
logging.debug("Enabling RTL mode")
break
_ = self.lang.gettext
Gtk.Window.__init__(self)
monitor = Gdk.Display.get_default().get_primary_monitor()
@@ -117,21 +117,20 @@ class KlipperScreen(Gtk.Window):
else:
self.vertical_mode = False
logging.info("Screen resolution: %sx%s" % (self.width, self.height))
self.theme = self._config.get_main_config_option('theme')
self.theme = self._config.get_main_config().get('theme')
self.show_cursor = self._config.get_main_config().getboolean("show_cursor", fallback=False)
self.gtk = KlippyGtk(self, self.width, self.height, self.theme, self.show_cursor,
self._config.get_main_config_option("font_size", "medium"))
self.keyboard_height = self.gtk.get_keyboard_height()
self._config.get_main_config().get("font_size", "medium"))
self.init_style()
self.base_panel = BasePanel(self, "Base Panel", False)
self.base_panel = BasePanel(self, title="Base Panel", back=False)
self.add(self.base_panel.get())
self.show_all()
self.base_panel.activate()
self.printer_initializing(_("Initializing"))
self.set_screenblanking_timeout(self._config.get_main_config_option('screen_blanking'))
self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking'))
# Move mouse to 0,0
os.system("/usr/bin/xdotool mousemove 0 0")
@@ -154,7 +153,7 @@ class KlipperScreen(Gtk.Window):
self.connect_printer(name)
def connect_printer(self, name):
_ = self.lang.gettext
self.connecting_to_printer = name
if self.connected_printer == name:
@@ -167,7 +166,7 @@ class KlipperScreen(Gtk.Window):
if self.printer.get_state() not in ["disconnected", "error", "startup", "shutdown"]:
self.base_panel.show_heaters(True)
self.base_panel.show_printer_select(True)
self.base_panel.show_macro_shortcut(self._config.get_main_config_option('side_macro_shortcut'))
self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut'))
return
# Cleanup
@@ -269,6 +268,8 @@ class KlipperScreen(Gtk.Window):
requested_updates['objects'][h] = ["target", "temperature"]
for f in self.printer.get_fans():
requested_updates['objects'][f] = ["speed"]
for f in self.printer.get_filament_sensors():
requested_updates['objects'][f] = ["enabled", "filament_detected"]
self._ws.klippy.object_subscription(requested_updates)
@@ -343,7 +344,9 @@ class KlipperScreen(Gtk.Window):
self._cur_panels.append(panel_name)
logging.debug("Current panel hierarchy: %s", str(self._cur_panels))
def show_popup_message(self, message, level=2):
def show_popup_message(self, message, level=3):
if self.screensaver is not None:
self.wake_screen()
if self.popup_message is not None:
self.close_popup_message()
@@ -352,6 +355,8 @@ class KlipperScreen(Gtk.Window):
if level == 1:
box.get_style_context().add_class("message_popup_echo")
elif level == 2:
box.get_style_context().add_class("message_popup_warning")
else:
box.get_style_context().add_class("message_popup_error")
@@ -388,7 +393,7 @@ class KlipperScreen(Gtk.Window):
self.show_all()
def show_error_modal(self, err):
_ = self.lang.gettext
logging.exception("Showing error modal: %s", err)
buttons = [
@@ -412,7 +417,7 @@ class KlipperScreen(Gtk.Window):
widget.destroy()
def restart_warning(self, value):
_ = self.lang.gettext
logging.debug("Showing restart warning because: %s" % value)
buttons = [
@@ -434,11 +439,15 @@ class KlipperScreen(Gtk.Window):
def restart_ks(self, widget, response_id):
if response_id == Gtk.ResponseType.OK:
logging.debug("Restarting")
os.system("sudo systemctl restart %s" % self._config.get_main_config_option('service'))
# This can be removed after a grace period
service = self._config.get_main_config_option('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"})
widget.destroy()
def init_style(self):
style_provider = Gtk.CssProvider()
css = open(os.path.join(klipperscreendir, "styles", "base.css"))
css_data = css.read()
css.close()
@@ -473,17 +482,17 @@ class KlipperScreen(Gtk.Window):
)
for i in range(len(style_options['graph_colors']['bed']['colors'])):
css_data += "\n.graph_label_heater_bed%s {border-left-color: #%s}" % (
"" if i+1 == 1 else i+1,
"" if i + 1 == 1 else i + 1,
style_options['graph_colors']['bed']['colors'][i]
)
for i in range(len(style_options['graph_colors']['fan']['colors'])):
css_data += "\n.graph_label_fan_%s {border-left-color: #%s}" % (
i+1,
i + 1,
style_options['graph_colors']['fan']['colors'][i]
)
for i in range(len(style_options['graph_colors']['sensor']['colors'])):
css_data += "\n.graph_label_sensor_%s {border-left-color: #%s}" % (
i+1,
i + 1,
style_options['graph_colors']['sensor']['colors'][i]
)
@@ -498,11 +507,6 @@ class KlipperScreen(Gtk.Window):
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
)
def is_keyboard_showing(self):
if self.keyboard is None:
return False
return True
def is_printing(self):
return self.printer.get_state() == "printing"
@@ -591,6 +595,7 @@ class KlipperScreen(Gtk.Window):
logging.debug("Showing Screensaver")
if self.screensaver is not None:
self.close_screensaver()
self.remove_keyboard()
close = Gtk.Button()
close.connect("clicked", self.close_screensaver)
@@ -603,6 +608,8 @@ class KlipperScreen(Gtk.Window):
self.base_panel.get().put(box, 0, 0)
self.show_all()
# Avoid leaving a cursor-handle
close.grab_focus()
self.screensaver = box
return False
@@ -634,7 +641,7 @@ class KlipperScreen(Gtk.Window):
def wake_screen(self):
# Wake the screen (it will go to standby as configured)
if self._config.get_main_config_option('screen_blanking') != "off":
if self._config.get_main_config().get('screen_blanking') != "off":
logging.debug("Screen wake up")
os.system("xset -display :0 dpms force on")
self.close_screensaver()
@@ -642,7 +649,7 @@ class KlipperScreen(Gtk.Window):
def set_dpms(self, use_dpms):
self.use_dpms = use_dpms
logging.info("DPMS set to: %s" % self.use_dpms)
self.set_screenblanking_timeout(self._config.get_main_config_option('screen_blanking'))
self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking'))
def set_screenblanking_timeout(self, time):
os.system("xset -display :0 s noblank")
@@ -711,7 +718,7 @@ class KlipperScreen(Gtk.Window):
self.printer_select_callbacks = [self.state_disconnected]
return
_ = self.lang.gettext
logging.debug("### Going to disconnected")
self.base_panel.show_macro_shortcut(False)
self.wake_screen()
@@ -728,7 +735,7 @@ class KlipperScreen(Gtk.Window):
self.printer_select_callbacks = [self.state_error]
return
_ = self.lang.gettext
self.base_panel.show_macro_shortcut(False)
self.wake_screen()
msg = self.printer.get_stat("webhooks", "state_message")
@@ -771,7 +778,7 @@ class KlipperScreen(Gtk.Window):
if "job_status" in self._cur_panels or "main_menu" in self._cur_panels:
return
self.base_panel.show_macro_shortcut(self._config.get_main_config_option('side_macro_shortcut'))
self.base_panel.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut'))
if prev_state not in ['paused', 'printing']:
self.init_printer()
self.base_panel._printer = self.printer
@@ -784,7 +791,7 @@ class KlipperScreen(Gtk.Window):
self.printer_select_callbacks = [self.state_startup]
return
_ = self.lang.gettext
self.printer_initializing(_("Klipper is attempting to start"))
def state_shutdown(self, prev_state):
@@ -792,7 +799,7 @@ class KlipperScreen(Gtk.Window):
self.printer_select_callbacks = [self.state_shutdown]
return
_ = self.lang.gettext
self.base_panel.show_macro_shortcut(False)
self.wake_screen()
msg = self.printer.get_stat("webhooks", "state_message")
@@ -802,13 +809,10 @@ class KlipperScreen(Gtk.Window):
"</b>" + "\n\n" + msg)
def toggle_macro_shortcut(self, value):
if value is True:
self.base_panel.show_macro_shortcut(True, True)
else:
self.base_panel.show_macro_shortcut(False, True)
self.base_panel.show_macro_shortcut(value)
def _websocket_callback(self, action, data):
_ = self.lang.gettext
if self.connecting is True:
return
@@ -843,7 +847,7 @@ class KlipperScreen(Gtk.Window):
if data.startswith("echo: "):
self.show_popup_message(data[6:], 1)
if data.startswith("!! "):
self.show_popup_message(data[3:], 2)
self.show_popup_message(data[3:], 3)
logging.debug(json.dumps([action, data], indent=2))
self.base_panel.process_update(action, data)
@@ -851,7 +855,7 @@ class KlipperScreen(Gtk.Window):
self.panels[self._cur_panels[-1]].process_update(action, data)
def _confirm_send_action(self, widget, text, method, params={}):
_ = self.lang.gettext
buttons = [
{"name": _("Continue"), "response": Gtk.ResponseType.OK},
@@ -913,7 +917,7 @@ class KlipperScreen(Gtk.Window):
return None
def power_on(self, widget, devices):
_ = self.lang.gettext
for device in devices:
if self.printer.get_power_device_status(device) == "off":
self.show_popup_message(_("Sending Power ON signal to: %s") % devices, level=1)
@@ -923,7 +927,7 @@ class KlipperScreen(Gtk.Window):
logging.info("%s is ON", device)
def init_printer(self):
_ = self.lang.gettext
state = self.apiclient.get_server_info()
if state is False:
@@ -941,7 +945,7 @@ class KlipperScreen(Gtk.Window):
if state['result']['klippy_connected'] is False:
self.panels['splash_screen'].update_text(
_("Moonraker: connected") +
("\n\nKlipper: %s\n\n") % state['result']['klippy_state'] +
"\n\nKlipper: %s\n\n" % state['result']['klippy_state'] +
_("Retry #%s") % self.reinit_count)
return False
@@ -970,16 +974,14 @@ class KlipperScreen(Gtk.Window):
self.printer.reinit(printer_info['result'], config['result']['status'])
self.ws_subscribe()
extra_items = []
for extruder in self.printer.get_tools():
extra_items.append(extruder)
for h in self.printer.get_heaters():
extra_items.append(h)
for f in self.printer.get_fans():
extra_items.append(f)
extra_items = (self.printer.get_tools()
+ self.printer.get_heaters()
+ self.printer.get_fans()
+ self.printer.get_filament_sensors()
)
data = self.apiclient.send_request("printer/objects/query?" + "&".join(PRINTER_BASE_STATUS_OBJECTS +
extra_items))
extra_items))
if data is False:
msg = "Error getting printer object data with extra items"
logging.info(msg)
@@ -1000,9 +1002,9 @@ class KlipperScreen(Gtk.Window):
return False
def printer_ready(self):
_ = self.lang.gettext
self.close_popup_message()
# Force update to printer webhooks state in case the update is missed due to websocket subscribe not yet sent
# 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,
items=self._config.get_menu_items("__main"), extrudercount=self.printer.get_extruder_count())
@@ -1016,7 +1018,7 @@ class KlipperScreen(Gtk.Window):
self.show_panel('job_status', "job_status", "Print Status", 2)
self.base_panel.show_heaters(True)
def show_keyboard(self, widget=None):
def show_keyboard(self, widget=None, event=None):
if self.keyboard is not None:
return
@@ -1034,18 +1036,15 @@ class KlipperScreen(Gtk.Window):
logging.debug("PID %s" % p.pid)
keyboard = Gtk.Socket()
action_bar_width = self.gtk.get_action_bar_width()
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_size_request(self.gtk.get_content_width(), self.gtk.get_keyboard_height())
box.get_style_context().add_class("keyboard_box")
box.pack_start(keyboard, True, True, 0)
box = Gtk.VBox()
box.set_vexpand(False)
box.set_size_request(self.width - action_bar_width, self.keyboard_height)
box.add(keyboard)
self.base_panel.get_content().pack_end(box, False, 0, 0)
self.base_panel.get_content().pack_end(box, True, True, 0)
self.show_all()
keyboard.add_id(xid)
keyboard.show()
self.keyboard = {
"box": box,
@@ -1054,7 +1053,7 @@ class KlipperScreen(Gtk.Window):
"socket": keyboard
}
def remove_keyboard(self, widget=None):
def remove_keyboard(self, widget=None, event=None):
if self.keyboard is None:
return
@@ -1073,8 +1072,8 @@ class KlipperScreen(Gtk.Window):
os.system("xsetroot -cursor ks_includes/emptyCursor.xbm ks_includes/emptyCursor.xbm")
return
def main():
def main():
version = functions.get_software_version()
parser = argparse.ArgumentParser(description="KlipperScreen - A GUI for Klipper")
parser.add_argument(
@@ -1096,7 +1095,6 @@ def main():
logging.info("KlipperScreen version: %s" % version)
win = KlipperScreen(args, version)
win.connect("destroy", Gtk.main_quit)
win.show_all()
Loaded 100 of 113 files, more files were not shown because too many files have changed in this diff. Show more