Skip to main content

Withings

Whatโ€‹

The Withings health ecosystem of connected devices & apps is designed to improve daily wellbeing and long-term health.

Accessing your Withings dataโ€‹

To allow Oh My Posh access your Withings data you need to grant access to read your public activities. This will give you an access and a refresh token. Paste the tokens into your Withings segment configuration.

Click the following link to connect with Withings:

Sample Configurationโ€‹

{
"type": "withings",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#ffffff",
"background": "#000000",
"template": "{{ if gt .Weight 0.0 }} {{ round .Weight 2 }}kg {{ end }}",
"properties": {
"access_token": "11111111111111111",
"refresh_token": "1111111111111111",
"http_timeout": 1500
}
}

Propertiesโ€‹

NameTypeDefaultDescription
access_tokenstringtoken from Withings login, see login link in section above.
refresh_tokenstringtoken from Withings login, see login link in section above.
expires_inint0the default timeout of the token from the Withings login
http_timeoutint500how long do you want to wait before you want to see your prompt more than your Withings data?
cache_timeoutint5in minutes - How long do you want your Withings data cached?

Template (info)โ€‹

default template
{{ if gt .Weight 0.0 }} {{ round .Weight 2 }}kg {{ end }}

Propertiesโ€‹

The properties below are available for use in your template

NameTypeDescription
.Weightfloatyour last measured weight
.SleepHoursstringyour last measured sleep SleepHours
.Stepsintyour last measured steps

Now, go out and be active!