Commit Graph

2155 Commits

Author SHA1 Message Date
Alfredo Monclus
48aa50332e refactor: add and use available commands for z_tilt and quad_level
close #1512
2024-11-25 12:07:05 -03:00
Alfredo Monclus
02d791f4d1 fix: heatergraph exception 2024-11-25 12:07:05 -03:00
Weblate (bot)
6d79b31f56 chore(locales): Translations update from Hosted Weblate (#1509)
* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (322 of 322 strings)

Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: Kayz C <kayzed.x@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hant/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Lithuanian)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: vjurka <v@jurka.lt>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/lt/
Translation: KlipperScreen/KlipperScreen

---------

Co-authored-by: Kayz C <kayzed.x@gmail.com>
Co-authored-by: vjurka <v@jurka.lt>
2024-11-25 10:23:20 -03:00
Alfredo Monclus
8e4f859b09 feat: turn off power devices that are associated to the turn on button when shutting down printer 2024-11-17 12:09:38 -03:00
Alfredo Monclus
301514f436 fix: screensaver issues when using dpms
close #1505
2024-11-17 12:09:38 -03:00
Weblate (bot)
114dbdec0c chore(locales): Translations update from Hosted Weblate (#1503)
* Translated using Weblate (Spanish)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/es/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Italian)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: Giadej <Giadej@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/it/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Russian)

Currently translated at 97.5% (314 of 322 strings)

Co-authored-by: Владимир Чернояров <s3mpau@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/ru/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 99.3% (320 of 322 strings)

Co-authored-by: Kayz C <kayzed.x@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hant/
Translation: KlipperScreen/KlipperScreen

---------

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: Giadej <Giadej@users.noreply.hosted.weblate.org>
Co-authored-by: Владимир Чернояров <s3mpau@gmail.com>
Co-authored-by: Kayz C <kayzed.x@gmail.com>
2024-11-17 12:04:37 -03:00
Axel Pirek
c79ba16ff7 fix: screen not staying off (#1506)
When the screensaver is active and the screen is turned off due to DPMS
the unconditional call to self.screensaver.show wakes the screen up
again.
The check whether the screensaver is already active got lost in the
refactor.

Fixes #1504
2024-11-17 12:04:13 -03:00
Alfredo Monclus
43ad9fc6ae chore: update changelog 2024-11-12 16:45:47 -03:00
Alfredo Monclus
4172d59dbe feat: Menu active status (#1482)
* feat: menu active status, now used to show if homed and leveled

* style: menu_active class
2024-11-12 16:45:35 -03:00
Alfredo Monclus
f4c6801a8c refactor: extract screensaver 2024-11-12 11:33:07 -03:00
Alfredo Monclus
9a6aeaa43e feat: lockscreen closes #1490 2024-11-12 11:33:07 -03:00
Weblate (bot)
0d0715de19 Translated using Weblate (Chinese (Simplified Han script)) (#1495)
Currently translated at 100.0% (322 of 322 strings)


Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hans/
Translation: KlipperScreen/KlipperScreen

Co-authored-by: Will Zhai <willzhai55@gmail.com>
2024-11-12 11:32:20 -03:00
Alfredo Monclus
e74e9515bf network: eap fixes 2024-11-12 11:29:21 -03:00
Alfredo Monclus
8d78778c5b network: make a workaround for missbehaving comboboxes 2024-11-10 12:39:57 -03:00
Alfredo Monclus
7127b5d624 fix: matchbox kbd 2024-10-29 10:04:42 -03:00
Alfredo Monclus
ce420aea94 refactor: screen switch comparison to the right 2024-10-28 12:19:04 -03:00
Alfredo Monclus
e01acf8edc refactor: simplify the windowed flag
do not declare multiple variables in the same line
2024-10-28 12:16:39 -03:00
Alfredo Monclus
6ec9c3a934 chore: update changelog and tag 0.4.5 2024-10-28 05:52:36 -03:00
Weblate (bot)
8d21b3deb8 chore(locales): Translations update from Hosted Weblate (#1487)
* Translated using Weblate (Japanese)

Currently translated at 87.8% (283 of 322 strings)

Co-authored-by: Hideki Matsunobu <maznobu@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/ja/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 77.9% (251 of 322 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: China-Mr-Hou <kaixinowen@163.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hant/
Translation: KlipperScreen/KlipperScreen

---------

Co-authored-by: Hideki Matsunobu <maznobu@gmail.com>
Co-authored-by: China-Mr-Hou <kaixinowen@163.com>
2024-10-28 05:45:36 -03:00
Alfredo Monclus
ecc32647ed refactor: make psutil optional 2024-10-23 21:55:29 -03:00
Alfredo Monclus
7ea3122908 feat(ks_actions): ability to show specific panels or custom menus defined in runtime (#1418) 2024-10-18 11:33:29 -03:00
Alfredo Monclus
56089e68d0 fix(camera): log other levels fixes indentation 2024-10-18 11:31:45 -03:00
Alfredo Monclus
d4035e9495 refactor(camera): filters and logging 2024-10-18 11:28:45 -03:00
Vasily Khoruzhick
c670a2bdc8 fix(camera): don't use scale filter if angle is zero (#1485)
scale filter seems to be expensive even with angle=0. On my CB1 having
vf=rotate:0.0 in mpv arguments results in KlipperScreen using 100% of a
single core vs 30% when it's omitted.
2024-10-18 11:03:27 -03:00
Andrii
25a3f8293e Ukrainian localisation (#1483)
Ukrainian localisation update
2024-10-18 11:02:17 -03:00
Weblate (bot)
7ae6ce067d Translated using Weblate (Hungarian) (#1486)
Currently translated at 100.0% (322 of 322 strings)


Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/hu/
Translation: KlipperScreen/KlipperScreen

Co-authored-by: Zs.Antal <antonio092130@icloud.com>
2024-10-18 11:01:59 -03:00
Alfredo Monclus
a7b8c4cfeb chore(deps): update pygobject and pycairo dependencies 2024-10-13 13:57:13 -03:00
Alfredo Monclus
87e18ed6d4 refactor(camera): logging 2024-10-13 13:53:29 -03:00
Alfredo Monclus
9fb17ee17f fix(camera): do not log ffmpeg app field decode errors, close #1480 2024-10-13 13:41:48 -03:00
Alfredo Monclus
bdfdac9fb6 fix(shutdown): simple accept not working after 21a269edd2 2024-10-13 13:41:48 -03:00
Thijs Triemstra
18b502c2a8 doc: fix sponsor img links (#1478) 2024-10-13 13:41:24 -03:00
Weblate (bot)
704fbf42da chore(locales): Translations update from Hosted Weblate (#1476)
* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Czech)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: Miloslav Kos <kos.m@post.cz>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/cs/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Spanish)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: Alfredo Monclus <alfredomonclus@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/es/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Spanish)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/es/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Dutch)

Currently translated at 93.1% (300 of 322 strings)

Co-authored-by: Thijs Triemstra <info@collab.nl>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/nl/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Turkish)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: Selim <technical50@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/tr/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Polish)

Currently translated at 100.0% (322 of 322 strings)

Co-authored-by: Daviteusz <daviteusz0@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/pl/
Translation: KlipperScreen/KlipperScreen

---------

Co-authored-by: Miloslav Kos <kos.m@post.cz>
Co-authored-by: Alfredo Monclus <alfredomonclus@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: Thijs Triemstra <info@collab.nl>
Co-authored-by: Selim <technical50@users.noreply.hosted.weblate.org>
Co-authored-by: Daviteusz <daviteusz0@gmail.com>
2024-10-13 13:40:55 -03:00
Alfredo Monclus
e145933782 chore(locales): update base 2024-10-09 18:12:41 -03:00
Alfredo Monclus
b3b097fbe3 fix(job_status): restart sometimes not responding 2024-10-09 17:45:28 -03:00
Alfredo Monclus
ab308e23f7 feat(bed_mesh): do z_tilt or quad_level if not done before 2024-10-09 17:45:28 -03:00
Alfredo Monclus
1872b40d9f fix(base_panel): remove printer name from printer_select and fix initial not connected error 2024-10-09 17:45:28 -03:00
Alfredo Monclus
0c9884bc85 fix: misplaced logging error in 71eef9e 2024-10-09 17:45:28 -03:00
Alfredo Monclus
5ae4e475b6 feat: battery status (#1457)
* Initial commit, added psutil for getting tablet/laptop battery percentage, initial code for getting the values and displaying the icon

* add battery svgs for light theme

* added light styled battery svgs for dark themes

* update icon based on battery percentage and if device is charging

* indentation fix, and forgot to add battery plugged checks for 33% and 66% battery levels

* move battery polling to its own timer now that i understand how to add an additional timer, checks every 30 seconds. check for if show battery is on or off

* add toggle to config for settings

* show battery callback as screen.restart_ks instead of just reloading panels

* move self.battery_percentage() to end of reload_icons this ensures that when a theme is changed the icon is updated instead of waiting for the timeout to update the icon again

* remove left over commented out code

* only call self.battery_percentage when config is true

* adjust tooltip message

* split creatation of elements from updating elements

* change print to logging.debug, handle rouding for percentage in the f-string

* remove code that was moved to `attery_init()`, only destroy icon element when updating icons/percentage text, remove redundant calls to `.pack_start` (just call it once after setting the icon).

* only create battery_update timer if config setting is true

* new material icons remove old icons

* `self.battery_init() in `__init__` def

* fix: lint

* refactors

* style: update icons to follow themes

* refactor: remove config, make the show/hide automatic

* style: bigger battery icons for z-bolt and colorized

---------

Co-authored-by: MrTylerjet <MrTylerjet@gmail.com>
2024-10-09 17:34:33 -03:00
Weblate (bot)
7b7b7c54e1 chore(locales): Translations update from Hosted Weblate (#1471)
* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (318 of 318 strings)

Co-authored-by: Will Zhai <willzhai55@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hans/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (318 of 318 strings)

Co-authored-by: Neko.vecter <Vecterfang@icloud.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/zh_Hans/
Translation: KlipperScreen/KlipperScreen

* Translated using Weblate (Portuguese)

Currently translated at 91.5% (291 of 318 strings)

Co-authored-by: Paulo Henrique <pauloh.programador@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/klipperscreen/klipperscreen/pt/
Translation: KlipperScreen/KlipperScreen

---------

Co-authored-by: Will Zhai <willzhai55@gmail.com>
Co-authored-by: Neko.vecter <Vecterfang@icloud.com>
Co-authored-by: Paulo Henrique <pauloh.programador@gmail.com>
2024-10-09 16:41:02 -03:00
Alfredo Monclus
71eef9ee1f fix(base_panel): handle pixbuf is None, this would happen if the theme was incomplete and didn't load 2024-10-01 19:55:06 -03:00
Alfredo Monclus
40b5fbf2cf fix(job_status): animation timeout 2024-09-28 13:20:46 -03:00
Alfredo Monclus
ac5e7ae065 refactor(job_status): initialize vars separately 2024-09-28 01:41:09 -03:00
Alfredo Monclus
4596c48297 docs: add how to do multi instances on the same host 2024-09-26 20:07:43 -03:00
Alfredo Monclus
66e8a09a66 fix: wait for moonraker if present, this will aid those slow system to not fail the connection on startup and having to retry 2024-09-24 16:52:21 -03:00
Alfredo Monclus
832a86ed6e fix: shutdown not working when not connected 2024-09-23 21:12:25 -03:00
Alfredo Monclus
8cda8b62a6 chore: update changelog 2024-09-21 06:40:57 -03:00
Alfredo Monclus
c20d0a2f84 fix: keyboard getting doubled if switching entry via the input switch icon
got mistakenly removed in previous commit 585f477e51
2024-09-21 05:28:21 -03:00
Alfredo Monclus
585f477e51 fix: keyboard not switching entry 2024-09-20 19:16:21 -03:00
Alfredo Monclus
a262247a2a feat: make the osk keypad smaller while landscape 2024-09-20 19:16:21 -03:00
Alfredo Monclus
274fc2b263 feat: add float option to the keypad 2024-09-20 19:16:21 -03:00