fluidd-core / fluidd

Fluidd, the klipper UI.
https://docs.fluidd.xyz
GNU General Public License v3.0
1.33k stars 398 forks source link

feat: show all fan and pin values as percentages #1418

Closed pedrolamas closed 2 months ago

pedrolamas commented 2 months ago

Ideally, limited scale values in the front-end should be presented as a percentage instead of the Klipper value - that is for config and console purposes.

The changes in this pull request are as follows:

Before

image

After

image

Partial test config used for the above:

[heater_fan heater_fan]
pin: PD4
off_below: 0.2
shutdown_speed: 0.0
max_power: 0.6
fan_speed: 0.85

[output_pin test_pwm_pin]
pin: PD7
pwm: True
value: 0.6
scale: 0.8
cycle_time: 0.1