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

    How one keyed provider is asked and read.

    interface PairedProvider<T> {
        parse: (
            err: string | null,
            json: T | null,
        ) => ReadingStatus | ProviderCurrent;
        source: string;
        urlFor: (coords: WeatherCoords, key: string) => string;
    }

    Type Parameters

    • T
    Index
    parse: (err: string | null, json: T | null) => ReadingStatus | ProviderCurrent

    Reads the provider's answer, or its error, into the current values or a status.

    source: string

    The provider's id, which the reading carries as its source.

    urlFor: (coords: WeatherCoords, key: string) => string

    The provider's URL for one place.