device.shutter
Standard shutter
Parameters
{{device.shutter(id, txt, item_move, item_stop, item_pos, item_shift, item_angle, item_saved, min, max, step, mode) }}
id
unique id for this widget
txt
name of the shutter
item_move
a item for the up- and down- movement
item_stop
a item for stopping the movement (optional)
item_pos
a item for the actual absolute position of the blinds
item_shift
a item for increase- and decreace- of the blade (optional, for future use)
item_angle
a item for the actual absolute angle of the blade (optional)
item_saved
a item for some saved positions (optional)
min
the minimum value for close (optional, default 0)
max
the maximum value for open (optional, default 255)
step
step between two values (optional, default 5)
mode
the mode: 'half' blade turns from -1 to +1, or 'full' blade turns from 0 to +1 (optional, default 'half')
The shutter may be used in two modes: 'half' and 'full'. The 'half' mode is for
blade which can turn to a negativ value, normal blades do so. Some blades
like 'S'-blades may only turn to a positv angle. For this use 'full' mode.
Example
{{ device.shutter ('shutter1', 'Shutter 1', 'bath.blind.mov', 'bath.blind.stop', 'bath.blind.pos', 'bath.blind.adjust', 'bath.blind.angle', 'bath.blind.stored') }}
{{ device.shutter ('shutter2', 'Shutter 2', 'bath.blind.mov', '', 'bath.blind.pos', 'bath.blind.adjust', 'bath.blind.angle', '', 0, 255, 5, 'full') }}
{{ device.shutter ('shutter3', 'Shutter 3', 'bath.blind.mov', '', 'bath.blind.pos') }}
Use slider to control shutter..
Shutter with all controls, 'half' mode
Shutter with less controls, 'full' mode
If you want to use individual backgrounds for the shutter place them in 'pics/shutter' with size 150 x 180 as .png.
Add a line to your "visu.css" with
#PAGE-ID (current pagename, hyphen, id of the shutter-widget).
#widget_device_shutter-shutter2 {
background-image: url('../../pics/shutter/shutter_ocean.png');
}
inspired by Jörg Gutowski