mirror of https://github.com/espruino/BangleApps
rename + fix typos
parent
c05477ad54
commit
6e412abba0
11
apps.json
11
apps.json
|
@ -1676,16 +1676,17 @@
|
|||
{"name":"findphone.img","url":"app-icon.js","evaluate":true}
|
||||
]
|
||||
},
|
||||
{ "id": "stepup",
|
||||
"name": "Stepup",
|
||||
{ "id": "getup",
|
||||
"name": "Get Up",
|
||||
"shortName":"Get Up",
|
||||
"icon": "app.png",
|
||||
"version":"0.01",
|
||||
"description": "Reminds you to stepup every 20 minutes. Sitting to long is dangerous!",
|
||||
"description": "Reminds you to getup every 20 minutes. Sitting to long is dangerous!",
|
||||
"tags": "tools",
|
||||
"allow_emulator":true,
|
||||
"storage": [
|
||||
{"name":"stepup.app.js","url":"app.js"},
|
||||
{"name":"stepup.img","url":"app-icon.js","evaluate":true}
|
||||
{"name":"getup.app.js","url":"app.js"},
|
||||
{"name":"getup.img","url":"app-icon.js","evaluate":true}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# Get Up
|
||||
|
||||
Reminds you to getup every 20 minutes. Sitting to long is dangerous!
|
|
@ -0,0 +1,22 @@
|
|||
function remind() {
|
||||
Bangle.buzz(1000,1);
|
||||
g.clear();
|
||||
g.setColor(0xF800);
|
||||
g.drawString("MOVE!", g.getWidth()/2, g.getHeight()/2);
|
||||
setTimeout(print_message,60000);
|
||||
}
|
||||
|
||||
function print_message(){
|
||||
g.setColor(0xF800);
|
||||
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
|
||||
}
|
||||
//init graphics
|
||||
g.clear();
|
||||
require("Font8x12").add(Graphics);
|
||||
g.setFont("8x12",2);
|
||||
g.setFontAlign(0,0);
|
||||
g.flip();
|
||||
|
||||
print_message();
|
||||
setInterval(remind,60000);
|
||||
|
Before Width: | Height: | Size: 973 B After Width: | Height: | Size: 973 B |
|
@ -1,9 +0,0 @@
|
|||
# Find Phone
|
||||
|
||||
Ring your phone via GadgetBridge if you lost it somewhere.
|
||||
|
||||
1. Enable HID in settings
|
||||
2. Connect GadgetBridge
|
||||
3. Lose phone
|
||||
4. Open app
|
||||
5. Click any button or screen
|
|
@ -1,33 +0,0 @@
|
|||
function remind() {
|
||||
Bangle.buzz(1000,1);
|
||||
}
|
||||
|
||||
//init graphics
|
||||
g.clear();
|
||||
require("Font8x12").add(Graphics);
|
||||
g.setFont("8x12",2);
|
||||
g.setFontAlign(0,0);
|
||||
g.flip();
|
||||
g.setColor(0xF800);
|
||||
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
|
||||
|
||||
setInterval(remimd,60);;()/2, g.getHeight()/2);
|
||||
|
||||
setInterval(remimd,60);alse };
|
||||
|
||||
//check if HID enabled and show message
|
||||
if (settings.HID=="kb" || settings.HID=="kbmedia") {
|
||||
g.setColor(0x03E0);
|
||||
g.drawString("click to find", g.getWidth()/2, g.getHeight()/2);
|
||||
|
||||
//register all buttons and screen to find phone
|
||||
setWatch(find, BTN1);
|
||||
setWatch(find, BTN2);
|
||||
setWatch(find, BTN3);
|
||||
setWatch(find, BTN4);
|
||||
setWatch(find, BTN5);
|
||||
|
||||
}else{
|
||||
g.setColor(0xf800);
|
||||
g.drawString("enable HID!", g.getWidth()/2, g.getHeight()/2);
|
||||
}
|
Loading…
Reference in New Issue