parent
dd365cf865
commit
bf6d37be92
|
|
@ -6,4 +6,5 @@
|
||||||
0.06: Add dependancy on Pedometer Widget
|
0.06: Add dependancy on Pedometer Widget
|
||||||
0.07: Fix icon and ong file to 48x48
|
0.07: Fix icon and ong file to 48x48
|
||||||
0.08: Add theme options and optional lock symbol
|
0.08: Add theme options and optional lock symbol
|
||||||
0.09: Add support for internationalization (LANG placeholders + "locale" module)
|
0.09 (1): Add support for internationalization (LANG placeholders + "locale" module)
|
||||||
|
0.09 (2): Get steps from built-in step counter (widpedom no more needed, fix #1697)
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
* Designed specifically for Bangle 2
|
* Designed specifically for Bangle 2
|
||||||
* A choice of 6 different background colous through its settings menu. Goto *Settings* → *Apps* → *Pebble*.
|
* A choice of 6 different background colous through its settings menu. Goto *Settings* → *Apps* → *Pebble*.
|
||||||
* Supports the Light and Dark themes (or set theme independently)
|
* Supports the Light and Dark themes (or set theme independently)
|
||||||
* Uses pedometer widget to get latest step count
|
|
||||||
* Dependant apps are installed when Pebble installs
|
|
||||||
* Uses the whole screen, widgets are made invisible but still run in the background
|
* Uses the whole screen, widgets are made invisible but still run in the background
|
||||||
* When battery is less than 30% main screen goes Red
|
* When battery is less than 30% main screen goes Red
|
||||||
* Optionally show a lock symbol when screen is locked (default off, enable in Settings)
|
* Optionally show a lock symbol when screen is locked (default off, enable in Settings)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
"shortName": "Pebble",
|
"shortName": "Pebble",
|
||||||
"version": "0.09",
|
"version": "0.09",
|
||||||
"description": "A pebble style clock to keep the rebellion going",
|
"description": "A pebble style clock to keep the rebellion going",
|
||||||
"dependencies": {"widpedom":"app"},
|
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"icon": "pebble.png",
|
"icon": "pebble.png",
|
||||||
"screenshots": [{"url":"pebble_screenshot.png"}],
|
"screenshots": [{"url":"pebble_screenshot.png"}],
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ function draw() {
|
||||||
let dayOfWeek = locale.dow(date, 1).toUpperCase();
|
let dayOfWeek = locale.dow(date, 1).toUpperCase();
|
||||||
let dayOfMonth = date.getDate();
|
let dayOfMonth = date.getDate();
|
||||||
let time = locale.time(date, 1);
|
let time = locale.time(date, 1);
|
||||||
|
let steps = Bangle.getHealthStatus("day").steps;
|
||||||
const t = 6;
|
const t = 6;
|
||||||
|
|
||||||
if (E.getBattery() < 30) {
|
if (E.getBattery() < 30) {
|
||||||
|
|
@ -55,7 +56,7 @@ function draw() {
|
||||||
g.setFontLECO1976Regular22();
|
g.setFontLECO1976Regular22();
|
||||||
g.setFontAlign(0, -1);
|
g.setFontAlign(0, -1);
|
||||||
g.drawString(dayOfWeek, w/4, ha);
|
g.drawString(dayOfWeek, w/4, ha);
|
||||||
g.drawString(getSteps(), 3*w/4, ha);
|
g.drawString(steps, 3*w/4, ha);
|
||||||
|
|
||||||
// time
|
// time
|
||||||
// white on red for battery warning
|
// white on red for battery warning
|
||||||
|
|
@ -101,13 +102,6 @@ function drawCalendar(x,y,wi,th,str) {
|
||||||
g.drawString(str, x + wi/2, y + wi/2 + th);
|
g.drawString(str, x + wi/2, y + wi/2 + th);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSteps() {
|
|
||||||
if (WIDGETS.wpedom !== undefined) {
|
|
||||||
return WIDGETS.wpedom.getSteps();
|
|
||||||
}
|
|
||||||
return '????';
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadThemeColors() {
|
function loadThemeColors() {
|
||||||
theme = {fg: g.theme.fg, bg: g.theme.bg, day: g.toColor(0,0,0)};
|
theme = {fg: g.theme.fg, bg: g.theme.bg, day: g.toColor(0,0,0)};
|
||||||
if (settings.theme === "Dark") {
|
if (settings.theme === "Dark") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue