mirror of https://github.com/espruino/BangleApps
Pastel: added dependancy on weather, fix issues on a B1, extend support to B1 for Pebble and Widbata
parent
200f9e19b5
commit
9d180064f5
|
@ -4210,10 +4210,10 @@
|
||||||
"id": "pastel",
|
"id": "pastel",
|
||||||
"name": "Pastel Clock",
|
"name": "Pastel Clock",
|
||||||
"shortName": "Pastel",
|
"shortName": "Pastel",
|
||||||
"version": "0.09",
|
"version": "0.10",
|
||||||
"description": "A Configurable clock with custom fonts and background. Has a cyclic information line that includes, day, date, battery, sunrise and sunset times",
|
"description": "A Configurable clock with custom fonts and background. Has a cyclic information line that includes, day, date, battery, sunrise and sunset times",
|
||||||
"icon": "pastel.png",
|
"icon": "pastel.png",
|
||||||
"dependencies": {"mylocation":"app", "widpedom":"app"},
|
"dependencies": {"mylocation":"app", "widpedom":"app","weather":"app"},
|
||||||
"screenshots": [{"url":"screenshot_pastel.png"}],
|
"screenshots": [{"url":"screenshot_pastel.png"}],
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
|
@ -4733,7 +4733,7 @@
|
||||||
"screenshots": [{"url":"pebble_screenshot.png"}],
|
"screenshots": [{"url":"pebble_screenshot.png"}],
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
"supports": ["BANGLEJS2"],
|
"supports": ["BANGLEJS", "BANGLEJS2"],
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"pebble.app.js","url":"pebble.app.js"},
|
{"name":"pebble.app.js","url":"pebble.app.js"},
|
||||||
{"name":"pebble.settings.js","url":"pebble.settings.js"},
|
{"name":"pebble.settings.js","url":"pebble.settings.js"},
|
||||||
|
@ -4767,7 +4767,7 @@
|
||||||
"screenshots": [{"url":"screenshot_widbata_1.png"}],
|
"screenshots": [{"url":"screenshot_widbata_1.png"}],
|
||||||
"version":"0.01",
|
"version":"0.01",
|
||||||
"type": "widget",
|
"type": "widget",
|
||||||
"supports": ["BANGLEJS2"],
|
"supports": ["BANGLEJS", "BANGLEJS2"],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"description": "Shows the current battery level status in the top right using the clocks colour theme",
|
"description": "Shows the current battery level status in the top right using the clocks colour theme",
|
||||||
"tags": "widget,battery",
|
"tags": "widget,battery",
|
||||||
|
|
|
@ -7,3 +7,4 @@
|
||||||
0.07: Added info line that cycles on BTN1/BTN3 (or vitual buttons on a bangle 2)
|
0.07: Added info line that cycles on BTN1/BTN3 (or vitual buttons on a bangle 2)
|
||||||
0.08: Added dependancy on MyLocation
|
0.08: Added dependancy on MyLocation
|
||||||
0.09: Added dependancy on Pedometer Widget
|
0.09: Added dependancy on Pedometer Widget
|
||||||
|
0.10: Added Weather line, fixed issues on a Bangle 1, update every minute
|
||||||
|
|
|
@ -149,8 +149,6 @@ function getWeather() {
|
||||||
return jsonWeather;
|
return jsonWeather;
|
||||||
}
|
}
|
||||||
|
|
||||||
var mm_prev = "xx";
|
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var da = d.toString().split(" ");
|
var da = d.toString().split(" ");
|
||||||
|
@ -190,17 +188,7 @@ function draw() {
|
||||||
}
|
}
|
||||||
|
|
||||||
g.reset();
|
g.reset();
|
||||||
|
|
||||||
if (process.env.HWVERSION == 1) {
|
|
||||||
// avoid flicker on a bangle 1 by comparing with previous minute
|
|
||||||
if (mm_prev != mm) {
|
|
||||||
mm_prev = mm;
|
|
||||||
g.clearRect(0, 30, w, h - 24);
|
g.clearRect(0, 30, w, h - 24);
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// on a b2 safe to just clear anyway as there is no flicker
|
|
||||||
g.clearRect(0, 30, w, h - 24);
|
|
||||||
}
|
|
||||||
|
|
||||||
// draw a grid like graph paper
|
// draw a grid like graph paper
|
||||||
if (settings.grid && process.env.HWVERSION !=1) {
|
if (settings.grid && process.env.HWVERSION !=1) {
|
||||||
|
|
Loading…
Reference in New Issue