-
You're absolutely right, of course. I've modified my own app with a modified
drawWidgets
, as you suggest. That's working nicely. In my case, having the widgets clear only the area that they use is great because it leaves the space between them for the top of my clock face, which can now use the full screen area. As long as I don't install too many widgets, there won't be any overlap. -
-
-
I've followed the instructions on uploading modules, but I get
Uncaught ReferenceError: "exports" is not defined
when I try that withwidget_utils.js
. -
Cool. But I tried
require("widget_utils").swipeOn();
and got this:>Uncaught Error: Module widget_utils not found
That happened both in the emulator and on the watch. The same thing happened when I tried loading the Pebble watch, which uses that API, through the IDE.
I hope I'm not missing something obvious.
-
I have an app that has a round face. I've shifted it down to make space for the widgets at the top of the screen. However, if I were able to move the widgets inside the circle, I'd be able to take full advantage of the height of the screen. Is there any way to do that, or might it be a feature in the future?
Thanks.
P.S.: I love hacking my Bangle. It's such a pleasant programming experience, without a lot of unnecessary complexity. It's possible to write interesting programs in just a few kilobytes of RAM. It brings me back to the days of my TRS-80, but with JavaScript instead of Z80 assembly language!
-
In
apps/antonclk/app.js
, this comment appears:Must be inside our own scope here so that, when we are unloaded, everything disappears.
Does anyone know what that means, exactly? In the previous version of the clock, that comment appeared, and the functions inside it were declared using the usual
function foo() {
syntax, which made the IDE complain. Now they're all defined likelet foo = function() {
, which makes the IDE stop complaining, but I don't understand the reason for the containing block.I apologize if I missed this somewhere obvious in the documentation.
-
-
-
Yes, thank you. I did, indeed, make that mistake one time, but I figured that out.
I tried the IDE using my Mac, too, and have never succeeded there. It may not have BLE support, although it does sometimes show the Bangle.js 2 as a pairing option. But I prefer to write code under Linux.
Anyway, thanks to everyone for the suggestions. So far, no go.
-
-
I hope I'm not missing anything obvious, but connecting Bangle.js 2 to the browser IDE under Linux via Bluetooth consistently takes twenty minutes of fiddling, and I never know what I've done that finally makes it work. On the other hand, I almost never have trouble connecting with my phone. I've read and followed the instructions on the various Bluetooth pages, and I've dived into
bluetoothctl
and other tools, but nothing seems to improve the situation. I'm running Chrome under Pop!_OS 22.04 LTS.Does anyone have a magic incantation that makes connecting to the IDE under Linux quick?
I've been having a great time hacking my Bangle, but twenty minutes of fiddling is a lot, especially now that I'm writing code that needs GadgetBridge features that aren't supported in the emulator.
Thanks for any suggestions.
Wow, I hadn't heard of the Widget Editor app. That is a great idea.
What I ended up doing was to define my own
Bangle.drawWidgets
that makes widgets clear only their own space. Then I made my watch face use the entire display. Since it's circular, there's still room at the corners. All the widgets that I use fit in that space without modification, so I'm done. But with Widget Editor, it will be possible to squeeze even more widgets onto the screen.Thanks.