mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Feature: Disable High/Low Alarms
This commit is contained in:
+2
-2
@@ -68,8 +68,8 @@
|
||||
</dl>
|
||||
<dl class="toggle">
|
||||
<dt>Enable Alarms <a class="tip" original-title="When enabled the an alarm will sound when the BG falls outside of the 80-180 range."><i class="icon-help-circled"></i></a></dt>
|
||||
<dd><input type="checkbox" name="alarmhigh-browser" id="alarmhigh-browser" /><label for="alarmhigh-browser">Over 180</label></dd>
|
||||
<dd><input type="checkbox" name="alarmlow-browser" id="alarmlow-browser" /><label for="alarmlow-browser">Below 80 </label></dd>
|
||||
<dd><input type="checkbox" name="alarmhigh-browser" id="alarmhigh-browser" /><label for="alarmhigh-browser">High Alarm</label></dd>
|
||||
<dd><input type="checkbox" name="alarmlow-browser" id="alarmlow-browser" /><label for="alarmlow-browser">Low Alarm</label></dd>
|
||||
</dl>
|
||||
<dl class="toggle">
|
||||
<dt>Night Mode <a class="tip" original-title="When enabled the page will be dimmed from 10pm - 6am."><i class="icon-help-circled"></i></a></dt>
|
||||
|
||||
+10
-6
@@ -727,16 +727,20 @@
|
||||
console.log('Client connected to server.')
|
||||
});
|
||||
socket.on('alarm', function () {
|
||||
console.log("Alarm raised!");
|
||||
currentAlarmType = 'alarm';
|
||||
if (browserSettings.alarmHigh) generateAlarm(alarmSound);
|
||||
if (browserSettings.alarmHigh) {
|
||||
console.log("Alarm raised!");
|
||||
currentAlarmType = 'alarm';
|
||||
generateAlarm(alarmSound);
|
||||
}
|
||||
brushInProgress = false;
|
||||
updateChart(false);
|
||||
});
|
||||
socket.on('urgent_alarm', function () {
|
||||
console.log("Urgent alarm raised!");
|
||||
currentAlarmType = 'urgent_alarm';
|
||||
if (browserSettings.alarmLow) generateAlarm(urgentAlarmSound);
|
||||
if (browserSettings.alarmLow) {
|
||||
console.log("Urgent alarm raised!");
|
||||
currentAlarmType = 'urgent_alarm';
|
||||
generateAlarm(urgentAlarmSound);
|
||||
}
|
||||
brushInProgress = false;
|
||||
updateChart(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user