Commit Graph

20 Commits (c135c70f7eb08dd127e909fe943f2a8cd7c47c49)

Author SHA1 Message Date
Richard de Boer c135c70f7e Settings: load app settings in their own scope 2020-04-03 19:56:30 +02:00
Richard de Boer 39621bfae0 Settings: Add support for app/widget settings
Apps and widgets can add a `<appid>.settings.js` file which can be
opened from the "App/widget settings" submenu.
This file should define a single function to configure the app/widget.
The function is passed a `back` argument, which can be used to return to
the settings menu by calling `back()`.

Example `<appid>.settings.js`:
```
function settings(back) {
  const mySettingsMenu = {
    '': { 'title': 'My Widget' },
    '< Back': back, // go back to settings menu
    'Sound': {
      value: false,
      format: s => s ? 'on' : 'off',
      onchange: s => {if(s) Bangle.beep()} // TODO: save new value
    },
  };
  E.showMenu(mySettingsMenu)
}
```
2020-04-03 01:46:43 +02:00
Gordon Williams a874d5838c Added vibrate as beep workaround 2020-03-25 11:05:33 +00:00
Gordon Williams af686919a1 Remove distance setting as there's a separate app for Locale now 2020-03-10 12:35:45 +00:00
Gordon Williams 6cfe9c340b Take advantage of recent nonbreaking change that stops readJSON from causing errors 2020-02-28 17:02:26 +00:00
Gordon Williams 50e3c852fb MASSIVE REFACTOR
New Bangle.js firmwares remove 8 char name restriction so we're ditching the first char -> file type and using normal file extensions
Took the opportunity to remove code for older Bangle.js (since the new stuff won't work anyway)
Also removed the need for an 'app.json' - it's now renamed 'app.info' on the watch, and we just auto-generate it
Renamed a few apps so widgets all start with 'wid'
2020-02-28 11:44:25 +00:00
Gordon Williams 9a76d6d800 Disable GPS time log messages, add (default=1) setting to hide log messages 2020-02-25 13:34:06 +00:00
Gordon Williams 860da909bf Added welcome app (fix #96)
When installing default apps, update time
2020-02-13 08:18:46 +00:00
Gordon Williams 47205bfe61 Add alarms app (fix #83) 2020-02-12 10:48:14 +00:00
Gordon Williams 184f173e44 no need to set screen on all the time 2020-02-10 16:58:34 +00:00
Gordon Williams 3eb5d15267 Fix https://github.com/espruino/BangleApps/issues/93 2020-02-10 13:49:57 +00:00
Gordon Williams 527ff57e99 Simplify settings and add locale submenu, add 12/24 hour option (fix #76), add distance format option, and ensure settings all apply at boot by moving them to the bootloader 'app' (fix #89) 2020-02-04 16:17:23 +00:00
Gordon Williams 6d15ec14f0 Fix issue passing extra arguments to load() now we've allowed load to take an extra argument 2020-01-17 11:53:54 +00:00
Gordon Williams b4b882d523 replace deprecated Bangle.menu 2020-01-17 11:32:32 +00:00
Ujjwal Sharma 08c8ef70d1
fixup! feature: all thirty-minute timezones 2019-12-19 19:53:53 +05:30
Ujjwal Sharma d483eb9064
feature: all thirty-minute timezones 2019-12-19 03:12:55 +05:30
Gordon Williams cc06038619 enable BLE/programmable by default for now or it's a support nightmare 2019-12-05 11:48:41 +00:00
Gordon Williams f04f6f62aa just quickly fix #15 2019-11-20 08:19:56 +00:00
Gordon Williams bc9e1e566f Merge branch 'clock-select' of https://github.com/knolleary/BangleApps into knolleary-clock-select 2019-11-18 10:09:48 +00:00
ra100 da1d4d768c
🚚 Move apps to subfolders #46 2019-11-17 23:43:58 +01:00