If you use OctoPrint you can add custom controls.
To add light and fan speed add the following to your config.yaml
controls:
- children:
- command: M1010 S3 P%(inten)s
confirm: null
default: ''
input:
- default: 0
name: Intensity
parameter: inten
slider:
max: '100'
min: '0'
step: '5'
name: Apply
regex: ''
template: ''
- command: M1010 S4 P%(fan)s
confirm: null
default: ''
input:
- default: 0
name: Fan speed
parameter: fan
slider:
max: '100'
min: '0'
step: '5'
name: Apply
regex: ''
template: ''
layout: vertical
name: Enclosure