Merge branch 'espruino:master' into master

pull/1788/head
sir-indy 2022-05-01 18:11:24 +01:00 committed by GitHub
commit a94bb2a0a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 2 deletions

View File

@ -1,2 +1,3 @@
0.01: New App! 0.01: New App!
0.02: Fix the settings bug and some tweaking 0.02: Fix the settings bug and some tweaking
0.03: Do not alarm while charging

View File

@ -1,4 +1,5 @@
function run(){ function run(){
if (Bangle.isCharging()) return;
var now = new Date(); var now = new Date();
var h = now.getHours(); var h = now.getHours();
if(h >= activityreminder.startHour && h < activityreminder.endHour){ if(h >= activityreminder.startHour && h < activityreminder.endHour){

View File

@ -3,7 +3,7 @@
"name": "Activity Reminder", "name": "Activity Reminder",
"shortName":"Activity Reminder", "shortName":"Activity Reminder",
"description": "A reminder to take short walks for the ones with a sedentary lifestyle", "description": "A reminder to take short walks for the ones with a sedentary lifestyle",
"version":"0.02", "version":"0.03",
"icon": "app.png", "icon": "app.png",
"type": "app", "type": "app",
"tags": "tool,activity", "tags": "tool,activity",

View File

@ -115,7 +115,23 @@ E.on('notify',msg=>{
// could also use NRF.ancsGetAppInfo(msg.appId) here // could also use NRF.ancsGetAppInfo(msg.appId) here
}; };
var unicodeRemap = { var unicodeRemap = {
'2019':"'" '2019':"'",
'260':"A",
'261':"a",
'262':"C",
'263':"c",
'280':"E",
'281':"e",
'321':"L",
'322':"l",
'323':"N",
'324':"n",
'346':"S",
'347':"s",
'377':"Z",
'378':"z",
'379':"Z",
'380':"z",
}; };
var replacer = ""; //(n)=>print('Unknown unicode '+n.toString(16)); var replacer = ""; //(n)=>print('Unknown unicode '+n.toString(16));
//if (appNames[msg.appId]) msg.a //if (appNames[msg.appId]) msg.a