straightc wrote: > > > thouky wrote: > > > > I'm currently using Workflow to provide basic control of LMS, but it > > will be great to have a more fully featured (and more reliable) app... > > [image: > > http://images.tapatalk-cdn.com/15/05/24/7ca06bf9c4da7cff73a27a8a9200a55f.jpg][image: > > http://images.tapatalk-cdn.com/15/05/24/3087e891d8b98b14e246a3f16dd4f299.jpg]> > > > > > I played around with this for a little bit and I ending up running > scripts via SSH to telnet and then issue commands via the CLI > interface. Was curious if you did this a different way and how? Could > you provide an example of how you used Workflow to execute LMS > commands?
I am using the Get Contents of URL action to drive LMS's "Command Line Interface" directly from the iPhone. There's no need to use SSH (which I find to be a little bit flaky from Workflow). You can find one of the workflows that I use at https://workflow.is/workflows/09e084c48ccb4b3f8a93ca641655b0a6 and attached to this post. A few notes: - The URL action near the top specifies the base URL that is used for all CLI requests. The hostname part of the URL will obviously need to be changed to point at your server. - The Text action below that has a list of commands that ensure my three most commonly used players are all switched on, and that the volume is set to a default level on two of them (the other one is connected to an external amplifier via its digital output). There's a Repeat with Each loop that issues each command in sequence using the Get Contents of URL action. - The List action provides the menu of things to play: - The ones starting with BBC are internet radio streams. The second Text provides a mapping from the radio station names to URLs. The third Text action constructs the CLI URL to start playing that stream. - The other menu items are names of Dynamic (SQL) Playlists. The fourth Text action constructs the CLI URL to start playing one of those. Of course, we only have to wait until Wednesday next week (16th September) for watchOS 2 which should allow for a native iPeng watch app... ;) +-------------------------------------------------------------------+ |Filename: Squeezebox Workflow.zip | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=18813| +-------------------------------------------------------------------+ ------------------------------------------------------------------------ thouky's Profile: http://forums.slimdevices.com/member.php?userid=42109 View this thread: http://forums.slimdevices.com/showthread.php?t=103693 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
