Pebble App Framework: Phone API
    Preparing search index...

    Function unitsFrom

    • The units to serve in, from a preferences/units update and the plugin's own choices.

      Each unit is the plugin's choice where it made one, and the Pebble app's where it is app, left out, or not one of the Pebble app's own units. A unit the Pebble app does not give, or gives in a form not known here, is the default, °C, km/h, and hPa.

      Parameters

      • envelope: SourceEnvelope | null | undefined

        One update from preferences/units, which may be missing or carry anything.

      • overrides: UnitOverrides = {}

        The plugin's own choice for each unit.

      Returns WeatherUnits

      The units.