The code you posted above is just for testing (if you paste that in the left of the web IDE). In reality Gadgetbridge should send a string a bit like that, but with artist/etc all filled in correctly. At least it does for me when music is playing. You could check with the GB Debug app.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The code you posted above is just for testing (if you paste that in the left of the web IDE). In reality Gadgetbridge should send a string a bit like that, but with artist/etc all filled in correctly. At least it does for me when music is playing. You could check with the
GB Debug
app.