06-11-2022 21:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2022 21:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi everyone,
I am currently working on ver1.5/2.0 version of my first watchface for Versa and Sense. One of the features I want to introduce is for the watchface to detect the display brightness in order to adjust the background accordingly. While reviewing the Display API page, there is a property named Display Brightness Value which is supposed to return./provide a string, however it does not appear to work. Any thoughts on what would be the right approach to acquire such value?
Below is a simple JS snippet I attempted:
import {display} from "display";
console.log(display.DisplayBrightnessValue);

06-11-2022 22:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-11-2022 22:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I see what you mean. If forced to guess, I'd say that DisplayBrightnessValue is an enum type that specifies the values that can be used for the brightnessOverride property.
Gondwana Software

06-12-2022 20:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-12-2022 20:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Not sure either... documentation is a bit vague. @JonFitbit any thoughts on this? https://dev.fitbit.com/build/reference/device-api/display/

