• I have done some changes to quicklaunch and wid_edit. Those should help with the erratic behaviour. I had not yet used wid_edit before, but I think it still works.

  • I get this after I install widgetupdate on a fresh install:

    >OK
    OK
    OK
    Uncaught Error: Cannot read property 'filter' of undefined
     at line 1 col 112 in messages.wid.js
    msgs.filter(msg=>msg.new&&msg.id!="music").map(m=>m.src).filter((m...
              ^
    in function "filterMessages" called from line 1 col 1371 in messages.wid.js
    ...msgs=filterMessages(rawMsgs);this.width=24*E.clip(this.msgs.length...
                                        ^
    in function "update" called from line 16 col 329 in .boot0
    ...ETS[i];if(w.update)w.update();}}
                                   ^
    in function "updateWidgets" called from line 16 col 1049 in .boot0
    ...};});}Bangle.updateWidgets();if(!WIDGETS_LOADED)WIDGETS_LOADE...
                                   ^
    in function "o" called from line 35 col 29 in .boot0
    o();const s=require("Storage").readJSON("wid_edit.json",1)||{};const c=...
                 ^
    in function "loadWidgets" called from line 3 col 7789 in antonclk.app.js
    ...all;}});Bangle.loadWidgets();Bangle.drawWidgets();}
                                  ^
    >
    Uncaught Error: Cannot read property 'filter' of undefined
     at line 1 col 112 in messages.wid.js
    msgs.filter(msg=>msg.new&&msg.id!="music").map(m=>m.src).filter((m...
              ^
    in function "filterMessages" called from line 1 col 1371 in messages.wid.js
    ...msgs=filterMessages(rawMsgs);this.width=24*E.clip(this.msgs.length...
                                        ^
    in function "update" called from line 16 col 329 in .boot0
    ...ETS[i];if(w.update)w.update();}}
                                   ^
    in function "updateWidgets" called from line 16 col 1049 in .boot0
    ...};});}Bangle.updateWidgets();if(!WIDGETS_LOADED)WIDGETS_LOADE...
                                   ^
    in function "o" called from line 35 col 29 in .boot0
    o();const s=require("Storage").readJSON("wid_edit.json",1)||{};const c=...
                 ^
    in function "loadWidgets" called from line 1 col 157 in iconlaunch.app.js
    ...screen){Bangle.loadWidgets();Bangle.drawWidgets();}let launchCa...
                                     ^
    >
    

    Step-by-step:

    1. Factory reset watch via web IDE
    2. Install favorite apps, among them Icon Launcher, Anton Clock and Fastload helper.
    3. Install widgetupdate.
    4. Long press physical button to reset after loading apps.
    5. On Anton Clock no widgets are drawn.
    6. Press physical button go to launcher.
    7. Stuck on "Fastloading..."
  • That's not because of wid_edit, it's the messages widget: it already had an update method which expects an incoming message as argument.

    Actually, I think I'd like to rewrite the messages library/app/widget some more, so it just passes everything through Bangle.emit("message", type, message);, instead of directly calling widget methods or global functions.

About

Avatar for Ganblejs @Ganblejs started