Pebble App Framework: Phone API
    Preparing search index...
    • Fetches a reading for several places from a keyed provider, with the series from Open-Meteo.

      With no key no request goes out and every place gets NO API KEY. A place with bad coordinates gets NO LOCATION and is asked of neither. Every other place costs one provider call and one place in the Open-Meteo batch, a place listed twice included. A place whose provider call fails gets the provider's status, with Open-Meteo's answer for it beside it as openMeteo, since falling back to Open-Meteo is the plugin's choice. A place whose Open-Meteo half fails keeps its current reading, ok with empty series and seriesStatus saying why. A request that throws answers as NET ERROR.

      Type Parameters

      • T

      Parameters

      • provider: PairedProvider<T>

        How the provider is asked and read.

      • places: (WeatherCoords | null | undefined)[]

        Each place's coordinates, in the order the readings come back.

      • key: string

        The wearer's API key for the provider.

      • request: RequestFn

        The function that performs the actual network request.

      • done: (results: ReadingResult[]) => void

        Called once with a reading or a status for each place, in the order asked.

      • OptionalonSend: SendHook

        Hears each request go out: the Open-Meteo batch as openmeteo, and each place's call to the provider under its source, as one call of weight 1.

      Returns void