removed pedometer dependency

pull/1852/head
Rarder44 2022-05-20 00:17:55 +02:00
parent ef996391c6
commit 07b53c5893
3 changed files with 5 additions and 15 deletions

View File

@ -5,5 +5,4 @@
0.05: added charging icon
0.06: Add 12h support and autocycle control
0.07: added localization, removed deprecated code
0.08: removed unused font, fix autocycle
0.09: imported suncalc and trimmed
0.08: removed unused font, fix autocycle, imported suncalc and trimmed, removed pedometer dependency

View File

@ -2,11 +2,11 @@
"id": "rebble",
"name": "Rebble Clock",
"shortName": "Rebble",
"version": "0.09",
"version": "0.08",
"description": "A Pebble style clock, with configurable background, three sidebars including steps, day, date, sunrise, sunset, long live the rebellion",
"readme": "README.md",
"icon": "rebble.png",
"dependencies": {"mylocation":"app", "widpedom":"app"},
"dependencies": {"mylocation":"app"},
"screenshots": [{"url":"screenshot_rebble.png"}],
"type": "clock",
"tags": "clock",

View File

@ -238,20 +238,11 @@ function drawBattery(x,y,wi,hi) {
}
function getSteps() {
if (WIDGETS.wpedom !== undefined) {
return WIDGETS.wpedom.getSteps();
}
return '????';
}
// format steps so they fit in the place
function formatSteps() {
var s = getSteps();
var s = Bangle.getHealthStatus("day").steps;
if ( s == '????') {
return s;
} else if (s < 1000) {
if (s < 1000) {
return s + '';
} else if (s < 10000) {
return '' + (s/1000).toFixed(1) + 'K';