Bonjour,
J'ai donc bien reçu ma balance Nokia Body Cardio.
Effectivement, le script eedomus n'intègre que 3 relevés, ce qui est dommage par rapport à toutes les possibilités et remontées de la balance.
J'ai modifié le script PHP en remplaçant la ligne 92 :
$measure_type = array(1 => 'weight', 6 => 'fat_percent', 11 => 'heart_rate');
avec cette ligne :
$measure_type = array(1 => 'weight', 4 => 'height', 5 => 'fat_free_mass', 6 => 'fat_percent', 8 => 'fat_mass', 9 => 'DBP', 10 => 'SBP', 11 => 'heart_rate', 54 => 'SP02', 91 => 'pulse_wave_velocity');
Il faut que je teste avec plus d'infos, car visiblement la balance peut en remonter d'autres, mais je suis en aveugle sur comment les écrire pour respecter le format attendu.
Je suis en train de chercher un peu partout sur Internet.
J'ai trouvé ça, mais il faut déchiffrer et tester voir si c'est compatible, au moins pour certaines valeurs, avec la balance...
%measure_types = ( 1 => { name => "Weight (kg)", reading => "weight", },
4 => { name => "Height (meter)", reading => "height", },
5 => { name => "Lean Mass (kg)", reading => "fatFreeMass", },
6 => { name => "Fat Mass (%)", reading => "fatRatio", },
7 => { name => "Lean Mass (%)", reading => "fatFreeRatio", },
8 => { name => "Fat Mass (kg)", reading => "fatMassWeight", },
9 => { name => "Diastolic Blood Pressure (mmHg)", reading => "diastolicBloodPressure", },
10 => { name => "Systolic Blood Pressure (mmHg)", reading => "systolicBloodPressure", },
11 => { name => "Heart Rate (bpm)", reading => "heartPulse", },
12 => { name => "Temperature (°C)", reading => "temperature", },
13 => { name => "Humidity (%)", reading => "humidity", },
14 => { name => "unknown 14", reading => "unknown14", }, #device? event home - peak sound level?
15 => { name => "Noise (dB)", reading => "noise", },
18 => { name => "Weight Objective Speed", reading => "weightObjectiveSpeed", },
19 => { name => "Breastfeeding (s)", reading => "breastfeeding", }, #baby
20 => { name => "Bottle (ml)", reading => "bottle", }, #baby
22 => { name => "BMI", reading => "bmi", }, #user? goals
35 => { name => "CO2 (ppm)", reading => "co2", },
36 => { name => "Steps", reading => "steps", dailyreading => "dailySteps", }, #aggregate
37 => { name => "Elevation (m)", reading => "elevation", dailyreading => "dailyElevation", }, #aggregate
38 => { name => "Active Calories (kcal)", reading => "calories", dailyreading => "dailyCalories", }, #aggregate
39 => { name => "Intensity", reading => "intensity", }, #intraday only
40 => { name => "Distance (m)", reading => "distance", dailyreading => "dailyDistance", }, #aggregate #measure
41 => { name => "Descent (m)", reading => "descent", dailyreading => "dailyDescent", }, #descent #aggregate #measure ??sleepreading!
42 => { name => "Activity Type", reading => "activityType", }, #intraday only 1:walk 2:run
43 => { name => "Duration (s)", reading => "duration", }, #intraday only
44 => { name => "Sleep State", reading => "sleepstate", }, #intraday #aura mat
47 => { name => "MyFitnessPal Calories (kcal)", reading => "caloriesMFP", },
48 => { name => "Active Calories (kcal)", reading => "caloriesActive", dailyreading => "dailyCaloriesActive", }, #day summary
49 => { name => "Idle Calories (kcal)", reading => "caloriesPassive", dailyreading => "dailyCaloriesPassive", }, #aggregate
50 => { name => "unknown 50", reading => "unknown50", dailyreading => "dailyUnknown50", }, #day summary pulse 60k-80k #aggregate
51 => { name => "Light Activity (s)", reading => "durationLight", dailyreading => "dailyDurationLight", }, #aggregate
52 => { name => "Moderate Activity (s)", reading => "durationModerate", dailyreading => "dailyDurationModerate", }, #aggregate
53 => { name => "Intense Activity (s)", reading => "durationIntense", dailyreading => "dailyDurationIntense", }, #aggregate
54 => { name => "SpO2 (%)", reading => "spo2", },
56 => { name => "Ambient light (lux)", reading => "light", }, # aura device
57 => { name => "Respiratory rate", reading => "breathing", }, # aura mat #measure vasistas
58 => { name => "Air Quality (ppm)", reading => "voc", }, # Home Air Quality
59 => { name => "unknown 59", reading => "unknown59", }, #
60 => { name => "unknown 60", reading => "unknown60", }, # aura mat #measure vasistas 20-200 peak 800
61 => { name => "unknown 61", reading => "unknown61", }, # aura mat #measure vasistas 10-60 peak 600
62 => { name => "unknown 62", reading => "unknown62", }, # aura mat #measure vasistas 20-100
63 => { name => "unknown 63", reading => "unknown63", }, # aura mat #measure vasistas 0-100
64 => { name => "unknown 64", reading => "unknown64", }, # aura mat #measure vasistas 800-1300
65 => { name => "unknown 65", reading => "unknown65", }, # aura mat #measure vasistas 3000-4500 peak 5000
66 => { name => "unknown 66", reading => "unknown66", }, # aura mat #measure vasistas 4000-7000
67 => { name => "unknown 67", reading => "unknown67", }, # aura mat #measure vasistas 0-500 peak 1500
68 => { name => "unknown 68", reading => "unknown68", }, # aura mat #measure vasistas 0-1500
69 => { name => "unknown 69", reading => "unknown69", }, # aura mat #measure vasistas 0-6000 peak 10000
70 => { name => "unknown 70", reading => "unknown70", }, #?
71 => { name => "Body Temperature (°C)", reading => "bodyTemperature", }, #thermo
73 => { name => "Skin Temperature (°C)", reading => "skinTemperature", }, #thermo
76 => { name => "Muscle Mass (kg)", reading => "muscleMass", }, # cardio scale
77 => { name => "Water Mass (kg)", reading => "waterMass", }, # cardio scale
78 => { name => "unknown 78", reading => "unknown78", }, # cardio scale
79 => { name => "unknown 79", reading => "unknown79", }, # body scale
80 => { name => "unknown 80", reading => "unknown80", }, # body scale
86 => { name => "unknown 86", reading => "unknown86", }, # body scale
87 => { name => "Active Calories (kcal)", reading => "caloriesActive", dailyreading => "dailyCaloriesActive", }, # measures list sleepreading!
88 => { name => "Bone Mass (kg)", reading => "boneMassWeight", },
89 => { name => "unknown 89", reading => "unknown89", },
90 => { name => "unknown 90", reading => "unknown90", }, #pulse
91 => { name => "Pulse Wave Velocity (m/s)", reading => "pulseWave", }, # new weight
93 => { name => "Muscle Mass (%)", reading => "muscleRatio", }, # cardio scale
94 => { name => "Bone Mass (%)", reading => "boneRatio", }, # cardio scale
95 => { name => "Hydration (%)", reading => "hydration", }, # body water
#-10 => { name => "Speed", reading => "speed", },
#-11 => { name => "Pace", reading => "pace", },
#-12 => { name => "Altitude", reading => "altitude", }
Fred.