Struct wled_json_api_library::structures::state::Playlist
source · pub struct Playlist {
pub ps: Option<Vec<u8>>,
pub dur: Option<Vec<u32>>,
pub transition: Option<u8>,
pub repeat: Option<u16>,
pub end: Option<u8>,
}
Fields§
§ps: Option<Vec<u8>>
Array of preset ID integers to be applied in this order.
dur: Option<Vec<u32>>
Array of time each preset should be kept, in tenths of seconds. If only one integer is supplied, all presets will be kept for that time.Defaults to 10 seconds if not provided.
transition: Option<u8>
Array of time each preset should transition to the next one, in tenths of seconds. If only one integer is supplied, all presets will transition for that time. Defaults to the current transition time if not provided.
repeat: Option<u16>
How many times the entire playlist should cycle before finishing. Set to 0 for an indefinite cycle. Default to indefinite if not provided.
end: Option<u8>
Single preset ID to apply after the playlist finished. Has no effect when an indefinite cycle is set. If not provided, the light will stay on the last preset of the playlist.