From f3b1a06d478b8aeafb85bc3df8d6518cef63a203 Mon Sep 17 00:00:00 2001 From: a0z Date: Sun, 4 Aug 2024 21:35:19 +0000 Subject: [PATCH] HRV Status (#3953) Co-authored-by: a0z Co-committed-by: a0z --- .../gadgetbridge/GBApplication.java | 32 +- .../charts/ActivityChartsActivity.java | 7 + .../activities/charts/HRVStatusFragment.java | 367 ++++++++++++++++++ .../AmazfitActiveCoordinator.java | 1 + .../main/res/layout/fragment_hrv_status.xml | 263 +++++++++++++ app/src/main/res/values/arrays.xml | 3 + app/src/main/res/values/colors.xml | 8 + app/src/main/res/values/strings.xml | 16 + app/src/main/res/values/values.xml | 1 + 9 files changed, 697 insertions(+), 1 deletion(-) create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/HRVStatusFragment.java create mode 100644 app/src/main/res/layout/fragment_hrv_status.xml diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java index 956a18fa5..ecf69fd08 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java @@ -122,7 +122,7 @@ public class GBApplication extends Application { private static SharedPreferences sharedPrefs; private static final String PREFS_VERSION = "shared_preferences_version"; //if preferences have to be migrated, increment the following and add the migration logic in migratePrefs below; see http://stackoverflow.com/questions/16397848/how-can-i-migrate-android-preferences-with-a-new-version - private static final int CURRENT_PREFS_VERSION = 30; + private static final int CURRENT_PREFS_VERSION = 31; private static final LimitedQueue mIDSenderLookup = new LimitedQueue<>(16); private static GBPrefs prefs; @@ -1483,6 +1483,36 @@ public class GBApplication extends Application { } } + if (oldVersion < 31) { + // Add the new HRV Status tab to all devices + try (DBHandler db = acquireDB()) { + final DaoSession daoSession = db.getDaoSession(); + final List activeDevices = DBHelper.getActiveDevices(daoSession); + + for (final Device dbDevice : activeDevices) { + final SharedPreferences deviceSharedPrefs = GBApplication.getDeviceSpecificSharedPrefs(dbDevice.getIdentifier()); + + final String chartsTabsValue = deviceSharedPrefs.getString("charts_tabs", null); + if (chartsTabsValue == null) { + continue; + } + + final String newPrefValue; + if (!StringUtils.isBlank(chartsTabsValue)) { + newPrefValue = chartsTabsValue + ",hrvstatus"; + } else { + newPrefValue = "hrvstatus"; + } + + final SharedPreferences.Editor deviceSharedPrefsEdit = deviceSharedPrefs.edit(); + deviceSharedPrefsEdit.putString("charts_tabs", newPrefValue); + deviceSharedPrefsEdit.apply(); + } + } catch (Exception e) { + Log.w(TAG, "error acquiring DB lock"); + } + } + editor.putString(PREFS_VERSION, Integer.toString(CURRENT_PREFS_VERSION)); editor.apply(); } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java index e8285ef4f..c8255ea7c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java @@ -111,6 +111,9 @@ public class ActivityChartsActivity extends AbstractChartsActivity { if(!coordinator.supportsCyclingData()) { tabList.remove("cycling"); } + if (!coordinator.supportsHrvMeasurement()) { + tabList.remove("hrvstatus"); + } return tabList; } @@ -140,6 +143,8 @@ public class ActivityChartsActivity extends AbstractChartsActivity { return new SleepChartFragment(); case "sleepweek": return new WeekSleepChartFragment(); + case "hrvstatus": + return new HRVStatusFragment(); case "stress": return new StressChartFragment(); case "pai": @@ -192,6 +197,8 @@ public class ActivityChartsActivity extends AbstractChartsActivity { return getString(R.string.sleepchart_your_sleep); case "sleepweek": return getSleepTitle(); + case "hrvstatus": + return getString(R.string.pref_header_hrv_status); case "stress": return getString(R.string.menuitem_stress); case "pai": diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/HRVStatusFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/HRVStatusFragment.java new file mode 100644 index 000000000..d021f193c --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/HRVStatusFragment.java @@ -0,0 +1,367 @@ +/* Copyright (C) 2017-2024 Andreas Shimokawa, Daniele Gobbetti, José Rebelo + + This file is part of Gadgetbridge. + + Gadgetbridge is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Gadgetbridge is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . */ +package nodomain.freeyourgadget.gadgetbridge.activities.charts; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; + +import com.github.mikephil.charting.charts.Chart; +import com.github.mikephil.charting.charts.LineChart; +import com.github.mikephil.charting.components.LegendEntry; +import com.github.mikephil.charting.components.XAxis; +import com.github.mikephil.charting.components.YAxis; +import com.github.mikephil.charting.data.Entry; +import com.github.mikephil.charting.data.LineData; +import com.github.mikephil.charting.data.LineDataSet; +import com.github.mikephil.charting.formatter.ValueFormatter; +import com.github.mikephil.charting.interfaces.datasets.ILineDataSet; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.List; +import java.util.Locale; + +import nodomain.freeyourgadget.gadgetbridge.GBApplication; +import nodomain.freeyourgadget.gadgetbridge.R; +import nodomain.freeyourgadget.gadgetbridge.database.DBHandler; +import nodomain.freeyourgadget.gadgetbridge.devices.DeviceCoordinator; +import nodomain.freeyourgadget.gadgetbridge.devices.TimeSampleProvider; +import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; +import nodomain.freeyourgadget.gadgetbridge.model.HrvSummarySample; +import nodomain.freeyourgadget.gadgetbridge.model.HrvValueSample; + + +public class HRVStatusFragment extends AbstractChartFragment { + protected static final Logger LOG = LoggerFactory.getLogger(HRVStatusFragment.class); + protected final int TOTAL_DAYS = 7; + + private LineChart mWeeklyHRVStatusChart; + private TextView mHRVStatusSevenDaysAvg; + private TextView mHRVStatusSevenDaysAvgStatus; // Balanced, Unbalanced, Low + private TextView mHRVStatusLastNight; + private TextView mHRVStatusLastNight5MinHighest; + private TextView mHRVStatusDayAvg; + private TextView mHRVStatusBaseline; + private TextView mDateView; + protected int CHART_TEXT_COLOR; + protected int LEGEND_TEXT_COLOR; + protected int TEXT_COLOR; + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View rootView = inflater.inflate(R.layout.fragment_hrv_status, container, false); + + mWeeklyHRVStatusChart = rootView.findViewById(R.id.hrv_weekly_line_chart); + mHRVStatusLastNight = rootView.findViewById(R.id.hrv_status_last_night); + mHRVStatusSevenDaysAvg = rootView.findViewById(R.id.hrv_status_seven_days_avg); + mHRVStatusSevenDaysAvgStatus = rootView.findViewById(R.id.hrv_status_seven_days_avg_rate); + mHRVStatusLastNight5MinHighest = rootView.findViewById(R.id.hrv_status_last_night_highest_5); + mHRVStatusDayAvg = rootView.findViewById(R.id.hrv_status_day_avg); + mHRVStatusBaseline = rootView.findViewById(R.id.hrv_status_baseline); + mDateView = rootView.findViewById(R.id.hrv_status_date_view); + + setupLineChart(); + refresh(); + + return rootView; + } + + @Override + public String getTitle() { + return getString(R.string.pref_header_hrv_status); + } + + @Override + protected void init() { + TEXT_COLOR = GBApplication.getTextColor(getContext()); + LEGEND_TEXT_COLOR = GBApplication.getTextColor(getContext()); + CHART_TEXT_COLOR = GBApplication.getSecondaryTextColor(getContext()); + } + + @Override + protected HRVStatusWeeklyData refreshInBackground(ChartsHost chartsHost, DBHandler db, GBDevice device) { + Calendar day = Calendar.getInstance(); + Date tsEnd = getChartsHost().getEndDate(); + day.setTime(tsEnd); + String formattedDate = new SimpleDateFormat("E, MMM dd").format(tsEnd); + mDateView.setText(formattedDate); + List weeklyData = getWeeklyData(db, day, device); + return new HRVStatusWeeklyData(weeklyData); + } + + @Override + protected void renderCharts() { + mWeeklyHRVStatusChart.invalidate(); + } + + protected LineDataSet createDataSet(final List values) { + final LineDataSet lineDataSet = new LineDataSet(values, getString(R.string.hrv_status_day_avg)); + lineDataSet.setColor(getResources().getColor(R.color.hrv_status_char_line_color)); + lineDataSet.setDrawCircles(false); + lineDataSet.setLineWidth(2f); + lineDataSet.setFillAlpha(255); + lineDataSet.setCircleRadius(5f); + lineDataSet.setDrawCircles(true); + lineDataSet.setDrawCircleHole(true); + lineDataSet.setCircleColor(getResources().getColor(R.color.hrv_status_char_line_color)); + lineDataSet.setAxisDependency(YAxis.AxisDependency.LEFT); + lineDataSet.setDrawValues(true); + lineDataSet.setValueTextSize(10f); + lineDataSet.setValueTextColor(CHART_TEXT_COLOR); + lineDataSet.setValueFormatter(new ValueFormatter() { + @Override + public String getFormattedValue(float value) { + return String.format(Locale.ROOT, "%d", (int) value); + } + }); + return lineDataSet; + } + + @Override + protected void updateChartsnUIThread(HRVStatusWeeklyData weeklyData) { + mWeeklyHRVStatusChart.setData(null); // workaround for https://github.com/PhilJay/MPAndroidChart/issues/2317 + List lineEntries = new ArrayList<>(); + final List lineDataSets = new ArrayList<>(); + weeklyData.getDaysData().forEach((HRVStatusDayData day) -> { + if (day.status.getNum() > 0) { + lineEntries.add(new Entry(day.i, day.dayAvg)); + } else { + if (!lineEntries.isEmpty()) { + lineDataSets.add(createDataSet(lineEntries)); + lineEntries.clear(); + } + } + }); + if (!lineEntries.isEmpty()) { + lineDataSets.add(createDataSet(lineEntries)); + } + + List legendEntries = new ArrayList<>(1); + LegendEntry activityEntry = new LegendEntry(); + activityEntry.label = getString(R.string.hrv_status_day_avg_legend); + activityEntry.formColor = getResources().getColor(R.color.hrv_status_char_line_color); + legendEntries.add(activityEntry); + mWeeklyHRVStatusChart.getLegend().setTextColor(LEGEND_TEXT_COLOR); + mWeeklyHRVStatusChart.getLegend().setCustom(legendEntries); + + final LineData lineData = new LineData(lineDataSets); + mWeeklyHRVStatusChart.setData(lineData); + + final XAxis x = mWeeklyHRVStatusChart.getXAxis(); + x.setValueFormatter(getHRVStatusChartDayValueFormatter(weeklyData)); + + HRVStatusDayData today = weeklyData.getCurrentDay(); + mHRVStatusSevenDaysAvg.setText(today.weeklyAvg > 0 ? getString(R.string.hrv_status_unit, today.weeklyAvg) : "-"); + mHRVStatusLastNight.setText(today.lastNight > 0 ? getString(R.string.hrv_status_unit, today.lastNight) : "-"); + mHRVStatusLastNight5MinHighest.setText(today.lastNight5MinHigh > 0 ? getString(R.string.hrv_status_unit, today.lastNight5MinHigh) : "-"); + mHRVStatusDayAvg.setText(today.dayAvg > 0 ? getString(R.string.hrv_status_unit, today.dayAvg) : "-"); + mHRVStatusBaseline.setText(today.baseLineBalancedLower > 0 && today.baseLineBalancedUpper > 0 ? getString(R.string.hrv_status_baseline, today.baseLineBalancedLower, today.baseLineBalancedUpper) : "-"); + switch (today.status.getNum()) { + case 0: + mHRVStatusSevenDaysAvgStatus.setText("-"); + mHRVStatusSevenDaysAvgStatus.setTextColor(TEXT_COLOR); + break; + case 1: + mHRVStatusSevenDaysAvgStatus.setText(getString(R.string.hrv_status_poor)); + mHRVStatusSevenDaysAvgStatus.setTextColor(getResources().getColor(R.color.hrv_status_poor)); + break; + case 2: + mHRVStatusSevenDaysAvgStatus.setText(getString(R.string.hrv_status_low)); + mHRVStatusSevenDaysAvgStatus.setTextColor(getResources().getColor(R.color.hrv_status_low)); + break; + case 3: + mHRVStatusSevenDaysAvgStatus.setText(getString(R.string.hrv_status_unbalanced)); + mHRVStatusSevenDaysAvgStatus.setTextColor(getResources().getColor(R.color.hrv_status_unbalanced)); + break; + case 4: + mHRVStatusSevenDaysAvgStatus.setText(getString(R.string.hrv_status_balanced)); + mHRVStatusSevenDaysAvgStatus.setTextColor(getResources().getColor(R.color.hrv_status_balanced)); + break; + } + } + + private List getWeeklyData(DBHandler db, Calendar day, GBDevice device) { + day = (Calendar) day.clone(); // do not modify the caller's argument + day.add(Calendar.DATE, -TOTAL_DAYS); + + List weeklyData = new ArrayList<>(); + for (int counter = 0; counter < TOTAL_DAYS; counter++) { + int startTs = (int) (day.getTimeInMillis() / 1000); + int endTs = startTs + 24 * 60 * 60 - 1; + day.add(Calendar.DATE, 1); + List summarySamples = getSamples(db, device, startTs, endTs); + List valueSamples = getHrvValueSamples(db, device, startTs, endTs); + + int avgHRV = (int) valueSamples.stream().mapToInt(v -> {return v.getValue();}).average().orElse(0); + if (!summarySamples.isEmpty()) { + int finalCounter = counter; + Calendar finalDay = (Calendar) day.clone(); + summarySamples.forEach(sample -> { + weeklyData.add(new HRVStatusDayData( + finalDay, + finalCounter, + sample.getTimestamp(), + avgHRV, sample.getWeeklyAverage(), + sample.getLastNightAverage(), + sample.getLastNight5MinHigh(), + sample.getBaselineBalancedLower(), + sample.getBaselineBalancedUpper(), + sample.getStatus() + )); + }); + } else { + HRVStatusDayData d = new HRVStatusDayData( + (Calendar) day.clone(), + counter, + 0, + avgHRV, + 0, + 0, + 0, + 0, + 0, + HrvSummarySample.Status.NONE + ); + weeklyData.add(d); + } + } + return weeklyData; + } + + private List getSamples(final DBHandler db, final GBDevice device, int tsFrom, int tsTo) { + final DeviceCoordinator coordinator = device.getDeviceCoordinator(); + final TimeSampleProvider sampleProvider = coordinator.getHrvSummarySampleProvider(device, db.getDaoSession()); + return sampleProvider.getAllSamples(tsFrom * 1000L, tsTo * 1000L); + } + + public List getHrvValueSamples(final DBHandler db, final GBDevice device, int tsFrom, int tsTo) { + final DeviceCoordinator coordinator = device.getDeviceCoordinator(); + final TimeSampleProvider sampleProvider = coordinator.getHrvValueSampleProvider(device, db.getDaoSession()); + return sampleProvider.getAllSamples(tsFrom * 1000L, tsTo * 1000L); + } + + private void setupLineChart() { + mWeeklyHRVStatusChart.getDescription().setEnabled(false); + mWeeklyHRVStatusChart.setTouchEnabled(false); + mWeeklyHRVStatusChart.setPinchZoom(false); + mWeeklyHRVStatusChart.setDoubleTapToZoomEnabled(false); + + + final XAxis xAxisBottom = mWeeklyHRVStatusChart.getXAxis(); + xAxisBottom.setPosition(XAxis.XAxisPosition.BOTTOM); + xAxisBottom.setDrawLabels(true); + xAxisBottom.setDrawGridLines(false); + xAxisBottom.setEnabled(true); + xAxisBottom.setDrawLimitLinesBehindData(true); + xAxisBottom.setAxisMaximum(6 + 0.5f); + xAxisBottom.setAxisMinimum(0 - 0.5f); + xAxisBottom.setTextColor(CHART_TEXT_COLOR); + + final YAxis yAxisLeft = mWeeklyHRVStatusChart.getAxisLeft(); + yAxisLeft.setDrawGridLines(true); + yAxisLeft.setAxisMaximum(120); + yAxisLeft.setAxisMinimum(0); + yAxisLeft.setDrawTopYLabelEntry(false); + yAxisLeft.setEnabled(true); + yAxisLeft.setTextColor(CHART_TEXT_COLOR); + + final YAxis yAxisRight = mWeeklyHRVStatusChart.getAxisRight(); + yAxisRight.setEnabled(true); + yAxisRight.setDrawLabels(false); + yAxisRight.setDrawGridLines(false); + yAxisRight.setDrawAxisLine(true); + } + + ValueFormatter getHRVStatusChartDayValueFormatter(HRVStatusWeeklyData weeklyData) { + return new ValueFormatter() { + @Override + public String getFormattedValue(float value) { + return formatHRVStatusChartValue((long) value, weeklyData); + } + }; + } + + protected String formatHRVStatusChartValue(long value, HRVStatusWeeklyData weeklyData) { + HRVStatusDayData day = weeklyData.getDay((int) value); + SimpleDateFormat formatLetterDay = new SimpleDateFormat("EEEEE", Locale.getDefault()); + return formatLetterDay.format(new Date(day.day.getTimeInMillis())); + } + + protected void setupLegend(Chart chart) {} + + protected static class HRVStatusWeeklyData extends ChartsData { + private final List data; + + public HRVStatusWeeklyData(final List chartsData) { + this.data = chartsData; + } + + public HRVStatusDayData getDay(int i) { + return this.data.get(i); + } + + public HRVStatusDayData getCurrentDay() { + return this.data.get(this.data.size() - 1); + } + + public List getDaysData() { + return data; + } + } + + protected static class HRVStatusDayData { + public Integer i; + public long timestamp; + public Integer weeklyAvg; + public Integer lastNight; + public Integer lastNight5MinHigh; + public Integer dayAvg; + public Integer baseLineBalancedLower; + public Integer baseLineBalancedUpper; + public HrvSummarySample.Status status; + public Calendar day; + + public HRVStatusDayData(Calendar day, + int i, long timestamp, + Integer dayAvg, + Integer weeklyAvg, + Integer lastNight, + Integer lastNight5MinHigh, + Integer baseLineBalancedLower, + Integer baseLineBalancedUpper, + HrvSummarySample.Status status) { + this.lastNight = lastNight; + this.weeklyAvg = weeklyAvg; + this.lastNight5MinHigh = lastNight5MinHigh; + this.i = i; + this.timestamp = timestamp; + this.status = status; + this.day = day; + this.dayAvg = dayAvg; + this.baseLineBalancedLower = baseLineBalancedLower; + this.baseLineBalancedUpper = baseLineBalancedUpper; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitactive/AmazfitActiveCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitactive/AmazfitActiveCoordinator.java index e253d7661..7b175c86d 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitactive/AmazfitActiveCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitactive/AmazfitActiveCoordinator.java @@ -79,4 +79,5 @@ public class AmazfitActiveCoordinator extends ZeppOsCoordinator { public boolean supportsBluetoothPhoneCalls(final GBDevice device) { return true; } + } diff --git a/app/src/main/res/layout/fragment_hrv_status.xml b/app/src/main/res/layout/fragment_hrv_status.xml new file mode 100644 index 000000000..abd07d72b --- /dev/null +++ b/app/src/main/res/layout/fragment_hrv_status.xml @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index b9ac92455..22c9d3787 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -3011,6 +3011,7 @@ @string/sleepchart_your_sleep @string/weeksleepchart_sleep_a_week_or_month @string/weekstepschart_steps_a_week_or_month + @string/pref_header_hrv_status @string/menuitem_stress @string/menuitem_pai @string/stats_title @@ -3025,6 +3026,7 @@ @string/p_sleep @string/p_sleep_week @string/p_steps_week + @string/p_hrv_status @string/p_stress @string/p_pai @string/p_speed_zones @@ -3039,6 +3041,7 @@ @string/p_activity_list @string/p_sleep @string/p_sleep_week + @string/p_hrv_status @string/p_steps_week @string/p_stress @string/p_pai diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index c9dd6cab5..069a3013a 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -43,6 +43,14 @@ #ffab40 #8B0000 + #0c8a03 + #fc9d03 + #fc5203 + #be03fc + #d12a2a + + #858585 + #FFEDEDED #545254 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 73c38ef4b..cf994d495 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -842,6 +842,7 @@ Charts tabs Visible chart tabs Sleep + HRV Status Sleep per week Sleep today, target: %1$s Steps per week @@ -1438,6 +1439,20 @@ Editing linked GPX track Today Yesterday + DAY AVG + DAY AVG(MS) + 7 DAY AVG + STATUS + Balanced + Unbalanced + Low + Poor + LAST NIGHT + LST N HIGHEST 5-MIN AVG + 7 DAY AVERAGE + %1$d ms + %1$d-%2$d ms + BASELINE Biking Treadmill Exercise @@ -2298,6 +2313,7 @@ Heart rate alerts Stress Blood Oxygen + HRV Status Ambient Sound Control Sound Control Device Information diff --git a/app/src/main/res/values/values.xml b/app/src/main/res/values/values.xml index ae0b4c95c..3dc107529 100644 --- a/app/src/main/res/values/values.xml +++ b/app/src/main/res/values/values.xml @@ -105,6 +105,7 @@ stress pai speedzones + hrvstatus livestats spo2 temperature