summaryrefslogtreecommitdiff
path: root/qmlplugin/stepsDataLoader.cpp (follow)
AgeCommit message (Collapse)Author
2023-07-21Add file watcher to stepsDataLoaderArseniy-Movshev
this is essentially a copy of the previous commit applied to hrDataLoader
2023-07-21qmlPlugin: make file loading less verboseArseniy-Movshev
This removes a large proportion of the log spam. This was getting a bit too much because UI now loads several graphs at once.
2023-07-12Make sure we return a sane value even if sensor isn't warmed upArseniy-Movshev
it seems that the sensor takes a while to warm up, and until it does, it will return 0. This fixes a check that previously already existed, but was checking the wrong value - if the step offset causes step count to increase, we will be returning erroneous values.
2023-07-12Add a method for getting data over multiple daysArseniy-Movshev
2023-06-29Return log value if step counter value isn't saneArseniy-Movshev
2023-06-20DataLoaders: switch to qvariant for qml compatibilityArseniy-Movshev
2023-06-20StepsDataLoader: add a property that updates today's live step countArseniy-Movshev
this also changes the behaviour of getTodayTotal()
2023-06-20Move fileNameForDate to a common header fileArseniy-Movshev
This function shows up in quite a few places so this seems justified. Other functions may get this treatment later
2023-06-20StepsDataLoader: Add a way to get the full day's dataArseniy-Movshev
additionally, this renames the current data access function to 'getTotalForDate()' while the new function gets the old name of 'getDataForDate()'. This naming seems more appropriate. This should allow apps using the QML interface to implement their own graphs
2023-05-29Add a method for daemon recordings to be triggered from qmlArseniy-Movshev
This allows the app to always show an up-to-date value
2023-05-28Make the log path configurableArseniy-Movshev
This also renames it to sensorlogd from the obsolete asteroid-healthtracker and hides it by default
2023-05-27fix qml accessor:Arseniy-Movshev
- make sure that the reader doesn't create random files - it is unclear why readwrite was used here in the first place, as readonly access is appropriate. - make sure that `line` always has a value even if file is empty
2023-05-26steps: add more useful data fetch methodArseniy-Movshev
2023-05-26Restructure to split to daemon and qml accessorArseniy-Movshev
- add separate subdirs for daemon and qml - add some generic qml boilerplate - add a really lazy 'last value' loader implementation - license the project as gplv3 (add copyright notices and license text)