How to use slider component ?

Fattykidd's Avatar Topic Author
User User
  • Posts: 150
  • Thanks: 3

How to use slider component ?

1 year 11 months ago
#3415
I'm trying to use a few slider components in my lighting overlays. 
I've entered the {{lighting-##-level}}  variable copied from the driver into the variable section of the slider properties. 
It doesn't seem to update correctly and I can't get control of the lighting units themselves using this component. 

Some guidance would be appreciated. I can use different level values in buttons to control the lights so it's definitely a user problem. 

Please Log in or Create an account to join the conversation.

Nillaz's Avatar
User User
  • Posts: 444
  • Thanks: 36

Re: How to use slider component ?

1 year 11 months ago - 1 year 11 months ago
#3416
If you are using the range slider try formatting the command as "Lighting|##~level~{{value}}"

Put this in the server command box at the bottom of the Slider Styling tab. Change the ## to whatever the device id is of the light you are trying to control.
Last edit: 1 year 11 months ago by Nillaz. Reason: Clarifying where to put this command
The following user(s) said Thank You: Fattykidd

Please Log in or Create an account to join the conversation.

Fattykidd's Avatar Topic Author
User User
  • Posts: 150
  • Thanks: 3

Re: How to use slider component ?

1 year 11 months ago - 1 year 11 months ago
#3417
If you are using the range slider try formatting the command as "Lighting|##~level~{{value}}"

Put this in the server command box at the bottom of the Slider Styling tab. Change the ## to whatever the device id is of the light you are trying to control.
Thank you Nillaz. This worked. Really appreciate it. I was missing the {{value}} part of the command. 
Last edit: 1 year 11 months ago by Fattykidd.

Please Log in or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: How to use slider component ?

1 year 11 months ago - 1 year 11 months ago
#3418
Good strategy is to see how Allonis's templates have been configured (like the Volume slider). Then, reverse engineer that, and employ the lessons learned in your own template / page.  You can even copy an object from "Moonlight" and paste it into your own custom project.  Edit from there for the variables / fonts / colors / size you want once you get it working.
Last edit: 1 year 11 months ago by David Li.

Please Log in or Create an account to join the conversation.

Nillaz's Avatar
User User
  • Posts: 444
  • Thanks: 36

Re: How to use slider component ?

1 year 11 months ago
#3419
If you are using the range slider try formatting the command as "Lighting|##~level~{{value}}"

Put this in the server command box at the bottom of the Slider Styling tab. Change the ## to whatever the device id is of the light you are trying to control.
Thank you Nillaz. This worked. Really appreciate it. I was missing the {{value}} part of the command. 
 
Glad you got it sorted!
The following user(s) said Thank You: Fattykidd

Please Log in or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: How to use slider component ?

1 year 11 months ago
#3420
Thanx Nillaz!!! Keep sticking around :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.288 seconds