-
Yes, you just use the image converter, but you'll end up with a
reasonably sized file for a 240x240x16 image.The easiest way is actually to do it using the IDE. Click on the 3
disc 'storage' icon in the middle of the screen, click 'Upload',
choose an image, then it'll be detected and will offer you some
options to convert it.Oh cool, didn't know it would ask for conversion when uploading so I was basically searching for the right image format and how to get to it.
However it would be also nice if all output from left side could be automatically saved to some log file
PRs are welcome ;)
-
-
I don't have the info for you but there might be info at the GB wiki:
https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/HomeAnd otherwise they have a chat channel at https://riot.im/app/#/room/#gadgetbridge:matrix.org
-
I tried to to this
And in fact you can do a full res image - you just write it to
Bangle.js's storage, and then blit it direct from flash with
g.drawImage(require("Storage").read("myimg.img"))but I am missing the format of the .img file.
I tried converting my png to a rgb565 image through https://online-converting.com/image/convert2bmp/ but that file was not accepted
"Uncaught Error: Expecting the first argument to be a valid image"
Guess this is due to the .bmp header.
Maybe it would be good to add a mode to http://www.espruino.com/Image+Converter allowing to convert to a .img file.Kind regards, Frans.
PS: I could also not cut&paste my error message from the IDE left panel. Would be a nice enhancement too.
-
Thanks Gordon!
Actually the primary use case I had in mind was cycling directions.
In the Netherlands and Belgium there is a bicycle route network with nodes indicated by numbers .
What I wanted to do is instead of keeping a list with number on paper, have this list on my bangle.The grocery example looks pretty straightforward although probably I prefer to use BTN4 and 5. Maybe easier to use while cycling.
A few maybe not too related questions:
Is there an easy way to view the sourcecode from an app (e.g. grocery) directly from the store?
Currently I can view the code by downloading it to the bangle and in the IDE browse the filesystem and examine the js file, but I figured there should be a better way.And is there a way to upload a regular file directly (I'm running linux if that matters and can launch a web app if needed). So I can just push the file towards my bangle.
Thanks, Frans.
PS: and if these are silly questions or the answer is already somewhere just point me to it. I'm still in the process of finding my way.
-
I was wondering if it is possible (on bangje.js) to have a background image.
E.g. can I create a clock that has a background watchface?
The closest I could get it do use double buffering.
Anyone a pointer/suggestion?E.g I want to create something like this watchface I have for my Mi Band:
https://amazfitwatchfaces.com/mi-band-4/view/2029
Or a watch like background with the clock hands blitted on top of them. -
I'm writing a small app for my bangle to allow scrolling through a list of items (e.g. navigation directions, but this could apply to shopping lists as well).
For that I am looking for a way to upload the directions file (or shopping list).
Is that possible?Below is a simplified example, but that one uses a static array.
I know how to read the info from a file, but it is not clear to me what the best way is to upload the file.(BTW: I also considered a small generator that creates a dedicated app, but I feel that is more cumbersome).
Thanks, Frans
PS: and pardon me if this is the wrong forum, but I felt none of the forums was really applicable.
const vals = [ "", "1st left", "2nd right", "cross railroad", "stop at #17", "" ]; let ix = 1; function draw() { g.clear(); g.setFontVector(20); //g.setColor(passivColor); g.setFontAlign(0, -1, 0); g.drawString(vals[ix-1], 120, 0); g.drawString(vals[ix+1], 120, 200); g.setFontVector(30); g.drawString(vals[ix], 120, 100); } function next() { if (ix < vals.length - 2) ix = ix + 1; draw(); } function prev() { if (ix > 1) ix = ix - 1; draw(); } setWatch(next, BTN5, { repeat: true }); setWatch(prev, BTN4, { repeat: true }); draw();
-
@Gordon Thanks for your reply. I just upgraded to 2v05 without problems.
Only remark is that I had to do it from the phone whereas normally all the bangle stuff I do from my ubuntu system. (actually I would have expected to be able to update from the app store).
Anyway: issue resolved :-) -
@Robin
Not sure how to retrieve that process info.The app this whole issue is about is the welcome app. Originally it was the one that I got when I received the watch as part of the kickstarter campaign. I tried upgrading to 0.08 but that version still had the issue
I'n not fully sure how I ended up here. I updated the settings app and the default launcher.
Note that I updated a few apps after each other and also added the analog clock app.Anyway, after further investigation I noticed that the settings app does not save its settings. I suspect this is related.
I can change settings (e.g. time offset in locale) but as soon as I leave settings they are gone.In the app store about page I went to Install default apps. That did not work the first time (got an error message that it could not uninstall an app, but the second time it worked. Things are now fully functional again.
-
I thought I posted this but it does not show up, so retrying.
Suddenly (maybe after a reset setttings) my bangle started to show the welcome app.
Ending it with BTN2 resulted in what looked like a reboot and the welcome app reappeared.
This happened over and over again.
Reboot with BTN1 + BTN2 did not change things.
I noticed a newer version of the app but updating it did not make the issue go away.
In the end I "fixed" it by completely removing the app.
Not sure what the actual issue was but wanted to report it anyway. -
I was trying to connect my bangle.js to my phone (Samsung S10e, android 9). Ideally I want to use gadgetbridge, but gadgetbridge is not detecting the watch. I also tried to find it in bluetooth settings but even there scan does not see the bangle.
Connection to PC using BLE dongle works (and I made sure the bangle was disconnected from the PC before trying to connect to it on the phone.
The bangle is connectable. BLE is also on.
Anyone an idea?Followup: It definitely is phone related. My samsung tablet has no problems seeing the bangle
Ah ok, for me PR stands for Problem Report, hence I just submitted a ticket.
I'm not really versed in web coding, I'm more into embedded programming.