DISTRIBUTION OF TIZEN-BASED WATCH APPS HAS BEEN DISCONTINUED
Get a Weather API Key
OpenWeatherMap’s free APIs are integrated with Galaxy Watch Studio (GWS) and allow you to display weather data from around the world. If you want to use weather APIs from another source in your watch design, you cannot create your design using GWS.
To use the weather components provided by GWS to display weather conditions, you must create an account with OpenWeather and then copy your API key to GWS. If you want to use additional OpenWeatherMap APIs not integrated with GWS (for example, APIs provided with a paid plan from OpenWeather), you must use Tizen Studio.
If you’re thinking about purchasing a paid plan from OpenWeather to allow for more API calls per minute/month, verify with OpenWeather that the paid plan also supports the free OpenWeatherMap APIs. GWS only supports integration with the free OpenWeatherMap APIs and these APIs use the api.openweathermap.org endpoint. Currently, OpenWeather’s paid plans support these APIs. However, before purchasing a plan, you should make sure that OpenWeather has not changed their plans and policies and that the paid plan you want to purchase supports the free OpenWeatherMap APIs that use the api.openweathermap.org endpoint.
Here’s how to get access to weather information:
-
Sign up for an account on https://home.openweathermap.org. You must read and comply with OpenWeather’s terms of service.
-
Once you get confirmation that your account is active, log in.
-
After you log in to your OpenWeather account, click the API keys tab and copy your API key.
-
From Galaxy Watch Studio, click Edit > Preferences to open the Preferences window.
-
Click on APIs and paste in your API key.
Tip :Click on the icon for more information about each of the fields to determine how you want to configure the Auto refresh and Current location settings.
The Current location setting is only used by Galaxy Watch Studio. When the City data property of a weather component is set to Current City, during development, the location used for weather information is based on this Current location (in the Preview and Run windows). When your watch face is installed on a watch, the location used for weather information is the watch’s physical location.
-
Click Activate and then OK.
Note :The .gwd project file does not contain the OpenWeatherMap API key. If you share your project file, weather data does not display correctly unless the person with whom you shared the file has also configured an OpenWeatherMap API key.