Pebble App Framework: Phone API
    Preparing search index...
    • Fetches a reading for several places from WeatherAPI.com, with the series, the offset, and the sun times from one batched Open-Meteo request.

      It asks for one day of forecast, the least the forecast endpoint takes, since only the current values are read from it.

      Parameters

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

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

      • key: string

        The wearer's WeatherAPI.com key.

      • 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, so a plugin can stamp it then, as fetchPairedReading says.

      Returns void