Obey buzz intensity
parent
8a7b30cf6c
commit
96ad9b3e01
|
|
@ -100,9 +100,9 @@ layout.render();
|
|||
|
||||
function configureNotification(stat) {
|
||||
stat.on('notify', (e)=>{
|
||||
settings.notify[stat.id].notifications.reduce(function (promise, buzzTime) {
|
||||
settings.notify[stat.id].notifications.reduce(function (promise, buzzPattern) {
|
||||
return promise.then(function () {
|
||||
return Bangle.buzz(buzzTime);
|
||||
return Bangle.buzz(buzzPattern[0], buzzPattern[1]);
|
||||
});
|
||||
}, Promise.resolve());
|
||||
console.log(`notify from ${JSON.stringify(e)}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue