Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-16 Thread chill


cpd73 wrote: 
> Plugin changes:
> 
> >   > 
  -  Add support for CUE tracks.
  > > > 
> 
> Analyser changes:
> 
> >   > 
  -  Add support for analysing CUE files.
  > > > 
> 

Great stuff - thank you!

I've traced my problem tracks too - it was a couple of multi-track flacs
of radio recordings, without tags and without accompanying CUE files. 
I've given them some temporary tags in order to get past that error, and
have now set the analysis going on my whole library.

I don't see how this can be related, but even running from the top level
LMS folder, the analysis now seems to be using ~300% CPU and ~40
threads, so should be fast.  I imagine it'll slow down considerably once
it starts tackling tracks that are defined by the CUE files - I'll
report back.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-16 Thread chill


cpd73 wrote: 
> Yes, but I have no idea what this is. My initial thought was perhaps
> brew needs to be told to install deps for arm as well as x86 - but as I
> don't own a mac, let alone an M1, I have no experience of this.

Ah, ok - understood.  In that case I'm especially grateful that you
provide a macOS build!

By the way, ffmpeg appears to run as an Intel app too, but this also
zips along quite nicely.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-16 Thread chill


cpd73 wrote: 
> I don't compile the binaries myself but use github actions. I've just
> tried updating this action to build a fat-binary for macOS (which is
> what i build for the mixer) - but this has failed:
> 

Thanks for trying!  The Intel build seems to run plenty fast enough
anyway (under the right CPU allocation conditions!), so it's not an
issue for me.

Just curious though - did you see the "Try use `bindgen` feature"
message in relation to the error?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-16 Thread chill


cpd73 wrote: 
> No. The code builds 1 list of all tracks to be analysed - the .notmusic
> prevents files within those folders from being added to this list. This
> is then split between cores.

Understood.  There does seem to be something inconsistent about the CPU
allocation though.  I've now re-run the analysis 7 times, once on each
of the 7 top level folders underneath my LMS music path (by specifying
the path to each folder in config.ini), and only the 'Lossy' folder ever
achieves the impressive 500% CPU load.  The other folders achieve no
more than ~150%.  And as noted above, if I specify the same path as
defined in LMS, even with the other 6 folders excluded via .notmusic,
the Lossy folder only occupies a few percent.

Having now tried all 7 folders, I've at least identified the one that
causes the 'No tags found!' error.  But am I right that the terminal
output reports the last file successfully analysed, rather than the one
that failed?  Each time I run the analysis in this folder it fails at a
different point.  I guess I should wait for your next release to be able
to track which files in particular are causing the problem.

PS. Do you have the facility to compile for Apple silicon?  I noted in
Activity Monitor that bliss-analyser is an Intel app, which means it's
running under Rosetta on the M1 Macbook.  I could imagine it would fly
if it ran as a native Apple app.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-15 Thread chill


cpd73 wrote: 
> Sorry, not really. The bliss-analyser code is pretty simple - just
> collecting a list of files then asking bliss-rs to analyse them.

The scan completed after 1hr43m, with no errors.  While it was running
it was using about 2.5% CPU and 12 threads.

I've just restarted it with the path set specifically to that 'Lossy'
folder, and it's started up with ~500% CPU and ~30 threads, so clearly
it's going to complete faster.  I wonder if it's something to do with
the way the tasks are split between the available cores.  Does the core
allocation happen before the folders are skipped due to .notmusic, or
afterwards?  If before, and all the allocated folders on some cores turn
out to be skipped, that would explain why it's using fewer resources and
running slower.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-15 Thread chill


cpd73 wrote: 
> 
> As to why its crashing, not sure. Perhaps you could run analysis on each
> folder separately to see if its a particular file type.

I'll certainly try that.  I'm currently re-running the analysis with
every folder except 'Lossy' excluded via the .notmusic method.  The
analysis has now found the same number of tracks (6414) as when I
specified only the 'Lossy' folder in the path, but whereas that scan
took 16m30s, I'm now over 27minutes in and it's only completed 20%.  Any
idea why this scan is so much slower?

If this scan completes successfully, I'll then specify the direct path
to each of the other folders in turn and see what happens.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-15 Thread chill


I've been giving this a try while I look forward to a version that
handles CUE files.  I have around 6500 tracks that are in individual
MP3/OGG/M4A files, with traditional tags.  I'm getting some inconsistent
issues with the analysis phase.

I have a separate 'Lossy' folder within my music folder for these files,
so I started off by analysing just this folder.  I realise that I need
to eventually run the analysis on the same root folder as defined in
LMS, but I just wanted to have a play on a subset of my library.

I used the 0.0.2 build for macOS, running on a 2021 M1 Macbook Pro.  My
music library is on an ext4 SSD attached to a pCP Pi4 and accessed from
my Macbook via samba.

When I first ran the analysis on this 'Lossy' folder, it zipped through
6414 tracks in 16m 30s: a rate of over 23k tracks per hour, which I was
quite pleased with, given that the files are being accessed over my lan.

So then I changed the path in config.ini to start one folder level
higher, i.e. the same folder as specified in LMS, in order to include
everything else ('Lossless', 'DVD Rips', 'Spoken Word', 'HiRes' etc).  I
renamed the bliss.db so that the analysis would start again from
scratch.  The analysis didn't find many extra files (6665 versus 6414
previously), but it slowed down considerably, even while apparently
working in the 'Lossy' folder, and it crashes each time I run it.  I
repeated it several times, each time deleting the database for a fresh
start, and I seem to be getting errors in different places.  I've had a
few "thread 'main' panicked at 'Error: No tags found!',
src/tags.rs:33:50", and the file number is different each time.  I've
even had a "Segmentation fault: 11", again at a different point in the
analysis.  In each case, the most recent file analysed, according to the
terminal output, is something in the 'Lossy' folder that worked
previously.

I'm curious what could be causing inconsistent/different failures.  Does
the analyser pick a different/random section of each track each time?

My next step will be to exclude folders from the analysis with
'.notmusic', to see if I can find some pattern.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-13 Thread chill


cpd73 wrote: 
> 
> >   > 
  -  "Nathaniel Rateliff & the Night Sweats" has no genre
  -  "Great Composers 52. Gershwin: Concert Works" has no artist or
  > album artist
  -  "Tattoo You" - as mentioned - has no real meta-data
  > > > 
> 
> ...not sure how this missing meta-data will affect mixes. For missing
> "album" I'm setting this to the audio filename without extension - so
> "Tattoo You"
> 

This all sounds promising.  Yeah, I've not been very good with
specifying genres, mostly because (until now) I haven't really had a
need.  Maybe this plugin is the incentive I need to go back and be a bit
more rigorous.  Easy enough with CUE files :).  But am I right that the
plugin should still find similar tracks in my collection - I'll simply
be unable to confine the search within specified genres?  Will missing
Artist and Album Artist tags cause a problem?  I think that Gershwin CD
is one of only a handful that are missing these tags.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-12 Thread chill


Hi Craig

Thanks for working on this, despite the feature apparently only getting
one vote!

I couldn't see the option to attach files to a PM, so I've attached a
zip file to this post.  It contains 5 CUE files, all of which work in
LMS.  They've been produced by a variety of means (XLD, EAC, and an
Audacity plugin for vinyl rips).  They include some albums that are just
discrete tracks (Nathaniel Rateliffe, A Night At The Opera, Tattoo You)
and some that have 'gapless' tracks (Abbey Road, Gershwin).  The Tattoo
You CUE file is a really stripped out file - just the titles and start
indexes - but the others contain a variety of CUE options, such as
Replay Gain tags, and a couple that I'm not sure of the purpose of
('ISRC USC4R1503359', 'FLAGS DCP').

Chris


+---+
|Filename: Sample CUE Files.zip |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37448|
+---+


chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-06 Thread chill


cpd73 wrote: 
> I'm just trying to decide if its worth the time and effort to add CUE
> file splittng - but as I have no CUE files I'm struggling to decide if
> its worth the effort.

One vote from me!  Happy to supply some FLAC+CUE albums if needed.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread chill


cpd73 wrote: 
> As an aside, what is the benefit of FLAC+CUE as opposed to just
> splitting the FLAC into single FLAC tracks? FLAC handles gapless, no?
> Just curious...

Probably no benefit.  It's how I started ripping my library years ago,
and it works just fine in LMS so I've continued the same way.  And I can
easily convert from this format to any other with a few simple commands.
I think my motivation was that I could faithfully reproduce the
original CD on a CD-R, but that's another pastime that's disappeared
into history. :)

EDIT:  Ooh - I thought of a benefit!  I can edit my tags with a text
editor, rather than a dedicated tag editor.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

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


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread chill


chill wrote: 
> Inspired by the 'Bliss DSTM announcement'
> (https://forums.slimdevices.com/showthread.php?116068-Announce-Bliss-DSTM-mixer=1049586=1#post1049586),
> I want to give MusicSimilarity a go with my library of mostly FLAC+CUE
> albums.
> 
> I do maintain a 'lossy' form of my library which could be used for the
> analysis, to save what must be a time consuming analysis step of
> splitting the album into MP3 files.  In my lossy library, every FLAC+CUE
> album is converted to individual OGG files, and any MP3 or OGG original
> files are just copied over.  The folder structure is a copy of my main
> library.  The tags in the OGG files are taken from the CUE files, so
> should match what's in my main LMS library.  Does MusicSimilarity handle
> OGG files, and if I use this lossy library for the MusicSimilarity
> Bliss-only analysis, will the MusicSimilarity plugin find the
> corresponding tracks from the CUE files in my LMS library?

Wait, sorry - in my lossy library, FLAC+CUE albums are converted to
(single)OGG+CUE equivalents, so I believe MusicSimilarity will still
want to split them into individual MP3 files for the analysis.  So no
benefit in using the lossy library for the analysis after all.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

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


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread chill


Inspired by the 'Bliss DSTM announcement'
(https://forums.slimdevices.com/showthread.php?116068-Announce-Bliss-DSTM-mixer=1049586=1#post1049586),
I want to give MusicSimilarity a go with my library of mostly FLAC+CUE
albums.

I do maintain a 'lossy' form of my library which could be used for the
analysis, to save what must be a time consuming analysis step of
splitting the album into MP3 files.  In my lossy library, every FLAC+CUE
album is converted to individual OGG files, and any MP3 or OGG original
files are just copied over.  The folder structure is a copy of my main
library.  The tags in the OGG files are taken from the CUE files, so
should match what's in my main LMS library.  Does MusicSimilarity handle
OGG files, and if I use this lossy library for the MusicSimilarity
Bliss-only analysis, will the MusicSimilarity plugin find the
corresponding tracks from the CUE files in my LMS library?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-05 Thread chill


cpd73 wrote: 
> 
> For now, you could just use MusicSimilarity configured just for Bliss -
> but the analyser used there has not been built for Windows.

Thank you. I'm caught up on the MusicSimilarity thread now - should have
done that before posting, sorry.  Good point about the mixer code for
this plugin not handling CUE files - I guess it's not suitable for my
setup yet.  I'll give MusicSimilarity a go.  Is there a Mac build of the
analyser?

I have a follow-up question about MusicSimilarity, but I'll post it in
that threat to avoid polluting this thread.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce: Bliss DSTM mixer

2022-03-05 Thread chill


I read through the announcement post, thinking "Finally, a similarity
plugin that seems simple enough for me to understand"!  But then I got
to the part about bliss-analyser not dealing with CUE files.  Most of my
library is in the form of CDs ripped to a single file with a separate
CUE file.

Given your statement that Bliss seems to create better mixes for your
collection, I'd like to give it a go, but I'm not clear what my best
option is.  It appears that I can analyse with MusicSimilarity then
convert the output to a Bliss database for use with this Bliss DSTM
mixer - is that correct?  Is there a Mac M1 binary for the
MusicSimilarity analysis, or should I use the python script, and can
that script be configured to do only a Bliss analysis?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=116068

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


Re: [SlimDevices: Plugins] Announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-04-10 Thread chill


Paul Webster wrote: 
> 
> Here is an example
> https://bauerod.sharp-stream.com/scala/Scala-Sat-1300.m4a
> 

Playing fine here via LMS 8.2.0.  Direct streaming to a Boom and a pCP.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114252

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-27 Thread chill


Paul Webster wrote: 
> That menu is now cached ... so if you change the filter then will take
> up to 10 minutes to have an effect.
> Hopefully that is the reason.

And as if by magic, I'm now seeing the stream options again.  Sorry for
the false alarm.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-27 Thread chill


I've just updated, and it seems that I can no longer see all the
different stream types for a particular station.  In the settings the
preferred list of stream types had defaulted to 'mp3hq112', but even
when I clear that field, restart LMS and refresh my browser view, I'm
still being taken directly to the mp3hq112 stream for GHR (East
Midlands) without being shown the other stream options.

Sorry that's outside your 30 minute window!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-25 Thread chill


Paul Webster wrote: 
> Depends on the UI.
> For example in Material you should see 3 vertical dots against ones that
> can be played immediately.
> 

Ah yes, I had only looked via the default skin, and now I see that the
player controls appear when I hover over the directly playable items.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-25 Thread chill


Is there any way to visually distinguish those top level menu items that
are a single station from those that open a sub menu?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-25 Thread chill


Paul Webster wrote: 
> Re-enable the showing of song duration and I think the issue will
> disappear.
> I'll resolve it later today.

Yep - that's stopped them, thanks.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-25 Thread chill


@Paul

I've noted quite a few messages of the following type in my server log. 
I've turned off all logging in plugin.planetradio, but obviously they're
being generated elsewhere.


Code:

[21-03-25 08:12:31.2538] Slim::Player::Protocols::HTTP::getMetadataFor 
(808) Metadata provider Plugins::PlanetRadio::Plugin::provider failed: Not a 
HASH reference at 
/usr/local/slimserver/Cache/InstalledPlugins/Plugins/PlanetRadio/Plugin.pm line 
2482.
  




chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-24 Thread chill


This is coming along nicely!  Very useful.

As an aside - clicking around to try out the different stations, I've
noticed that the chances of actually finding any music playing on any of
the Absolute stations are pretty slim - more often than not I'll hit an
advert!  Greatest Hits seems much better in that respect.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-23 Thread chill


Paul Webster wrote: 
> Yep - I have not done the list of stations yet so that part will not
> work.
> 
> Just find the station in Radio.Net or TuneIn and play from there.

Ah, understood.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] Pre-announce Planet Radio / Bauer Media plugin - PlanetRock, Absolute, Kiss, Scala ++

2021-03-23 Thread chill


Hi Paul - thanks for this, it'll be a good addition.  I'm just trying it
out now, but I'm getting a couple of problems, best explained with
pictures:

33886
33887


+---+
|Filename: Bauer 1.jpg  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=33887|
+---+


chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114214

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


Re: [SlimDevices: Plugins] piCore/Jivelite: how to turn off/snooze an alarm!?

2021-03-17 Thread chill


"Alexa ask mediaserver to stop playback" :)

(https://forums.slimdevices.com/showthread.php?111016-Announce-MediaServer-*certified*-Alexa-skill-for-LMS)



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114169

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


Re: [SlimDevices: Plugins] [Announce] : Virgin Radio (UK) Plugin

2021-02-20 Thread chill


Haha - when I first tried the plugin, that was the second track that
played!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113974

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


Re: [SlimDevices: Plugins] [Announce] : Virgin Radio (UK) Plugin

2021-02-18 Thread chill


Excellent, thanks for this.  You're on a roll!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113974

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


Re: [SlimDevices: Plugins] iPeng support thread

2021-02-05 Thread chill


jotap_66 wrote: 
> To play FLACs in iPhone/iPad you need a special plug-in for iPeng. If
> not, you can not play Flacs in iPad/iphone
> 
> JP

Are you perhaps referring to the 'iPeng Playback' in-app purchase? 
Without that, you can't play anything, not just FLACs.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=51929

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-31 Thread chill


After I posted, I sent the key from my Macbook to one of my pCP
machines, just to check whether there was a compatibility issue between
the Mac's RSA key and openssh on the Pi.  I used ssh-copy-id on the Mac,
and that worked fine, and I can now log in to the Pi from my Mac without
a password.  That ssh-copy-id command does not exist on pCP by the way.

I've now repeated the process for my other pCPs :-)



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-30 Thread chill


Re-reading your post, I'm sensing you knew all that! :)

RSA versus openssh maybe?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-30 Thread chill


philchillbill wrote: 
> Thanks guys. I actually quite like pCP from this short exposure to it
> and will definitely keep it as my certification machine. The only thing
> I haven't got working yet is login via key instead of password. I
> followed the same methods that I use on every platform including
> Synology which is also busybox but here it complains about the key
> format. I'll get that sorted though.

Good to hear that you're becoming a fan :)

Are you referring to remote login via ssh?  That's perfectly doable - I
have it working so that my backup pCP fetches files from a couple of
other pCP devices via rsync over ssh.

1) From the machine you're logging in -from-, use ssh-keygen to generate
the public/private rsa key pair in /home/tc/.ssh/id_rsa.  The passphrase
can be blank.
2) If that's the only machine you're going to login from, copy that
id_rsa file over to the machine you're logging in -to-, with the
destination name /home/tc/.ssh/authorized_keys
3) If you're going to login from other machines, add the contents of
their id_rsa files to that authorized_keys file.
4) Login once from the -from- machine, so that it is added to the
known_hosts file.

Thereafter, logging in via ssh should not require a password or any user
input.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-30 Thread chill


The installer isn't connected to the startup script - I think the
mechanism for that is still TBD.  If the startup script was hosted, say,
on your site, then the installer script could fetch it.

To make it run at boot, use the the pCP web interface - go to the
'Tweaks' tab and scroll to the bottom.  You can add up to three 'User
commands'.  They're executed in order.  I have the startup script in
there with the command argument of 10 (to give a 10s wait during boot). 
As a general point, note that commands called from 'User commands' are
executed by the 'root' user.  You need to keep this in mind if your
scripts assume anything in the default user's path, and if your script
creates output, since it will be owned by 'root'.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-30 Thread chill


philchillbill wrote: 
> 
> As you can see, I use unzip on all platforms rather than your mix of
> tgz/zip depending on 32/64 bits. Is that actually necessary with pCP or
> could unzip also handle both installs? If so, the script would be
> simpler.

Thanks for that - some more syntax for me to learn from!  Feel free to
work your own magic on the scripts - you clearly know what you're doing
far more than I do!

Yeah, the BusyBox version of unzip doesn't like tgz files, and the
BusyBox version of tar doesn't like zip files :(


Code:

tc@pCP:~$ unzip -o ngrok-stable-linux-arm64.tgz 
  Archive:  ngrok-stable-linux-arm64.tgz
  unzip: short read
  
  tc@pCP:~$ tar -x -f ngrok-stable-linux-arm.zip 
  tar: invalid tar magic
  



So unless someone can suggest a built-in utility that can cope with both
I think we're stuck with having to use both of those utilities.  We
could probably get a more complete unzip utility from the repository,
but again that's an extra complication.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-30 Thread chill


I've improved the ngrok_installer script a bit.  As well as a bit of
tidying up and clarifying, it now has the option to override the 32-bit
or 64-bit auto-detection, primarily in case the auto-detection fails
because of the rather weak, non-future-proof, detection rule.

I tried the 32-bit version on a 64-bit pCP ('-v 32' argument), and ngrok
seemed to work ok.
I tried the 64-bit version on a 32-bit pCP ('-v 64' argument), and the
extension loaded, but ngrok failed to run, obviously.

For now, auto-detection is the way to go, but in future, if pCP reports
something other than 'v8' for the 64-bit version, use the override: -v
64.

33166



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] piCorePlayer: Squeezelite doesn't start when USB DAC is turned off

2021-01-29 Thread chill


There's a guide on the piCorePlayer site to make Squeezelite (re)start
when the DAC appears:
https://docs.picoreplayer.org/projects/autostart-squeezelite-from-usb-dac/

The thread that led to that guide is here:
https://forums.slimdevices.com/showthread.php?113661-Start-restart-squeezelite-when-plug-in-USB-dac



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113802

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


Re: [SlimDevices: Plugins] Order of Players in Web GUI

2021-01-29 Thread chill


The list sorts alphanumerically, so just rename your players to include
a number at the beginning - e.g. 1) Kitchen Boom, 2) Lounge etc.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113801

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> Nice. I was also doing tax-returns today so I'll have to wait until
> tomorrow to play with pCP.

In case you do get around to playing with pCP tomorrow, the current
versions of my installer and startup scripts are in the attached zip
file.

33143


+---+
|Filename: ngrok_scripts.zip|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=33143|
+---+


chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> Missing LAME in the install is a pretty lame excuse :p
> 

Haha, yes, but it's something to keep in mind for users of your skill. 
I just installed LMS on a fresh pCP7 setup, and lame is not present by
default.  So it's not something that I did, it's something that I didn't
do, i.e. I didn't install lame!

I guess the argument would be that most devices don't need the audio to
be transcoded to MP3 these days, but clearly the use of stream.mp3 does,
so users of your skill who have their LMS on a pCP will need to install
the lame extension to get streaming to work.  Obviously this is
independent of whether ngrok is running under pCP - it applies to anyone
running LMS under pCP.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> Strange. My FLAC files are transcoded by LMS on the fly and I never had
> to set up any special rules. What formats won't stream?

Fixed it.  For some reason my pCP was missing 'lame', which the rule for
converting FLAC to MP3 relies on.  No idea how that happened!

I installed the lame extension and it's working as expected now.  Sounds
pretty good too, but don't ask me to give up my Booms for Echos though -
it's good, but not -that- good :)



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


Ah, it might be something to do with audio formats - some playlists
play, but others don't.  I'll investigate.

EDIT: Yeah, only MP3 files are streaming.  I guess I have to look into
format conversion rules.  Ugh - I've never really grasped how to
configure that bit of LMS.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


Do I need to do anything special to make streaming to the Echo work?  If
I ask her "Alexa, ask MediaServer to stream the playlist 'Catchy'", she
finds the playlist ok, tells me that it's now streaming, and in the LMS
web interface I can see the playlist is loaded up under the 'Web Client'
player, but there's no sound from the Echo.  The transport and volume
controls in the web interface don't work either.

If I ask her to stream something else, without invoking MediaServer, she
starts playing something from Amazon Music, and that plays fine.

Any tips for getting streaming to work?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> I've added a new section to the online docs which addresses built-in
> commands and when the skill invocation name can be omitted vs when it is
> required. This also explains why there can sometimes be a clash between
> the MediaServer and LMS-lite skills for simple transport commands like
> pause.
> 
> It's at
> https://mediaserver.smartskills.tech/mediaserverhelp.html#section-1-6
> 
> Hope it's clear !

That's answered a few questions.  Very useful, thank you.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


Tax calcs done - just the form filling bit to do now :)

I now have an installation script that will fetch the correct version
according the pCP platform (32-bit or 64-bit).  I used the 'rule' that I
found 'here'
(https://forums.slimdevices.com/showthread.php?113512-ANNOUNCE-piCorePlayer-7-0-0=1000603=1#post1000603)
- not sure how future-proof that is!

It will also dump a pro-forma ngrok.yml file in /home/tc/.ngrok2, so the
use only has to update it with the necessary personalised data.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> @chill, Nice work :cool: This stuff gets addictive when the creativity
> adrenaline flows.

Indeed.  It'll be a sad day when I stop enjoying a new challenge.  And
it beats doing my tax return, which sadly has to be a priority this
afternoon :(

philchillbill wrote: 
> Hope you're enjoying the skills. If you're new to Alexa it takes a
> little while to learn to pace the commands so that she always
> understands but that quickly becomes second nature. I don't have any
> Echo 4s here - how's the sound quality when streaming from LMS?

I'm afraid I haven't tried streaming to the Echo, or even used the skill
a great deal yet - too busy concentrating on scripting!  But what little
I have used it so far has been positive, and I am getting used to the
syntax and pacing.  I'm perhaps struggling with the overlap between
MediaServer and LMS-lite, but that will come with a bit more experience.
Oh, and of course I tend to have my music too loud for Alexa to be able
to hear me clearly!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


This script should download the 64-bit ngrok binary, convert it to a tcz
package and make it load on boot.

To use it, create a file 'ngrok_installer.sh' in your home directory
(/home/tc aka ~), paste the lines of the script into it, and make the
script executable (chmod +x ngrok_installer.sh).

Then simply run the script (./ngrok_installer.sh) and reboot.

Once the Pi reboots you can type 'which ngrok' to see if it has
installed.  It should show a single entry '/usr/local/bin/ngrok'.

Everything else in the home directory should have been tidied up by the
script.  The script itself will even have disappeared unless you did a
'backup' before rebooting.


Code:

#!/bin/sh
  
  # download ngrok and convert to installable package, so that the executable 
is placed into /usr/local/bin
  
  # setup some path shortcuts
  packagename=ngrok
  workingdir=~/$packagename
  rootpath=$workingdir/usr/local/bin
  tgz=~/$packagename.tgz
  tcz=~/$packagename.tcz
  
  # create folder structure
  mkdir -p $rootpath
  
  # fetch ngrok tgz - N.B. may need to check path to this file in case it 
changes in the future
  wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.tgz -O $tgz
  
  # extract the ngrok executable into the required part of the folder structure
  tar -x -f $tgz -C $rootpath
  
  # download and load squashfs-tools
  tce-load -w squashfs-tools.tcz
  tce-load -i squashfs-tools.tcz
  
  # create the ngrok package
  mksquashfs $workingdir/ $tcz
  
  # tidy up
  rm $tgz
  rm -Rf $workingdir/
  
  # move the ngrok package to the tce/optional folder
  TCEMNT="/mnt/$(readlink /etc/sysconfig/tcedir | cut -d '/' -f3)"
  mv $tcz $TCEMNT/tce/optional
  
  # add ngrok.tcz to tce/onboot.lst
  sed -i '/^ngrok.tcz/d' $TCEMNT/tce/onboot.lst #remove all previous ngrok 
entries, to make sure it's only listed once
  echo $packagename.tcz >> $TCEMNT/tce/onboot.lst



I've tested this on a fresh pCP install, and also on a machine where
ngrok was already installed, and seems to work ok.  You don't need to
change any of the path variables at the start of the script, but if you
do, TAKE CARE, because in the 'tidy up' section of the script it will
recursively and silently delete everything in $workingdir/

This also worth keeping in mind if you DON'T change the path variables,
and you already have a folder called ~/ngrok.  That will be GONE after
this script runs :)



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill

philchillbill wrote: 
> 
> I’m just worried that supporting that may turn out to be more work than
> supporting and improving the skills themselves [emoji23]

Sounds like a great idea, but yeah, it would no doubt take a lot of
effort to make it foolproof!

I may have a tinker with a pCP-specific installer script along the lines
you suggested earlier.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> 
> I have to admit I'm surprised that backing up a 24MB file is slow on any
> modern system. This is the GB and TB era so we're talking crumbs here
> :confused:

Yeah, it's not -slow--slow (maybe 20 seconds or so? - not sure, haven't
timed it), but you have to keep in mind that pCP is usually booted from
an SD card and the backup goes back to that SD card.  On an older Pi,
with a slow SD card, it would probably take longer.  That extra 20s goes
against the 'ethos' of pCP, which is to have a small, light, and very
fast system, regardless of hardware.

Including the ngrok executable in the backup didn't seem to cause any
other problems, but as a pCP user it's something I'd personally want to
avoid.

Your shell script seems like a nice idea.  I looked at the links to the
binaries on the ngrok site (e.g.
https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip),
because a wget command would be better than downloading it to a computer
and then uploading to the Pi, but all those random characters in the
link give the impression that it might not always be the same link. 
Aside from that, the shell script could download the binary, build the
tcz, create the yml file, and also personalise the startup script, which
could be included in the tcz.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


philchillbill wrote: 
> Appreciate your looking into this topic. Is a prepared tcz file (2
> versions for 32 and 64 bit) something that I can host on my site to
> reduce the number of steps?

One reason that Paul- was reluctant to make an ngrok package is "Binary
re-distribution licensing is not clear", so I guess you'll have to
figure out if that's something you want to do.

If you want to go ahead, I can prepare the two tcz files if you wish.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-28 Thread chill


Understandably, Paul doesn't want to include the ngrok executable as a
package in pCP since it appears to be closed source.

So pCP users have a choice of where to put the ngrok executable:

1) Place it in /home/tc/.local/bin
Pro: This will mean that it's in the executable path so can be invoked
without supplying its path.  
Con: It will be included in the user's backup whenever pCP is backed up,
so the backup will be large and slow.

2) Place it in a folder on another drive, such as a third partition on
the boot drive, e.g. /mnt/PCP_DATA
Pro: This will be permanent storage, so won't be included in the user's
backup
Con1: This approach requires there to be another mounted partition, and
it has to be reliably available and when the ngrok command is invoked at
boot
Con2: This location will not be in the user's executable path, so the
path to ngrok will have to be specified whenever it is invoked.

3) Make your own 'ngrok.tcz' package so that the executable is loaded by
the system at boot.  This is the 'best' option if you are comfortable
with the steps below.
Pro: ngrok will be available in the executable path without it being
part of the user's backup
Con: Making the package involves a few more steps (below), but they're
straightforward, and 'do-and-forget'. 


Steps for making ngrok.tcz:

1)  Make this folder in your home directory:
cd ~
mkdir -p ngrok/usr/local/bin

2)  Obtain the ngrok binary from https://ngrok.com/download.  Look for
'Linux (ARM)' for pCP 32-bit or 'LINUX (ARM64)' for pCP 64-bit
Extract the single binary file from the download and place it in the
folder you've just made, /home/tc/ngrok/usr/local/bin
Your method for placing ngrok in that folder will depend on the tools
you use.
For instance, FileZilla will allow you to upload the file from your
computer to a destination on the RPi

3)  Install the squashfs-tools.tcz extension from the pCP 'Extensions'
page

4)  Make 'ngrok.tcz' with: 
cd ~
mksquashfs ngrok/ ngrok.tcz

5)  Copy the resulting ngrok.tcz to the 'tce/optional' folder with:
cp ngrok.tcz /mnt/mmcblk0p2/tce/optional 
If you have booted from USB, the 'tce' folder will be at a diffrent
mount point, 
so replace 'mmcblk0p2' with your 'root' partition, e.g. 'sdb2'

6)  Edit the onboot.lst in the tce folder to include ngrok.tcz  
e.g. use 'vi' on the pCP, or the linked file editor in FileZilla

7)  Backup and reboot your pCP.  After rebooting you should now have the
ngrok executable in /usr/local/bin.
Type 'which ngrok' to check.

8)  Assuming that works, remove the ngrok folder and the ngrok.tcz from
your home directory to minimise the size of your pCP backup.
cd ~
rm ngrok.tcz
rm -Ri ngrok/ # the -i option will prompt for every deletion. Check
that it's doing what you expect before answering 'y'
Finally, backup pCP again, otherwise those deleted files will come back
after a reboot!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


Well indeed both of those details were worth investigating.

1) ngrok can be run as root by simply including the path to the yml
configuration file with the --config option, e.g.:

Code:

ngrok start mediaservertunnel --config=/home/tc/.ngrok2/ngrok.yml > 
/dev/null 2>&1 &


I guess the script could have that option included in another variable,
but for a standard pCP user who has carried out the authorisation as
user 'tc', that /home/tc/.ngrok2/ngrok.yml file is fixed.  This option
means the whole section of the script that determines which user is
calling ngrok is redundant.

2) It is quite simple to create your own .tcz package that just includes
the ngrok executable, to be placed in /usr/local/bin/, and to have this
package loaded at boot.  The result is that ngrok is available in the
user's executable path without taking up any space in the user's backup
and without the need for an extra mount point.  So since it's now in the
path the startup script doesn't need to point to a specific copy of the
executable, so 

Code:

$ngrok_exec start mediaservertunnel --config=/home/tc/.ngrok2/ngrok.yml > 
/dev/null 2>&1 &


becomes

Code:

ngrok start mediaservertunnel --config=/home/tc/.ngrok2/ngrok.yml > 
/dev/null 2>&1 &



I could detail this process for the pCP-specific setup instructions, but
I think it would be simpler to ask one of the pCP guys to make ngrok
available in the standard repositories so that it can be installed like
any other extension.  I'll make a request in the 'pCP7 thread'
(https://forums.slimdevices.com/showthread.php?113512-ANNOUNCE-piCorePlayer-7-0-0).



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill

philchillbill wrote: 
> Great to hear. I’ll add pCP instructions to the website so that others
> can benefit from your pioneering spirit [emoji41] Thanks again !

Thanks.  There's a couple of details that I'd like to check in the
script before it should be considered definitive.

1) There's a bit in the script to force ngrok to be run as user 'tc'. 
When called at startup the script is called by user 'root', and I found
that it didn't work in that case, hence the workaround to force it to
run as 'tc'.  In hindsight I suspect it might just have been that 'root'
didn't look in /home/tc/.ngrok2 for the yml file, so it may be enough to
simply specify the full path to the yml file.  Then it wouldn't matter
which user executes ngrok.  I'll test that later.

2) pCP runs entirely from ram, so the 'tc' user's home directory is also
in ram.  Any files included in the tc's home directory must be backed-up
to an archive, so that they can be reinstated after a reboot.  It's
desirable to keep that archive file small - if nothing else the backup
process takes an annoyingly long time if the home directory has a lot in
it.  I started off by copying the ngrok executable to
/home/tc/.local/bin, but since it is quite big (~25MB), I was finding
that backups were quite slow and were triggering a warning from pCP.  So
I moved it to somewhere else permanent (I used a third partition on the
boot drive, which is stored on the drive itself, not in ram, so isn't
part of the backup).  I suspect it might be possible to put it somewhere
else on the root drive so that it gets loaded into ram at boot time, and
doesn't require another mount point - maybe the 'tce' folder on the root
partition.  But I've never played with that, and I don't really know how
the 'optional' and 'on demand' folders work - how I should make a 'tcz'
package and make sure it loads into the executable path in ram at boot. 
If any of the pCP folks, or anyone else who knows how this works, is
watching, any advice would be welcomed.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


My Echo Dot arrived today, so I was able to subscribe to try out the
full set of commands.  I was impressed that Alexa was able to find my
'My Shazam tracks' playlist on Spotty.  

I moved the ngrok setup to another pCP device and it was very
straightforward - I just had to copy over the ngrok executable, the
startup script and the yml configuration file.  I shut down the original
ngrok RPi, added the startup script to the user commands on the 'tweaks'
page for the new one and rebooted. 
It was up and running almost immediately.

Just about to try out LMS-lite.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


So as an interim update, until I find the next thing I've done wrong,
here's my current ngrok_startup.sh


Code:

##!/bin/sh
  
  # autostart and autoupdate ngrok for Media Server skill
  
  # enter your own details here
  TUNNELNAME="mediaservertunnel" # whatever you named the tunnel in 
/home/tc/.ngrok2/ngrok.yml
  UUID="xxx" # from account linking step
  
  logfile="/home/tc/ngrok.log"
  date > $logfile
  
  #
  # Start ngrok
  #
  
  # path to ngrok executable.  It's a big file, so keep it out of the pCP 
backup, e.g. put it on the third partition
  ngrok_exec="/mnt/PCP_DATA/ngrok/ngrok"
  
  # make sure ngrok is started by the authorised user, i.e. 'tc'.  When run as 
a user command at boot, the user is 'root'
  user=$(id | awk -F\( {'print $2'} | awk -F\) {'print $1'})
  if [ $user = "tc" ]; then  # ngrok command can be run without modification
$ngrok_exec start $TUNNELNAME > /dev/null 2>&1 &
  elif [ $user = "root" ]; then # force ngrok command to be run by user 'tc'
sudo -u tc $ngrok_exec start $TUNNELNAME > /dev/null 2>&1 &
  fi
  
  # wait for ngrok to initialise
  sleep $1  # send sleep time in seconds as command line parameter:
# 1 second seems to be enough once booted, 5 seconds to 
play safe during boot.
  
  #
  # Update ngrok
  #
  
  # get URL
  URL=https://$(wget -qO- http://localhost:4040/api/tunnels/${TUNNELNAME} | awk 
-F\"https:// {'print $2'} | awk -F\" {'print $1'})
  echo "URL = "$URL >> $logfile
  
  # construct JSON data
  DATA=[{\"name\":\"${TUNNELNAME}\",\"url\":\"${URL}\"}]
  echo "DATA = "$DATA >> $logfile
  
  # see what the update command looks like
  CMD=$(echo wget -qO- 
https://smartskills.tech/linking/updateNgrok.php?uuid=$UUID\=$DATA)
  echo "CMD = "$CMD >> $logfile
  
  # send the update command
  RES=$(wget -qO- 
https://smartskills.tech/linking/updateNgrok.php?uuid=$UUID\=$DATA)
  echo "RES = "$RES >> $logfile




chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


Got there - I had to include the tunnel name in square brackets after
the URL on your account linking page.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


philchillbill wrote: 
> I was curious why you had them in there but thought it might be a pCP
> thing :cool:

It was from the first part of your instructions 'II. ngrok'.  I only
skimmed the following section, where the 'start' option is clear,
because I wasn't using systemd.  Oh well, learned that lesson now.

New problem.  Your account linking page now tells me "Other smartskills
linked with tunnel [name]: You must also include it for this skill".  Is
that because the tunnel name has changed?  What do I do to clear that
start again?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


Which of course means the AUTH and SVR variables aren't needed in the
script.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


D'Oh!

Because the configuration is all in the yml file, the earlier ngrok
command needs to be


Code:

$ngrok_exec http start $TUNNELNAME > /dev/null 2>&1 &
  



instead of


Code:

$ngrok_exec http -auth $AUTH $SVR > /dev/null 2>&1 &
  




chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


Hmm. This works

Code:

wget http://localhost:4040/api/tunnels/



...but this doesn't

Code:

wget http://localhost:4040/api/tunnels/mediaservertunnel



I've checked and it's definitely called 'mediaservertunnel' in the yml
file.

Oh, wait, looking at the output from the first command I see that my
tunnel is called 'command_line' for some reason.  So this works:


Code:

wget http://localhost:4040/api/tunnels/command_line



What have I done wrong?  This is my yml file (with the sensitive details
replaced of course):

Code:

authtoken: xxx
  web_addr: 0.0.0.0:4040
  region: eu
  tunnels:
  mediaservertunnel:
  proto: http
  bind_tls: true
  inspect: false
  addr: 192.168.x.x:9000
  auth: "username:password"   




chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


philchillbill wrote: 
> One small thing I just noticed. You use both curl and wget (which is
> valid sh for sure) but I thought curl was not installed on pCP (which is
> why wget was used as fallback) ?
> 
> In order to make the script more tolerant of the existence of other
> ngrok tunnels around your household, the search/update for the
> parameters for the relevant tunnel pCP is using can be narrowed down by
> supplying its name. See what I've done below (where I also swapped out
> curl and use two wget calls):
> 
> > 
Code:

  >   > 
  > #!/bin/sh
  > 
  > TUNNELNAME="mediaservertunnel"
  > UUID="a84fb223c34002944701a9a70e5e82b65e01cda21b6e8914"
  > 
  > URL=https://$(wget -qO- http://localhost:4040/api/tunnels/${TUNNELNAME} | 
awk -F\"https:// {'print $2'} | awk -F\" {'print $1'})
  > DATA=[{\"name\":\"${TUNNELNAME}\",\"url\":\"${URL}\"}]
  > echo $DATA
  > RES=$(wget -qO- 
https://smartskills.tech/linking/updateNgrok.php?uuid=$UUID\=$DATA)
  > echo $RES
  > 

> > 

Thank you - yes, curl is not in the basic pCP distribution, although it
is available as an Extension package in the pCP repository.  But it
certainly makes sense to use wget instead of curl in this case, because
the whole lot will then run without the need for any additional packages
- no python, no perl, no nothing - just the ngrok executable and the
script.

I'll apply your suggested changes to my script.

Given that adding this to pCP doesn't require much to be installed, I'm
planning to move it to one of my other Squeezebox-related pCP devices so
that I don't have to keep a separate one running.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


philchillbill wrote: 
> I have no idea if backticks are supported in pCP but your shell commands
> are perfectly valid without them. No errors that I can see in the script
> so good work !

Great stuff, thank you.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


philchillbill wrote: 
> Good to hear. If you run the script manually from the command line, it
> should respond with OK 1 if the updating went well (the '1' means one
> tunnel was updated). 
> 
> Regarding brackets:
> 
> [] delimits an array or list. In this case the array only has one member
> because you have a single tunnel, but it is still an array.
> {} delimits an object, in this case a JSON object. JSON requires the use
> of "" around strings and will not tolerate ' unless it's inside a
> string.
> If you want to build a string out of a substring that contains "" then
> the outer quotes need to be ', or vice versa. So e.g. 'This is a "test"'
> or "This is a 'test'".
> The backtick ` means that what is inside is executed as code.
> 
> In our case, the backticks are around the -wget -so it is executed and
> by wrapping the result of that execution in "" we can assign the result
> of that wget to URL and RES in a single command that runs/assigns.

Thanks for the explanations.  Is it possible the backticks aren't
supported in pCP?

Anyway, the script that works for me to autostart and autoupdate ngrok,
either at boot as user 'root' or from the command line as user 'tc', is
as follows.  Please let me know of any obvious blunders or suggestions.


Code:

#!/bin/sh
  
  # autostart and autoupdate ngrok for Media Server skill
  
  # enter your own details here
  AUTH="your username:your password"
  SVR="192.168.x.x:9000"
  UUID="x" #from account linking step
  
  logfile="/home/tc/ngrok.log"
  
  #path to ngrok executable.  Big file, keep it out of the pCP backup, e.g. put 
it on the third partition
  ngrok_exec="/mnt/PCP_DATA/ngrok/ngrok"
  
  # make sure ngrok is started by the authorised user, i.e. 'tc'.  When run as 
a user command at boot, the user is 'root'
  user=$(id | awk -F\( {'print $2'} | awk -F\) {'print $1'})
  if [ $user = "tc" ]; then  # ngrok command can be run without modification
$ngrok_exec http -auth $AUTH $SVR > /dev/null 2>&1 &
  elif [ $user = "root" ];then # force ngrok command to be run by user 'tc'
sudo -u tc $ngrok_exec http -auth $AUTH $SVR > /dev/null 2>&1 &
  fi
  
  sleep $1  # send sleep time in seconds as command line parameter:
# 1 second seems to be enough once booted, 5 seconds to 
play safe during boot.
  
  # get new URL
  URL=https://$(curl -s http://localhost:4040/api/tunnels | awk -F\"https:// 
{'print $2'} | awk -F\" {'print $1'})
  date > /home/tc/ngrok.log
  echo "URL = "$URL >> $logfile
  
  # construct JSON data
  DATA=[{\"name\":\"false\",\"url\":\"${URL}\"}]
  echo "DATA = "$DATA >> $logfile
  
  #see what the update command looks like
  CMD=$(echo wget -qO- 
https://smartskills.tech/linking/updateNgrok.php?uuid=$UUID\=$DATA)
  echo "CMD = "$CMD >> $logfile
  
  #send the update command
  RES=$(wget -qO- 
https://smartskills.tech/linking/updateNgrok.php?uuid=$UUID\=$DATA)
  echo "RES = "$RES >> $logfile
  




chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-27 Thread chill


chill wrote: 
> 
> Any chance you could put me out of my misery and show me an example of
> that last wget command exactly as it should be issued?

I think I'm there now. Not sure what I was doing wrong before, but my
script now autostarts and autoupdates after I reboot the pCP.  I'll tidy
it up a bit and post what I have, so as to get feedback on my scripting
misconceptions :)

The skill is working well.  Unfortunately I can't subscribe from iPhone,
so I'll have to wait a few more days until the Dot arrives.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


philchillbill wrote: 
> If that works, "Alexa, ask Media Server to discover my players"

That bit is working fine, so I can start to play with the skill
tomorrow.  So I just need to get that script working so that it can all
be automated after a reboot.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


philchillbill wrote: 
> The Alexa app on the phone can act as an Echo if you give it mic
> permissions. When you open the app just ask Alexa what time it is and
> she will answer. If that works, "Alexa, ask Media Server to discover my
> players"

Oh that's useful, thank you.  I'll give it a try if I get past this
linking script.

For some reason, your script doesn't work as is.  I'm getting a "Fail 4
[Badly-specified URL(s)]".  I changed your single quotes to the upright
ones " ' ", and then I'm not sure the command even runs at all - RES is
empty.

I'm getting confused with all the different types of quotation marks and
brackets, but I think I managed to construct the command as intended and
execute it, but I get "Fail 2 [Data JSON parse error]".  I suspect the
'data' bit is wrong, but I don't understand what the combination of
curly and square brackets is supposed to do.  My command looks like this
(with the sensitive bits overtyped with 's):


Code:

wget -qO- 
https://smartskills.tech/linking/updateNgrok.php?uuid=x=[{"name":"false","url":".eu.ngrok.io"}]



Any chance you could put me out of my misery and show me an example of
that last wget command exactly as it should be issued?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


philchillbill wrote: 
> This is the sh script - it's a simplified but functional script that
> will update a single ngrok tunnel for the skill:
> 
> > 
Code:

  >   > 
  > #!/bin/sh
  > 
  > UUID="a84fb223c34002944701a9a70e5e82b65e01cda21b6e8914"
  > URL="`wget -qO- http://localhost:4040/api/tunnels | grep -Po 
https://.+?\.io`;
  > DATA=[{\"name\":\"false\",\"url\":\"${URL}\"}]
  > RES="`wget -qO- 
"https://smartskills.tech/linking/updateNgrok.php?uuid=${UUID}=${DATA}"`;
  > echo $RES
  > 

> > 
> 
> The GET to smartskills.tech sends the uuid and a tunnel specification
> for a single tunnel. When people link multiple LMS servers, there can
> be multiple tunnels so the python and perl create a JSON array of
> values, but from pCP when there is only one tunnel we can skip all the
> fancy looping JSON creation and just hack a JSON string manually. It
> looks like [{"name":"false","url":"https://abcdef123456.ngrok.io"}],
> which is created here with the DATA= statement. The "name" is the
> tunnel name and when there is only one tunnel a string value of
> "false" is expected.
> 
> The tunnel url is in the :4040 response as the "public_url" parameter.
> My grep -Po just tries to grab that to a string using a regex. If you
> can do that with your awk then this script should work. Make sure you
> set the correct uuid constant in the file.

Brilliant - thank you.  I'll give it a go.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


philchillbill wrote: 
> Would the Perl not be easier than Python, given that pCP needs Perl
> itself? All the script does is a HTTPS GET to a specific url with some
> url parameters filled out. It can be done from any language. If it helps
> you at all, I have a tiny sh script that does it too. pCP has sh
> available.

I've just been trying the perl script.  I first installed LMS, so as to
get all the associated perl modules, but running updater.pl gives me a
similar missing module error:

Code:

tc@pCP:~$ perl updater.pl
  Can't locate LWP/UserAgent.pm in @INC (you may need to install the 
LWP::UserAgent module) (@INC contains: 
/usr/local/lib/perl5/site_perl/5.32.0/aarch64-linux-thread-multi 
/usr/local/lib/perl5/site_perl/5.32.0 
/usr/local/lib/perl5/vendor_perl/5.32.0/aarch64-linux-thread-multi 
/usr/local/lib/perl5/vendor_perl/5.32.0 
/usr/local/lib/perl5/5.32.0/aarch64-linux-thread-multi 
/usr/local/lib/perl5/5.32.0) at updater.pl line 8.
  BEGIN failed--compilation aborted at updater.pl line 8.
  



That tiny sh script would be very useful, thank you.  Yes, pCP has sh. 
I've tried to figure out, from both the python and the perl, what those
specific url parameters are for the https get, but haven't managed it.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


philchillbill wrote: 
> If you note any specifics for pCP that are different to a normal Debian
> install, I'd appreciate a summary so it can be added to the docs.

I'm still hacking my way around to get a feel for what needs to be done
to get it working and then redone after a reboot.  So far I have it set
up such that pCP runs a script at startup (via the built-in 'User
Command's' tweak) e.g. /home/tc/.ngrok2/ngrok_startup.sh, which starts
ngrok and then finds the URL via that curl command.  grep in Busybox
doesn't have the -P option, but I can get to the url with a bit of
awking: 

Code:

curl -s http://localhost:4040/api/tunnels | awk -F"https:// {'print $2'} | 
awk -F" {'print $1'}



I haven't attempted to make it a service, because this User Command
script seems sufficient - I can run the script manually if I ever need
to run it without a reboot, but since this is RPi3 is currently
dedicated to ngrok only, a reboot is fine.

I haven't got the python script working yet - it's failing at 'import
requests' and I can't see whether that, or json or urllib.parse, are
included in any of the python packages that are available for pCP.  To
be investigated later if necessary.

I have installed the Alexa app on my iPhone and MediaServer is one of
'my' skills, and seems to have linked successfully, but since I don't
have a device yet I can't test it any further.  And I also can't tell
what the final step of the python script should be doing, once it's
recovered the url.  Maybe I can do that too with simple shell scripting,
but I need to find out what the python would do first.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


philchillbill wrote: 
> 
> EDIT: Fixed. An issue with relative vs absolute paths. Sorry for the
> inconvenience.

Great, thanks.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] [Announce] 'MediaServer' *certified* Alexa skill for LMS

2021-01-26 Thread chill


I have a 4th Gen Echo Dot on the way, specifically so that I can try out
this skill - I'm looking forward to having a bit more voice control over
LMS than I get through Siri by having iPeng running.

I've been running through the ngrok setup on a pCP device in preparation
for the Dot arriving.  So far so good.  I now want to automate the
updating process, using the Python or Perl scripts on the setup page,
but unfortunately the links don't seem to work:
Python: https://mediaserver.smartskills.tech/downloads/updater.py
Perl: https://mediaserver.smartskills.tech/downloads/updater.pl

I did do a bit of a search on this thread, but it's a long thread and
'updater.py' generates a lot of hits!  Is there somewhere else to get
these scripts?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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


Re: [SlimDevices: Plugins] LMS and Apple

2021-01-21 Thread chill

rkrug wrote: 
> 
> Didn’t know that - thanks. Are there any other Siri commands which
> work?
> 

I've only tried a few.  "Hey Siri, pause", "Hey Siri, previous track". 
I'm not sure how this is achieved - maybe it's something that Pippin has
specifically programmed, or maybe it's built-in audio player commands
that are sent to the currently running audio player?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113721

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


Re: [SlimDevices: Plugins] LMS and Apple

2021-01-21 Thread chill


Just in case it's not widely known, if you have iPeng running then Siri
can do some basic actions with LMS.

"Hey Siri, skip track" is one of the three things I ever say to Siri :).
Very useful if I'm cooking, say, and playing a Spotify-generated
playlist where I don't like the current track.

(The other two are "Hey Siri, xx minutes", to set a cooking timer, and
"Hey Siri, where are you?", on the off-chance that I've left my phone
face-up somewhere.  Make that four things: I also had a bit of fun over
Christmas with a Lidl smart home system - "Hey Siri, turn on my
Christmas lights").



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113721

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


Re: [SlimDevices: Plugins] [Announce] Community Firmware for Squeezebox Radio/Touch/Controller and LMS 8

2020-12-31 Thread chill


kidstypike wrote: 
> Have you seen this Boom .pdf?

Every time I read through that paper I'm always taken by the care and
attention to sound quality that went into the Boom's design.  I always
get to the end, where the future possibilities are discussed, and regret
again the untimely demise of the product line.  But in fact, even
without any of those future possibilities being implemented, the Boom
just sounds wonderful as it is.  It's my favourite ever portable music
player, which is why I have so many of them!  I live in hope that some
of that DSP goodness can be added to the Radio, because I also have a
number of them :-)



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113479

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


Re: [SlimDevices: Plugins] [Announce] Community Firmware for Squeezebox Radio/Touch/Controller and LMS 8

2020-12-31 Thread chill


mrw wrote: 
> I suspect that space is not the issue, but processing power may be.
> 
> The Radio's hardware chip does provide for some basic DSP, and it is not
> used. There is a preconfigured (closed source) software DSP component in
> the Radio's ALSA chain, which is rather betterer than that, and is
> probably responsible for the quality of the sound output. 
> 
> I have contemplated the idea of implementing a basic 'bass cut' filter
> on the hardware chip to quell the occasional sense of "baritone boom"
> that I hear. Or perhaps one might want a step/baffle type filter to deal
> with being placed close to a wall. But UI becomes an issue, and I am no
> audio engineer, so I don't know what curves one might want.
> 
> I did suss out the DSP filtering actually in use:
> https://forums.slimdevices.com/showthread.php?111663-Community-Build-Radio-Firmware=966771=1#post966771
> 
> Perhaps, one day, it could be reimplemented along the lines you suggest.
> I don't have a Boom, but one of its features is, I think, to
> automatically extend bass response when volume levels allow. The Radio
> clearly owes much to the Boom in its audio design, but that feature was
> not included. It might be nice to have. There again, the risk of
> overloading the bass driver must increase !

Thanks mrw.  I do remember your promising post about the DSP filter
coefficients.  If processing power in the Radio is the issue, then
tweaking those filter coefficients in the hardware seems like a useful
alternative.  I'm sure the Radio has an admirably flat response curve,
but I'm not afraid to admit that I'm not a big fan of a flat response
curve in all situations! My own personal preference with most audio
devices is to try and cut the mid range a bit compared to the bass and
(especially) the high frequency components.  I believe this is called
the 'Rock Smile' :-)  The Boom and the Radio seem to have the same
driver units (the bass driver certainly, not sure about the tweeter),
but to my ears the Boom can be made to sound a lot better, by boosting
the bass a little and the treble a little more.

I'm not sure what's involved in using Ghidra, but if a Boom would be any
use to you in seeing what's been done in its DSP then I'll happily
donate one to the cause - just PM me if you want one of my 'spares
awaiting refurbishment'.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113479

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


Re: [SlimDevices: Plugins] [Announce] Community Firmware for Squeezebox Radio/Touch/Controller and LMS 8

2020-12-30 Thread chill


This is brilliant - I'd followed the development thread, but had decided
to wait for this type of release.  I just installed the community
firmware on a UE Radio, and so far it's working perfectly.  

So is it too early to start asking for feature requests?  I'd really
appreciate a basic tone control - maybe something like the 'treble/bass'
settings in the Boom.  Or better still, the ALSA 10 band Equalizer
available under pCP.  Are either of those possible?  Have the various
obsolete features that have been removed created enough space to do
something on those lines?  Even if there's no UI on the Radio itself to
control the settings (i.e. LMS or SSH configuration only), it would
still be worth having in my opinion.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113479

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


Re: [SlimDevices: Plugins] Control via sirs / Siri shortcuts (Pengsupport for Siri shortcuts?)

2019-10-20 Thread chill

thouky wrote: 
> It sounds like you are attempting to run the Scriptable script directly
> from Siri, instead of using the Shortcuts app to request input.
> Unfortunately that does not work (unless you also set *Always Run in
> App*, but that breaks the Siri experience); see
> https://talk.automators.fm/t/dictation-from-siri/3617.
> 
> Instead of using the *Add to Siri* within Scriptable you need to install
> or create a shortcut within the Shortcuts app that acts as an
> intermediary to act for the dictation. Step 2 of the installation
> instructions on https://github.com/thoukydides/siri-squeezebox-control
> is to install:
> https://www.icloud.com/shortcuts/4b66dc7c872747d48228d204e58c8021
> 
> If you used the *Add to Siri* option within Scriptable before installing
> the Shortcut then that will have created a shortcut that just runs the
> Scriptable script. If you then installed the proper Shortcut then the
> name would have clashed, so the app would have renamed it automatically
> to be unique. In this case you will need to
> _delete_the_wrong_shortcut_and_rename_(or_reinstall)_the_correct_one_.
> 
> If you still can’t get it to work then try running the Scriptable script
> directly within its app, and the shortcut directly within the Shortcuts
> app. Both of these should work, albeit without the benefits of Siri.

Thank you - got it now.  I thought I'd followed the steps, but at one
point my phone told me that it couldn't install the shortcut because
it's from an untrusted source - but it seemed to skip past that when I
clicked 'Add to Siri'.  That was clearly the wrong thing to do.

In their infinite wisdom Apple don't let you see the option to allow
untrusted shortcuts until you first install and run a shortcut from
their gallery.  I'm slow to criticise Apple, but that's just dumb,
sorry.

So after allowing untrusted shortcuts, I was able to complete the
installation as intended.  It's working well now.  Siri is struggling to
understand me at the moment because a cold virus this week has robbed me
of my voice!  But I've managed to make it do a few things, and am
looking forward to doing more when my voice returns.

@Michael - a couple of times Siri has repeated the word 'Squeezebox'
back to me, and she says it 'Squeezerbox'.  Maybe she'll understand you
better if you say that!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=109784

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


Re: [SlimDevices: Plugins] Control via sirs / Siri shortcuts (Pengsupport for Siri shortcuts?)

2019-10-19 Thread chill


Excellent - thanks for doing this.  I jumped on it straight away, but I
must have missed a step:

"OK. Something unexpected happened. (Dictation is not supported in
Siri.)"



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=109784

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


Re: [SlimDevices: Plugins] Customizing jivelite skin

2019-05-15 Thread chill


That's very inventive, and looks well executed.  I love projects like
this!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110562

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


Re: [SlimDevices: Plugins] Best player for macOS, for remote connections

2019-03-05 Thread chill


richboyce wrote: 
> 
> Squeezelite v1.9.1-1130 - Connects fine, works well, is stable - but in
> the default configuration I have lots of pops and crackles when mousing
> about certain things (browsers are bad for this!) typing and changing
> desktops. Very odd, doesn't happen with any other players.
> 

Could be worth enabling logging to see if there's anything obvious when
you get pops and crackles.  Could it be buffer underruns?  You could
experiment with different buffer sizes.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110275

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-13 Thread chill


d6jg wrote: 
> I may be being a bit dense here but why would you ever want to run two
> instances of squeezelite on one Joggler?

That's a very good question!  Headphones and DAC perhaps?  But even in
that case, why would you have headphones on while the DAC is playing -
you'd inevitably be in the same room as the DAC.  Maybe 'either/or'
would simplify things.

I did add an option to select which player gets the visualisations, and
it seems to work ok, but in all my testing the named players have had
their MAC addresses changed numerous times, and LMS did get a bit
confused - playlists swapping between players etc.  This might be a
'feature too far' after all.  Perhaps the best approach would be to just
let the user select whether squeezelite plays on the internal interface
OR the external interface.  It would still use most of what I've coded,
but the interface selection would be a radio button group instead.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-13 Thread chill


KeBul wrote: 
> Of course you do - I have some spare Jogglers so have followed your
> progress on this with interest but the most striking part is your
> evident delight in getting things to work how you want them to... keep
> on joggling!
> 
> Kev

Haha - yes, you're right, it would annoy me to know that visualisers
'half work', so I'll have to think of some sort of strategy.  I'm not
sure there is a 'perfect' strategy when there's a choice of player
configurations; Internal, or External, or Neither, or Both, and when
either player can be started or stopped at any time.  Maybe I need a
separate screen to allow the user to choose the player that gets the
'magic' MAC address.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-13 Thread chill


It took me a while to figure out that jivelite gets its MAC address from
the eth0 interface, whereas I was giving squeezelite the wlan0 MAC
address.  Fixed that now, and now I have the visualisers working.

So to answer my own questions:
- If I start jivelite while a visualiser-enabled player is running on
the same MAC address, then the visualisers work.
- If I then switch to my other squeezelite instance (MAC address differs
by 1), then I get the visualiser options in the 'Now Playing Views', but
they don't work.  I guess jivelite has already decided to use the shared
memory offered by the first player.
- If I switch to a completely different (hardware) player, the
visualiser options disappear from the 'Now Playing Views'.

So now I just need to decide on a strategy for assigning the jivelite
MAC address to the most appropriate squeezelite instance.  Or maybe I
don't - I am doing this to be able to *avoid* a Joggler-based player
after all!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-13 Thread chill


Thanks Ralphy

My two instances have adjacent MAC addresses - I simply add 1 to the
final segment of the hardware MAC address to get the second MAC address
(unless it's 'FF', in which case I subtract 1), and then I use the lower
of the two MAC addresses for the internal interface.  Maybe I need to
adjust that policy (e.g. so that a single instance always uses the
hardware MAC address, and if there are two instances then the first one
enabled gets the hardware address).

But I wonder if that matters.  If jivelite doesn't check again after the
first check, what would happen if I start jivelite when a
visualiser-enabled local player with the right MAC address is running,
then switch to a visualiser-enabled local player with a different MAC
address?  In that case would jivelite attempt to use the shared memory
offered by the second player?  Presumably, if I switch to a different
player altogether (e.g. a hardware player), while jivelite thinks
visualisers are enabled, they would simply not work due to the lack of
shared memory, but would that crash jivelite perhaps?

Time for some experimenting I think.  Clearing the Lua settings is the
important step before I start.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-12 Thread chill


I had a quick look in the NowPlaying applet, and I guess the problem is
that Jivelite is not identifying my local instance of squeezeplay as a
'local player', so the visualiser options aren't enabled.  So what is it
that identifies a player as 'local'?  An instance of squeezeplay running
on the same device as jivelite should surely qualify, but do I need to
force it to be recognised somehow?


Code:

-- style names are grabbed from the skin
  -- this list is compared against the settings.views table (if any), and 
certain views are disabled as specified
  -- further, if the player is not local and the view is local only, don't 
allow that in the returned table
  function getNPStyles(self)
local npSkinStyles = jiveMain:getSkinParam("nowPlayingScreenStyles")
  
-- visualizers are only available for connected local players, so only 
include them in that case
local auditedNPStyles = {}
if not self.player then
-- don't give any options if not connected to a player
  
else
local settings = self:getSettings()
local playerId = self.player:getId()
  




chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-12 Thread chill


Mystery solved.  I deleted all the object files and reissued the make
command with the '-DVISEXPORT' option, and now my squeezelite binary
includes the VISEXPORT build option, and the -v command line option is
present.

Next mystery - I'm not sure where the visualisations option(s) should
be.  If I start squeezelite with the -v option, and then start jivelite,
and select the squeezelite player, shouldn't I see a visualisations
option under 'Settings' > 'Screen' > 'Now Playing' > 'Now Playing
Views'?  What could explain why I don't see the visualiser options?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-12 Thread chill

d6jg wrote: 
> In SqueezeOS Visualisation only works when a Joggler is also a player. I
> don’t think you will ever get Jivelite to visualise unless there is a
> running player on the same hardware.

My original reason for building Jivelite on the Joggler was to have the
controller part of Squeezeplay without the player part, since I
personally didn't have a need for the player on the Joggler, and its
presence (on a couple of Jogglers) was just cluttering up my list of
players.  I'm pretty much there with the Jivelite build, so my original
objective has been met.  But I've also added the option to have
Squeezelite running on the Joggler as well to cater for cases where this
might be useful - separate instances are possible on the internal
(analogue) and external (USB) interfaces, and I've made an applet to set
up and control these instances.  So when either of those instances is
running I think that would meet the conditions necessary for
visualisations - there should be the necessary shared memory available.

I'm puzzled why the visualisation option doesn't appear to be included
in my Squeezelite binary, despite the make option apparently selecting
the necessary object file.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-12 Thread chill


Roland0 wrote: 
> 
> make OPTS="-DVISEXPORT "

Hmm - that achieved the same thing.

Without that option I get:

Code:

make
  cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o 
output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o 
mpg.o faad.o  -lasound -lpthread -lm -lrt -ldl -o squeezelite



By specifying -DVISEXPORT, either with

Code:

make OPTS="-DVISEXPORT"


or

Code:

export OPTS=-DVISEXPORT
  make



I get:

Code:

make OPTS="-DVISEXPORT"
  cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o 
output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o 
mpg.o output_vis.o faad.o  -lasound -lpthread -lm -lrt -ldl -o squeezelite



Note the extra 'output_vis.o'.  But in either case the -v option doesn't
seem to exist, and the build options in the usage statement include only
LINUX ALSA EVENTFD.

What else could I be doing wrong?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-12 Thread chill

Roland0 wrote: 
> "It" presumably being squeezelite, and not Jivelite?
> 

Indeed! Yes, sorry, I wasn’t clear. Thanks, I’ll try that.





chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


[SlimDevices: Plugins] How to enable visualisations in Jivelite?

2019-02-12 Thread chill


I've been working on a Jivelite setup for a Joggler.  I thought I'd have
a go at building it to support visualisations.

I set an environment variable:

Code:

export OPTS=-DVISEXPORT



Then I deleted the earlier binary and reissued the makefile.  I noticed
that output_vis.o was now included in the binary.  

Code:

root@openframe:~/squeezelite# make
  cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o 
output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o 
mpg.o output_vis.o faad.o  -lasound -lpthread -lm -lrt -ldl -o squeezelite
  r



But when I try to start jivelite with the -v option, I get the usage
statement (meaning that -v isn't recognised), and sure enough it's not
listed as one of the options.  The build options at the end of the usage
statement show

Code:

Build options: LINUX ALSA EVENTFD
  



So evidently something else is needed to get the visualisation option
into the build.  Can anyone advise?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110175

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


Re: [SlimDevices: Plugins] [Announce] Client Cleanup v1.0

2019-02-07 Thread chill


Ooh - tricky question.  I don't think I'd know where to start!  I see a
lot of devices being sold on on eBay, but I'd guess that most end up
connecting again with their new owners.  So the total number of hardware
devices probably isn't going down very fast.  On the contrary, probably
the pCP/Max2play/etc devices are growing in number faster than the
original hardware is dying.  But I would have no clue how to estimate
that number.  Maybe a number in the 10s of thousands in the UK, but
multiplied up around the world - no idea!



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110142

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


Re: [SlimDevices: Plugins] [Announce] Client Cleanup v1.0

2019-02-07 Thread chill


mherger wrote: 
> And trust me, people are amazed over and over 
> again when they see how many SB users there still are!

Out of interest, are you allowed to give us a ballpark figure?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110142

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-03-08 Thread chill

Mnyb wrote: 
 Smartmix restarts when changing player in the web-UI when synced ?
 

I think that's this:
http://forums.slimdevices.com/showthread.php?97668-Announce-Smart-Mix-pluginp=735170viewfull=1#post735170



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-02-22 Thread chill

mherger wrote: 
 They obviously have to do a living  
 from their service by selling commercial licenses. But yet they're
 giving  
 away keys for free under certain limitations. I do respect this. I'm  
 thankful I can use their service for free at all.

Ah, ok.  Same here.  I hadn't appreciated that this mode of operation is
running alongside commercial licences.  Clearly, if they allowed
developers to make it possible for end users to enter their own keys
then nobody would pay for a commercial licence.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Local Player plugin and Squeezelite for Linux/Windows/OSX

2013-02-17 Thread chill

Triode wrote: 
 I've just updated LocalPlayer to 0.10. This include the released
 binaries for Squeezelite.
 
 It also includes an additional binary for osx which is i386 only.  This
 should allow it to always work with the mp3 codec recommended from the
 settings page(mpg123 download from rudix).  I hope this makes
 installation easier on osx machines.  Please let me have your
 feedback...

Hi Triode

Thanks for the update.  I've just updated to 0.10, selected the i386
binary, installed mpg123, and it now plays my MP3s too.

Thanks again for a really useful plugin.

Chris



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97766

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-01-28 Thread chill

mherger wrote: 
  If I start a smartmix on one player in a synced group using the web
  interface on my laptop, then switch the web interface over to another
  player in the same sync group, the smartmix seems to reload with a
  different selection of tracks.
 
 I think what you're seeing is a long standing issue with the web UI:
 when  
 you switch player, the left hand side frame is re-loaded. If that was
 the  
 result page of starting a mix, then the reload would cause a new mix to
 be  
 generated.
 
 You can easily confirm this if you navigate back to the home of the left
 
 hand navigation panel before switching player. In this case it shouldn't
 
 happen any more.
 
 -- 
 
 Michael

Yes, that solved it.  Thanks Michael.

Chris



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-01-26 Thread chill

Michael

If I start a smartmix on one player in a synced group using the web
interface on my laptop, then switch the web interface over to another
player in the same sync group, the smartmix seems to reload with a
different selection of tracks. I'm running Smartmix v1.0.0, with the
music sources set to local files and Spotify.  Is this the intended
behaviour?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-01-12 Thread chill

dbinder101 wrote: 
 Great plug-in, thanks for your effort. I'm trying to create a new recipe
 using the Advanced settings and selecting song-radio instead of
 artist-radio, but it complains about the Artist Pick field the
 artist-pick parameter is only available for artist-type mixes. I cannot
 seem to blank this out. Is there any way I can create this type of
 recipe?

I'm seeing the same thing here, trying to create a 'genre-radio'.  Has
something changed here?  The other day I used the advanced settings to
pick a genre, select 'genre-radio' and then save the recipe without
touching any other settings, and it all worked fine.  This morning I did
the same but it's complaining about the artist-pick parameter.  In fact,
if I open up the simple genre-radio I created the other day it now shows
the 'artist-pick' parameter in red, and the options at the top to play
the playlist or save the recipe are greyed out.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-01-12 Thread chill

Triode wrote: 
 That sounds a bit like spotify playback issues as once Smart Mix has
 added a track to the playlist it is no longer involved.  Sounds to me
 that its more likely to be related to bandwidth/spotify server
 performance than Michael's plugin.

OK.  I don't know how Spotify works at that level - is it possible that
some Spotify tracks queued up by Smartmix are being streamed from a
different place from those that your plugin queues up by itself?  I
never have any problems playing directly from your plugin.

But back to the consequences of the unplayable tracks:
- I started a Smartmix this morning with local files and Spotify set as
the only music sources.  It selected five tracks to start the playlist
(as usual, none of them were from my local files), but it turns out that
tracks 1 and 4 are unplayable.  Maybe as a consequence, this short
playlist does not get added to - it just goes round and round playing
tracks 2, 3 and 5.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-01-12 Thread chill

mherger wrote: 
  Great plug-in, thanks for your effort. I'm trying to create a new
 recipe
  using the Advanced settings and selecting song-radio instead of
  artist-radio, but it complains about the Artist Pick field the
  artist-pick parameter is only available for artist-type mixes. I
 cannot
 
 Should be fixed now. Please give it another try (just reload the Blender
 
 page). Thanks!
 
 -- 
 
 Michael

Yep - fixed for me, thanks.

Next problem (sorry, it seems like I do nothing but complain!):

If I use the blender to create a recipe, the area at the bottom of the
page fills with a list of tracks, but if I then use the option at the
top of page to 'Play these Tracks as a Static Playlist' I get the
following error:


Code:


  {
  msg: Playing 0 tracks to Kitchen Boom,
  error: 0
  }
  



The option to 'Play this Recipe as a Dynamic Playlist' starts playing
without that error.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


Re: [SlimDevices: Plugins] Announce: Smart Mix plugin

2013-01-12 Thread chill

mherger wrote: 
 
 Are you running version 0.98 of the plugin? There were multiple issues 
 
 around the static playlist in earlier versions.
 


Yes, version 0.98, and for good measure I just did a 'new and changed'
rescan, but I still get that message.  Would the blender settings make a
difference?  This is from the Advanced page, with a selected genre and
'genre-radio' as the type, no other changes to the settings.  Local
music files and Spotify as music sources.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=97668

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


  1   2   >