AlarmClock

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmClock

type AlarmClock struct {
	Send func(action, body, targetTag string) (string, error)
}

func New

func New(send func(action, body, targetTag string) (string, error)) AlarmClock

func (*AlarmClock) CreateAlarm

func (s *AlarmClock) CreateAlarm(startLocalTime time.Time, seconds int, recurrence string, enabled bool, roomUUID string, programURI string, programMetaData string, playMode string, volume int, includeLinkedZones bool) (assignedID string, err error)

Prefer method `zp.CreateAlarm`.

`recurrence` should be one of `Gonos.RecurrenceModes.*`

`playMode` should be one of `Gonos.PlayModes.*`

func (*AlarmClock) DestroyAlarm

func (s *AlarmClock) DestroyAlarm(id int) error

Prefer method `zp.DestroyAlarm`.

func (*AlarmClock) GetDailyIndexRefreshTime

func (s *AlarmClock) GetDailyIndexRefreshTime() (currentDailyIndexRefreshTime string, err error)

func (*AlarmClock) GetFormat

func (s *AlarmClock) GetFormat() (getFormatResponse, error)

func (*AlarmClock) GetHouseholdTimeAtStamp

func (s *AlarmClock) GetHouseholdTimeAtStamp(timeStamp string) (householdUTCTime string, err error)

func (*AlarmClock) GetTimeNow

func (s *AlarmClock) GetTimeNow() (getTimeNowResponse, error)

func (*AlarmClock) GetTimeServer

func (s *AlarmClock) GetTimeServer() (currentTimeServer string, err error)

func (*AlarmClock) GetTimeZone

func (s *AlarmClock) GetTimeZone() (getTimeZoneResponse, error)

func (*AlarmClock) GetTimeZoneAndRule

func (s *AlarmClock) GetTimeZoneAndRule() (getTimeZoneAndRuleResponse, error)

func (*AlarmClock) GetTimeZoneRule

func (s *AlarmClock) GetTimeZoneRule(index int) (timeZone string, err error)

func (*AlarmClock) ListAlarms

func (s *AlarmClock) ListAlarms() (listAlarmsResponse, error)

func (*AlarmClock) SetDailyIndexRefreshTime

func (s *AlarmClock) SetDailyIndexRefreshTime(desiredDailyIndexRefreshTime string) error

func (*AlarmClock) SetFormat

func (s *AlarmClock) SetFormat(desiredTimeFormat string, desiredDateFormat string) error

func (*AlarmClock) SetTimeNow

func (s *AlarmClock) SetTimeNow(timeZoneForDesiredTime string, desiredTime string) error

func (*AlarmClock) SetTimeServer

func (s *AlarmClock) SetTimeServer(desiredTimeServer string) error

func (*AlarmClock) SetTimeZone

func (s *AlarmClock) SetTimeZone(index int, autoAdjustDst bool) error

func (*AlarmClock) UpdateAlarm

func (s *AlarmClock) UpdateAlarm(id int, startLocalTime time.Time, seconds int, recurrence string, enabled bool, roomUUID string, programURI string, programMetaData string, playMode string, volume int, includeLinkedZones bool) error

Prefer method `zp.UpdateAlarm`.

`recurrence` should be one of `Gonos.RecurrenceModes.*`

`playMode` should be one of `Gonos.PlayModes.*`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL