-
Hi Gordon, I had recently refreshed the page so it should have been updated.
Or did you literally just go to https://banglejs.com/apps, connect, and this happened?
I just refreshed the page then connected and the glitch happened.
-
I have had this error on https://banglejs.com/apps as well. If I refresh the page the app loader starts working again, but it has happened to me a couple times. It gets into this mode right after you connect your bangle.js.
-
@NebbishHacker Thanks! It works now.
-
Hi I was making a simple clock with the layout library. Here is my code:
require("Font7x11Numeric7Seg").add(Graphics); var Layout = require("Layout"); var layout = new Layout( {type:"h", c: [ {type:"txt", font:"7x11Numeric7Seg:2", label:"", id:"time"}, ]}, {btns:[ {label:"", cb: l=>print("Two")}, ], lazy:true}); layout.update(); layout.time.x = 170; layout.time.y = 10; function draw() { var currentDate = new Date(); var currentHour = currentDate.getHours(); var currentMinute = currentDate.getMinutes(); layout.time.label = currentHour+":"+currentMinute; layout.render(); } g.clear(); draw(); setInterval(draw, 5000);
The problem is I am using lazy rendering and the clock does not seem to automatically redraw. It just keeps drawing on top of itself. I am using the Bangle.js 1 emulator. I put a screenshot below of the emulator after I left it on for a while.
-
-
I was following the tutorial of how to use the layout library: https://www.espruino.com/Bangle.js+Layout
I was following the first part of the tutorial to have a basic string of text and wanted to try it out. When I pasted the code in the Web Ide and upload the code to the Bangle.js 1 emulator it gives an error:Uncaught Error: Function "stringMetrics" not found! at line 1 col 147 ... b=g.setFont(a.font,a.fsz).stringMetrics(a.label);a._w=b.wid... ^ in function "txt" called from line 1 col 15 ;if(f[a.type](a),a.r&1){var b=a._w;a._w=a._h,a._h=b}a._w=0|Math.... ^ in function "c" called from line 1 col 1093 ...a.filly)&&(a.filly=1)}};c(a),a.fillx||a.filly?(a.w=d,a.h=e,a... ^ in function "update" called from line 1 col 197 ....updateNeeded&&this.update();var f={'':function(){},txt:func... ^ in function "render" called from line 7 col 15 layout.render(); ^
It is also weird because it says there is no errors in layout.
Is there any way I can fix this? -
-
-
Ok, Thanks @Gordon, I will update my firmware to 2v10.
-
Ok, Thanks @Robin!
-
Hi @Robin the error only happens when I upload my own program, but it doesn't happen every time even though the code is the same. The latest version of the program uses
require("Storage")
but earlier versions didn't, and I am fairly sure I saw the error as well then. Here is the current outputs (I have not reloaded any apps):process.memory() ={ free: 2044, usage: 56, total: 2100, history: 9, gc: 0, gctime: 3.0517578125, blocksize: 16, stackEndAddress: 536922336, flash_start: 0, flash_binary_end: 457148, flash_code_start: 1610612736, flash_length: 524288 } >require("Storage").getFree() =4194304
I have uploaded my program and did not encounter the failure. Each time I upload my program I will run these commands first to capture this information in case it happens again.
-
Hi @Robin thanks for replying. Here are the results from "process.env".
>process.env ={ VERSION: "2v09", GIT_COMMIT: "7247a2c4", BOARD: "BANGLEJS", FLASH: 524288, SPIFLASH: 4194304, STORAGE: 4194304, RAM: 65536, SERIAL: "714c1740-b54c335f", CONSOLE: "Bluetooth", MODULES: "Flash,Storage,hea" ... "tensorflow,locale", EXPTR: 536882372 } >
-
Sometimes when I upload code to my Bangle.js in the web ide in it gives this error in the terminal:
Storage is corrupt. Erasing Storage Area... Erase complete.
When it displays that message it starts erasing all my apps including the clock and app launcher.
I am able to reinstall my apps afterword with the app loader, but it takes a while for me to upload the apps and organize them.
Why is this happening?
I was following the example at https://www.espruino.com/Reference#l_E_showScroller for how to use the e.showScroller function for Bangle.js 2. I copied this code from the tutorial:
It works, but the bottom number gets cuts off as you scroll. The issue is shown in the video below.
Is there any way I can fix this?