#Custom percentage field

8 messages · Page 1 of 1 (latest)

sly mauve
blissful sapphireBOT
#

Ahoi @sly mauve!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

desert rampart
#

If you don't want the bot asking for logs, just use #NoLogsNeeded, as you can read in #readme
And what exactly do you want? Some UI element showing you a percentage value, just like a fan?

sly mauve
#

Yes, precisely like a fan.

warm dagger
#

What do you want to do there?

#

it should work exactly the same like the pin example but with pwm defined in the pin

sly mauve
#

Thank you. I want to define a switch, as in the first example. That controls whether or not an override is in effect. Along with a percentage limit for the override. All of this to control the noise level of a part cooling fan, but still allow it to increase our decrease (within allowed range).

warm dagger
#

as said you get either a 1|0 value with pwm: false or a 0..1 value if pwm: true. The UI displays:

  • pwm false -> switch
  • pmw: true -> slider
    The rest is up to you