Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6693fbecc | ||
|
|
e426b06b8b | ||
|
|
c722674918 | ||
|
|
3d7e92f507 | ||
|
|
fc7b8c5304 | ||
|
|
a6bb0fd02e | ||
|
|
dcb6d18709 | ||
|
|
69571c88b8 | ||
|
|
c33b5d6311 | ||
|
|
49add980b3 | ||
|
|
8d8d3bf9af | ||
|
|
059f1a8026 | ||
|
|
eeffdd26dd | ||
|
|
5de5e1e3eb | ||
|
|
485c82c53f | ||
|
|
4e60f65404 | ||
|
|
85cec193f9 | ||
|
|
34055277e0 | ||
|
|
9b4c58369e | ||
|
|
b96adf55ed | ||
|
|
f6afb4d4ab | ||
|
|
3c5449f0db | ||
|
|
c828d8349c | ||
|
|
9fa047eb8b | ||
|
|
82b8cbcca5 | ||
|
|
1f5a090bfd | ||
|
|
e4d5cd65ce | ||
|
|
502d9699bd |
No files matched your search
@@ -133,6 +133,8 @@ A menu item is configured as follows:
|
||||
name: Item Name
|
||||
icon: home
|
||||
# Optional Parameters
|
||||
# Icon style, defined as "button.mycolor4" (for example) in the theme css
|
||||
style: mycolor4
|
||||
# Panel from the panels listed below
|
||||
panel: preheat
|
||||
# Moonraker method to call when the item is selected
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 13 KiB |
@@ -175,7 +175,7 @@ class KlipperScreenConfig:
|
||||
strs = ('gcode', '')
|
||||
numbers = [f'{option}' for option in self.config[section] if option != 'gcode']
|
||||
elif section.startswith('menu '):
|
||||
strs = ('name', 'icon', 'panel', 'method', 'params', 'enable', 'confirm')
|
||||
strs = ('name', 'icon', 'panel', 'method', 'params', 'enable', 'confirm', 'style')
|
||||
elif section == 'bed_screws':
|
||||
# This section may be deprecated in favor of moving this options under the printer section
|
||||
numbers = ('rotation', '')
|
||||
@@ -549,13 +549,9 @@ class KlipperScreenConfig:
|
||||
"panel": cfg.get("panel", None),
|
||||
"method": cfg.get("method", None),
|
||||
"confirm": cfg.get("confirm", None),
|
||||
"enable": cfg.get("enable", "True")
|
||||
"enable": cfg.get("enable", "True"),
|
||||
"params": cfg.get("params", "{}"),
|
||||
"style": cfg.get("style", None)
|
||||
}
|
||||
|
||||
try:
|
||||
item["params"] = json.loads(cfg.get("params", "{}"))
|
||||
except Exception as e:
|
||||
logging.exception(f"Unable to parse parameters for [{name}]:\n{e}")
|
||||
item["params"] = {}
|
||||
|
||||
return {name[(len(menu) + 6):]: item}
|
||||
Binary file not shown.
@@ -0,0 +1,776 @@
|
||||
# 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: Czech\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-01-29 09:28-0600\n"
|
||||
"PO-Revision-Date: 2023-01-29 09:27-0600\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: Jan Stanka (stanky@email.cz)\n"
|
||||
"Language: cs\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==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
msgstr "%s bude aktualizováno na verzi"
|
||||
|
||||
msgid "(default)"
|
||||
msgstr ""
|
||||
|
||||
msgid "24 Hour Time"
|
||||
msgstr "24 hod formát"
|
||||
|
||||
msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "FW restart může fixnout chyby."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr "ADXL není nastaven"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Zrušit"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr "Zrychlení:"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "Přijmout"
|
||||
|
||||
msgid "Actions"
|
||||
msgstr "Akce"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Přidat profil"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "Použít"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr "Použít %.2f přesah k Endstop?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Použít %s%.2f přesah k Sondě?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Opravdu chceš vyjmout objekt?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Opravdu okamžitě zastavit?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "Opravdu chcete zrušit tisk?"
|
||||
|
||||
msgid "Are you sure you wish to disable motors?"
|
||||
msgstr "Opravdu chcete uvolnit motory?"
|
||||
|
||||
msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "Opravdu chcete rebootovat systém?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "Opravdu chcete vypnout systém?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr "Auto-kalibrace"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr "Automaticky zavřít upozornění"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto posun"
|
||||
|
||||
msgid "Bed Level"
|
||||
msgstr "Vyrovnání podložky"
|
||||
|
||||
msgid "Bed Mesh"
|
||||
msgstr "Mapa podložky"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr "Vyrovnání šroubů podložky:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Kalibrace"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr "Zkalibrováno"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Zkalibrováno, uložit změny jako trvalé"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr "Kalibruji"
|
||||
|
||||
msgid "Camera"
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Nemohu nastavit víc než max:"
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Zrušit"
|
||||
|
||||
msgid "Cancel Print"
|
||||
msgstr "Zrušit tisk"
|
||||
|
||||
msgid "Cancelled"
|
||||
msgstr "Zrušeno"
|
||||
|
||||
msgid "Cancelling"
|
||||
msgstr "Ruším"
|
||||
|
||||
msgid "Cannot connect to Moonraker"
|
||||
msgstr "Nelze se připojit k Moonraker"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "Kanál"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr "Zkontroluj zapojení ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr "Kontrola aktualizací, čekej ..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Vymaž"
|
||||
|
||||
msgid "Close"
|
||||
msgstr "Zavřít"
|
||||
|
||||
msgid "Complete"
|
||||
msgstr "Hotovo"
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "Konfigurace"
|
||||
|
||||
msgid "Confirm Emergency Stop"
|
||||
msgstr "Potvrzovat Emergency Stop"
|
||||
|
||||
msgid "Connected"
|
||||
msgstr "Připojeno"
|
||||
|
||||
#, python-format
|
||||
msgid "Connecting to %s"
|
||||
msgstr "Připojování k %s"
|
||||
|
||||
msgid "Console"
|
||||
msgstr "Konsole"
|
||||
|
||||
msgid "Continue"
|
||||
msgstr "Pokračuj"
|
||||
|
||||
msgid "Cooldown"
|
||||
msgstr "Zchladit"
|
||||
|
||||
msgid "Date"
|
||||
msgstr "Datum"
|
||||
|
||||
msgid "Delete Directory?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Smazat soubor?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Odznačit"
|
||||
|
||||
msgid "Disable Motors"
|
||||
msgstr "Uvolnit motory"
|
||||
|
||||
msgid "Disable XY"
|
||||
msgstr "Uvolnit XY"
|
||||
|
||||
msgid "Distance (mm)"
|
||||
msgstr "Vzdálenost (mm)"
|
||||
|
||||
#, python-format
|
||||
msgid "Do you want to recover %s?"
|
||||
msgstr "Obnovit %s?"
|
||||
|
||||
msgid "Elapsed:"
|
||||
msgstr "Uplynulo:"
|
||||
|
||||
msgid "Error"
|
||||
msgstr "Chyba"
|
||||
|
||||
msgid "Estimated Time Method"
|
||||
msgstr "Výpočet doby tisku"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr "Vyloučit objekt"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra velký"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extruze"
|
||||
|
||||
msgid "Extrusion +"
|
||||
msgstr "Extruze +"
|
||||
|
||||
msgid "Extrusion -"
|
||||
msgstr "Extruze -"
|
||||
|
||||
msgid "Failed, adjust position first"
|
||||
msgstr "Chyba, nastav nejprve pozici"
|
||||
|
||||
msgid "Fan"
|
||||
msgstr "Větrák"
|
||||
|
||||
msgid "Filament Used"
|
||||
msgstr "Typ filamentu"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr "Filament celkem:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr "Použitý filament:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr "Filament:"
|
||||
|
||||
msgid "File"
|
||||
msgstr "Soubor"
|
||||
|
||||
msgid "File:"
|
||||
msgstr "Soubor:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr "Hledání ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Ladění"
|
||||
|
||||
msgid "Finish"
|
||||
msgstr "Konec"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "Firmware Restart"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr "Tok:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr "Rychlost toku:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Velikost fontu"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr "Úplný update"
|
||||
|
||||
msgid "Fullscreen"
|
||||
msgstr ""
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Zpět"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr "Výška:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Skrytý"
|
||||
|
||||
msgid "Hide"
|
||||
msgstr "Skrýt"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "Skrýt senzory v Temp."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr "Skrýt teplotu"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Zaparkovat XYZ"
|
||||
|
||||
msgid "Home X"
|
||||
msgstr "Zaparkovat X"
|
||||
|
||||
msgid "Home XY"
|
||||
msgstr "Zaparkovat XY"
|
||||
|
||||
msgid "Home Y"
|
||||
msgstr "Zaparkovat Y"
|
||||
|
||||
msgid "Home Z"
|
||||
msgstr "Zaparkovat Z"
|
||||
|
||||
msgid "Homing"
|
||||
msgstr "Domů"
|
||||
|
||||
msgid "Host"
|
||||
msgstr "Host"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
|
||||
msgid "Icon Theme"
|
||||
msgstr "Sada ikon"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Startuji tiskárnu ..."
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "Rozhraní"
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr "Špatně"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Špatné heslo"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Otočit X"
|
||||
|
||||
msgid "Invert Y"
|
||||
msgstr "Otočit Y"
|
||||
|
||||
msgid "Invert Z"
|
||||
msgstr "Otočit Z"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr "Klipper Restart"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "Klipper odpojen"
|
||||
|
||||
msgid "Klipper has encountered an error."
|
||||
msgstr "Klipper zaznamenal chybu."
|
||||
|
||||
msgid "Klipper has shutdown"
|
||||
msgstr "Klipper zastaven"
|
||||
|
||||
msgid "Klipper is attempting to start"
|
||||
msgstr "Klipper startuje"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper se restartuje"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen se restartuje"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Jazyk"
|
||||
|
||||
msgid "Large"
|
||||
msgstr "Velký"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr "Vrstva:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Zbývá:"
|
||||
|
||||
msgid "Limits"
|
||||
msgstr "Limity"
|
||||
|
||||
msgid "Load"
|
||||
msgstr "Zasuň"
|
||||
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Trysku níž"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Macro shortcut on sidebar"
|
||||
|
||||
msgid "Macros"
|
||||
msgstr "Makra"
|
||||
|
||||
msgid "Main Menu"
|
||||
msgstr "Hlavní menu"
|
||||
|
||||
msgid "Max"
|
||||
msgstr "Max"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "Max. zrychlení"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "Z max. zrychlení do zpomalení"
|
||||
|
||||
msgid "Max Velocity"
|
||||
msgstr "Max. rychlost"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maximum"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Změřit oboje"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr "Změřit X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr "Změřit Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Střední"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Kalibrace sítě"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Změněno"
|
||||
|
||||
msgid "Moonraker: connected"
|
||||
msgstr "Moonraker: připojen"
|
||||
|
||||
msgid "Move"
|
||||
msgstr "Posun"
|
||||
|
||||
msgid "Move Distance (mm)"
|
||||
msgstr "Vzdálenost posunu (mm)"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "Jméno"
|
||||
|
||||
msgid "Network"
|
||||
msgstr "Síť"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Nikdy"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Nový"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr "Nepodporováno autodetekcí, nakonfiguruj v klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nevybráno nic"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Zastaralý %d"
|
||||
|
||||
msgid "PSK for"
|
||||
msgstr "PSK pro"
|
||||
|
||||
msgid "Package will be updated"
|
||||
msgid_plural "Packages will be updated"
|
||||
msgstr[0] "Balíček bude aktualizován"
|
||||
msgstr[1] "Balíčky budou aktualizovány"
|
||||
msgstr[2] ""
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr "Částečný ofuk"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Heslo uloženo"
|
||||
|
||||
msgid "Pause"
|
||||
msgstr "Pauza"
|
||||
|
||||
msgid "Paused"
|
||||
msgstr "Pozastaveno"
|
||||
|
||||
msgid "Perform a full upgrade?"
|
||||
msgstr "Úplně aktualizovat?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr "Piny"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Znovu přelož a flashni micro-controller."
|
||||
|
||||
msgid "Power"
|
||||
msgstr "Zdroj"
|
||||
|
||||
msgid "Power On Printer"
|
||||
msgstr "Zapni tiskárnu"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr "Pressure Advance:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Tisk"
|
||||
|
||||
msgid "Print Control"
|
||||
msgstr "Nastavení tisku"
|
||||
|
||||
msgid "Print Time"
|
||||
msgstr "Čas tisku"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Tiskárna"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Připojení"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Výběr tiskárny"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Probíhá tisk"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr "Offset sondy"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Jméno profilu:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr "Provide KlipperScreen.log when asking for help.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Quad Gantry Level"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Zvedni trysku"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Recover"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Recover Hard"
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr "Recover Soft"
|
||||
|
||||
msgid "Reference"
|
||||
msgstr "Reference"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr "Obnovit"
|
||||
|
||||
msgid "Rename/Move:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Restart"
|
||||
|
||||
msgid "Resume"
|
||||
msgstr "Pokračuj"
|
||||
|
||||
msgid "Retract"
|
||||
msgstr "Retrakce"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr "Retrakce"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr "Délka retrakce"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Rychlost retrakce"
|
||||
|
||||
msgid "Retry"
|
||||
msgstr "Znovu"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Zkouším znovu"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Uložit"
|
||||
|
||||
msgid "Save Config"
|
||||
msgstr "Ulož nastavení"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr "Uložit Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Uložit nastavení?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Uloženo"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr "Uložený offset: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Screen DPMS"
|
||||
|
||||
msgid "Screen Power Off Time"
|
||||
msgstr "Čas vypnutí displeje"
|
||||
|
||||
msgid "Screws Adjust"
|
||||
msgstr "Nastavit šrouby"
|
||||
|
||||
msgid "Select"
|
||||
msgstr "Vyber"
|
||||
|
||||
msgid "Send"
|
||||
msgstr "Odeslat"
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "Nastav teplotu"
|
||||
|
||||
msgid "Settings"
|
||||
msgstr "Nastavení"
|
||||
|
||||
msgid "Show"
|
||||
msgstr "Ukaž"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Ukaž odběr topení"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Shutdown"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Velikost"
|
||||
|
||||
msgid "Slicer"
|
||||
msgstr "Slicer"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "Časová korekce Sliceru (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr "Slicer:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Malý"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Rychlost (mm/s)"
|
||||
|
||||
msgid "Speed +"
|
||||
msgstr "Rychlost ₊"
|
||||
|
||||
msgid "Speed -"
|
||||
msgstr "Rychlost -"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr "Rychlost:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr ""
|
||||
|
||||
msgid "Start"
|
||||
msgstr "Start"
|
||||
|
||||
msgid "Starting WiFi Association"
|
||||
msgstr "Připojování k WiFi"
|
||||
|
||||
msgid "Starting recovery for"
|
||||
msgstr "Obnovuji"
|
||||
|
||||
msgid "Starting update for"
|
||||
msgstr "Aktualizuji"
|
||||
|
||||
msgid "System"
|
||||
msgstr "Systém"
|
||||
|
||||
msgid "System Restart"
|
||||
msgstr "Restart systému"
|
||||
|
||||
msgid "System Shutdown"
|
||||
msgstr "Vypnutí"
|
||||
|
||||
msgid "Temp (°C)"
|
||||
msgstr "Teplota (°C)"
|
||||
|
||||
msgid "Temperature"
|
||||
msgstr "Teplota"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Total:"
|
||||
|
||||
msgid "Unknown Heater"
|
||||
msgstr "Neznámé topení"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr "Neznámé nastavení šroubů"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Vysuň"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr "Vysuň extra délku"
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr "Vysunovací rychlost"
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "Aktuální"
|
||||
|
||||
msgid "Update"
|
||||
msgstr "Aktualizuj"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "Aktualizuji"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "Nahrané"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Rychlost pohybu XY (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "Rychlost XY (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Kalibrace Z"
|
||||
|
||||
msgid "Z Move Speed (mm/s)"
|
||||
msgstr "Rychlost pohybu Z (mm/s)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr "Rychlost pohybu Z (mm/s)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "Z Tilt"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr "Z offset:"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[2] ""
|
||||
|
||||
msgid "dBm"
|
||||
msgstr "dBm"
|
||||
|
||||
msgid "hour"
|
||||
msgid_plural "hours"
|
||||
msgstr[0] "hodina"
|
||||
msgstr[1] "hodiny"
|
||||
msgstr[2] "hodin"
|
||||
|
||||
msgid "minutes"
|
||||
msgstr "min"
|
||||
|
||||
msgid "mm"
|
||||
msgstr "mm"
|
||||
|
||||
msgid "mm/s"
|
||||
msgstr "mm/s"
|
||||
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "Decrease"
|
||||
#~ msgstr "Snížit"
|
||||
|
||||
#~ msgid "Increase"
|
||||
#~ msgstr "Zvětšit"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Sending Power ON signal to: %s"
|
||||
#~ msgstr "Odeslat ZAP do %s"
|
||||
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"POT-Creation-Date: 2022-12-13 20:39-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: AntoszHUN\n"
|
||||
"Language-Team: \n"
|
||||
@@ -202,7 +202,7 @@ msgid "Exclude Object"
|
||||
msgstr "Objektum kizárása"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
msgstr "Extra nagy"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Száladagolás"
|
||||
@@ -322,7 +322,7 @@ msgid "Invalid"
|
||||
msgstr "Érvénytelen"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
msgstr "Érvénytelen jelszó"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Fordított X"
|
||||
@@ -397,7 +397,7 @@ msgid "Max Velocity"
|
||||
msgstr "Max sebesség"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
msgstr "Maximum"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Mindkettő mérése"
|
||||
@@ -415,7 +415,7 @@ msgid "Menu"
|
||||
msgstr "Menü"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
msgstr "Háló kalibrálása"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Módosított"
|
||||
@@ -436,7 +436,7 @@ msgid "Network"
|
||||
msgstr "Hálózat"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
msgstr "Soha"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Új"
|
||||
@@ -521,7 +521,7 @@ msgid "Profile Name:"
|
||||
msgstr "Profil név:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
msgstr "Add meg a KlipperScreen.log-ot, amikor segítséget kérsz.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Négy állású szint"
|
||||
@@ -563,7 +563,7 @@ msgid "Retraction Speed"
|
||||
msgstr "Visszahúzási sebesség"
|
||||
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
msgstr "Újra"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Újrapróbálkozás"
|
||||
|
||||
Binary file not shown.
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"POT-Creation-Date: 2023-01-29 09:28-0600\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:15-0300\n"
|
||||
"Last-Translator: Jakob Kais <schpuntik@freenet.de>\n"
|
||||
"Language-Team: \n"
|
||||
@@ -14,8 +14,8 @@ msgstr ""
|
||||
"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.2.1\n"
|
||||
"X-Poedit-Flags-xgettext: --add-comments\n"
|
||||
|
||||
@@ -112,6 +112,9 @@ msgstr "Откалибровано, сохраните конфигурацию,
|
||||
msgid "Calibrating"
|
||||
msgstr "Калибровка"
|
||||
|
||||
msgid "Camera"
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Невозможно установить выше максимума:"
|
||||
|
||||
@@ -173,8 +176,8 @@ msgstr "Остудить"
|
||||
msgid "Date"
|
||||
msgstr "Дата"
|
||||
|
||||
msgid "Decrease"
|
||||
msgstr "Уменьшить"
|
||||
msgid "Delete Directory?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Удалить Файл?"
|
||||
@@ -267,6 +270,9 @@ msgstr "Размер шрифта"
|
||||
msgid "Full Update"
|
||||
msgstr "Полный Обновлять"
|
||||
|
||||
msgid "Fullscreen"
|
||||
msgstr ""
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Назад"
|
||||
|
||||
@@ -312,9 +318,6 @@ msgstr "Имя хоста"
|
||||
msgid "Icon Theme"
|
||||
msgstr "Темы"
|
||||
|
||||
msgid "Increase"
|
||||
msgstr "Поднять"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Принтер стартует..."
|
||||
|
||||
@@ -551,6 +554,9 @@ msgstr "Ссылка"
|
||||
msgid "Refresh"
|
||||
msgstr "Обновить"
|
||||
|
||||
msgid "Rename/Move:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Перезагрузка"
|
||||
|
||||
@@ -609,10 +615,6 @@ msgstr "Выбирать"
|
||||
msgid "Send"
|
||||
msgstr "Отправить"
|
||||
|
||||
#, python-format
|
||||
msgid "Sending Power ON signal to: %s"
|
||||
msgstr "Отправка сигнала включения питания на: %s"
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "Заданная температура"
|
||||
|
||||
@@ -623,7 +625,7 @@ msgid "Show"
|
||||
msgstr "Показывать"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Показать мощьность нагрева"
|
||||
msgstr "Показать мощность нагрева"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Выключить"
|
||||
@@ -766,6 +768,16 @@ msgstr "мм/с²"
|
||||
msgid "mm³/s"
|
||||
msgstr "мм/с³"
|
||||
|
||||
#~ msgid "Decrease"
|
||||
#~ msgstr "Уменьшить"
|
||||
|
||||
#~ msgid "Increase"
|
||||
#~ msgstr "Поднять"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Sending Power ON signal to: %s"
|
||||
#~ msgstr "Отправка сигнала включения питания на: %s"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Сортировать:"
|
||||
|
||||
|
||||
@@ -101,6 +101,8 @@ class Printer:
|
||||
logging.info(f"# Output pins: {self.output_pin_count}")
|
||||
|
||||
def process_update(self, data):
|
||||
if self.data is None:
|
||||
return
|
||||
for x in (self.get_tools() + self.get_heaters() + self.get_filament_sensors()):
|
||||
if x in data:
|
||||
for i in data[x]:
|
||||
@@ -316,7 +318,7 @@ class Printer:
|
||||
return True
|
||||
|
||||
def init_temp_store(self, tempstore):
|
||||
if 'result' in tempstore:
|
||||
if tempstore and 'result' in tempstore:
|
||||
if self.tempstore and list(self.tempstore) != list(tempstore['result']):
|
||||
logging.debug("Tempstore has changed")
|
||||
self.tempstore = tempstore['result']
|
||||
|
||||
@@ -8,7 +8,7 @@ from gi.repository import Gtk, GLib
|
||||
|
||||
|
||||
class Keyboard(Gtk.Box):
|
||||
langs = ["de", "en", "es"]
|
||||
langs = ["de", "en", "fr", "es"]
|
||||
|
||||
def __init__(self, screen, close_cb, entry=None):
|
||||
super().__init__(orientation=Gtk.Orientation.VERTICAL)
|
||||
@@ -26,42 +26,73 @@ class Keyboard(Gtk.Box):
|
||||
[
|
||||
["q", "w", "e", "r", "t", "z", "u", "i", "o", "p", "ü", "⌫"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "ö", "ä"],
|
||||
["ABC", "y", "x", "c", "v", "b", "n", "m", ",", ".", "?123"],
|
||||
["ABC", "123", "#+=", "y", "x", "c", "v", "b", "n", "m"],
|
||||
],
|
||||
[
|
||||
["Q", "W", "E", "R", "T", "Z", "U", "I", "O", "P", "Ü", "⌫"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L", "Ö", "Ä"],
|
||||
["?123", "Y", "X", "C", "V", "B", "N", "M", ",", ".", "abc"],
|
||||
["abc", "123", "#+=", "Y", "X", "C", "V", "B", "N", "M"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "ß", "⌫"],
|
||||
["=", "-", "+", "*", "/", "\\", ":", ";", "'", "\"", "ẞ"],
|
||||
["abc", "(", ")", "#", "$", "!", "?", "@", "_", ",", "ABC"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\"", "ẞ"],
|
||||
["ABC", "abc", "#+=", ".", ",", "?", "!", "'"],
|
||||
],
|
||||
[
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["ABC", "abc", "123", ".", ",", "?", "!", "'"],
|
||||
]
|
||||
]
|
||||
elif language == "fr":
|
||||
self.keys = [
|
||||
[
|
||||
["a", "z", "e", "r", "t", "y", "u", "i", "o", "p", "⌫"],
|
||||
["q", "s", "d", "f", "g", "h", "j", "k", "l", "m"],
|
||||
["ABC", "123", "#+=", "w", "x", "c", "v", "b", "n"],
|
||||
],
|
||||
[
|
||||
["A", "Z", "E", "R", "T", "Y", "U", "I", "O", "P", "⌫"],
|
||||
["Q", "S", "D", "F", "G", "H", "J", "K", "L", "M"],
|
||||
["abc", "123", "#+=", "W", "X", "C", "V", "B", "N"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "⌫"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\""],
|
||||
["ABC", "abc", "#+=", ".", ",", "?", "!", "'"],
|
||||
],
|
||||
[
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["ABC", "abc", "123", ".", ",", "?", "!", "'"],
|
||||
]
|
||||
]
|
||||
else:
|
||||
self.keys = [
|
||||
[
|
||||
["q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "⌫"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "'"],
|
||||
["ABC", "z", "x", "c", "v", "b", "n", "m", ",", ".", "?123"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l"],
|
||||
["ABC", "123", "#+=", "z", "x", "c", "v", "b", "n", "m"],
|
||||
],
|
||||
[
|
||||
["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "⌫"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L", "'"],
|
||||
["?123", "Z", "X", "C", "V", "B", "N", "M", ",", ".", "abc"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L"],
|
||||
["abc", "123", "#+=", "Z", "X", "C", "V", "B", "N", "M"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "⌫"],
|
||||
["=", "-", "+", "*", "/", "\\", ":", ";", "'", "\""],
|
||||
["abc", "(", ")", "#", "$", "!", "?", "@", "_", ",", "ABC"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\""],
|
||||
["ABC", "abc", "#+=", ".", ",", "?", "!", "'"],
|
||||
],
|
||||
[
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["ABC", "abc", "123", ".", ",", "?", "!", "'"],
|
||||
]
|
||||
]
|
||||
|
||||
if language == "es":
|
||||
self.keys[0][1].remove("'")
|
||||
self.keys[0][1].append("ñ")
|
||||
self.keys[1][1].remove("'")
|
||||
self.keys[1][1].append("Ñ")
|
||||
|
||||
for pallet in self.keys:
|
||||
@@ -152,7 +183,9 @@ class Keyboard(Gtk.Box):
|
||||
self.set_pallet(0)
|
||||
elif key == "ABC":
|
||||
self.set_pallet(1)
|
||||
elif key == "?123":
|
||||
elif key == "123":
|
||||
self.set_pallet(2)
|
||||
elif key == "#+=":
|
||||
self.set_pallet(3)
|
||||
else:
|
||||
Gtk.Entry.do_insert_at_cursor(self.entry, key)
|
||||
+1
-1
@@ -110,7 +110,7 @@ class WifiManager:
|
||||
|
||||
logging.info(f"Attempting to connect to wifi: {netid}")
|
||||
self.callback("connecting_status", f"Attempting to connect to {ssid}")
|
||||
self.wpa_cli(f"SELECT_NETWORK {id}")
|
||||
self.wpa_cli(f"SELECT_NETWORK {netid}")
|
||||
self.save_wpa_conf()
|
||||
|
||||
def delete_network(self, ssid):
|
||||
|
||||
@@ -242,7 +242,7 @@ class BasePanel(ScreenPanel):
|
||||
name = f"{name[:1].upper()}: "
|
||||
self.labels[device].set_label(f"{name}{int(temp)}°")
|
||||
|
||||
with contextlib.suppress(KeyError):
|
||||
with contextlib.suppress(Exception):
|
||||
if data["toolhead"]["extruder"] != self.current_extruder:
|
||||
self.control['temp_box'].remove(self.labels[f"{self.current_extruder}_box"])
|
||||
self.current_extruder = data["toolhead"]["extruder"]
|
||||
|
||||
+40
-34
@@ -29,12 +29,12 @@ class CameraPanel(ScreenPanel):
|
||||
self.content.add(box)
|
||||
self.content.show_all()
|
||||
self.url = self.ks_printer_cfg.get("camera_url", "http://127.0.0.1/webcam/?action=stream").replace('"', '')
|
||||
logging.debug(f"Camera URL: {self.url}")
|
||||
# wayland has no primary monitor with that we can detect it
|
||||
self.wayland = Gdk.Display.get_default().get_primary_monitor() is None
|
||||
# gpu output driver doesn't work on a pi3 and the autoselected sdl doesn't size correctly
|
||||
# consider adding a software switch to enable the gpu backend if set by the user
|
||||
self.vo = 'x11' if self.wayland else 'wlshm'
|
||||
self.vo = 'wlshm' if self.wayland else 'x11'
|
||||
logging.debug(f"Camera URL: {self.url} vo: {self.vo} wayland: {self.wayland}")
|
||||
|
||||
def activate(self):
|
||||
self.play()
|
||||
@@ -45,40 +45,46 @@ class CameraPanel(ScreenPanel):
|
||||
self.mpv = None
|
||||
|
||||
def play(self, fs=None):
|
||||
# Create mpv after show or the 'window' property will be None
|
||||
self.mpv = mpv.MPV(
|
||||
log_handler=self.log,
|
||||
vo=self.vo,
|
||||
profile='sw-fast',
|
||||
)
|
||||
# On wayland mpv cannot be embedded at least for now
|
||||
# https://github.com/mpv-player/mpv/issues/9654
|
||||
if fs or self.wayland:
|
||||
self.mpv.fullscreen = True
|
||||
|
||||
@self.mpv.on_key_press('MBTN_LEFT' or 'MBTN_LEFT_DBL')
|
||||
def clicked():
|
||||
self.mpv.quit(0)
|
||||
else:
|
||||
self.mpv.wid = f'{self.da.get_property("window").get_xid()}'
|
||||
|
||||
@self.mpv.on_key_press('MBTN_LEFT' or 'MBTN_LEFT_DBL')
|
||||
def clicked():
|
||||
self._screen.show_popup_message(self.url, level=1)
|
||||
self.mpv.play(self.url)
|
||||
if fs or self.wayland:
|
||||
try:
|
||||
self.mpv.wait_for_playback()
|
||||
except mpv.ShutdownError:
|
||||
logging.info('Exiting Fullscreen')
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
if self.mpv:
|
||||
self.mpv.terminate()
|
||||
self.mpv = None
|
||||
if self.wayland:
|
||||
self._screen._menu_go_back()
|
||||
else:
|
||||
self.play()
|
||||
# Create mpv after show or the 'window' property will be None
|
||||
try:
|
||||
self.mpv = mpv.MPV(
|
||||
log_handler=self.log,
|
||||
vo=self.vo,
|
||||
profile='sw-fast',
|
||||
)
|
||||
except ValueError:
|
||||
self.mpv = mpv.MPV(
|
||||
log_handler=self.log,
|
||||
vo=self.vo,
|
||||
)
|
||||
# On wayland mpv cannot be embedded at least for now
|
||||
# https://github.com/mpv-player/mpv/issues/9654
|
||||
# if fs or self.wayland:
|
||||
self.mpv.fullscreen = True
|
||||
|
||||
@self.mpv.on_key_press('MBTN_LEFT' or 'MBTN_LEFT_DBL')
|
||||
def clicked():
|
||||
self.mpv.quit(0)
|
||||
# else:
|
||||
# self.mpv.wid = f'{self.da.get_property("window").get_xid()}'
|
||||
#
|
||||
# @self.mpv.on_key_press('MBTN_LEFT' or 'MBTN_LEFT_DBL')
|
||||
# def clicked():
|
||||
# self._screen.show_popup_message(self.url, level=1)
|
||||
self.mpv.play(self.url)
|
||||
# if fs or self.wayland:
|
||||
try:
|
||||
self.mpv.wait_for_playback()
|
||||
except mpv.ShutdownError:
|
||||
logging.info('Exiting Fullscreen')
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
self.mpv.terminate()
|
||||
self.mpv = None
|
||||
self._screen._menu_go_back()
|
||||
|
||||
@staticmethod
|
||||
def log(loglevel, component, message):
|
||||
|
||||
@@ -559,7 +559,7 @@ class JobStatusPanel(ScreenPanel):
|
||||
)
|
||||
self.buttons['speed'].set_label(self.labels['req_speed'].get_label())
|
||||
with contextlib.suppress(KeyError):
|
||||
self.zoffset = data["gcode_move"]["homing_origin"][2]
|
||||
self.zoffset = float(data["gcode_move"]["homing_origin"][2])
|
||||
self.labels['zoffset'].set_label(f"{self.zoffset:.2f} {self.mm}")
|
||||
if "motion_report" in data:
|
||||
with contextlib.suppress(KeyError):
|
||||
|
||||
+23
-6
@@ -2,6 +2,8 @@ import logging
|
||||
|
||||
import gi
|
||||
|
||||
import json
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
from jinja2 import Environment, Template
|
||||
@@ -75,14 +77,29 @@ class MenuPanel(ScreenPanel):
|
||||
|
||||
env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True)
|
||||
env.install_gettext_translations(self._config.get_lang())
|
||||
j2_temp = env.from_string(item['name'])
|
||||
parsed_name = j2_temp.render()
|
||||
|
||||
b = self._gtk.Button(item['icon'], parsed_name, f"color{(i % 4) + 1}")
|
||||
printer = self._printer.get_printer_status_data()
|
||||
|
||||
name = env.from_string(item['name']).render(printer)
|
||||
icon = env.from_string(item['icon']).render(printer) if item['icon'] else None
|
||||
style = env.from_string(item['style']).render(printer) if item['style'] else None
|
||||
|
||||
b = self._gtk.Button(icon, name, (style if style else f"color{(i % 4) + 1}"))
|
||||
|
||||
if item['panel'] is not None:
|
||||
b.connect("clicked", self.menu_item_clicked, item['panel'], item)
|
||||
panel = env.from_string(item['panel']).render(printer)
|
||||
b.connect("clicked", self.menu_item_clicked, panel, item)
|
||||
elif item['method'] is not None:
|
||||
params = item['params'] if item['params'] is not False else {}
|
||||
params = {}
|
||||
|
||||
if item['params'] is not False:
|
||||
try:
|
||||
p = env.from_string(item['params']).render(printer)
|
||||
params = json.loads(p)
|
||||
except Exception as e:
|
||||
logging.exception(f"Unable to parse parameters for [{name}]:\n{e}")
|
||||
params = {}
|
||||
|
||||
if item['confirm'] is not None:
|
||||
b.connect("clicked", self._screen._confirm_send_action, item['confirm'], item['method'], params)
|
||||
else:
|
||||
@@ -96,7 +113,7 @@ class MenuPanel(ScreenPanel):
|
||||
logging.info(f"moonraker connected {self._screen._ws.connected}")
|
||||
return self._screen._ws.connected
|
||||
elif enable == "{{ camera_configured }}":
|
||||
return self.ks_printer_cfg.get("camera_url", None) is not None
|
||||
return self.ks_printer_cfg and self.ks_printer_cfg.get("camera_url", None) is not None
|
||||
self.j2_data = self._printer.get_printer_status_data()
|
||||
try:
|
||||
j2_temp = Template(enable, autoescape=True)
|
||||
|
||||
+5
-2
@@ -159,12 +159,12 @@ class NetworkPanel(ScreenPanel):
|
||||
labels.set_valign(Gtk.Align.CENTER)
|
||||
labels.set_halign(Gtk.Align.START)
|
||||
|
||||
connect = self._gtk.Button("load", style="color3")
|
||||
connect = self._gtk.Button("load", None, "color3", .66)
|
||||
connect.connect("clicked", self.connect_network, ssid)
|
||||
connect.set_hexpand(False)
|
||||
connect.set_halign(Gtk.Align.END)
|
||||
|
||||
delete = self._gtk.Button("delete", style="color3")
|
||||
delete = self._gtk.Button("delete", None, "color3", .66)
|
||||
delete.connect("clicked", self.remove_wifi_network, ssid)
|
||||
delete.set_hexpand(False)
|
||||
delete.set_halign(Gtk.Align.END)
|
||||
@@ -178,6 +178,7 @@ class NetworkPanel(ScreenPanel):
|
||||
|
||||
buttons = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
if network_id != -1 or netinfo['connected']:
|
||||
buttons.pack_end(connect, False, False, 0)
|
||||
buttons.pack_end(delete, False, False, 0)
|
||||
else:
|
||||
buttons.pack_end(connect, False, False, 0)
|
||||
@@ -386,6 +387,7 @@ class NetworkPanel(ScreenPanel):
|
||||
ifadd = netifaces.ifaddresses(self.interface)
|
||||
if netifaces.AF_INET in ifadd and len(ifadd[netifaces.AF_INET]) > 0:
|
||||
ipv4 = f"<b>IPv4:</b> {ifadd[netifaces.AF_INET][0]['addr']} "
|
||||
self.labels['ip'].set_text(f"IP: {ifadd[netifaces.AF_INET][0]['addr']} ")
|
||||
if netifaces.AF_INET6 in ifadd and len(ifadd[netifaces.AF_INET6]) > 0:
|
||||
ipv6 = f"<b>IPv6:</b> {ifadd[netifaces.AF_INET6][0]['addr'].split('%')[0]} "
|
||||
info = '<b>' + _("Hostname") + f':</b> {hostname}\n{ipv4}\n{ipv6}\n'
|
||||
@@ -413,6 +415,7 @@ class NetworkPanel(ScreenPanel):
|
||||
ipv6 = ""
|
||||
if netifaces.AF_INET in ifadd and len(ifadd[netifaces.AF_INET]) > 0:
|
||||
ipv4 = f"<b>IPv4:</b> {ifadd[netifaces.AF_INET][0]['addr']} "
|
||||
self.labels['ip'].set_text(f"IP: {ifadd[netifaces.AF_INET][0]['addr']} ")
|
||||
if netifaces.AF_INET6 in ifadd and len(ifadd[netifaces.AF_INET6]) > 0:
|
||||
ipv6 = f"<b>IPv6:</b> {ifadd[netifaces.AF_INET6][0]['addr'].split('%')[0]} "
|
||||
connected = (
|
||||
|
||||
@@ -183,7 +183,9 @@ class ZCalibratePanel(ScreenPanel):
|
||||
|
||||
speed = 15 if speed is None else speed
|
||||
z_hop = 5 if z_hop is None else z_hop
|
||||
self._screen._ws.klippy.gcode_script(f"G0 Z{z_hop} F{float(speed) * 60}")
|
||||
self._screen._ws.klippy.gcode_script(f"G91\nG0 Z{z_hop} F{float(speed) * 60}")
|
||||
if self._printer.get_stat("gcode_move", "absolute_coordinates"):
|
||||
self._screen._ws.klippy.gcode_script("G90")
|
||||
|
||||
if x_position is not None and y_position is not None:
|
||||
logging.debug(f"Configured probing position X: {x_position} Y: {y_position}")
|
||||
@@ -242,7 +244,6 @@ class ZCalibratePanel(ScreenPanel):
|
||||
logging.info(data)
|
||||
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:
|
||||
self._screen.show_popup_message(data)
|
||||
self.buttons_not_calibrating()
|
||||
|
||||
@@ -316,6 +316,7 @@ class KlipperScreen(Gtk.Window):
|
||||
msg.set_vexpand(True)
|
||||
msg.get_child().set_line_wrap(True)
|
||||
msg.get_child().set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
msg.get_child().set_max_width_chars(40)
|
||||
msg.connect("clicked", self.close_popup_message)
|
||||
msg.get_style_context().add_class("message_popup")
|
||||
if level == 1:
|
||||
@@ -327,7 +328,7 @@ class KlipperScreen(Gtk.Window):
|
||||
|
||||
popup = Gtk.Popover.new(self.base_panel.titlebar)
|
||||
popup.get_style_context().add_class("message_popup_popover")
|
||||
popup.set_size_request(self.width, -1)
|
||||
popup.set_size_request(self.width * .9, -1)
|
||||
popup.set_halign(Gtk.Align.CENTER)
|
||||
popup.add(msg)
|
||||
popup.popup()
|
||||
@@ -727,7 +728,7 @@ class KlipperScreen(Gtk.Window):
|
||||
elif "unknown" in data.lower() and \
|
||||
not ("TESTZ" in data or "MEASURE_AXES_NOISE" in data or "ACCELEROMETER_QUERY" in data):
|
||||
self.show_popup_message(data)
|
||||
if "SAVE_CONFIG" in data and self.printer.state == "ready":
|
||||
elif "SAVE_CONFIG" in data and self.printer.state == "ready":
|
||||
script = {"script": "SAVE_CONFIG"}
|
||||
self._confirm_send_action(
|
||||
None,
|
||||
|
||||
@@ -9,11 +9,11 @@ FBDEV="xserver-xorg-video-fbdev"
|
||||
PYTHON="python3-virtualenv virtualenv python3-distutils"
|
||||
PYGOBJECT="libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0"
|
||||
MISC="librsvg2-common libopenjp2-7 libatlas-base-dev wireless-tools libdbus-glib-1-dev autoconf"
|
||||
OPTIONAL="xserver-xorg-legacy fonts-nanum fonts-ipafont, libmpv-dev"
|
||||
OPTIONAL="xserver-xorg-legacy fonts-nanum fonts-ipafont libmpv-dev"
|
||||
|
||||
# moonraker will check this list when updating
|
||||
# if new packages are required for existing installs add them below too.
|
||||
PKGLIST="libdbus-glib-1-dev autoconf fonts-ipafont, libmpv-dev"
|
||||
PKGLIST="libdbus-glib-1-dev autoconf fonts-ipafont libmpv-dev"
|
||||
|
||||
Red='\033[0;31m'
|
||||
Green='\033[0;32m'
|
||||
@@ -43,7 +43,7 @@ install_packages()
|
||||
echo_text "Checking for broken packages..."
|
||||
output=$(dpkg-query -W -f='${db:Status-Abbrev} ${binary:Package}\n' | grep -E ^.[^nci])
|
||||
if [ $? -eq 0 ]; then
|
||||
echo_text "Detectected broken pacakges. Attempting to fix"
|
||||
echo_text "Detected broken packages. Attempting to fix"
|
||||
sudo apt-get -f install
|
||||
output=$(dpkg-query -W -f='${db:Status-Abbrev} ${binary:Package}\n' | grep -E ^.[^nci])
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -73,16 +73,16 @@ install_packages()
|
||||
fi
|
||||
sudo apt-get install -y $PYTHON
|
||||
if [ $? -eq 0 ]; then
|
||||
echo_ok "Installed Python dependincies"
|
||||
echo_ok "Installed Python dependencies"
|
||||
else
|
||||
echo_error "Installation of Python dependincies failed ($PYTHON)"
|
||||
echo_error "Installation of Python dependencies failed ($PYTHON)"
|
||||
exit 1
|
||||
fi
|
||||
sudo apt-get install -y $PYGOBJECT
|
||||
if [ $? -eq 0 ]; then
|
||||
echo_ok "Installed PyGobject dependincies"
|
||||
echo_ok "Installed PyGobject dependencies"
|
||||
else
|
||||
echo_error "Installation of PyGobject dependincies failed ($PYGOBJECT)"
|
||||
echo_error "Installation of PyGobject dependencies failed ($PYGOBJECT)"
|
||||
exit 1
|
||||
fi
|
||||
sudo apt-get install -y $MISC
|
||||
@@ -92,6 +92,10 @@ install_packages()
|
||||
echo_error "Installation of Misc packages failed ($MISC)"
|
||||
exit 1
|
||||
fi
|
||||
# ModemManager interferes with klipper comms
|
||||
# on buster it's installed as a dependency of mpv
|
||||
# it doesn't happen on bullseye
|
||||
sudo systemctl mask ModemManager.service
|
||||
}
|
||||
|
||||
create_virtualenv()
|
||||
@@ -149,7 +153,7 @@ modify_user()
|
||||
|
||||
update_x11()
|
||||
{
|
||||
if [ -e /etc/X11/Xwrapper.conf ]
|
||||
if [ -e /etc/X11/Xwrapper.config ]
|
||||
then
|
||||
echo_text "Updating X11 Xwrapper"
|
||||
sudo sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config
|
||||
@@ -173,7 +177,7 @@ start_KlipperScreen()
|
||||
sudo systemctl start KlipperScreen
|
||||
}
|
||||
if [ "$EUID" == 0 ]
|
||||
then echo_error "Plaease do not run this script as root"
|
||||
then echo_error "Please do not run this script as root"
|
||||
exit 1
|
||||
fi
|
||||
install_packages
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
jinja2==3.1.2
|
||||
netifaces==0.11.0
|
||||
requests==2.28.1
|
||||
websocket-client==1.4.2
|
||||
requests==2.28.2
|
||||
websocket-client==1.5.1
|
||||
pycairo==1.22.0
|
||||
PyGObject==3.42.2
|
||||
python-networkmanager==2.2
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg4"
|
||||
sodipodi:docname="light.svg"
|
||||
inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)">
|
||||
<metadata
|
||||
id="metadata6">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="26"
|
||||
inkscape:cx="12"
|
||||
inkscape:cy="12"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1018"
|
||||
inkscape:window-x="-6"
|
||||
inkscape:window-y="-6"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4"
|
||||
inkscape:document-rotation="0" />
|
||||
<path
|
||||
d="m 12,2 c 3.865993,0 7,3.1340068 7,7 0,2.38 -1.19,4.47 -3,5.74 V 17 c 0,0.552285 -0.447715,1 -1,1 H 9 C 8.4477153,18 8,17.552285 8,17 V 14.74 C 6.19,13.47 5,11.38 5,9 5,5.1340068 8.1340068,2 12,2 M 9,21 v -1 h 6 v 1 c 0,0.552285 -0.447715,1 -1,1 H 10 C 9.4477153,22 9,21.552285 9,21"
|
||||
id="path2"
|
||||
style="font-variation-settings:normal;opacity:1;vector-effect:none;fill:#e2e2e2;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000;stop-opacity:1"
|
||||
sodipodi:nodetypes="cscsssscsccccsssc" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
Reference in new issue
Block a user