mirror of
https://git.wetfence.xyz/RandyTheSilly/Trigalarm.git
synced 2026-10-27 03:09:58 -04:00
Add alarm reset button to phone-side settings
This commit is contained in:
1 parent
0fe121f9ca
commit
86c250a052
6 files changed
+103
-51
No files matched your search
@@ -39,11 +39,17 @@ module.exports = function (minified) {
|
||||
xhr.send(data);
|
||||
}
|
||||
|
||||
function sendResetSignal() {
|
||||
window.location = 'pebblejs://close#' +
|
||||
encodeURIComponent(JSON.stringify({ resetAlarm: 1 }));
|
||||
}
|
||||
|
||||
clayConfig.on(clayConfig.EVENTS.AFTER_BUILD, function () {
|
||||
var pavlokIntegrationToggle = clayConfig.getItemById('pavlok_enable');
|
||||
togglePavlokIntegration.call(pavlokIntegrationToggle);
|
||||
pavlokIntegrationToggle.on('change', togglePavlokIntegration);
|
||||
|
||||
clayConfig.getItemById('pavlok_test_beep').on('click', sendTestBeep);
|
||||
clayConfig.getItemById('alarm_reset').on('click', sendResetSignal);
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user