From d685d8eecb890f09d69ce38884e507900f7d36a4 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Thu, 8 Jun 2023 14:03:23 +0100 Subject: Switch to new sensorlogd qml interface --- src/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.qml b/src/main.qml index 48e846b..153dac4 100644 --- a/src/main.qml +++ b/src/main.qml @@ -56,7 +56,7 @@ Application { Label { width: parent.width*0.8 anchors.horizontalCenter: parent.horizontalCenter - text: stepsDataLoader.getTodayData() ? "You've walked " + stepsDataLoader.getTodayData() + " steps today, keep it up!" : "You haven't yet logged any steps today" + text: stepsDataLoader.getTodayTotal() ? "You've walked " + stepsDataLoader.getTodayTotal() + " steps today, keep it up!" : "You haven't yet logged any steps today" wrapMode: Text.WordWrap horizontalAlignment: Text.AlignHCenter } @@ -88,7 +88,7 @@ Application { for (var i = 0; i < 7; i++) { currDate.setDate(currDate.getDate() + 1) console.log(currDate) - var currvalue = stepsDataLoader.getDataForDate(currDate) + var currvalue = stepsDataLoader.getTotalForDate(currDate) if (currvalue > 0 || valuesArr.length > 0) { if (currvalue > maxValue) { maxValue = currvalue -- cgit v1.2.3-70-g09d2