Skip to content
George Joseph edited this page Oct 20, 2019 · 1 revision

Derived from Element -> Widget

A "slider" widget. Good for Fans, LEDs, etc.

{
	/*
	 * All attributes of Element and Widget apply here.
	 */

	"id": "leds",
	"type": "slider",
	
	"style": {
		"height": "30ch"
	},
	
	"position": {
		"my": "center top",
		"at": "center bottom+10",
		"of": "#leds_label"
	},
	
	"min": 0,
	"max": 100,
	"step": 5,
	"orientation": "vertical"
	
	"value": "${status.fans[2].value * 100}",
	
	"actions": {"type": "gcode", "gcode": "M106 P2 S${value / 100.0}"}
}

Clone this wiki locally