rename + fix typos

pull/392/head
v1nc 2020-05-07 19:13:41 +02:00
parent c05477ad54
commit 6e412abba0
8 changed files with 31 additions and 47 deletions

View File

@ -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}
]
}
]

3
apps/getup/README.md Normal file
View File

@ -0,0 +1,3 @@
# Get Up
Reminds you to getup every 20 minutes. Sitting to long is dangerous!

22
apps/getup/app.js Normal file
View File

@ -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);

View File

Before

Width:  |  Height:  |  Size: 973 B

After

Width:  |  Height:  |  Size: 973 B

View File

@ -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

View File

@ -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);
}