mirror of https://github.com/espruino/BangleApps
removed pedometer dependency
parent
ef996391c6
commit
07b53c5893
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue