Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Modes.prj.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ if (existsIsType(merged, 'volume_media_override', 'boolean') && merged.v

if (existsIsType(merged, 'volume_notification', 'int')) notificationVol(merged.volume_notification, false, false);
if (existsIsType(merged, 'dnd', 'string')) performTask('DoNotDisturb', 10, merged.dnd, '');
if (existsIsType(merged, 'silentMode', 'string')) silentMode(merged.silentMode);
if (existsIsType(merged, 'autoSyncOn', 'boolean')) setAutoSync(merged.autoSyncOn);
if (existsIsType(merged, 'location', 'string')) performTask('LocationMode', 10, merged.location, '');
if (existsIsType(merged, 'wifiOn', 'boolean')) setWifi(merged.wifiOn);
if (existsIsType(merged, 'bluetoothOn', 'boolean')) setBT(merged.bluetoothOn);
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ The configuration files each contain a single JSON object with the following pro
* `"priority"` - Priority-only
* `"alarms"` - Alarms-only
* `"none"` - Total silence
* `silentMode` - set the Silent Mode
* `"on"` - turn Silent Mode on
* `"vibrate"` - turn Vibrate Mode on
* `"off"` - turn Silent Mode on
* `autoSyncOn` - set the Auto Sync on or off
* `true` - turns Auto Sync on
* `false` - turns Auto Sync off
* `location` - change the location mode
* `"off"` - location services off
* `"accuracy"` - high accuracy mode (uses GPS, Wifi, Bluetooth, and mobile networks)
Expand Down
2 changes: 2 additions & 0 deletions config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"volumn_media": "null or integer (0-15)",
"volume_media_override": "null or boolean",
"dnd": "null, all (with quotes to turn off dnd), priority (with quotes for priority only), alarms (with quotes for alarms only), or none (with quotes for total silence)",
"silentMode": "null, off (for ringer), vibrate (for vibrate mode), or on (for silent mode)",
"autoSyncOn": "null or boolean",
"location": "null, off (to turn off location), accuracy (for High Accuracy), battery (for Battery Saver), or device (for Device Only)",
"wifiOn": "null or boolean",
"bluetoothOn": "null or boolean",
Expand Down
2 changes: 2 additions & 0 deletions js/ContextChanged.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ if (existsIsType(merged, 'volume_media_override', 'boolean') && merged.volume_me

if (existsIsType(merged, 'volume_notification', 'int')) notificationVol(merged.volume_notification, false, false);
if (existsIsType(merged, 'dnd', 'string')) performTask('DoNotDisturb', 10, merged.dnd, '');
if (existsIsType(merged, 'silentMode', 'string')) silentMode(merged.silentMode);
if (existsIsType(merged, 'autoSyncOn', 'boolean')) setAutoSync(merged.autoSyncOn);
if (existsIsType(merged, 'location', 'string')) performTask('LocationMode', 10, merged.location, '');
if (existsIsType(merged, 'wifiOn', 'boolean')) setWifi(merged.wifiOn);
if (existsIsType(merged, 'bluetoothOn', 'boolean')) setBT(merged.bluetoothOn);
Expand Down