Getting Weather from Core Devices App?

Does the Core Devices App support providing weather at the user’s location to a watchface yet? If so, I’d there documentation explaining how to use it? If not, is it planned or is there an issue tracking the feature?

1 Like

You don’t need the App to do it. There is a sample showing how to do it:GitHub - pebble-examples/pebble-js-tutorial: Sample project from the Getting Started Pebble.js watchapp tutorials

And pebblekit.js already supports geolocation: PebbleKit JS // Pebble Developers

1 Like

My watch faces already use OpenWeatherMap directly. However I’d like to make use for the weather provided by the Pebble App if/when its available.

1 Like

That’s something that never was supported in any Pebble app – the legacy app could populate the built-in Weather app, but there never was any API for watchfaces/apps to get weather data.

Would be neat to have it though! Maybe in a future version of the SDK, they can add an API for that.

1 Like

Yes, it would be convienient if I could set the weatherdata provider in the mobile app, which then the watch faces and apps use this weather data for all watch faces and api.

I really don’t like toggeling things such as weather data provider, imperial/metric, in/mm, km/h or m/s for each and every watch face you try out.

New apps should support this.

2 Likes

It is supposed to be on the roadmap according to Eric’s blog post: https://ericmigi.com/blog/how-to-build-a-smartwatch-software-setting-expectations-and-roadmap#pebble-mobile-app

“Next up, we’ll be working on the following SDK related tasks:

Providing weather data as a system API, so each watchface does not have to include it’s own weather-retrieval code”

2 Likes

That’s what I was thinking of. Thanks for linking to the source.

1 Like

For watch app and/or watch face developers, there’s a function to get the units settings, locale_get_measurement_system(). At least this returns the settings in the watch for either imperial or metric. Then the code can handle the display accordingly. IMO, it makes sense to ask the watch what the owner prefers via the watch settings.

1 Like