60 Commits

Author SHA1 Message Date
zkk
d822333489 优化翻译,耗材检测提示和一些细节问题
Squashed commit of the following:

commit 02c7556cdadf8de1ef3c54d2831920927cadbe30
Merge: 6bfa42e0 991003e6
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 31 15:07:54 2024 +0800

    Merge commit '991003e6cbea335eca73d3783aa1837059614724' into release

commit 991003e6cbea335eca73d3783aa1837059614724
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 31 15:03:34 2024 +0800

    优化完整 简体中文和繁体中文的翻译

commit 1a177e90d09b9b9949bff2a1e3c6b12173420620
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 31 14:10:03 2024 +0800

    优化排除对象的英文语法错误

commit e8d509cb6c2883b1fadb5ab9f9ca658e61849055
Author: zkk <1007518571@qq.com>
Date:   Fri Dec 27 16:40:52 2024 +0800

    优化耗材检测显示内容

commit 1b7670485a918cb334119175777525f768e670be
Author: zkk <1007518571@qq.com>
Date:   Fri Dec 27 14:56:25 2024 +0800

    完善断料自动切头功能描述

commit ecc0c3dd16442497e56f5f8ab3a0c6be00bd180e
Author: zkk <1007518571@qq.com>
Date:   Fri Dec 27 13:40:01 2024 +0800

    实现弹窗翻译功能

commit bc6d60fa183af50b7b16fea685139ca9d5df90ea
Author: zkk <1007518571@qq.com>
Date:   Fri Dec 27 09:53:16 2024 +0800

    优化不合理名称和不合理大小写

commit 2e650926bdba1c65baa506be1b1dd09621e8d8ea
Author: zkk <1007518571@qq.com>
Date:   Thu Dec 26 15:06:11 2024 +0800

    修复10寸屏幕偏移值微调页面出界问题

commit c481b551f777a3a6cadf7be3bfcab38448b51694
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 25 15:28:26 2024 +0800

    优化移轴设置页面没有返回按钮的问题

commit 2b3c9936bd693c8fc265d6352799f382680f4920
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 25 10:05:04 2024 +0800

    删除移动设置页面中轴反转的选项

commit 5e37d59497c54086d3f1e215cbabc03254857a58
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 25 09:05:03 2024 +0800

    优化选择语言标题

commit 5214c3697baac78bd0a465e33d6f4f3c1e30862e
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 24 10:57:41 2024 +0800

    增加设置hostname功能

commit 3709a7465cc2e0d677ecc9979fb18144f7e0ec33
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 24 10:43:46 2024 +0800

    增加工厂设置中打包模式

commit 0c2a2618beb68d50601e433beef06122fb0ffd40
Author: zkk <1007518571@qq.com>
Date:   Mon Dec 23 16:25:37 2024 +0800

    实现恢复出厂设置功能

commit e3a38f85613d53a4a063e835c34c701196010c6e
Author: zkk <1007518571@qq.com>
Date:   Mon Dec 23 15:48:17 2024 +0800

    一点格式化

commit 4e9e452e8bed4b53eaaae8f0a69142de8aa50611
Author: zkk <1007518571@qq.com>
Date:   Sat Dec 21 14:20:22 2024 +0800

    优化探针偏移值校准时如果当前激活为第一个喷头时不会重复激活喷头

commit 3b85e8e8d59b0d4eae75f80d9e637fe9dc272cbe
Merge: 882850db 10ec2029
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 18 17:26:08 2024 +0800

    Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipperScreen into develop

commit 882850dbde648598e5f91281101d0ea01fd56d56
Author: zkk <1007518571@qq.com>
Date:   Wed Dec 18 17:21:16 2024 +0800

    补充双喷头偏移校准页面二维码图片

commit 10ec2029eb73e66874d5a0ec492c016480641110
Author: ruipeng <1041589370@qq.com>
Date:   Wed Dec 18 17:17:18 2024 +0800

    增加自动切换喷头开关选项

commit 3d6eed9d9526b77472ba7df29014b5768c594026
Author: zkk <1007518571@qq.com>
Date:   Mon Dec 16 16:33:34 2024 +0800

    喷头偏移值校准功能的实现

commit 40ecbb3ea4827c9bac1aa271cccc958c94c1114a
Author: zkk <1007518571@qq.com>
Date:   Fri Dec 13 09:20:00 2024 +0800

    z探针校准时指定默认激活工具头为第一个头

commit bce3caa409618ef5bc2067865940d14a1441c0f8
Author: zkk <1007518571@qq.com>
Date:   Fri Dec 13 09:19:19 2024 +0800

    优化z探针校准时候移动过慢问题

commit 6bfa42e036a521c8ff7db1bf8ccb65500eabb6ea
Merge: 1a87ced3 4f3aa9aa
Author: zkk <1007518571@qq.com>
Date:   Thu Dec 12 10:33:58 2024 +0800

    Merge commit '4f3aa9aa4c581ae9e7a740bd37f9e80ba064c27f' into release

commit 4f3aa9aa4c581ae9e7a740bd37f9e80ba064c27f
Merge: e3fd413d 1a69b518
Author: zkk <1007518571@qq.com>
Date:   Thu Dec 12 10:30:00 2024 +0800

    Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipperScreen into develop

commit 1a69b5180de733f15550a1294a7221d6070306a0
Author: ruipeng <1041589370@qq.com>
Date:   Wed Dec 11 11:44:36 2024 +0800

    新增D600pro2、D1000的V0版机型

commit e3fd413d6256414441e9fe653c1132b1799a5cb2
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 10 14:34:13 2024 +0800

    修复打印时没有修改z偏移值 仍提示保存z偏移的按钮的bug

commit 594fb668fe94fe907c028bf65ecced43ea8660cb
Author: zkk <1007518571@qq.com>
Date:   Tue Dec 10 14:25:04 2024 +0800

    设置自适应调平选项默认为关闭状态

commit 1a87ced3f5725569a6b9a7ee5f5250044d01d852
Merge: 629416d1 6064a6e1
Author: zkk <1007518571@qq.com>
Date:   Fri Nov 29 10:18:32 2024 +0800

    Merge branch 'develop' into release

# Conflicts:
#	panels/advanced.py
#	panels/nozzle_offset.py
#	panels/offset_fine_tune.py
#	panels/zcalibrate.py
2024-12-31 15:14:35 +08:00
Alfredo Monclus
a19962fb02 reduce logging 2024-05-25 00:50:25 -03:00
alfrix
7dd62decaf refactor reinit
should fix an issue when the user presses retry before the websocket fully disconnects
2024-05-13 11:55:21 -03:00
alfrix
52754a61a8 rework websocket disconnect fixes #1352
used a solution closer to the webscocket-client docs
2024-05-03 22:03:25 -03:00
alfrix
3468988572 ws: fix wrong message in the logfile 2024-05-03 11:42:52 -03:00
alfrix
135e1858a8 websocket: identify the client to moonraker 2024-04-30 14:47:32 -03:00
alfrix
ad2df873d3 refactor printer initialization and connection handling
removes the lag while trying to connect
cleaner code, seems faster
2024-04-30 14:27:14 -03:00
alfrix
7cd6107998 KlippyRest/Websocket simplify methods into comprehensions 2024-03-09 08:24:03 -03:00
Alfredo Monclus
d9a361cacc
ws: fix issue that made buttons busy forever fixes #1087 (#1266)
* ws: fix issue that made buttons busy forever fixes #1087

* ws: reduce to high_idle due to touch not as responsive

* ws: make string translatable

* less animation steps for the spinner

the slower spinning gear icon is actually more pleasant to look
2024-02-18 17:26:08 -03:00
alfrix
a5ac4eb6b2 fixup for 34f80ce4 2023-12-24 12:03:53 -03:00
alfrix
34f80ce4aa print: fix directory dates fixes #1199 2023-12-23 16:38:00 -03:00
alfrix
8a29b6e125 fix not reconnecting to moonraker and prevent simultaneous reconnections
fixes #999
2023-06-13 13:39:23 -03:00
alfrix
6a95e46a18 websocket increase reconnect time
moonraker takes around 5 seconds to restart on a pi3 so 6 seconds tends to be too close

moonraker takes at least this amount to restart on a pi3
2022-12-05 12:09:58 -03:00
alfrix
3a764be93f ws remove unused method 2022-11-30 11:00:10 -03:00
alfrix
c0ffa41010 fix websocket not closing and sometimes looping, better fix for #806 2022-11-23 03:10:02 -03:00
alfrix
0233327554 fix splash_screen reloading and limit klipper reconnects fixes #803 2022-11-22 14:55:42 -03:00
alfrix
7b7c3838fc printer_initializing: refactor message generation and remove markup
markup caused issues with status messages
2022-11-21 09:20:05 -03:00
alfrix
818f1ab465 splash_screen: show detailed error when moonraker connection fails 2022-11-21 07:15:02 -03:00
alfrix
bdd3e0ba1b Cleanups 2022-11-20 22:41:22 -03:00
alfrix
fc0f153023 reorder imports 2022-11-20 07:28:05 -03:00
alfrix
cebd371734 websocket: fix for when websockets-client doesnt pass the class object #796 2022-11-20 00:23:19 -03:00
alfrix
7ca37c56b6 websocket: refactor how the connection is handled 2022-11-18 12:56:05 -03:00
alfrix
675f28b318 Use GLib.idle_add instead of Gdk.threads_add_idle 2022-11-18 02:51:41 -03:00
alfrix
9b1b9593e8 ws: add 7130 as default for wss close #786 2022-11-18 00:53:53 -03:00
alfrix
18d8f835a9 always reinit printer on state changes 2022-11-18 00:53:53 -03:00
alfrix
b68cfa40fd refactor ws reconnect/retry 2022-11-18 00:53:53 -03:00
alfrix
4272109a27 use screen printer_initializing method instead of direct calls 2022-11-18 00:53:53 -03:00
alfrix
fdf13102fe screen: remove shutdown variable and change on_close to disconnect 2022-11-18 00:53:53 -03:00
alfrix
8b55d2f2b1 splash_screen: limit reconnections, clear log, add reconnect button 2022-11-11 10:25:55 -03:00
alfrix
d3d7104ec4 languages: refactor
- No full restart requirement just reload
- Fix some systems not loading the language
- Fix RTL not applied if the lang was not set by the system
2022-10-26 22:36:52 -03:00
Nick Douma
89e89ae1b2 Change URL protocol to HTTPS and WSS when connecting to port 443 2022-09-02 19:58:53 -03:00
alfrix
aa5f91a548 Wait more time to initialize 2022-08-01 12:23:40 -03:00
alfrix
6510b2ec6b Refactor
Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
2022-08-01 12:23:40 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 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
6f86448405 Fix issues while Moonraker is connected but klipper is disconnected
fixes #548
2022-03-28 16:47:52 -03:00
alfrix
b83f12265d Splash_screen: fix return and duplicated power devices
fix forcefully returning the user from menu to splash when there is no connection to moonraker/klipper
fix a case where the power device was added multiple times to the list
2022-03-24 10:34:27 -03:00
Alfredo Monclus
046e03b883
Improve error messages (#549)
Shows if the issue is with moonraker or klipper
if the issue is with klipper and there is info about it then show it
Reconnect now has a counter and it's visible to the user
2022-03-18 20:18:53 -03:00
alfrix
5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00
alfrix
1b7f908d6b Websocket: wait at least 3 seconds until reconnect, 1 second was too low even locally 2022-03-01 16:17:27 -03:00
alfrix
320b7a8836 Update websocket-client to 1.3.1 2022-02-28 19:57:50 -03:00
alfrix
be3c24198d Websocket: fix issue when trying to connect to an offline printer
Fix: #401
2022-02-23 23:24:01 -03:00
Alfredo Monclus
d24f3d6f5c
Fix close Websocket (#434) 2022-01-13 11:04:02 -05:00
Julian Schill
51d26a3a29
Add temperature fans to heaters (#325)
* Add temperature fans to heaters

* Make code prettier

* Indentation
2021-11-16 21:03:14 -05:00
Jordan
2f6149c5b7 Fix connect issues with moonraker. Addresses #328 2021-11-16 20:59:06 -05:00
Jordan
70d8315539 Update code style 2021-09-11 17:25:38 -04:00
Jordan
000f30327b files: Handle case for create_dir notifications 2021-06-12 15:26:01 -04:00
Jordan
e49c19e2d9 websocket: Fixes due to issues with recent websocket-client update 2021-06-01 07:56:09 -04:00
Jordan
236fb0c4ff websocket: Change connect and logging statements to be more accurate 2021-05-08 21:38:51 -04:00
Jordan Ruthe
7b6efa0521 logs: hide certain logging statements 2021-05-02 17:46:51 -04:00