bosesoundtouchapi.models.clocktime

@export
class ClockTime:

SoundTouch device ClockTime configuration object.

This class contains the attributes and sub-items that represent the clock time configuration of the device.

ClockTime(root: xml.etree.ElementTree.Element)

Initializes a new instance of the class.

Arguments:
  • root (Element): xmltree Element item to load arguments from.
    If specified, then other passed arguments are ignored.
Brightness: int

Brightness level of the clock display.

ClockError: int

TODO - document this property.

CueMusic: int

TODO - document this property.

Day: int

Day (of month) portion of the local time value.

DayOfWeek: int

Day of week portion of the local time value.

Hour: int

Hour portion of the local time value.

Minute: int

Minute portion of the local time value.

Month: int

Month portion of the local time value.

Second: int

Second portion of the local time value.

TimeFormat: str

Time format with the following form: TIME_FORMAT_xxHOUR_ID (e.g.
"TIME_FORMAT_12HOUR_ID", "TIME_FORMAT_24HOUR_ID", etc).

UtcSyncTime: int

Date and time (in epoch format) of when the device last syncronized its datetime.

UtcTime: int

Current UTC Date and time (in epoch format) of the device.

Year: int

Year portion of the local time value.

def ToString(self) -> str:

Returns a displayable string representation of the class.