Pebble App Framework: Phone API
    Preparing search index...
    • Fetches a reading for several places in one request, each on its own clock.

      Open-Meteo answers one place with an object and several with a list in the order asked. It refuses the whole request when any place's coordinates are out of range, so a place it would refuse gets NO LOCATION and is left out of the request, and the others still get their readings. A 429 gives every place asked RATE LIMIT, whatever the body says. Any other failed request or error answer gives every place asked the same status, and a request that throws gives NET ERROR.

      Parameters

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

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

      • 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 the batch go out as openmeteo, its places as its calls, at READING_WEIGHT each.

      Returns void