Most recent activity
-
Sure, for example the Clock Switcher app does this.
The
Updating boot0...
is becausebootupdate.js
rewritesboot0.js
wheneversettings.json
changed, that happens automatically, no need to do it yourself.
And I thinkclockHasWidgets
is updated automatically bybootloader.js
, so you only need to updateclock
insettings.json
. -
Mostly for looking at things without needing to get my phone out:
- Date + time
- Notifications
- Currently playing song / adjust volume
- Weather
I've made a list of installed apps
- Date + time
-
I think it's important to consider what happens when someone else wants/needs¹ to modify your code: just having to worry about minification is a hassle, but if really necessary it should at least be reproducible: that way somebody can check they got the minification right before even making changes, so they know any (new) bugs aren't caused by getting the minification wrong.
¹. It doesn't happen often anymore, but sometimes e.g. library code needs a fix that also requires all the apps using it to be updated.
-
I'm not sure, but if it did change, it might have something to do with this Gadgetbridge commit?
-
Editing the "back" widget would be tricky: it's not loaded like regular widgets, but hardcoded to be inserted as the first widget by the
setUI
code. -
You can use setTimeout:
read_heading(); setTimeout(send_vibration, 300); // No brackets() after send_vibration!
-
- There is
E.on('kill')
- No, providing an appID means "I need the GPS to stay on until I turn it off", omitting it means "Turn the GPS on now, until anything turns it off"
- Apart from the active app, widgets and/or boot apps could be using the GPS.
- There is
-
It breaks because Espruino doesn't support default parameter values,
round(6800971.33999999985, 2)
works though.
I think you want to add a
custom.html
: that can open a dialog when uploading the app, ask for those settings, and send them to the watch.Looks like hasensors does pretty much the thing you want: asks for a bunch of values, then replaces
{placeholders}
in the code. (Except you probably don't needboot.js
, and want to adjust yourapp.js
instead of using a separatelib.js
file)