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",
|
||||
"name": "Pastel Clock",
|
||||
"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",
|
||||
"icon": "pastel.png",
|
||||
"dependencies": {"mylocation":"app", "widpedom":"app"},
|
||||
"dependencies": {"mylocation":"app", "widpedom":"app","weather":"app"},
|
||||
"screenshots": [{"url":"screenshot_pastel.png"}],
|
||||
"type": "clock",
|
||||
"tags": "clock",
|
||||
|
@ -4733,7 +4733,7 @@
|
|||
"screenshots": [{"url":"pebble_screenshot.png"}],
|
||||
"type": "clock",
|
||||
"tags": "clock",
|
||||
"supports": ["BANGLEJS2"],
|
||||
"supports": ["BANGLEJS", "BANGLEJS2"],
|
||||
"storage": [
|
||||
{"name":"pebble.app.js","url":"pebble.app.js"},
|
||||
{"name":"pebble.settings.js","url":"pebble.settings.js"},
|
||||
|
@ -4767,7 +4767,7 @@
|
|||
"screenshots": [{"url":"screenshot_widbata_1.png"}],
|
||||
"version":"0.01",
|
||||
"type": "widget",
|
||||
"supports": ["BANGLEJS2"],
|
||||
"supports": ["BANGLEJS", "BANGLEJS2"],
|
||||
"readme": "README.md",
|
||||
"description": "Shows the current battery level status in the top right using the clocks colour theme",
|
||||
"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.08: Added dependancy on MyLocation
|
||||
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;
|
||||
}
|
||||
|
||||
var mm_prev = "xx";
|
||||
|
||||
function draw() {
|
||||
var d = new Date();
|
||||
var da = d.toString().split(" ");
|
||||
|
@ -190,18 +188,8 @@ function draw() {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
} else {
|
||||
// on a b2 safe to just clear anyway as there is no flicker
|
||||
g.clearRect(0, 30, w, h - 24);
|
||||
}
|
||||
|
||||
g.clearRect(0, 30, w, h - 24);
|
||||
|
||||
// draw a grid like graph paper
|
||||
if (settings.grid && process.env.HWVERSION !=1) {
|
||||
g.setColor("#0f0");
|
||||
|
|
Loading…
Reference in New Issue