From 635db449dff82c4b3192883743bcdc0c57225c85 Mon Sep 17 00:00:00 2001 From: marco79cgn Date: Wed, 14 Sep 2022 17:58:39 +0200 Subject: [PATCH] initial release --- sonos-group-button.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sonos-group-button.js diff --git a/sonos-group-button.js b/sonos-group-button.js new file mode 100644 index 0000000..1efa759 --- /dev/null +++ b/sonos-group-button.js @@ -0,0 +1,19 @@ +// Variables used by Scriptable. +// These must be at the very top of the file. Do not edit. +// icon-color: orange; icon-glyph: plus-circle; +let widget = await createWidget() +Script.setWidget(widget) +Script.complete() +// widget.presentSmall() + +async function createWidget() { + let widget = new ListWidget() + // load symbol image + let symbolSpeaker = widget.addImage(SFSymbol.named("hifispeaker.2").image) + symbolSpeaker.imageSize = new Size(45,45) + symbolSpeaker.centerAlignImage() + + return widget +} + +// Use this icon in your lock screen and assign a the SonosBot Shortcut to it from the Soro app (which I slightly modified).