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

[ContourClock] custom.html could remember previous font choices when updating? #3648

Open
fanoush opened this issue Nov 7, 2024 · 3 comments

Comments

@fanoush
Copy link

fanoush commented Nov 7, 2024

Affected hardware version

Bangle 2

Your firmware version

2v24

The bug

Due to the font selection via custom.html this app cannot be autoupdated from the apploader.
Also every time I update it manually I forget which fonts I have selected previously so I must go over the fonts and guess/pick them again. And it is hard to pick the one that I like because they look similar on the web and then slightly different on the watch so I select some and then finetune and select the final one directly on the watch. And next time when there is update I am lost which is the right one :-)

Is it possible that the custom.html would read settings from the installed app and preselected my previous fonts and possibly even allowed autoupdate when I do not want any change? I am not sure it can be done, maybe @gfwilliams knows?

Installed apps

No response

@gfwilliams
Copy link
Member

Is it possible that the custom.html would read settings from the installed app and preselected my previous fonts

Yes, it's fine. You can do this in custom.html:

     function onInit() {
          Util.readStorageJSON('stuff.json', currentSettings => {

Just set customConnect:true to force Bangle.js to be connected before upload:

BangleApps/README.md

Lines 302 to 305 in c217a4f

"customConnect": true, // if supplied, ensure we are connected to a device
// before the "custom.html" iframe is loaded. An
// onInit function in "custom.html" is then called
// with info on the currently connected device.

... but there's nothing to allow auto-update of customised apps yet. That would probably be a bit of a pain to implement

@fanoush
Copy link
Author

fanoush commented Nov 8, 2024

Thanks, @xxDUxx do you want to look into this or may I try? I have very little experience with changing bangle apps so far but I can try. same with #3649

@xxDUxx
Copy link
Contributor

xxDUxx commented Nov 9, 2024

Sure, go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants