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

    Interface WeatherFeature

    The weather feature, plus the form of it that also sends coordinates.

    interface WeatherFeature {
        messageKeys?: readonly string[];
        withCoords(formatCoords: CoordsFormatter): Feature;
        (context: FeatureContext): FeatureHooks;
    }

    Hierarchy (View Summary)

    Index
    messageKeys?: readonly string[]

    The message keys the feature cannot run without, such as the four weather keys. paf build reads them from the compiled phone code and adds each one the face does not list to its messageKeys, after the face's own, so a face that passes the feature never lists them. Left out, it needs none.

    • The weather feature for a face that shows coordinates.

      On a face built with PLUGIN_WEATHER this form is offered the plugin like the plain one. Its formatter gets the latitude and longitude a weather plugin serves, and a reading with no coordinates from a plugin that serves none, so the readout shows its no fix text.

      Parameters

      • formatCoords: CoordsFormatter

        Builds the face's coordinate keys from each weather result.

      Returns Feature

      A feature to pass to startPebbleApp in place of the plain one.