From 09f13c242ad389851f0cc102a0608840cee256ef Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Mon, 7 Jun 2021 13:02:11 -0500 Subject: [PATCH 01/26] Create FD6FDetect.app.js --- apps/fd6fdetect/FD6FDetect.app.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apps/fd6fdetect/FD6FDetect.app.js diff --git a/apps/fd6fdetect/FD6FDetect.app.js b/apps/fd6fdetect/FD6FDetect.app.js new file mode 100644 index 000000000..67e4d2c02 --- /dev/null +++ b/apps/fd6fdetect/FD6FDetect.app.js @@ -0,0 +1,25 @@ +//Bangle.setLCDPower(1); //debugging purposes +//Bangle.setLCDTimeout(0); // debugging purposes +g.clear(); // clear screen +let amount = 'global value'; // make amount global +function FindCOVIDAwareBeacons() { // function for finding COVID beacons +NRF.findDevices(function(devices) { // function for searching for devices with the UUID of FD6F + g.setFont('Vector', 75); // set size of font to 75x + g.setFontAlign(0,0); // align font + var amount = devices.length; // get amount of devices matching FD6F + g.clear(); // clear screen + g.drawString(amount, 125, 100); // draw amount of devices matching FD6F + if (amount == 1) { // check to see if we need to use the word users or user + g.setFont('Vector', 25); // set size of font to 25x + g.drawString('COVIDAwareMN', 125, 150); // draw string + g.drawString('user', 125, 175); // draw string + g.drawString('nearby', 125, 200); // draw string + } else{ // if more than one change user to users + g.setFont('Vector', 25); // set size of font to 25x + g.drawString('COVIDAwareMN', 125, 150); // draw string + g.drawString('users', 125, 175); // draw string + g.drawString('nearby', 125, 200); // draw string + } +}, {timeout : 1000, filters : [{services: ['fd6f'] }] }); // set filters to target only FD6F beacons +} +setInterval(FindCOVIDAwareBeacons, 2000); // poll for new devices From 72299583d4ce53a831f9d9964e5cf95b9f58d2a8 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Mon, 7 Jun 2021 13:02:25 -0500 Subject: [PATCH 02/26] Add files via upload --- apps/fd6fdetect/FD6FDetect.info | 1 + 1 file changed, 1 insertion(+) create mode 100644 apps/fd6fdetect/FD6FDetect.info diff --git a/apps/fd6fdetect/FD6FDetect.info b/apps/fd6fdetect/FD6FDetect.info new file mode 100644 index 000000000..dec8374ce --- /dev/null +++ b/apps/fd6fdetect/FD6FDetect.info @@ -0,0 +1 @@ +{"id":"fd6fdetect","name":"FD6FDetect","src":"FD6FDetect.app.js","icon":"FD6FDetect.img","version":"0.01","files":"FD6FDetect.info,FD6FDetect.img,FD6FDetect.app.js"} \ No newline at end of file From 48215e92651587da6475232ed7d7413598d879b1 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:36:44 -0500 Subject: [PATCH 03/26] Add files via upload --- apps/fd6fdetect/FD6FDetect.img | Bin 0 -> 10371 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 apps/fd6fdetect/FD6FDetect.img diff --git a/apps/fd6fdetect/FD6FDetect.img b/apps/fd6fdetect/FD6FDetect.img new file mode 100644 index 0000000000000000000000000000000000000000..2e3442edc94eacf778694b9c81674fd455e069cd GIT binary patch literal 10371 zcmeI2P14&o42D&uOJ|c4Xykn-+ROjYHr#9_bZ6H&1#S{*CrVcx~TjbL4b$jAg&swpvjxTQc3jVo%T;$VK+8HcXIuQ zn^2Cc3j~bEK8zWL5II6tj(P$^APWVkwNF9788lcbu6Y*Y1&udftFxpc=p{KQ=tgq` za5^i(`)fL{a&YaD3mlI>-xdz+?enodf)g6&S5^yo%6U-^uGsX3@*w9c?MI(%-Cnot zS8eqcTB)Pm^Lc|~A2i~<>xhGxZCm{ORU2>X2ON^KZGTp=-T(|#e8ryS|f*w)mS><@FSYGNajF z8fA zut4CHIU<<^t9LwOtoLG8=7^vLM`OJ9+z>UkunPVehVqt5HEg{ru}Ug{+UuQ@pXF~_`m z98QBqxtU)V9CKdeTJ1xB1!h7C_FiqyD#19a?a1>Z%)r-NAC18=nN>}E4tEsv;v;cv zjnKWz30_T(g@$RpqA&q@5h&?7=3tb09l!7N-Uli21cww`9ZF(kKg(&{p{W?g>DI>- zu!jYxAT}p2WT!ft0-9I%zf$a@r5e78Tg_R;MI4eK%_Dh%bJin)8esYuuhUCn=2dg# zqSAnvS+TO9(y#RJyUkKOtft{kNLJ@nbKo+MzswlOhYiDB?wT@Vu1^u-T38&{Z8iIx zd-(ofv6r=6RAy|{S;tU=TMsqUdTPg=dwO{N7w5@M#JleqHs0fqe;pv(tLAq&;$Kyl z@r{H#oV6Wbd%*J1Mu#JqoS4e2bhh>(PVpv=>F0?-25$k=Q|*X$UXer56!{v5lSI&2 zPNe($ce;~JzW&>)2&%X{h&Cp<^C%Oa+=F=T2@w=XT9xm9SJjiGQrKq0zJ?C!v)oZM92^<-NL#7iYnE?5yD00QnYE94Le2hJT6#rl_#0r+pO2M*HGk&h2|PaNRwb-4C#NcoVd_K4RH QoN{uZsX6XN$FW5D58@LCkpKVy literal 0 HcmV?d00001 From aea2bcacaaa7890d10ea70eee6ac14ee0eb54bcf Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:37:33 -0500 Subject: [PATCH 04/26] Create ChangeLog --- apps/fd6fdetect/ChangeLog | 1 + 1 file changed, 1 insertion(+) create mode 100644 apps/fd6fdetect/ChangeLog diff --git a/apps/fd6fdetect/ChangeLog b/apps/fd6fdetect/ChangeLog new file mode 100644 index 000000000..27a8806b2 --- /dev/null +++ b/apps/fd6fdetect/ChangeLog @@ -0,0 +1 @@ +0.01: Added source code From 607b83abdba4046fe6f94ab24b98a7aa1384da5f Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:43:19 -0500 Subject: [PATCH 05/26] Update FD6FDetect.info --- apps/fd6fdetect/FD6FDetect.info | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/fd6fdetect/FD6FDetect.info b/apps/fd6fdetect/FD6FDetect.info index dec8374ce..934589374 100644 --- a/apps/fd6fdetect/FD6FDetect.info +++ b/apps/fd6fdetect/FD6FDetect.info @@ -1 +1,14 @@ -{"id":"fd6fdetect","name":"FD6FDetect","src":"FD6FDetect.app.js","icon":"FD6FDetect.img","version":"0.01","files":"FD6FDetect.info,FD6FDetect.img,FD6FDetect.app.js"} \ No newline at end of file +}, +{ "id": "fd6fdetect", + "name": "FD6FDetect", + "shortName":"fd6fdetect", + "icon": "FD6FDetect.img", + "version":"0.1", + "description": "Allows you to see 0xFD6F beacons near you.", + "tags": "", + "storage": [ + {"name":"FD6FDetect.app.js","url":"FD6FDetect.app.js"}, + {"name":"FD6FDetect.img","url":"FD6FDetect.img","evaluate":true} + ] +} +] From dac8dbc38114f5f9ca9813a4b8d8d960d5d66f80 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:44:26 -0500 Subject: [PATCH 06/26] Update FD6FDetect.info --- apps/fd6fdetect/FD6FDetect.info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/fd6fdetect/FD6FDetect.info b/apps/fd6fdetect/FD6FDetect.info index 934589374..cb36e2e5f 100644 --- a/apps/fd6fdetect/FD6FDetect.info +++ b/apps/fd6fdetect/FD6FDetect.info @@ -7,8 +7,8 @@ "description": "Allows you to see 0xFD6F beacons near you.", "tags": "", "storage": [ - {"name":"FD6FDetect.app.js","url":"FD6FDetect.app.js"}, - {"name":"FD6FDetect.img","url":"FD6FDetect.img","evaluate":true} + {"name":"FD6FDetect.app.js","url":"app.js"}, + {"name":"FD6FDetect.img","url":"app-icon.js","evaluate":true} ] } ] From 3eafa9d4a13c4e644e23982711d536eb4fe57f9d Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:45:49 -0500 Subject: [PATCH 07/26] Add files via upload --- apps/fd6fdetect/icons8-coronavirus-48 (1).png | Bin 0 -> 1037 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 apps/fd6fdetect/icons8-coronavirus-48 (1).png diff --git a/apps/fd6fdetect/icons8-coronavirus-48 (1).png b/apps/fd6fdetect/icons8-coronavirus-48 (1).png new file mode 100644 index 0000000000000000000000000000000000000000..cd0a92f7c52b9a7c48f23bc19a7673e79a877ad6 GIT binary patch literal 1037 zcmV+o1oHcdP)D z4n7Yo0$YX40=>YT;){(r;EL!XwiXrdH3>WTJTQfs#ctqd8G*YJ=@MI07UwOAu^8uX z9kS2BAaD?90_tTniEId%Ezwq9d{>O1J{O73QZQzL)0FmBO9N+sFEO^J#FuNIRg}aQ zacMBrfF z7<$8w6K)M2D{cj7Ra~pc0)AR?DZ(o;hglu(=p|h9cG)Zup2>@fyJT@omTm*^Rq;KZ zV<$s+_D?yU$tivr*rmALA`AEj4*j!)SHWwW)1i!ijxoL-=mYKpM;-i8;rirR8)?F? z*!>kptuUYr5BfB0VOaU;D@DQ8PP>}07RBog*Z}M#e$zF|aKWXkZEs&Cp5G{T9@vXH zUF}e^Px5aI@Bw%Oya%>fy0?LMGDa;fPWPjFW~cbxTO`H^bjGd`G+=iv`5k4W(V?eT zB2G73#CO>%@J~Xoz;oalu%Kj{<+&E%hsb^qEum4RGh%UZx=l)FL3}@Fl@%zKK%g+A zWQWwV^_W_X>xEX^#4g<<%FmNk;wc;b%E-`Kjg){9<>!V^!|lrOEb$+*eoT+l>EJts z>&N{e%Mfm{+bWJ)Ax)uX^O%0##zVy~W7>xRb}Nx{=$}*kR}y%^^e6{kh<>~(Y38!P zH^pD@96MkF)~hfu z!VOb6(4>G{%H9g5arBPhNLd5CCR`2^tnC1jB|P(a;HCKRdZg5c`bo>7-gIXvt%uKG zHmt6BJtpydsE@l=c}=*Sg8Cf>4rA_g8e}w!Y=r1-#0u~##)p?{71za94pYAe908Rx zW-&EiLv(c$y`9rni*=Y+W?V_cmE3s>Z<|D~7F|iW>N5rG!?XZTiC*qL6|RlwM=J5l z-2nge^?EtDOt^!cA^vx>ictNH>~ABJkX`RTr&du#6>j_j@buL5f;h({00000NkvXX Hu0mjf6gB3Y literal 0 HcmV?d00001 From fe16f49383e4a595ed5ba9db638708ad59777941 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:46:43 -0500 Subject: [PATCH 08/26] Delete icons8-coronavirus-48 (1).png --- apps/fd6fdetect/icons8-coronavirus-48 (1).png | Bin 1037 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 apps/fd6fdetect/icons8-coronavirus-48 (1).png diff --git a/apps/fd6fdetect/icons8-coronavirus-48 (1).png b/apps/fd6fdetect/icons8-coronavirus-48 (1).png deleted file mode 100644 index cd0a92f7c52b9a7c48f23bc19a7673e79a877ad6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1037 zcmV+o1oHcdP)D z4n7Yo0$YX40=>YT;){(r;EL!XwiXrdH3>WTJTQfs#ctqd8G*YJ=@MI07UwOAu^8uX z9kS2BAaD?90_tTniEId%Ezwq9d{>O1J{O73QZQzL)0FmBO9N+sFEO^J#FuNIRg}aQ zacMBrfF z7<$8w6K)M2D{cj7Ra~pc0)AR?DZ(o;hglu(=p|h9cG)Zup2>@fyJT@omTm*^Rq;KZ zV<$s+_D?yU$tivr*rmALA`AEj4*j!)SHWwW)1i!ijxoL-=mYKpM;-i8;rirR8)?F? z*!>kptuUYr5BfB0VOaU;D@DQ8PP>}07RBog*Z}M#e$zF|aKWXkZEs&Cp5G{T9@vXH zUF}e^Px5aI@Bw%Oya%>fy0?LMGDa;fPWPjFW~cbxTO`H^bjGd`G+=iv`5k4W(V?eT zB2G73#CO>%@J~Xoz;oalu%Kj{<+&E%hsb^qEum4RGh%UZx=l)FL3}@Fl@%zKK%g+A zWQWwV^_W_X>xEX^#4g<<%FmNk;wc;b%E-`Kjg){9<>!V^!|lrOEb$+*eoT+l>EJts z>&N{e%Mfm{+bWJ)Ax)uX^O%0##zVy~W7>xRb}Nx{=$}*kR}y%^^e6{kh<>~(Y38!P zH^pD@96MkF)~hfu z!VOb6(4>G{%H9g5arBPhNLd5CCR`2^tnC1jB|P(a;HCKRdZg5c`bo>7-gIXvt%uKG zHmt6BJtpydsE@l=c}=*Sg8Cf>4rA_g8e}w!Y=r1-#0u~##)p?{71za94pYAe908Rx zW-&EiLv(c$y`9rni*=Y+W?V_cmE3s>Z<|D~7F|iW>N5rG!?XZTiC*qL6|RlwM=J5l z-2nge^?EtDOt^!cA^vx>ictNH>~ABJkX`RTr&du#6>j_j@buL5f;h({00000NkvXX Hu0mjf6gB3Y From 427f28d866ee8c8482a585993fe0692232a75fae Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:46:49 -0500 Subject: [PATCH 09/26] Add files via upload --- apps/fd6fdetect/app.png | Bin 0 -> 1037 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 apps/fd6fdetect/app.png diff --git a/apps/fd6fdetect/app.png b/apps/fd6fdetect/app.png new file mode 100644 index 0000000000000000000000000000000000000000..cd0a92f7c52b9a7c48f23bc19a7673e79a877ad6 GIT binary patch literal 1037 zcmV+o1oHcdP)D z4n7Yo0$YX40=>YT;){(r;EL!XwiXrdH3>WTJTQfs#ctqd8G*YJ=@MI07UwOAu^8uX z9kS2BAaD?90_tTniEId%Ezwq9d{>O1J{O73QZQzL)0FmBO9N+sFEO^J#FuNIRg}aQ zacMBrfF z7<$8w6K)M2D{cj7Ra~pc0)AR?DZ(o;hglu(=p|h9cG)Zup2>@fyJT@omTm*^Rq;KZ zV<$s+_D?yU$tivr*rmALA`AEj4*j!)SHWwW)1i!ijxoL-=mYKpM;-i8;rirR8)?F? z*!>kptuUYr5BfB0VOaU;D@DQ8PP>}07RBog*Z}M#e$zF|aKWXkZEs&Cp5G{T9@vXH zUF}e^Px5aI@Bw%Oya%>fy0?LMGDa;fPWPjFW~cbxTO`H^bjGd`G+=iv`5k4W(V?eT zB2G73#CO>%@J~Xoz;oalu%Kj{<+&E%hsb^qEum4RGh%UZx=l)FL3}@Fl@%zKK%g+A zWQWwV^_W_X>xEX^#4g<<%FmNk;wc;b%E-`Kjg){9<>!V^!|lrOEb$+*eoT+l>EJts z>&N{e%Mfm{+bWJ)Ax)uX^O%0##zVy~W7>xRb}Nx{=$}*kR}y%^^e6{kh<>~(Y38!P zH^pD@96MkF)~hfu z!VOb6(4>G{%H9g5arBPhNLd5CCR`2^tnC1jB|P(a;HCKRdZg5c`bo>7-gIXvt%uKG zHmt6BJtpydsE@l=c}=*Sg8Cf>4rA_g8e}w!Y=r1-#0u~##)p?{71za94pYAe908Rx zW-&EiLv(c$y`9rni*=Y+W?V_cmE3s>Z<|D~7F|iW>N5rG!?XZTiC*qL6|RlwM=J5l z-2nge^?EtDOt^!cA^vx>ictNH>~ABJkX`RTr&du#6>j_j@buL5f;h({00000NkvXX Hu0mjf6gB3Y literal 0 HcmV?d00001 From d716deeda69bcf5db964d4dd9809add2bf83d9cf Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:47:38 -0500 Subject: [PATCH 10/26] Update FD6FDetect.info --- apps/fd6fdetect/FD6FDetect.info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fd6fdetect/FD6FDetect.info b/apps/fd6fdetect/FD6FDetect.info index cb36e2e5f..9e94798f8 100644 --- a/apps/fd6fdetect/FD6FDetect.info +++ b/apps/fd6fdetect/FD6FDetect.info @@ -2,7 +2,7 @@ { "id": "fd6fdetect", "name": "FD6FDetect", "shortName":"fd6fdetect", - "icon": "FD6FDetect.img", + "icon": "app.png", "version":"0.1", "description": "Allows you to see 0xFD6F beacons near you.", "tags": "", From 770ed00fb0933a992e7a915839a4a882fe224762 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:48:26 -0500 Subject: [PATCH 11/26] Delete FD6FDetect.info --- apps/fd6fdetect/FD6FDetect.info | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 apps/fd6fdetect/FD6FDetect.info diff --git a/apps/fd6fdetect/FD6FDetect.info b/apps/fd6fdetect/FD6FDetect.info deleted file mode 100644 index 9e94798f8..000000000 --- a/apps/fd6fdetect/FD6FDetect.info +++ /dev/null @@ -1,14 +0,0 @@ -}, -{ "id": "fd6fdetect", - "name": "FD6FDetect", - "shortName":"fd6fdetect", - "icon": "app.png", - "version":"0.1", - "description": "Allows you to see 0xFD6F beacons near you.", - "tags": "", - "storage": [ - {"name":"FD6FDetect.app.js","url":"app.js"}, - {"name":"FD6FDetect.img","url":"app-icon.js","evaluate":true} - ] -} -] From e4c34bc6fd961f72b53b06e67969dbe9cbf6c912 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:49:13 -0500 Subject: [PATCH 12/26] Update apps.json --- apps.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps.json b/apps.json index 39f424b02..56fadbd49 100644 --- a/apps.json +++ b/apps.json @@ -3438,5 +3438,18 @@ {"name":"carcrazy.app.js","url":"app.js"}, {"name":"carcrazy.img","url":"app-icon.js","evaluate":true} ] +}, +{ "id": "fd6fdetect", + "name": "FD6FDetect", + "shortName":"fd6fdetect", + "icon": "app.png", + "version":"0.1", + "description": "Allows you to see 0xFD6F beacons near you.", + "tags": "", + "storage": [ + {"name":"FD6FDetect.app.js","url":"app.js"}, + {"name":"FD6FDetect.img","url":"app-icon.js","evaluate":true} + ] } ] +] From e95744718ed388c46536d9c8cbc95a505da68434 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:50:08 -0500 Subject: [PATCH 13/26] Update apps.json --- apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps.json b/apps.json index 56fadbd49..c1b4deb6c 100644 --- a/apps.json +++ b/apps.json @@ -3451,5 +3451,5 @@ {"name":"FD6FDetect.img","url":"app-icon.js","evaluate":true} ] } -] + ] From 12ee7f830323475b039b4307404d168397b61f4b Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:53:23 -0500 Subject: [PATCH 14/26] Update FD6FDetect.app.js --- apps/fd6fdetect/FD6FDetect.app.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/fd6fdetect/FD6FDetect.app.js b/apps/fd6fdetect/FD6FDetect.app.js index 67e4d2c02..dc2649abc 100644 --- a/apps/fd6fdetect/FD6FDetect.app.js +++ b/apps/fd6fdetect/FD6FDetect.app.js @@ -2,7 +2,7 @@ //Bangle.setLCDTimeout(0); // debugging purposes g.clear(); // clear screen let amount = 'global value'; // make amount global -function FindCOVIDAwareBeacons() { // function for finding COVID beacons +function FindFD6FBeacons() { // function for finding COVID beacons NRF.findDevices(function(devices) { // function for searching for devices with the UUID of FD6F g.setFont('Vector', 75); // set size of font to 75x g.setFontAlign(0,0); // align font @@ -11,15 +11,15 @@ NRF.findDevices(function(devices) { // function for searching for devices with t g.drawString(amount, 125, 100); // draw amount of devices matching FD6F if (amount == 1) { // check to see if we need to use the word users or user g.setFont('Vector', 25); // set size of font to 25x - g.drawString('COVIDAwareMN', 125, 150); // draw string - g.drawString('user', 125, 175); // draw string + g.drawString('FD6F', 125, 150); // draw string + g.drawString('beacon', 125, 175); // draw string g.drawString('nearby', 125, 200); // draw string } else{ // if more than one change user to users g.setFont('Vector', 25); // set size of font to 25x - g.drawString('COVIDAwareMN', 125, 150); // draw string - g.drawString('users', 125, 175); // draw string + g.drawString('FD6F', 125, 150); // draw string + g.drawString('beacons', 125, 175); // draw string g.drawString('nearby', 125, 200); // draw string } }, {timeout : 1000, filters : [{services: ['fd6f'] }] }); // set filters to target only FD6F beacons } -setInterval(FindCOVIDAwareBeacons, 2000); // poll for new devices +setInterval(FindFD6FBeacons, 2000); // poll for new devices From 0720eb592918cc9736e22e4bf2534cc3015dbd70 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:53:40 -0500 Subject: [PATCH 15/26] Delete FD6FDetect.app.js --- apps/fd6fdetect/FD6FDetect.app.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 apps/fd6fdetect/FD6FDetect.app.js diff --git a/apps/fd6fdetect/FD6FDetect.app.js b/apps/fd6fdetect/FD6FDetect.app.js deleted file mode 100644 index dc2649abc..000000000 --- a/apps/fd6fdetect/FD6FDetect.app.js +++ /dev/null @@ -1,25 +0,0 @@ -//Bangle.setLCDPower(1); //debugging purposes -//Bangle.setLCDTimeout(0); // debugging purposes -g.clear(); // clear screen -let amount = 'global value'; // make amount global -function FindFD6FBeacons() { // function for finding COVID beacons -NRF.findDevices(function(devices) { // function for searching for devices with the UUID of FD6F - g.setFont('Vector', 75); // set size of font to 75x - g.setFontAlign(0,0); // align font - var amount = devices.length; // get amount of devices matching FD6F - g.clear(); // clear screen - g.drawString(amount, 125, 100); // draw amount of devices matching FD6F - if (amount == 1) { // check to see if we need to use the word users or user - g.setFont('Vector', 25); // set size of font to 25x - g.drawString('FD6F', 125, 150); // draw string - g.drawString('beacon', 125, 175); // draw string - g.drawString('nearby', 125, 200); // draw string - } else{ // if more than one change user to users - g.setFont('Vector', 25); // set size of font to 25x - g.drawString('FD6F', 125, 150); // draw string - g.drawString('beacons', 125, 175); // draw string - g.drawString('nearby', 125, 200); // draw string - } -}, {timeout : 1000, filters : [{services: ['fd6f'] }] }); // set filters to target only FD6F beacons -} -setInterval(FindFD6FBeacons, 2000); // poll for new devices From 5ec2135d7d7afaa4063f3393d816cfbc2fead444 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:53:49 -0500 Subject: [PATCH 16/26] Create app.js --- apps/fd6fdetect/app.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apps/fd6fdetect/app.js diff --git a/apps/fd6fdetect/app.js b/apps/fd6fdetect/app.js new file mode 100644 index 000000000..dc2649abc --- /dev/null +++ b/apps/fd6fdetect/app.js @@ -0,0 +1,25 @@ +//Bangle.setLCDPower(1); //debugging purposes +//Bangle.setLCDTimeout(0); // debugging purposes +g.clear(); // clear screen +let amount = 'global value'; // make amount global +function FindFD6FBeacons() { // function for finding COVID beacons +NRF.findDevices(function(devices) { // function for searching for devices with the UUID of FD6F + g.setFont('Vector', 75); // set size of font to 75x + g.setFontAlign(0,0); // align font + var amount = devices.length; // get amount of devices matching FD6F + g.clear(); // clear screen + g.drawString(amount, 125, 100); // draw amount of devices matching FD6F + if (amount == 1) { // check to see if we need to use the word users or user + g.setFont('Vector', 25); // set size of font to 25x + g.drawString('FD6F', 125, 150); // draw string + g.drawString('beacon', 125, 175); // draw string + g.drawString('nearby', 125, 200); // draw string + } else{ // if more than one change user to users + g.setFont('Vector', 25); // set size of font to 25x + g.drawString('FD6F', 125, 150); // draw string + g.drawString('beacons', 125, 175); // draw string + g.drawString('nearby', 125, 200); // draw string + } +}, {timeout : 1000, filters : [{services: ['fd6f'] }] }); // set filters to target only FD6F beacons +} +setInterval(FindFD6FBeacons, 2000); // poll for new devices From 895b8d3d218b480c522fb85a7e21b727b2410dd7 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:53:58 -0500 Subject: [PATCH 17/26] Delete FD6FDetect.img --- apps/fd6fdetect/FD6FDetect.img | Bin 10371 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 apps/fd6fdetect/FD6FDetect.img diff --git a/apps/fd6fdetect/FD6FDetect.img b/apps/fd6fdetect/FD6FDetect.img deleted file mode 100644 index 2e3442edc94eacf778694b9c81674fd455e069cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10371 zcmeI2P14&o42D&uOJ|c4Xykn-+ROjYHr#9_bZ6H&1#S{*CrVcx~TjbL4b$jAg&swpvjxTQc3jVo%T;$VK+8HcXIuQ zn^2Cc3j~bEK8zWL5II6tj(P$^APWVkwNF9788lcbu6Y*Y1&udftFxpc=p{KQ=tgq` za5^i(`)fL{a&YaD3mlI>-xdz+?enodf)g6&S5^yo%6U-^uGsX3@*w9c?MI(%-Cnot zS8eqcTB)Pm^Lc|~A2i~<>xhGxZCm{ORU2>X2ON^KZGTp=-T(|#e8ryS|f*w)mS><@FSYGNajF z8fA zut4CHIU<<^t9LwOtoLG8=7^vLM`OJ9+z>UkunPVehVqt5HEg{ru}Ug{+UuQ@pXF~_`m z98QBqxtU)V9CKdeTJ1xB1!h7C_FiqyD#19a?a1>Z%)r-NAC18=nN>}E4tEsv;v;cv zjnKWz30_T(g@$RpqA&q@5h&?7=3tb09l!7N-Uli21cww`9ZF(kKg(&{p{W?g>DI>- zu!jYxAT}p2WT!ft0-9I%zf$a@r5e78Tg_R;MI4eK%_Dh%bJin)8esYuuhUCn=2dg# zqSAnvS+TO9(y#RJyUkKOtft{kNLJ@nbKo+MzswlOhYiDB?wT@Vu1^u-T38&{Z8iIx zd-(ofv6r=6RAy|{S;tU=TMsqUdTPg=dwO{N7w5@M#JleqHs0fqe;pv(tLAq&;$Kyl z@r{H#oV6Wbd%*J1Mu#JqoS4e2bhh>(PVpv=>F0?-25$k=Q|*X$UXer56!{v5lSI&2 zPNe($ce;~JzW&>)2&%X{h&Cp<^C%Oa+=F=T2@w=XT9xm9SJjiGQrKq0zJ?C!v)oZM92^<-NL#7iYnE?5yD00QnYE94Le2hJT6#rl_#0r+pO2M*HGk&h2|PaNRwb-4C#NcoVd_K4RH QoN{uZsX6XN$FW5D58@LCkpKVy From de5d096a5c73ec978ec1351f2634f8394d29791f Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:54:11 -0500 Subject: [PATCH 18/26] Add files via upload --- apps/fd6fdetect/app.img | Bin 0 -> 10371 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 apps/fd6fdetect/app.img diff --git a/apps/fd6fdetect/app.img b/apps/fd6fdetect/app.img new file mode 100644 index 0000000000000000000000000000000000000000..2e3442edc94eacf778694b9c81674fd455e069cd GIT binary patch literal 10371 zcmeI2P14&o42D&uOJ|c4Xykn-+ROjYHr#9_bZ6H&1#S{*CrVcx~TjbL4b$jAg&swpvjxTQc3jVo%T;$VK+8HcXIuQ zn^2Cc3j~bEK8zWL5II6tj(P$^APWVkwNF9788lcbu6Y*Y1&udftFxpc=p{KQ=tgq` za5^i(`)fL{a&YaD3mlI>-xdz+?enodf)g6&S5^yo%6U-^uGsX3@*w9c?MI(%-Cnot zS8eqcTB)Pm^Lc|~A2i~<>xhGxZCm{ORU2>X2ON^KZGTp=-T(|#e8ryS|f*w)mS><@FSYGNajF z8fA zut4CHIU<<^t9LwOtoLG8=7^vLM`OJ9+z>UkunPVehVqt5HEg{ru}Ug{+UuQ@pXF~_`m z98QBqxtU)V9CKdeTJ1xB1!h7C_FiqyD#19a?a1>Z%)r-NAC18=nN>}E4tEsv;v;cv zjnKWz30_T(g@$RpqA&q@5h&?7=3tb09l!7N-Uli21cww`9ZF(kKg(&{p{W?g>DI>- zu!jYxAT}p2WT!ft0-9I%zf$a@r5e78Tg_R;MI4eK%_Dh%bJin)8esYuuhUCn=2dg# zqSAnvS+TO9(y#RJyUkKOtft{kNLJ@nbKo+MzswlOhYiDB?wT@Vu1^u-T38&{Z8iIx zd-(ofv6r=6RAy|{S;tU=TMsqUdTPg=dwO{N7w5@M#JleqHs0fqe;pv(tLAq&;$Kyl z@r{H#oV6Wbd%*J1Mu#JqoS4e2bhh>(PVpv=>F0?-25$k=Q|*X$UXer56!{v5lSI&2 zPNe($ce;~JzW&>)2&%X{h&Cp<^C%Oa+=F=T2@w=XT9xm9SJjiGQrKq0zJ?C!v)oZM92^<-NL#7iYnE?5yD00QnYE94Le2hJT6#rl_#0r+pO2M*HGk&h2|PaNRwb-4C#NcoVd_K4RH QoN{uZsX6XN$FW5D58@LCkpKVy literal 0 HcmV?d00001 From 3d2a10a51e66ddc381c9f98f4e8cae120362ab67 Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:56:12 -0500 Subject: [PATCH 19/26] Delete app.img --- apps/fd6fdetect/app.img | Bin 10371 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 apps/fd6fdetect/app.img diff --git a/apps/fd6fdetect/app.img b/apps/fd6fdetect/app.img deleted file mode 100644 index 2e3442edc94eacf778694b9c81674fd455e069cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10371 zcmeI2P14&o42D&uOJ|c4Xykn-+ROjYHr#9_bZ6H&1#S{*CrVcx~TjbL4b$jAg&swpvjxTQc3jVo%T;$VK+8HcXIuQ zn^2Cc3j~bEK8zWL5II6tj(P$^APWVkwNF9788lcbu6Y*Y1&udftFxpc=p{KQ=tgq` za5^i(`)fL{a&YaD3mlI>-xdz+?enodf)g6&S5^yo%6U-^uGsX3@*w9c?MI(%-Cnot zS8eqcTB)Pm^Lc|~A2i~<>xhGxZCm{ORU2>X2ON^KZGTp=-T(|#e8ryS|f*w)mS><@FSYGNajF z8fA zut4CHIU<<^t9LwOtoLG8=7^vLM`OJ9+z>UkunPVehVqt5HEg{ru}Ug{+UuQ@pXF~_`m z98QBqxtU)V9CKdeTJ1xB1!h7C_FiqyD#19a?a1>Z%)r-NAC18=nN>}E4tEsv;v;cv zjnKWz30_T(g@$RpqA&q@5h&?7=3tb09l!7N-Uli21cww`9ZF(kKg(&{p{W?g>DI>- zu!jYxAT}p2WT!ft0-9I%zf$a@r5e78Tg_R;MI4eK%_Dh%bJin)8esYuuhUCn=2dg# zqSAnvS+TO9(y#RJyUkKOtft{kNLJ@nbKo+MzswlOhYiDB?wT@Vu1^u-T38&{Z8iIx zd-(ofv6r=6RAy|{S;tU=TMsqUdTPg=dwO{N7w5@M#JleqHs0fqe;pv(tLAq&;$Kyl z@r{H#oV6Wbd%*J1Mu#JqoS4e2bhh>(PVpv=>F0?-25$k=Q|*X$UXer56!{v5lSI&2 zPNe($ce;~JzW&>)2&%X{h&Cp<^C%Oa+=F=T2@w=XT9xm9SJjiGQrKq0zJ?C!v)oZM92^<-NL#7iYnE?5yD00QnYE94Le2hJT6#rl_#0r+pO2M*HGk&h2|PaNRwb-4C#NcoVd_K4RH QoN{uZsX6XN$FW5D58@LCkpKVy From 22ac4beb8c6c6415343f4fa901ff75edc9bf436e Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:56:23 -0500 Subject: [PATCH 20/26] Create app-icon.js --- apps/fd6fdetect/app-icon.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 apps/fd6fdetect/app-icon.js diff --git a/apps/fd6fdetect/app-icon.js b/apps/fd6fdetect/app-icon.js new file mode 100644 index 000000000..c18c93a9d --- /dev/null +++ b/apps/fd6fdetect/app-icon.js @@ -0,0 +1 @@ +var img = E.toArrayBuffer(atob("MDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+AAAAAAB+AAAAAAB+AAAAAIA8AQAAAcD/A4AAA8P/w8AAB8//8+AAD/+B//AAB/wAP+AAAPgAHwAAAPGBjwAAAePDx4AAAcPDw4AAA4PDwcAAA4GBgcAAB4AAAeAA9wAAAO8A9xw8OO8A/z48fP8A/z48fP8A/xw8OP8A9wAAAO8AB4AAAeAAA4GBgcAAA4PDwcAAAcPDw4AAAePDx4AAAPGBjwAAAPgAHwAAB/wAP+AAD/+B//AAB8//8+AAA8P/w8AAAcD/A4AAAIA8AQAAAAA8AAAAAAB+AAAAAAB+AAAAAAB+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==")) From 9e5c41df80b034817081964570eb7a82c584f90c Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 11:00:03 -0500 Subject: [PATCH 21/26] Update apps.json --- apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps.json b/apps.json index c1b4deb6c..574ba06ee 100644 --- a/apps.json +++ b/apps.json @@ -3445,7 +3445,7 @@ "icon": "app.png", "version":"0.1", "description": "Allows you to see 0xFD6F beacons near you.", - "tags": "", + "tags": "tool", "storage": [ {"name":"FD6FDetect.app.js","url":"app.js"}, {"name":"FD6FDetect.img","url":"app-icon.js","evaluate":true} From 4be76545e979efaef246014ffcf73145255681ea Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 11:04:17 -0500 Subject: [PATCH 22/26] Update app-icon.js --- apps/fd6fdetect/app-icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fd6fdetect/app-icon.js b/apps/fd6fdetect/app-icon.js index c18c93a9d..e8868099f 100644 --- a/apps/fd6fdetect/app-icon.js +++ b/apps/fd6fdetect/app-icon.js @@ -1 +1 @@ -var img = E.toArrayBuffer(atob("MDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+AAAAAAB+AAAAAAB+AAAAAIA8AQAAAcD/A4AAA8P/w8AAB8//8+AAD/+B//AAB/wAP+AAAPgAHwAAAPGBjwAAAePDx4AAAcPDw4AAA4PDwcAAA4GBgcAAB4AAAeAA9wAAAO8A9xw8OO8A/z48fP8A/z48fP8A/xw8OP8A9wAAAO8AB4AAAeAAA4GBgcAAA4PDwcAAAcPDw4AAAePDx4AAAPGBjwAAAPgAHwAAB/wAP+AAD/+B//AAB8//8+AAA8P/w8AAAcD/A4AAAIA8AQAAAAA8AAAAAAB+AAAAAAB+AAAAAAB+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==")) +require("heatshrink").decompress(atob("mEwwIjgg/gAp0IgfAiAFBjkP+E4AoM8n/8ngFBvn//8+AoP//Ef/4FBv/Agf+AoMPwEB+AFCjEYAoUenk8vAvCAoIvCnAFBjgFCC4IFCCgUeEQNwAoMO+EPuPD4eOAoPz8fH54FH+IRBx4FBDogpFGoxBFJopZFMopxFPoqJFSoqhFVoq5FgAFBa6gAW")) From c283f81af297574cdbeea878b6118f997773f3fd Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 11:09:15 -0500 Subject: [PATCH 23/26] Update app.js --- apps/fd6fdetect/app.js | 44 ++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/apps/fd6fdetect/app.js b/apps/fd6fdetect/app.js index dc2649abc..a7ef71994 100644 --- a/apps/fd6fdetect/app.js +++ b/apps/fd6fdetect/app.js @@ -1,25 +1,23 @@ -//Bangle.setLCDPower(1); //debugging purposes -//Bangle.setLCDTimeout(0); // debugging purposes -g.clear(); // clear screen -let amount = 'global value'; // make amount global -function FindFD6FBeacons() { // function for finding COVID beacons -NRF.findDevices(function(devices) { // function for searching for devices with the UUID of FD6F - g.setFont('Vector', 75); // set size of font to 75x - g.setFontAlign(0,0); // align font - var amount = devices.length; // get amount of devices matching FD6F - g.clear(); // clear screen - g.drawString(amount, 125, 100); // draw amount of devices matching FD6F - if (amount == 1) { // check to see if we need to use the word users or user - g.setFont('Vector', 25); // set size of font to 25x - g.drawString('FD6F', 125, 150); // draw string - g.drawString('beacon', 125, 175); // draw string - g.drawString('nearby', 125, 200); // draw string - } else{ // if more than one change user to users - g.setFont('Vector', 25); // set size of font to 25x - g.drawString('FD6F', 125, 150); // draw string - g.drawString('beacons', 125, 175); // draw string - g.drawString('nearby', 125, 200); // draw string +g.clear(); +let amount = 'global value'; +function FindFD6FBeacons() { +NRF.findDevices(function(devices) { + g.setFont('Vector', 75); + g.setFontAlign(0,0); + var amount = devices.length; + g.clear(); + g.drawString(amount, 125, 100); + if (amount == 1) { + g.setFont('Vector', 25); + g.drawString('FD6F', 125, 150); + g.drawString('beacon', 125, 175); + g.drawString('nearby', 125, 200); + } else{ + g.setFont('Vector', 25); + g.drawString('FD6F', 125, 150); + g.drawString('beacons', 125, 175); + g.drawString('nearby', 125, 200); } -}, {timeout : 1000, filters : [{services: ['fd6f'] }] }); // set filters to target only FD6F beacons +}, {timeout : 1000, filters : [{services: ['fd6f'] }] }); } -setInterval(FindFD6FBeacons, 2000); // poll for new devices +setInterval(FindFD6FBeacons, 2000); From 39d94076c01ba775d5b24253b92961749988695c Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 11:11:10 -0500 Subject: [PATCH 24/26] Update apps.json --- apps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps.json b/apps.json index 574ba06ee..a50447cbd 100644 --- a/apps.json +++ b/apps.json @@ -3447,8 +3447,8 @@ "description": "Allows you to see 0xFD6F beacons near you.", "tags": "tool", "storage": [ - {"name":"FD6FDetect.app.js","url":"app.js"}, - {"name":"FD6FDetect.img","url":"app-icon.js","evaluate":true} + {"name":"fd6fdetect.app.js","url":"app.js"}, + {"name":"fd6fdetect.img","url":"app-icon.js","evaluate":true} ] } From 41dbc7bb24c870eec4a344954e5735de27f5804b Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 7 Sep 2021 11:18:51 -0500 Subject: [PATCH 25/26] Update ChangeLog --- apps/fd6fdetect/ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fd6fdetect/ChangeLog b/apps/fd6fdetect/ChangeLog index 27a8806b2..3c82c3ca7 100644 --- a/apps/fd6fdetect/ChangeLog +++ b/apps/fd6fdetect/ChangeLog @@ -1 +1 @@ -0.01: Added source code +0.1: Added source code From 75431c6fc82e97617e1371ebf9aabfed5a349b0b Mon Sep 17 00:00:00 2001 From: Smooklu <37220586+Smooklu@users.noreply.github.com> Date: Tue, 14 Sep 2021 14:11:59 -0500 Subject: [PATCH 26/26] Update apps.json --- apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps.json b/apps.json index a50447cbd..9b37f1601 100644 --- a/apps.json +++ b/apps.json @@ -3440,7 +3440,7 @@ ] }, { "id": "fd6fdetect", - "name": "FD6FDetect", + "name": "fd6fdetect", "shortName":"fd6fdetect", "icon": "app.png", "version":"0.1",