You are reading a single comment by @NebbishHacker and its replies. Click here to read the full conversation.
  • You just need to define a function called GB:

      global.GB = (event) => {
        switch (event.t) {
          case "musicinfo":
            ...
            break;
          case "musicstate":
            ...
            break;
        }
      };
    

    More info on what form the data takes is at http://www.espruino.com/Gadgetbridge

About