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

    Function weatherProperties

    • The properties the weather subscription asks for.

      The phone takes the list as a hint and the built-in plugin only uses it to skip series nobody asked for, so asking for a little more than the face shows is cheap and asking for less loses data. The name, temperature, sky, and sun are always asked for, since the night check reads the sun series even for a face that shows no sun times. So are the WMO codes and the hourly day flag, which a plugin that serves them uses for a finer sky and a night check with no sun.

      Parameters

      • fields: string[]

        The reading fields the face shows, named as on WeatherResult.

      • wantForecast: boolean

        Whether the face shows the forecast strips.

      Returns string[]

      The property names, each once.