[Dev] Uploaded code changes doesn't update app on BangleJS 2 #5175
Replies: 1 comment
-
Posted at 2022-09-05 by @gfwilliams Thats's odd - it isn't expected... You could check the Chrome Dev console when you upload to see if the file you expect is being downloaded by Chrome. I know that GitHub does very aggressive cacheing. You could try Ctrl+click on the page reload button which might help? Posted at 2022-09-05 by user148848 Yeah, "very aggressive cacheing" seem to be one of the keys to this behaviour. But, let's say I wanted to avoid going through GitHub to upload my bundle, as it's cumbersome and fiddly, is there a way to accomplish that? That way I'd be able to do my edits and experiment with the entire bundle, locally, before having to deal with Github as the go-between. Thanks for a super fun and versatile product! You've re-sparked my interest in coding for a watch since the days of the Pebble era. Posted at 2022-09-06 by @gfwilliams
You could host the app loader locally? I don't know what OS you're on, but if you can install a webserver (it doesn't even have to be HTTP) then you can just use the app loader direct from your PC. That's how I develop. You can also use a command-line app that uses Node.js: https://github.com/espruino/BangleApps/blob/master/bin/apploader.js But especially on Windows this is a pain, as Node.js doesn't appear to have great Bluetooth LE support on Windows. Posted at 2022-09-06 by rigrig
Ooh, I was just thinking it would be nice to have that, without even realizing it already exists, nice! FWIW: if you've got Posted at 2022-09-08 by user148848 You're absolutely right. I've managed to put up a dockerised environment that works on both winows (through WSL 2) and Ubuntu 20.04 and this has improved my situation immensely, especially with the fact that I don't get stuck in cache-hell of Github. Now, the apploader.js I haven't got to work yet. I can get it to detect my watch but as soon as I try to install anything I run into issues in the shape of
Posted at 2022-09-09 by @gfwilliams Just tried here and same problem - I made a few changes, try now and see if it's better. I had to hard-code the device to Bangle.js 2 but I guess that will suit most people, and changing it if you have a v1 is very easy Posted at 2022-09-09 by user148848 That worked out much better! Thanks for this, really appreciate you spending your time on it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-09-04 by user148848
I've been working on a clock face app. It's been going well before but now I've run into an issue that I can't seem to get around.
Following these steps
Looking at the output from interacting with the app, the code hasn't been updated. E.g. the app from first install echoes console.log() output. After installing the clock face update, the console.log() is still being output, even when I have removed them from the code.
The only way to make the code changes "stick" is either
Is this to be expected? It's certainly very cumbersome to me to hve to reset the BangleJS 2 just to make sure that my latest code updates are working correctly.
Firmware version 2v15
Beta Was this translation helpful? Give feedback.
All reactions