Re: [SlimDevices: Plugins] Control your music with Siri and Shortcuts

2020-07-31 Thread karlek

Thanks @d6jg! I should have mentioned it.
But honestly I totally forgot about the first you’ll have to tackle.





karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321
View this thread: http://forums.slimdevices.com/showthread.php?t=112678

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Control your music with Siri and Shortcuts

2020-07-31 Thread d6jg


Heads up.

To install the import you need to "Allow Untrusted Shortcuts"

Settings / Shortcuts then Allow Untrusted Shortcuts

Note. The setting is not available until you have created and run at
least one shortcut.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=112678

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] Control your music with Siri and Shortcuts

2020-07-30 Thread karlek

*-C-o-n-t-r-o-l- -y-o-u-r- -m-u-s-i-c- -w-i-t-h- -S-i-r-i- -a-n-d-
-S-h-o-r-t-c-u-t-s-*-

::Link:::
'Music Control Import'
(https://www.icloud.com/shortcuts/0ab47cc02791410ba5ff034df65569f7)

* C o m m a n d s * 
You can call the Shortcut via Siri or the Shortcuts App.
The following commands will be interpreted. The order of the complete
spoken command is not relevant, but you'll always have to add the name
of the SB you want to react.

- Play
- Stop
- Pause (no toggling)
- Sleep (end of track)
- On/Off
- Shuffle [End] (title)
- Repeat [End] (alle titles)
- Next/Previous
- Up/Down (volume up/down)
- Volume n (n>12?: since Siri writes numbers as words, if they are
  small enough. And I didn't want to parse those little rascals.)
- Artistloads everything of the named artist
- Playlist(Loads the named playlist if it's in the default
  path.)
- Presets 

*EXAMPLES*

- "Artist Foreigner Kitchen"
- "Patio Playlist The Who" (Blanks in names are working.)
- "Bathroom Shuffle"
- "Repeat Boom End" (repeat off)

* P r e p a r a t i o n s   a f t e r   i m p o r t i n g * 
Change the following to your needs:

- rename the shortcut
- IP-Address and Port in the first Text field
- Names and MAC addresses of your SBen
- the spoken commands
- the relative change of the volume of +-10

* A n n o t a t i o n s * 

- SB names and commands must consist of one single word. Everything
  else is considered as data.
- This Shortcut actually plays just all titles of the given artist.
  There is no code to parse genre or album names.
- Every word of the spoken command will be considered as one of the
  following: name, command (bothe single words) and the rest as data.
  There takes no filtering of filling words like prepositions place.
  „Playlist Leonard Cohen Live in Parterre“ would lead to:
   playlist play „Leonard Cohen Live- in-.m3u“
- Ambigous terms won't work: if a SB is named Grey, an artist or a
  playlist named either, won't be played. There is no check for
  consistency, or so.
- The Data Must Be Written With Leading Capitals: „Simon And
  Garfunkel“, but not „Simon and Garfunkel“. You'll have to either
  change the names in your system or adapt the Code of this Shortcut to
  your needs.
- You can only call playlists that are stored in the default playlists
  path. Slashes in pathes were always escaped by design:   
Code:

/media/playlists -> \/media\/playlists

 I have no clue, how to avoid this.

Feel free to take this Shortcut as a start and expand it to your needs.
If you have any questions, I'll try to help. But don't expect me to
extend it. Altering the code by shifting blocks all over the screen
sometimes was a PITA. :-)

Since I usually don't write instructions, let alone in English, I would
feel happy about your feedback, if something is unclear.



karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321
View this thread: http://forums.slimdevices.com/showthread.php?t=112678

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins