Elm Pebble

Pebble.System

System-state subscriptions sourced from Pebble event services.

Values

batteryLevel

batteryLevel : (Int -> msg) -> Cmd msg

Request the current battery level as a percentage from 0 to 100.

connectionStatus

connectionStatus : (Bool -> msg) -> Cmd msg

Request whether the watch is connected to the phone.

onBatteryChange

onBatteryChange : (Int -> msg) -> Sub msg

Receive the current battery percentage when battery state changes.

onConnectionChange

onConnectionChange : (Bool -> msg) -> Sub msg

Receive whether the watch is connected to the phone when connection state changes.