81 Commits

Author SHA1 Message Date
alfrix
1db6388798 menu: use None 2022-11-18 00:53:53 -03:00
alfrix
bdafb31522 menu: simplify enable 2022-11-18 00:53:53 -03:00
alfrix
972a09df41 config: fix None appearing in config if the file doesn't exist close #777 2022-11-18 00:53:53 -03:00
alfrix
300eed4d29 translations: update 2022-11-12 11:23:01 -03:00
alfrix
6e4d0ff962 config: add lang list to init, reduce logging 2022-11-04 18:12:39 -03:00
alfrix
9c4f4c5fe7 config: try to save in printer_data first 2022-11-04 10:30:14 -03:00
alfrix
f749969c07 config: fix default en if system lang not found 2022-10-28 06:25:20 -03:00
alfrix
d3d7104ec4 languages: refactor
- No full restart requirement just reload
- Fix some systems not loading the language
- Fix RTL not applied if the lang was not set by the system
2022-10-26 22:36:52 -03:00
alfrix
8cc86dfd7c config: add width and height for development purposes
Do not use this when KS is meant to be fullscreen, this should be used for window size on a desktop
2022-10-26 22:36:52 -03:00
alfrix
c5413e51c9 config: add printer_data to default config search locations
close #759
2022-10-26 22:36:52 -03:00
alfrix
1305b40c41 refactors and cleanup 2022-10-14 13:27:01 -03:00
alfrix
2e026aef56 extrude: make the speed and distance configurable close #673 2022-10-14 10:19:44 -03:00
Laurenz
2cce477e5b
Add current heater power % to job status (#708)
* Add current heater power % to job status

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

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

* Prefer extra items on job_status over the power

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

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

* job_status: inherit the parent config

* screen: create reload_panels to avoid some service restarts

* extrude: fix power breaking multi-extruder setups

* main and temp: remove degrees char from the table

* main and temp: revert removal of the header

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-09-09 11:34:50 -03:00
alfrix
069097d2e0 config:fix 2022-09-09 11:32:44 -03:00
alfrix
1d40b9cf7f config: fix babystepping not being recognized
this is a temporary fix, the list items need to be validated individually
2022-09-06 13:13:44 -03:00
whi-tw
5d428e4999
Ignore include sections when validating the config (#720)
* Don't validate `include` sections.

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

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

* Move checks for non-validated sections to start

Rather than looping through the whole if..elif.. block, fail fast if
we're not actually going to validate the section.
2022-09-05 21:27:09 -03:00
alfrix
856e204750 config: fix validator not recognizing calibrate positions 2022-09-04 11:37:50 -03:00
alfrix
2d7486974c config: validator fix floats 2022-09-03 18:25:57 -03:00
alfrix
1704276c2d config: silently remove quotes from the api_key
This fixes a user error where it copies the quotes too
2022-09-02 19:58:35 -03:00
alfrix
f60a878e7b main and temp: save visibility of items 2022-09-02 19:58:35 -03:00
alfrix
3e5855d207 config: add validator 2022-09-02 19:58:35 -03:00
alfrix
200dca9dd3 dump more info during exceptions 2022-08-10 10:49:23 -03:00
alfrix
e8e4555d46 temperature: Support specific preheat items close #428 2022-08-01 12:23:40 -03:00
alfrix
88ca902a4b popups: wrap long messages, increase margins, touch anywhere to close 2022-08-01 12:23:40 -03:00
alfrix
752e53ff56 screen: popups can be configured to not close #456 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
5ad82a64d4 Translations: install _() 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
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
Ruslan Sayfutdinov
794dbea14e
Allow setting 0 in preheat options (#612) 2022-05-31 11:10:27 -03:00
alfrix
1eaa82ba2d config: fix print estimate default 2022-05-02 14:08:03 -03:00
alfrix
bc34b3c8d6 config: fix menu and preheat merge bugs
it's now possible to define a custom menu without the need to copy all the menu entries from defaults.conf
if you want to define all the entries, disable the default menu with 'use_default_menu: False' under [main]

if a preheat is defined then defaults are dropped in favor of keeping only user defines, this behaviour
has not changed, and it's intended since the user may not want any of the defaults; but it's now possible to
put preheat options in an include file.

fixes #530
fixes #497
fixes #408
2022-03-21 12:57:18 -03:00
alfrix
ee0cc9ca10 Remove unused variables 2022-03-15 12:41:21 -03:00
Alfredo Monclus
b1dd83d955
job_status: rework time calculation
New 'Auto' setting that selects the best guess
added an slicer time compensation if you find that your slicer always under/over estimates by some amount
Split in days if the time is more than 24h
2022-03-10 11:43:53 -03:00
Alfredo Monclus
708fec4c45
Fix issues waking up screen from a remote connection (#535)
When connected from vnc the screen did not unlock from the remote session click
This also implements an optional disable DPMS for people with issues where DPMS doesn't work as it should (hw issues, driver issues, etc)
Changes #340 almost entirely
2022-03-07 14:55:24 -03:00
alfrix
de35769600 Temp_panel: Fix issue with temperature_fan #495
Since temperature_fan has a target, it needs to be in the list to properly work
2022-02-08 13:45:46 -03:00
Randell Hodges
e478c3e8d9
Increase max move speed and separate XY and Z max speed (#411)
* Seperate XY and Z max speed
Increase max range of speed

* Limit the UI maximum for speed to 200, but allow a per printer override.

* Fix linting
2022-02-01 20:07:49 -05:00
alfrix
d0ccdc0f7c Temp_panel: Show only heaters 2022-01-24 08:41:22 -03:00
Alfredo Monclus
6b043d63bc
Improve config file search (#440) 2022-01-13 11:08:12 -05:00
Alfredo Monclus
8a8c6c064c
Graph in temp panel, combine preheat and temp (#393)
* Graph in temp panel, combine preheat and temp

* Fix target not working properly

* Fix initial preselect

* Add the ability to change in delta temps

* Make the label translatable

* Add Unit to the label

* Add de/select button to popover

* Warn the user if nothing was selected

* Fix templabel

* Fix to comply with pep8

* Fix colors, thanks Jordan

* Fix popover selection

* Update docs image

* Gain horizontal space

* Gain even more horizontal space (remove target)

* Fix temperature_fan

* Add icon and style to temperature_fan

* List preheat deprecation in breaking changes

* Use the printer maximum temperature

* Cleanup target and fix popover select

* Fix codestyle

* Add extra preheat presets

* Change Class name

* Update docs image

* Improve Maximum temperature handling and Temperature fans
2022-01-11 00:39:42 -05:00
Olivier Robardet
ce872a54b1
Update french translation (#385)
* Makes "Confirm Emergency Stop" setting localizable

* Updates french translation

Co-authored-by: jordanruthe <31575189+jordanruthe@users.noreply.github.com>
2022-01-03 01:27:17 -05:00
Alfredo Monclus
bfe6321c2f
Improve pathing (#368)
* Improve pathing

* Improve Pathing: config.py
2021-12-17 12:39:18 -05:00
Jordan
41d41dc2eb screen: Add configuration option for estop confirmation (Default off). Fixes #321 and fixes #341 2021-12-01 19:58:45 -05:00
Alfredo Monclus
5f5e6336c0
Update Translations (#284)
* Update Translations

* Various fixes to not break the UI

* Add updater translations

* Fix pycodestyle

* Fix updater translations

* Fix pycodestyle

* Fix restart translation

* Fix \n in label

* Update French
Thank you Bahoue

* Separate "default"

Co-authored-by: jordanruthe <31575189+jordanruthe@users.noreply.github.com>
2021-10-04 20:18:27 -04:00
Alfredo Monclus
c618044898
Support custom themes (#288)
* Remove relief
The relief gets stuck on touchscreens

* Support custom themes
2021-10-04 20:14:40 -04:00
Frank Tackitt
e1c478be83
Allow gcode commands with preheat options (#274)
* Allow gcode commands with preheat options

I use this to run a heatsoak macro during preheat.
  It moves to bed center, maxes the part cooling fan,
  and starts my nevermore chamber filter to circulate
  more air.

* Add documentation for preheat gcode
2021-09-18 10:32:13 -04:00
Jordan
996777a6dd Rename KlipperScreen.conf to defaults.conf to avoid some confusion 2021-09-16 22:56:33 -04:00
Jordan
70d8315539 Update code style 2021-09-11 17:25:38 -04:00
Alfredo Monclus
98cb3ef743
Font Size Selector (#245) 2021-09-11 14:21:50 -04:00