Could you please explain what this object is for? I can connect it with my 1Byte positon object of my blinds - but in view mode the icon doesn't show up at all.
An in custum mode of "New Scale" - what shall be entered in Height, Steps, Vertical shift, and Horizontal shift?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I forgot to add the following line in design.html file:
<script type="text/javascript" src="js/cscale.js"></script>
That's why you are not seeing it in view mode.
Normally, you should see the blinds going progressively down (in 4 steps) when the 1byte value changes from 0 to 255 (=100%)
For the custom mode, it's a little bit tricky.
The image used is in fact bigger than what you see on the screen, and it's shifted horizontally and/or vertically to show different parts of the image when the value changes.
For the blinds, for example, the image blinds_move.png is 32x256 pixels and composed of 8 32x32 images one below the other.
If you want to make the same effect with custom image, you would set height=32 width=32 steps=8 horizontal_shift=0 and vertical_shift=32 so that the upper 32x32 part is showed when object value is 0. The 0 to 100% range would be splitted in 8 portions and for each of them, the image would be shifted up by 32px to show the appropriate blinds position.
Another way to use the custom mode could be to use for example an image of 64x32, width and height of 32, steps=32 and vertical_shift=1 so that the image is progressively shifted up pixel by pixel.
I hope it's clear enough, don't hesitate to ask if something is still unclear.
Regards,
Jean-François
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, I perfectly understand now how it sould work. I can also see the button now - but nothing happens when I click on it. No messages on the console or any change of a dimmed light or some blinds.
Best,
Andreas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In fact, scale is not a button, it's just a display of value. I still don't have a specific module to control blinds, but most of them can be controlled by on/off objects using the switch control.
Regards,
Jean-François
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could you please explain what this object is for? I can connect it with my 1Byte positon object of my blinds - but in view mode the icon doesn't show up at all.
An in custum mode of "New Scale" - what shall be entered in Height, Steps, Vertical shift, and Horizontal shift?
Hi,
I forgot to add the following line in design.html file:
<script type="text/javascript" src="js/cscale.js"></script>
That's why you are not seeing it in view mode.
Normally, you should see the blinds going progressively down (in 4 steps) when the 1byte value changes from 0 to 255 (=100%)
For the custom mode, it's a little bit tricky.
The image used is in fact bigger than what you see on the screen, and it's shifted horizontally and/or vertically to show different parts of the image when the value changes.
For the blinds, for example, the image blinds_move.png is 32x256 pixels and composed of 8 32x32 images one below the other.
If you want to make the same effect with custom image, you would set height=32 width=32 steps=8 horizontal_shift=0 and vertical_shift=32 so that the upper 32x32 part is showed when object value is 0. The 0 to 100% range would be splitted in 8 portions and for each of them, the image would be shifted up by 32px to show the appropriate blinds position.
Another way to use the custom mode could be to use for example an image of 64x32, width and height of 32, steps=32 and vertical_shift=1 so that the image is progressively shifted up pixel by pixel.
I hope it's clear enough, don't hesitate to ask if something is still unclear.
Regards,
Jean-François
Thanks, I perfectly understand now how it sould work. I can also see the button now - but nothing happens when I click on it. No messages on the console or any change of a dimmed light or some blinds.
Best,
Andreas
Hi,
In fact, scale is not a button, it's just a display of value. I still don't have a specific module to control blinds, but most of them can be controlled by on/off objects using the switch control.
Regards,
Jean-François