setting: Save settings in data file

master
Richard de Boer 2020-04-17 21:35:59 +02:00
parent b691f783aa
commit b047f14d4a
3 changed files with 5 additions and 27 deletions

View File

@ -122,15 +122,17 @@
{ "id": "setting", { "id": "setting",
"name": "Settings", "name": "Settings",
"icon": "settings.png", "icon": "settings.png",
"version":"0.16", "version":"0.17",
"description": "A menu for setting up Bangle.js", "description": "A menu for setting up Bangle.js",
"tags": "tool,system", "tags": "tool,system",
"storage": [ "storage": [
{"name":"setting.app.js","url":"settings.js"}, {"name":"setting.app.js","url":"settings.js"},
{"name":"setting.boot.js","url":"boot.js"}, {"name":"setting.boot.js","url":"boot.js"},
{"name":"setting.json","url":"settings-default.json","evaluate":true},
{"name":"setting.img","url":"settings-icon.js","evaluate":true} {"name":"setting.img","url":"settings-icon.js","evaluate":true}
], ],
"data": [
{"name":"setting.json"}
],
"sortorder" : -2 "sortorder" : -2
}, },
{ "id": "alarm", { "id": "alarm",

View File

@ -18,3 +18,4 @@
0.14: Reduce memory usage when running app settings page 0.14: Reduce memory usage when running app settings page
0.15: Reduce memory usage when running default clock chooser (#294) 0.15: Reduce memory usage when running default clock chooser (#294)
0.16: Reduce memory usage further when running app settings page 0.16: Reduce memory usage further when running app settings page
0.17: Don't overwrite existing settings on app update

View File

@ -1,25 +0,0 @@
{
ble: true, // Bluetooth enabled by default
blerepl: true, // Is REPL on Bluetooth - can Espruino IDE be used?
log: false, // Do log messages appear on screen?
timeout: 10, // Default LCD timeout in seconds
vibrate: true, // Vibration enabled by default. App must support
beep: "vib", // Beep enabled by default. App must support
timezone: 0, // Set the timezone for the device
HID : false, // BLE HID mode, off by default
clock: null, // a string for the default clock's name
"12hour" : false, // 12 or 24 hour clock?
// welcomed : undefined/true (whether welcome app should show)
brightness: 1, // LCD brightness from 0 to 1
options: {
wakeOnBTN1: true,
wakeOnBTN2: true,
wakeOnBTN3: true,
wakeOnFaceUp: false,
wakeOnTouch: false,
wakeOnTwist: true,
twistThreshold: 819.2,
twistMaxY: -800,
twistTimeout: 1000
}
}