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 :
Exemple de configuration
- json
- yaml
- toml
{
"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
}
}
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
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
| Name | Type | Default | Description |
|---|---|---|---|
access_token | template | token from Withings login, see login link in section above. | |
refresh_token | template | token from Withings login, see login link in section above. | |
expires_in | int | 0 | the default timeout of the token from the Withings login |
http_timeout | int | 20 | how 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
| Name | Type | Description |
|---|---|---|
.Weight | float | your last measured weight |
.SleepHours | string | your last measured sleep SleepHours |
.Steps | int | your last measured steps |
Maintenant, sortez et soyez actifs !