aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-06-08 14:03:23 +0100
committerArseniy Movshev <dodoradio@outlook.com>2023-06-08 14:03:23 +0100
commitd685d8eecb890f09d69ce38884e507900f7d36a4 (patch)
tree8c4273dbb59c3a33eacad45b20752c50064f33dd
parent245925adf4498303a1cb1076eadb5d529f9d2051 (diff)
Switch to new sensorlogd qml interface
Diffstat (limited to '')
-rw-r--r--src/main.qml4
1 files 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