Pebble.Cmd
Core watch commands.
Use this module for generic scheduling. Hardware controls live in `Pebble.Hardware`, watch metadata requests live in `Pebble.WatchInfo`, and key-value persistence helpers live in `Pebble.Storage`.
type Msg
= WakeUp
scheduleWakeUp : Cmd Msg
scheduleWakeUp =
timerAfter 1000
Scheduling
Time
Type Aliases
CurrentDateTime
type alias CurrentDateTime = { year : Int
, month : Int
, day : Int
, dayOfWeek : Weekday
, hour : Int
, minute : Int
, second : Int
, utcOffsetMinutes : Int
}Structured local time/date information from the watch runtime.
Values
none
none : Cmd msgA command that does nothing.
timerAfter
timerAfter : Int -> Cmd msgRun a command after `ms` milliseconds.
getCurrentDateTime
getCurrentDateTime : (CurrentDateTime -> msg) -> Cmd msgRequest the current local date/time with UTC offset in minutes.