You are reading a single comment by @BillV and its replies. Click here to read the full conversation.
  • Thanks for the quick reply - it sounds good but I can't get the module to work. Uploading the module to storage gave Uncaught ReferenceError: "exports" is not defined at line 4 col 8 in widget_utils followed by Module widget_utils not found when I ran it (and also when I changed the IDE search path ).

    But if I try require("wear_detect").isWorn().then(wor­n => {
    console.log(worn ? "is worn" : "not worn");
    });
    it works correctly.

    I must be missing something!

About

Avatar for BillV @BillV started