Skip to content

Commit

Permalink
Merge pull request #4 from v1nc/standup
Browse files Browse the repository at this point in the history
rename + fix typos
  • Loading branch information
v1nc committed May 7, 2020
2 parents e366d6d + 6e412ab commit ac6651f
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 47 deletions.
11 changes: 6 additions & 5 deletions apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}
]
}
]
File renamed without changes.
3 changes: 3 additions & 0 deletions apps/getup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Get Up

Reminds you to getup every 20 minutes. Sitting to long is dangerous!
File renamed without changes.
22 changes: 22 additions & 0 deletions apps/getup/app.js
Original file line number Diff line number Diff line change
@@ -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);

File renamed without changes
9 changes: 0 additions & 9 deletions apps/stepup/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions apps/stepup/app.js

This file was deleted.

0 comments on commit ac6651f

Please sign in to comment.