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

    Function weatherFromUpdate

    • Turns one weather plugin update into the reading the watch takes.

      It reads the first place in the update. An update with no places means the Pebble app has no weather location or no weather yet, and gives No Location. A first place with no temperature the face can use gives No Wx Data, and the log names the plugin and the properties it sent. Everything else that is missing is left off the result, so the watch keeps its dash.

      Parameters

      • envelope: SourceEnvelope | null | undefined

        The update, which may be missing or carry anything.

      • options: WeatherMappingOptions

        The unit to send in, the moment to treat as now, the fields it shows, and whether it shows the strips.

      Returns WeatherResult

      The weather result, or a status result when there is nothing to show.