Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update 20200420 #4

Merged
merged 140 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
123d53a
Merge branch 'master' of https://github.com/espruino/BangleApps
Apr 14, 2020
8d5fd6c
Merge pull request #1 from espruino/master
Red-The-Hunter Apr 15, 2020
24d35ec
Update stopwatch.js
Red-The-Hunter Apr 15, 2020
9a03c9b
Update ChangeLog
Red-The-Hunter Apr 15, 2020
5d588d6
Update interface.html
Red-The-Hunter Apr 15, 2020
70e9c23
Update interface.html
Red-The-Hunter Apr 15, 2020
02aaf2d
Update interface.html
Red-The-Hunter Apr 15, 2020
0f20176
Update interface.html
Red-The-Hunter Apr 15, 2020
331149d
revert
Red-The-Hunter Apr 15, 2020
32e811b
Update apps.json
Red-The-Hunter Apr 15, 2020
b8226cc
Added DANE
OmegaRogue Apr 15, 2020
9ab5a36
Merge branch 'master' of https://github.com/msdeibel/BangleApps
Apr 15, 2020
fdf6ee2
Merge branch 'master' of https://github.com/espruino/BangleApps
Apr 15, 2020
0ef33e1
Distance calc and display
Purple-Tentacle Apr 16, 2020
505730c
active pedometer: added readme
Purple-Tentacle Apr 16, 2020
d74eb43
active pedometer: version 0.02
Purple-Tentacle Apr 16, 2020
83b0a54
Merge pull request #305 from ps-igel/upstreamMerge
gfwilliams Apr 16, 2020
90e1167
Merge pull request #306 from Purple-Tentacle/master
gfwilliams Apr 16, 2020
078a3e6
change default temperature for israel as per #248
gfwilliams Apr 16, 2020
944693e
Chronowid initial
Purple-Tentacle Apr 16, 2020
1a93595
Chronowid initial
Purple-Tentacle Apr 16, 2020
6fc326b
Chronowid initial
Purple-Tentacle Apr 16, 2020
e2657a6
chronowid typo
Purple-Tentacle Apr 16, 2020
e0a3b9a
Launchers: Only store relevant app data (saves RAM when many apps)
gfwilliams Apr 16, 2020
8c2decf
readme update
Purple-Tentacle Apr 16, 2020
9704522
removed type widget
Purple-Tentacle Apr 16, 2020
8c6b78e
Bugfix json creation
Purple-Tentacle Apr 16, 2020
083e4f7
Merge branch 'master' of https://github.com/Red-The-Hunter/BangleApps…
gfwilliams Apr 16, 2020
304e23f
Fix home button and add min/max for chart
Apr 16, 2020
24eb0f3
Minor changes based on JSLint hints
Apr 16, 2020
bb42044
Show elapsed time, and tweak stopwatch so lap times don't overlap the…
gfwilliams Apr 16, 2020
12e68ed
Merge branch 'Red-The-Hunter-master'
gfwilliams Apr 16, 2020
de2dc3a
Add readme and increment version
Apr 16, 2020
c9a3a0b
Merge pull request #307 from Purple-Tentacle/master
gfwilliams Apr 16, 2020
22e8926
Merge branch 'master' of https://github.com/espruino/BangleApps
Apr 16, 2020
a4ec996
Make widget play well with other Gadgetbridge widgets/apps
gfwilliams Apr 16, 2020
89691da
Merge pull request #309 from msdeibel/master
gfwilliams Apr 16, 2020
eb4ac30
Reduce memory usage further when running app settings page
gfwilliams Apr 16, 2020
3c62b26
Merge branch 'master' of github.com:espruino/BangleApps
gfwilliams Apr 16, 2020
92c24e2
Fix URLs in Webmanifest
OmegaRogue Apr 16, 2020
b02af77
Add Description, Remove add_to_apps.json
OmegaRogue Apr 16, 2020
242c35d
Merge pull request #310 from OmegaVoid/master
gfwilliams Apr 16, 2020
217d198
Add a "data" section to apps.json, with data files to clean on uninstall
rigrig Apr 11, 2020
9e0fd91
Data files: save all data files as a single string
rigrig Apr 15, 2020
3e5cfcd
Fixed home button and added readme for WOHRM
Apr 16, 2020
0458acd
Merge branch 'master' of https://github.com/espruino/BangleApps
Apr 16, 2020
fe884a9
Merge pull request #313 from msdeibel/master
gfwilliams Apr 16, 2020
9f0adf1
Data files: remove settings magic, some more sanitychecks
rigrig Apr 16, 2020
d00cfdf
Merge pull request #281 from rigrig/data_files
gfwilliams Apr 17, 2020
372f512
chronowid 0.02
Purple-Tentacle Apr 17, 2020
dcb2a6c
chronowid 0.02
Purple-Tentacle Apr 17, 2020
9f4d9bc
Merge pull request #315 from Purple-Tentacle/master
gfwilliams Apr 17, 2020
9a664ec
Compass: 0.02
Purple-Tentacle Apr 17, 2020
1017090
compass 0.02
Purple-Tentacle Apr 17, 2020
745e4d3
Merge pull request #316 from Purple-Tentacle/master
gfwilliams Apr 17, 2020
1fff62e
init hid camera app
paul-chrlt Apr 17, 2020
f750059
app code and config
paul-chrlt Apr 17, 2020
4453305
adding the extra comma as mentioned on bangle js documentation
paul-chrlt Apr 17, 2020
15535b0
move json info to the good place
paul-chrlt Apr 17, 2020
1dc2e38
json format
paul-chrlt Apr 17, 2020
c7f2a18
Remove "settings" from appid.info
rigrig Apr 17, 2020
43b0d88
widbatpc: Save settings in data file
rigrig Apr 17, 2020
b691f78
welcome: Save settings in data file
rigrig Apr 17, 2020
b047f14
setting: Save settings in data file
rigrig Apr 17, 2020
9358b4b
alarm: Save settings in data file
rigrig Apr 17, 2020
e4c0574
heart: Save settings in data file, add recording files to data
rigrig Apr 17, 2020
db35ede
ncstart: Save settings in data file
rigrig Apr 17, 2020
595de45
numerals: Save settings in data file
rigrig Apr 17, 2020
a8d1ef3
gpsrec: Save settings in data file, add track files to data
rigrig Apr 17, 2020
e615b49
wohrm: fix `apps.json` version
rigrig Apr 17, 2020
2278947
App Manager: Add support for data files
rigrig Apr 17, 2020
c0f9c8b
Store GPS coords, for use on next start if user desires
paulcockrell Apr 17, 2020
1739698
Fix Changelog
paulcockrell Apr 17, 2020
e052a6e
Remove repeated assignment of date to gps object
paulcockrell Apr 17, 2020
bf4a3e0
Added rclock app
Apr 18, 2020
07541db
Fix error in app.json
Apr 18, 2020
8f562d8
Fix error in app.json
Apr 18, 2020
06705a6
Fixes
Apr 18, 2020
7216b18
Fix error in reference to files
Apr 18, 2020
a1f1da0
Updated grey colors
Apr 18, 2020
afeff2c
Updated grey colors
Apr 18, 2020
0a7a9e0
Align fonts
Apr 18, 2020
6d1e87a
Added icons
Apr 18, 2020
cdba3a3
FIx name error
Apr 18, 2020
2f834a5
Changes to permissions on file
Apr 18, 2020
3ed6448
Delete .DS_Store
flautrup Apr 18, 2020
c7df378
Delete .DS_Store
flautrup Apr 18, 2020
01fb3ca
merge upstream
paul-chrlt Apr 18, 2020
888176f
shorter JS file name
paul-chrlt Apr 18, 2020
37e26d6
Create ChangeLog
jeffmer Apr 18, 2020
ed51586
Add files via upload
jeffmer Apr 18, 2020
73366a6
Update apps.json
jeffmer Apr 18, 2020
696afd7
ble hid control is removed from require and is now hard written in app
paul-chrlt Apr 18, 2020
41d206c
typos in code and no more useless timeout
paul-chrlt Apr 18, 2020
fc6d6aa
hid code correction
paul-chrlt Apr 18, 2020
b58069f
massive rewrite with really heavy inspiration from music control app
paul-chrlt Apr 18, 2020
58e826a
adding widgets
paul-chrlt Apr 18, 2020
63526c4
using app icon instead of text
paul-chrlt Apr 18, 2020
aa168c3
Fix App Calculator issues
fredericrous Apr 18, 2020
20f7c80
graphical adjustments
paul-chrlt Apr 18, 2020
d545a7a
changelog update
paul-chrlt Apr 18, 2020
406deaf
BlackJack game
lixas Apr 18, 2020
58d640a
added blackjack game to apps.json
lixas Apr 18, 2020
8987dc4
adde icon for game
lixas Apr 18, 2020
9879528
fix typo in description
lixas Apr 18, 2020
34e3748
add game tag and change icon
lixas Apr 18, 2020
aee60d9
Fix icon
lixas Apr 18, 2020
0c03bce
icon brightness
lixas Apr 18, 2020
79f1801
Add Calculator App Readme
fredericrous Apr 18, 2020
0df1fb1
initial commit adding metronome app
bengwalker Apr 19, 2020
28dc51c
correct app path
bengwalker Apr 19, 2020
0bdf476
remove metronome.info
bengwalker Apr 19, 2020
1596b02
Add setting to hide widget when battery is over 20%.
Apr 19, 2020
d2270ea
Update App Calculator's Readme. Larger image
fredericrous Apr 19, 2020
4d52de2
Added app for running
singintime Apr 19, 2020
acb3e81
Merge pull request #312 from rigrig/app_settings
gfwilliams Apr 20, 2020
0692c8f
Merge pull request #317 from rigrig/wohrm
gfwilliams Apr 20, 2020
c31394c
Removed href="#" that scrolls page on top
Fabio286 Apr 20, 2020
76a0513
Merge pull request #320 from paulcockrell/master
gfwilliams Apr 20, 2020
7164b0a
Merge pull request #319 from rigrig/files_data
gfwilliams Apr 20, 2020
8a315d1
Merge pull request #321 from flautrup/master
gfwilliams Apr 20, 2020
18169ba
Merge pull request #322 from jeffmer/master
gfwilliams Apr 20, 2020
96947be
Merge pull request #323 from fredericrous/calculator
gfwilliams Apr 20, 2020
0cfe719
Merge branch 'master' into master
gfwilliams Apr 20, 2020
8d0648e
Merge pull request #324 from paul-chrlt/master
gfwilliams Apr 20, 2020
725970f
Merge branch 'master' into master
gfwilliams Apr 20, 2020
3268bf1
Merge pull request #325 from lixas/master
gfwilliams Apr 20, 2020
9f237cf
Merge branch 'master' into master
gfwilliams Apr 20, 2020
5af5b7c
Merge pull request #326 from bengwalker/master
gfwilliams Apr 20, 2020
be0f3ef
Merge pull request #329 from Fabio286/web-fix
gfwilliams Apr 20, 2020
2c4682c
Merge branch 'master' into banglerun
gfwilliams Apr 20, 2020
15ce8d8
Merge pull request #328 from singintime/banglerun
gfwilliams Apr 20, 2020
5182cb5
Merge branch 'master' of https://github.com/lightnin/BangleApps into …
gfwilliams Apr 20, 2020
9cc5859
merge with new namings
gfwilliams Apr 20, 2020
20bb1ae
Add 'hide if charge greater than'
gfwilliams Apr 20, 2020
5bf3bfb
Merge branch 'lightnin-master'
gfwilliams Apr 20, 2020
5fe7f48
Add 'update all' button (fix #237)
gfwilliams Apr 20, 2020
0f8247e
Data file fixes for settings/welcome/ncstart
rigrig Apr 20, 2020
8d6dec8
Merge branch 'master' into data_files
rigrig Apr 20, 2020
14df398
Merge pull request #318 from rigrig/data_files
gfwilliams Apr 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ and which gives information about the app for the Launcher.
"files:"file1,file2,file3",
// added by BangleApps loader on upload - lists all files
// that belong to the app so it can be deleted
"data":"appid.data.json,appid.data?.json;appidStorageFile,appidStorageFile*"
// added by BangleApps loader on upload - lists files that
// the app might write, so they can be deleted on uninstall
// typically these files are not uploaded, but created by the app
// these can include '*' or '?' wildcards
}
```

Expand Down Expand Up @@ -240,16 +245,24 @@ and which gives information about the app for the Launcher.
"evaluate":true // if supplied, data isn't quoted into a String before upload
// (eg it's evaluated as JS)
},
]
"data": [ // list of files the app writes to
{"name":"appid.data.json", // filename used in storage
"storageFile":true // if supplied, file is treated as storageFile
},
{"wildcard":"appid.data.*" // wildcard of filenames used in storage
}, // this is mutually exclusive with using "name"
],
"sortorder" : 0, // optional - choose where in the list this goes.
// this should only really be used to put system
// stuff at the top
]
}
```

* name, icon and description present the app in the app loader.
* tags is used for grouping apps in the library, separate multiple entries by comma. Known tags are `tool`, `system`, `clock`, `game`, `sound`, `gps`, `widget`, `launcher` or empty.
* storage is used to identify the app files and how to handle them
* data is used to clean up files when the app is uninstalled

### `apps.json`: `custom` element

Expand Down Expand Up @@ -335,10 +348,10 @@ Example `settings.js`
```js
// make sure to enclose the function in parentheses
(function(back) {
let settings = require('Storage').readJSON('app.settings.json',1)||{};
let settings = require('Storage').readJSON('app.json',1)||{};
function save(key, value) {
settings[key] = value;
require('Storage').write('app.settings.json',settings);
require('Storage').write('app.json',settings);
}
const appMenu = {
'': {'title': 'App Settings'},
Expand All @@ -351,19 +364,20 @@ Example `settings.js`
E.showMenu(appMenu)
})
```
In this example the app needs to add both `app.settings.js` and
`app.settings.json` to `apps.json`:
In this example the app needs to add `app.settings.js` to `storage` in `apps.json`.
It should also add `app.json` to `data`, to make sure it is cleaned up when the app is uninstalled.
```json
{ "id": "app",
...
"storage": [
...
{"name":"app.settings.js","url":"settings.js"},
{"name":"app.settings.json","content":"{}"}
],
"data": [
{"name":"app.json"}
]
},
```
That way removing the app also cleans up `app.settings.json`.

## Coding hints

Expand Down