Aller au contenu principal

Withings

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Description

L'écosystème santé Withings d'appareils connectés et d'applications est conçu pour améliorer votre bien-être quotidien et votre santé à long terme.

Accéder à vos données Withings

Pour autoriser Oh My Posh à accéder à vos données Withings, vous devez donner l'accès à la lecture de vos activités publiques. Cette opération génère un jeton d'accès (access token) et un jeton de rafraîchissement (refresh token). Collez ces jetons dans la configuration de votre segment Withings.

Cliquez sur le lien suivant pour vous connecter à Withings :

Withings logo - Brandlogos.net

Exemple de configuration

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

Options

NameTypeDefaultDescription
access_tokentemplatetoken from Withings login, see login link in section above.
refresh_tokentemplatetoken from Withings login, see login link in section above.
expires_inint0the default timeout of the token from the Withings login
http_timeoutint20how long do you want to wait before you want to see your prompt more than your Withings data?

Modèle (info)

modèle par défaut
{{ if gt .Weight 0.0 }} {{ round .Weight 2 }}kg {{ end }}

Propriétés

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

Maintenant, sortez et soyez actifs !