Skip to content

Commit d0affdf

Browse files
authored
Merge branch 'master' into messagegui
2 parents e474a06 + 6f6fc0a commit d0affdf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1868
-1005
lines changed

apps/93dub/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
0.05: Display time, even on Thursday
66
0.06: Fix light theme issue, where widgets would end up on a light strip
77
0.07: Minor code improvements
8+
0.08: Support Fast Loading

apps/93dub/app.js

Lines changed: 155 additions & 139 deletions
Large diffs are not rendered by default.

apps/93dub/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"shortName":"93 Dub",
44
"icon": "93dub.png",
55
"screenshots": [{"url":"screenshot.png"}],
6-
"version": "0.07",
6+
"version": "0.08",
77
"description": "Fan recreation of orviwan's 91 Dub app for the Pebble smartwatch. Uses assets from his 91-Dub-v2.0 repo",
88
"tags": "clock",
99
"type": "clock",

apps/agenda/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
0.14: Fixed "Today" and "Yesterday" wrongly displayed for allDay events on some time zones
1717
0.15: Minor code improvements
1818
0.16: Correct date for all day events in negative timezones, improve locale display
19+
0.17: Fixed "Today" and "Tomorrow" labels displaying in non-current weeks

apps/agenda/agenda.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ function formatDay(date) {
4444
return formattedDate;
4545
}
4646
const today = new Date(Date.now());
47-
if (date.getDay() == today.getDay() && date.getMonth() == today.getMonth())
47+
if (date.getDate() == today.getDate())
4848
return /*LANG*/"Today ";
4949
else {
50-
const tomorrow = new Date(Date.now() + 86400 * 1000);
51-
if (date.getDay() == tomorrow.getDay() && date.getMonth() == tomorrow.getMonth()) {
50+
var tomorrow = new Date();
51+
tomorrow.setDate(tomorrow.getDate() + 1);
52+
if (date.getDate() == tomorrow.getDate()) {
5253
return /*LANG*/"Tomorrow ";
5354
}
5455
return formattedDate;

apps/agenda/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "agenda",
33
"name": "Agenda",
4-
"version": "0.16",
4+
"version": "0.17",
55
"description": "Simple agenda",
66
"icon": "agenda.png",
77
"screenshots": [{"url":"screenshot_agenda_overview.png"}, {"url":"screenshot_agenda_event1.png"}, {"url":"screenshot_agenda_event2.png"}],

apps/android/ChangeLog

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@
3939
Allow `calendar-` to take an array of items to remove
4040
0.37: Support Gadgetbridge canned responses
4141
0.38: Don't rewrite settings file on every boot!
42-
0.39: Move GB message handling into a library to reduce boot time from 40ms->13ms
42+
0.39: Move GB message handling into a library to reduce boot time from 40ms->13ms
43+
0.40: Ensure we send health 'activity' message to gadgetbridge (added 2v26)
44+
0.41: When using `actfetch`, fetch historical activity type too
45+
0.42: Add handling for android STREAM_MUSIC volume level info, emitting on
46+
arrival. (Needs Gadgetbridge nightly (either flavor) for now, or stable
47+
version 85 when it's out)
48+

apps/android/boot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
setInterval(sendBattery, 10*60*1000);
3333
// Health tracking - if 'realtime' data is sent with 'rt:1', but let's still send our activity log every 10 mins
3434
Bangle.on('health', h=>{
35-
require("android").gbSend({ t: "act", stp: h.steps, hrm: h.bpm, mov: h.movement });
35+
require("android").gbSend({ t: "act", stp: h.steps, hrm: h.bpm, mov: h.movement, act: h.activity }); // h.activity added in 2v26
3636
});
3737
// Music control
3838
Bangle.musicControl = cmd => {

apps/android/lib.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ exports.gbHandler = (event) => {
4444
"musicinfo" : function() {
4545
require("messages").pushMessage(Object.assign(event, {t:"modify",id:"music",title:"Music"}));
4646
},
47+
// {t:"audio", v:(percentage of max volume for android STREAM_MUSIC)}
48+
"audio" : function() {
49+
Bangle.emit("musicVolume", event.v);
50+
},
4751
// {"t":"call","cmd":"incoming/end/start/outgoing","name":"Bob","number":"12421312"})
4852
"call" : function() {
4953
Object.assign(event, {
@@ -213,7 +217,8 @@ exports.gbHandler = (event) => {
213217
ts: sampleTs,
214218
stp: r.steps,
215219
hrm: r.bpm,
216-
mov: r.movement
220+
mov: r.movement,
221+
act: r.activity
217222
});
218223
actCount++;
219224
}
@@ -385,4 +390,4 @@ exports.overwriteGPS = () => { // if the overwrite option is set, call this on i
385390
setTimeout(()=>{
386391
if (!Bangle.isGPSOn()) require("android").gbSend({ t: "gps_power", status: false });
387392
},3000);
388-
};
393+
};

apps/android/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "android",
33
"name": "Android Integration",
44
"shortName": "Android",
5-
"version": "0.39",
5+
"version": "0.42",
66
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
77
"icon": "app.png",
88
"tags": "tool,system,messages,notifications,gadgetbridge",

0 commit comments

Comments
 (0)