Quantcast
Jump to content


Recommended Posts

Posted

2025-01-20-01-banner-v1.jpg

Smartwatches have become a part of our daily lives, combining functionality and style in one compact device. With Samsung's Watch Face Studio (WFS), designers can create unique watch faces that are customized to their requirements. Dynamic weather features, which display real-time updates and forecasts on the watch face, are particularly appealing.

This article covers WFS’s weather features, their uses, and how to create useful weather-themed watch faces. You can create a watch face using weather data as art.

This article introduces the following weather features which enhance watch face design:

  1. Weather forecast
  2. The last time the weather was updated in ICU format
  3. Weather tags

You can follow the examples in this article by downloading the sample project from here.

Forecast for the next few hours and days

Weather information becomes more valuable when presented in a way that is easy to read at a glance. Using weather tags, WFS enables you to easily incorporate forecasts for the coming hours and days.

Hourly forecast

The forecastHours(index, text) tag can be used to show hourly weather updates. One of the two pieces of information that the forecastHours tag collects is an index that takes a number starting at 1 for the following hour. Thus, by setting the index, you can set the data for the next few hours.

The text part uses five distinct weather tags:
• Temperature
• Time of day
• Weather condition
• Weather condition name
• Weather data available

Use the forecastHours tag with the weather condition, time, and temperature to offer users a short-term forecast of what to expect throughout the day. Tiny weather icons (like Sunny: ☀️, Rainy: 🌧️, and Snow: ❄️) can be used as bitmaps portraying the current weather conditions and the corresponding temperatures.

Forecast hours for icon

You can set the weather icon for the upcoming hour by following these steps:

  1. Create a text component.
  2. Use this forecast tag on the text: forecastHours (1, "COND")
  3. Choose the Bitmap Font to use icons for the forecastHours ().
  4. Select images for the appropriate weather conditions.

5. Set the font size to 40.
undefined
undefined
undefined
undefined

Figure 1: Setting the font size

undefined

  1. Include 10-15 on the CUSTOM tab since weather condition has values up to 15.
undefined
undefined
undefined
undefined

Figure 2: Bitmap font setting

undefined

Forecast hours for temperature

You can now adjust the temperature by using the forecastHours() tag. You may display the temperature (positive or negative) for the upcoming hour and the temperature unit in degrees by following these steps:

  1. Consider a text element.
  2. To display the temperature in degrees, use forecastHours(1,"TEM")°
  3. Choose the temperature unit (([WTHR_TEM_UNIT] == 1)? "C": "F")
    The full tag expression looks like this:
    (forecastHours(1, "TEM"))°(([WTHR_TEM_UNIT] == 1)? "C": "F"))
    To display the weather forecast for the next hour, just change the index value to 2.

Availability of weather data

For every forecast tag, you need to check if the data is available with this tag: (forecastHours(X, "IS_AVAIL")).
In the sample project, for every forecast group, the corresponding weather tag is used for checking its availability. The following tag expression is used for the next hour’s forecast:
((forecastHours(1, "IS_AVAIL")) - 1) * 100

undefined
undefined
undefined
undefined

Figure 3: Tag expression for checking availability of weather data

undefined

Daily forecast

You can incorporate daily weather forecasts into watch face designs using the forecastDays() tag. Customized indices (for example, 1 for tomorrow) make it simple to portray multi-day weather trends. WFS lets you show the weather conditions for a certain day, including high and low temperatures using forecastDays(index, "TEM_HIGH") for highest temperature and forecastDays(index, "TEM_LOW") for lowest temperature.

The later parts of the sample project show the weather predictions for tomorrow.

WFS uses the forecastDays(1,"TEM_HIGH") tag to show the temperature for the following day’s high and forecastDays(1,"TEM_LOW") tag for the next day’s low.

For the high and low temperatures tomorrow, use the following tag expression:
(forecastDays(1,"TEM_HIGH"))° ~ (forecastDays(1,"TEM_LOW"))°(([WTHR_TEM_UNIT] == 1)? "C": "F")

You can apply a similar tag expression for the forecast for the days after tomorrow by changing the index value.

Last weather update (ICU format)

This watch face example incorporates the most current update time to reassure customers that the weather information is recent. Weather data should be updated often to remain accurate.

WFS offers the most recent weather update in the ICU format. To add the most recent weather update time in ICU format, follow these steps:

  1. From the component list, get the ICU date and time.
undefined
undefined
undefined
undefined

Figure 4: ICU date and time

undefined
  1. To customize the ICU date and time, select the PROPERTIES tab.
  2. Choose the ICU Format as HH: MM from the DATE AND TIME section.
  3. Set the Local Calendar to Gregorian and the Time Zone to Sync with Device.
  4. Select Last Updated Time (Weather) as the Time Source.
undefined
undefined
undefined
undefined

Figure 5: Date and Time

undefined

Other weather tags

Current weather condition for icon

You can use the bitmap font for the current weather condition since it is already prepared for forecastHours(). Use the [WTHR_COND] tag, which provides the current weather, and choose bitmap as the font setting.

Current temperature

Use the [WTHR_TEM] tag to show the current temperature. The current temperature is obtained with the following tag expression, which also sets the temperature unit:
[WTHR_TEM]°(([WTHR_TEM_UNIT] == 1)? "C": "F")

Today’s highest and lowest temperatures

You can display the highest and lowest temperatures of the day by using the tags [WTHR_DAY_TEM_HIGH]) for the highest temperature and [WTHR_DAY_TEM_LOW] for the lowest temperature. The highest and lowest temperatures for today are listed below, based on the forecastDays() tag expression for the highest and lowest temperatures for the following day:
([WTHR_DAY_TEM_HIGH])° ~ ([WTHR_DAY_TEM_LOW])°(([WTHR_TEM_UNIT] == 1)? "C": "F")

Summary

Smartwatches offering weather forecasts are useful and engaging. With WFS, designers can use advanced tags like forecastDays(), forecastHours(), and last update time to deliver real-time weather updates, daily forecasts, and information such as high and low temperatures. Because they provide information at a glance, smartwatch faces are practical and attractive.

If you have questions or need help with the information presented in this article, you can share your queries on the Samsung Developers Forum. You can also contact us directly for more specialized support through the Samsung Developer Support Portal.

View the full blog at its source



  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Similar Topics

    • By Samsung Newsroom
      Samsung Electronics today announced a new partnership with FlexIt, a health and wellness solution that makes exercise more convenient and accessible. Starting this month,1 FlexIt will bring personal trainer-based fitness content to Samsung Smart TV users through the new lifestyle hub Samsung Daily+2 on Samsung Tizen OS.
       

       
      “Wellness should be central to our routines, so building healthy habits through Samsung Daily+ makes it convenient to incorporate health and wellness into all different aspects of daily life,” said Demian Hyun, Vice President and Head of the Experience Planning Group of Visual Display Business at Samsung Electronics. “This new partnership underscores Samsung’s commitment as the leader in the global display industry to promoting thoughtful, interconnected health experiences aimed at bettering the lives of consumers.”
       

       
      On the FlexIt app’s online portal, users can find, book and pay for exclusive one-on-one virtual fitness sessions directly on their TVs. With a camera connected — whether it be via a supported webcam3 or a smartphone — virtual health professionals4 provide real-time feedback, adjust workouts and offer form modifications to foster a supportive, safe and effective workout environment.
       

       
      The FlexIt app helps users approach their health in a more holistic way; in addition to workout content, FlexIt offers nutrition training, low-impact wellness activities like meditation and yoga, and physical and occupational therapy. By working virtually with a trainer who understands their personal fitness journey and wellness goals, users craft an attainable routine that suits their needs and lifestyle, all from the comfort of their home or any other location with a connected device.
       

       
      By housing services such as FlexIt, Samsung Daily+ is paving the way for the future of virtual health and wellness experiences through its convenience and accessibility to build productive and convenient daily routines. Samsung Daily+ serves as a new lifestyle hub for Smart TV users, allowing them to conveniently enjoy a wide range of premium lifestyle services and features — such as home fitness, telehealth services, video calls and more — using one single interface.
       
      “Through the innovative FlexIt app for Samsung, we’re furthering our commitment to making fitness more accessible than ever. By delivering personalized, one-on-one immersive training experiences directly to your living room, we’re extending our reach to a broader audience, empowering individuals to achieve their wellness goals with ease and convenience,” said Austin Cohen, FlexIt’s Founder and CEO.
       
      During CES® 2024, Samsung gave consumers an early look at Samsung Daily+ and the FlexIt app on its 2024 Neo QLED 8K. Richard Friedman, FlexIt’s Senior Vice President of Technology, joined the Samsung team in Las Vegas to showcase how the FlexIt app integrates with Samsung TVs. Samsung Daily+ is also a 2024 CES Innovation Awards Honoree, having been recognized as a unique smart home service with an open ecosystem that integrates third-party services.
       
      For more information on health offerings on Samsung’s TV lineup, visit Samsung.com.
       
       
      About FlexIt
      FlexIt has revolutionized the fitness and wellness industry through its innovative, cutting-edge technology, offering a comprehensive approach to holistic well-being for consumers and enterprises. Its core solution centers around live, one-on-one, two-way personal health and wellness sessions with fitness and wellness experts, accessible through both web and app platforms. FlexIt’s platform goes beyond just fitness training, embracing holistic well-being through nutrition coaching (led by registered nutritionists with a focus on weight loss), low-impact wellness activities (yoga, meditation, stretching and dance), health coaching, and physical and occupational therapy (covering preventive, pre/post-natal, senior and recovery), offering 28 health modalities on the platform.
       
      Our comprehensive and innovative approach has earned us recognition within the industry. FlexIt has been selected for the Best Budget-Friendly Coaching App of 2023 by Women’s Health, the Best Personal Trainer Apps of 2023 by Forbes, and the Best Fitness Apps in 2023 by Oprah Daily and has been awarded by Men’s Health, Inc. 5000, US News & World Report, among many others.
       
      For media inquiries, please contact:
      [email protected]
       
       
      1 Availability varies by model and region. The FlexIt app will be available through Samsung Daily+ on all 2024 TV models: Neo QLED 8K, 4K, OLED, UHD (above DU7000) and The Frame. OS upgrade is scheduled to be provided for select 2023 TV models during the second half of 2024. 2022 and 2021 TV model users can download the FlexIt app through the app store.
      2 Starting this year, Samsung Daily+, a hub for lifestyle experiences, provides a wide range of services and features — from personal training and telehealth to video calls and remote PC solutions — in one single interface. With Samsung TVs at the center of the home, users can enjoy the benefits of the latest innovations and seamless connectivity between devices in their day-to-day lives.
      3 Logitech Webcam (C930e, C922 PRO STREAM WEBCAM, C925E, C920s Pro HD Webcam, HD Pro Webcam C920, C920-C, C930c, HD Pro Webcam C920, StreamCam), Samsung (SC-FD100B)
      4 English- and Spanish-speaking FlexIt health professionals and trainers
      View the full article
    • By Samsung Newsroom
      View the full blog at its source
    • By Samsung Newsroom
      View the full blog at its source
    • By Samsung Newsroom
      In Part 1 of this intro to Apache Cordova series, we were able to see how front-end developers could use standard web technologies to create cross-platform mobile applications, and the prerequisites to install Cordova in your dev environment.
      In this second part we are focused on creating your first application with Cordova, and how to publish your app in the Samsung Galaxy Store.
      Creating the App
      After installing Cordova, you should go to the file directory where you maintain your source code. There, you can create a Cordova project. This would be a simple Hello World project, but would give you an idea of the file structure of a Cordova project, and the different parts that you can modify to obtain the functionality you are looking for.
      In your terminal or command interface type:
      cd pathToYourProjects After that:
      cordova create CordovaProject com.example.hello CordovaApp

      CordovaProject is the directory name where the app is created. com.example.hello is the default reverse domain value (package name). You should use your own domain name if possible. CordovaApp is the title of your app. This creates the required directory structure for your Cordova app. By default, the Cordova create script generates a skeletal web-based application whose home page is the project's www/index.html file.
      Adding Platform
      Since Cordova works for multiple platforms, we have to add Android to the build settings. You need to open your project directory in the command prompt. In our example, it is the Cordova Project. You should only choose platforms that you need. To be able to use the specified platform, you need to have installed the specific platform SDK.
      All subsequent commands need to be run within the project's directory, or any subdirectories:
      cd CordovaProject

      Add the Android platform, since this is the target of app, and ensure they get saved to config.xml and package.json:
      cordova platform add android You can also remove a platform from your project by using:
      cordova platform rm android To make certain you have added all the platforms you are targeting you can type:
      cordova platform ls

      This should list all the added platforms for your current project.
      Checking the Install pre-requisites for building
      To build and run apps, you need to install SDKs for each platform you wish to target. Alternatively, if you are using browser for development you can use browser platform which does not require any platform SDKs.
      To check if you satisfy requirements for building the platform that you just added:
      cordova requirements

      This command should show you a result similar to this one:
      Requirements check results for android: Java JDK: installed . Android SDK: installed Android target: installed android-19,android-21,android-22,android-23,Google Inc.:Google APIs:19,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:23 Gradle: installed Building the App
      This step builds the app for a specified platform so we can run it on mobile device or emulator.
      cordova build

      If you have added more than one platform to your project, you can limit the scope of each build to specific platforms. For our example we should add 'android':
      cordova build android Build for android platform in release mode and use the specified build configuration:
      cordova build android --release --buildConfig=..\myBuildConfig.json Testing the App
      Using Cordova’s emulator Now we can run our app. If you are using the default emulator you should use:
      cordova emulate android



      If you want to use the external emulator or real device you should use
      cordova run android Publishing your APK
      To check in detail how to take your binary files and publish them in the Samsung Galaxy Store, check this in-depth video:
      We love to chat with mobile game developers and help you as you develop, publish, and market your own games. Galaxy Store is a great place to publish your game and get discovered. If you are a mobile app developer and want to request a quick chat with us, just fill out this form.
      View the full blog at its source
    • By Samsung Newsroom
      This is the third post in the series covering Samsung’s participation in the MIT’s Medicine Grand Hack. You can find the first post here, and the second post here.
      The Promentia team was the Grand Prize Winner in the Mental Health and Professional Burnout track. Promentia’s project was an Alzheimer’s Disease prevention app, also named Promentia, with the tagline “Stay You.”
      Promentia accepting their award
      The team’s main point is that people do not realize that Alzheimer’s Disease is a highly delayable disease. More and more people are finding out that they are at higher risk of Alzheimer’s Disease as the popularity of at home genome services continues to rise.

      Promentia demoing their app
      They created a mobile prototype deployed on a Samsung Galaxy Note 9, and showed how they could use Samsung’s technology to develop a way to digitally enable ‪Alzheimer’s disease prevention.‬‬
      By monitoring the results from blood tests for six specific biomarkers scientifically proven to correlate to the onset of Alzheimer’s Disease (hsCRP, Homocysteine, Fasting insulin, Hemoglobin A1C, Fasting glucose, and Vitamin D), sleep, and exercise, the app tailors personalized feedback.
      Personalized feedback provided by the app
      The full team
      This is the first product of its kind. Promentia’s goal was to make Alzheimer’s Disease prevention tactics more easily accessible to the general public, so you can Stay You.
      View the full blog at its source





×
×
  • Create New...