Sonos Change Title Alert

Abhängigkeit / dependence: https://flows.nodered.org/node/node-red-contrib-better-sonos

[{"id":"fd0ff451.5db9b8","type":"inject","z":"e3aa70fa.b265f","name":"Every 2s","topic":"","payload":"","payloadType":"date","repeat":"2","crontab":"","once":false,"onceDelay":"0.1","x":100,"y":160,"wires":[["3bfd56e4.4585ea"]]},{"id":"3bfd56e4.4585ea","type":"better-sonos-status","z":"e3aa70fa.b265f","confignode":"5e99da71.3ed3f4","name":"","x":260,"y":160,"wires":[["d8c66e26.7fcf6"]]},{"id":"d8c66e26.7fcf6","type":"function","z":"e3aa70fa.b265f","name":"Create Message and View handling","func":"var oldVal =  context.get(\"oldVal\")||\"\";\nvar newVal =  msg.track.artist + \" : \" + msg.track.title;\n\n//newVal = newVal.toUpperCase();\n\nif (newVal != oldVal)\n{\n    context.set(\"oldVal\", newVal);\n    msg.payload = newVal;\n    msg.duration = newVal.length /2.3;\n    return msg;\n}\n","outputs":1,"noerr":0,"x":500,"y":160,"wires":[["a2d878a.9077988"]]},{"id":"5882054b.eb9f9c","type":"comment","z":"e3aa70fa.b265f","name":"Alert: Sonos Change Title ","info":"","x":130,"y":120,"wires":[]},{"id":"69f70866.14f788","type":"link out","z":"e3aa70fa.b265f","name":"Alert: Sonos Change Title Link","links":["9590c2af.b689"],"x":1355,"y":160,"wires":[]},{"id":"51a596ec.919e68","type":"Switch Animation","z":"e3aa70fa.b265f","name":"Switch Animation","aktiv":"true","animation":"coloredBarWipe","x":910,"y":160,"wires":[["a4c763e.f3d33a"]]},{"id":"a4c763e.f3d33a","type":"Text","z":"e3aa70fa.b265f","name":"Text","intextString":"{{msg.payload}}","inbigFont":"false","inscrollText":"true","inscrollTextDelay":"35","incenterText":"false","inposX":7,"inposY":1,"incolorR":255,"incolorG":255,"incolorB":255,"x":1070,"y":160,"wires":[["32eff210.64e64e"]]},{"id":"a2d878a.9077988","type":"Screen Init","z":"e3aa70fa.b265f","name":"Screen Init","inscreenName":"instagram","induration":"{{msg.duration}}","x":730,"y":160,"wires":[["51a596ec.919e68"]]},{"id":"32eff210.64e64e","type":"Bitmap Animation","z":"e3aa70fa.b265f","name":"Bitmap Animation","indata":"[43008,0,0,0,0,0,0,0,64170,0,0,0,0,0,0,0,64853,0,0,0,0,64853,0,0,65535,65535,0,0,0,65535,0,0,65535,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64853,0,0,0,0,0,0,0,65535,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,65535,65535,65535,65535,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,0,0,0,65535,65535,0,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535],  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64853,0,0,0,0,0,65535,0,65535,0,0,0,0,65535,65535,0,65535,65535,0,65535,0,65535,65535,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535]","inanimationDelay":"100","inrubberbanding":"false","inlimitLoops":"0","x":1230,"y":160,"wires":[["69f70866.14f788"]]},{"id":"5e99da71.3ed3f4","type":"better-sonos-config","z":"","name":"Sonos-Büro","serialnum":"","ipaddress":"192.168.0.152"}]