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

    What the weather mapping hands its driver.

    interface WeatherMapping {
        coordsText?: string;
        texts: PluginSourceTexts;
        appFahrenheit(
            envelope: SourceEnvelope | null | undefined,
        ): boolean | undefined;
        appWindUnit(
            envelope: SourceEnvelope | null | undefined,
        ): number | undefined;
        errorStatus(code: string | null | undefined): string | undefined;
        fromUpdate(
            envelope: SourceEnvelope | null | undefined,
            options: WeatherMappingOptions,
        ): WeatherResult;
        properties(fields: string[], wantForecast: boolean): string[];
        units(
            envelope: SourceEnvelope | null | undefined,
            app: AppUnits,
        ): ReadingUnits;
    }
    Index
    coordsText?: string

    The line the source note gains on a face that shows coordinates, which only some plugins serve.

    The page hook's wording.

    • The status the watch shows for a subscription error code, or undefined for a code with none.

      Parameters

      • code: string | null | undefined

      Returns string | undefined

    • The properties the subscription asks for, from the fields the face shows.

      Parameters

      • fields: string[]
      • wantForecast: boolean

      Returns string[]