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

2020-09-08 Thread philchillbill
Yes it does sound like a timing issue. If you manually run the updater script say a few minutes after the pi has booted, does it work then? philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920

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

2020-09-08 Thread Paul Webster
Perhaps the Post process is being run too quickly. What does it show in sudo systemctl status ngrok You could add an explicit sleep into the Post section by simply adding an extra line So it becomes ExecStartPost=/bin/sleep 5 ExecStartPost=/usr/bin/python3 /home/pi/updater.py Paul Webster

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

2020-09-08 Thread mecouc
I just got the python Updater to work on my picoreplayer (though using a module that did not survive reboot). I had to use 127.0.0.1 as the IP, not my actual IP for some reason. I also had to change the ' around the uuid to a ". Running just the updater from the command line will give you

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

2020-09-08 Thread raglencross
I am running LMS on a Pi4 using Raspbian OS. I have been trying on and off for several weeks now to get the updater to work with no success, probably because I am very much a Linux novice! 1.My ngork.yml file (Autostart works.) looks like this with personal info "X'd" out ( Command: nano

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

2020-09-08 Thread Paul Webster
philchillbill wrote: > Better to keep server load down by not attempting something that will be > guaranteed to fail. OK - but would only (normally) happen on boot of pCP where someone has made a mistake elsewhere in the set-up process. Paul Webster http://dabdig.blogspot.com author of

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

2020-09-08 Thread philchillbill
Paul Webster wrote: > Probably mecouc > I think he has the updater running but had not been able to autostart > ngrok yet. > Would it be better if updater.pl did not try to contact if not able to > get the info from ngrok or is it better to see the rubbish in your logs > so that you can have a

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

2020-09-08 Thread Paul Webster
Probably mecouc I think he has the updater running but had not been able to autostart ngrok yet. Would it be better if updater.pl did not try to contact if not able to get the info from ngrok or is it better to see the rubbish in your logs so that you can have a hint if end-user reporting a

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

2020-09-08 Thread castalla
philchillbill wrote: > Somebody is getting a lot of errors this morning because the tunnel > details being saved are [{"name":null,"url":null}]. My guess is that > this is a pCP uuid-update attempt going wrong. Not me! Haven't tried it as yet. LMS server: O2 Joggler with Jivelite, Pi Zero

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

2020-09-08 Thread philchillbill
Somebody is getting a lot of errors this morning because the tunnel details being saved are [{"name":null,"url":null}]. My guess is that this is a pCP uuid-update attempt going wrong. philchillbill's Profile:

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

2020-09-07 Thread philchillbill
Well done Paul ! philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=111016 ___

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

2020-09-07 Thread Paul Webster
PMs sent and now off to bed Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's

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

2020-09-07 Thread mecouc
Thanks for all your effort. Looking forward to having a go! mecouc's Profile: http://forums.slimdevices.com/member.php?userid=227 View this thread: http://forums.slimdevices.com/showthread.php?t=111016

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

2020-09-07 Thread Paul Webster
OK - now working ... I think. I commented out a couple of bits so that I do not mess up anything on my real Alexa skill account. I'll write up my notes tomorrow ... so, castalla or mecouc, if you have not finished getting the alternate OS route working then let me know and I'll PM you a draft

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

2020-09-07 Thread Paul Webster
I suspect my solution will be to slightly change things and move the running of updater.pl into the pCP User Commands since these are run much later in the process. If it works it will be one more step for the end-user but web-based so easy enough. Cannot try it out tonight as people are

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

2020-09-07 Thread philchillbill
Paul Webster wrote: > Thanks. > Unfortunately, the BusyBox (as used by pCP) version of grep does support > -P so the regex part will not work. > > However, I do have the Perl updater working - but not when it is run > during the startup process. > My suspicion is that it is network related and

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

2020-09-07 Thread Paul Webster
Thanks. Unfortunately, the BusyBox (as used by pCP) version of grep does support -P so the regex part will not work. However, I do have the Perl updater working - but not when it is run during the startup process. My suspicion is that it is network related and it is really ngrok that had not

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

2020-09-07 Thread philchillbill
Paul Webster wrote: > I have it /nearly/ working on pCP 6.1.0 ... ngrok starting on boot and > updater running ... but updater not quite working (I think because of > the pcp startup mechanism). I have asked for some advice on pCP 6 > thread. Paul, I've written a tiny shell script (in sh, not

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

2020-09-07 Thread Paul Webster
I have it /nearly/ working on pCP 6.1.0 ... ngrok starting on boot and updater running ... but updater not quite working (I think because of the pcp startup mechanism). I have asked for some advice on pCP 6 thread. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins

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

2020-09-07 Thread castalla
castalla wrote: > Laziness? PCP is easy to install on a pi zero. > > I've forgotten how to install raspian on the pi zero wifi - maybe I > should bite the bullet. I had ngrok running under raspian on a pi 2 but > it got repurposed. Well, Pcp 1 : castalla 0 I've given up and installed Pi

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

2020-09-07 Thread philchillbill
Paul Webster wrote: > That is what I do for my own set-up. > I went down that route early on because I didn't want to have to redo > the ngrok initialisation each time I (rarely) restarted the server and I > didn't want to buy an ngrok service because I was not really sure that I > would need

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

2020-09-07 Thread mecouc
I picked PcP because it looked easy - someone has spent a lot of time making something that works really nicely. I didn't want to spend days learning how to use linux. All my previous experience of linux has ended up taking hours or days of my time to do apparently the simplest things due to my

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

2020-09-07 Thread Paul Webster
arressen wrote: > Re-direct on router, proxy configuration over https, with backend user > authentication before pass through. I'm not suggesting it's > plug-and-play - very little in this space is really - but it seems to me > to be a lot easier than jumping through these hoops. > That is

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

2020-09-07 Thread arressen
Paul Webster wrote: > Think of how you would secure the simple dynamic DNS approach. > LMS does not have HTTPS front-end. > Then also think about the instructions for port forwarding from the > domestic router. > > ngrok solves both. Paul - your tenacity and determination have been exemplary

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

2020-09-07 Thread castalla
philchillbill wrote: > What exactly is the perceived benefit of a pi with pCP on it vs the same > pi with Raspbian + LMS + Squeezelite on it? pCP is a very stripped down > Linux which is only really intended to run LMS and Squeezelite and > basically nothing else, which is why it's a pain to

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

2020-09-07 Thread Paul Webster
arressen wrote: > > I'm also not clear on the true value of using ngrok versus a dynamic dns > arrangement? > Think of how you would secure the simple dynamic DNS approach. LMS does not have HTTPS front-end. Then also think about the instructions for port forwarding from the domestic router.

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

2020-09-07 Thread Paul Webster
philchillbill wrote: > What exactly is the perceived benefit of a pi with pCP on it vs the same > pi with Raspbian + LMS + Squeezelite on it? > That might be for a different thread (benefit of LMS on pCP v Raspbian). However, it is clear that it is not as easy as I had expected, especially

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

2020-09-07 Thread arressen
philchillbill wrote: > What exactly is the perceived benefit of a pi with pCP on it vs the same > pi with Raspbian + LMS + Squeezelite on it? pCP is a very stripped down > Linux which is only really intended to run LMS and Squeezelite and > basically nothing else, which is why it's a pain to

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

2020-09-07 Thread philchillbill
castalla wrote: > I ended up reflashing pcp and starting from scratch. I have a LMS > tunnel working using the command terminal route - but I have to keep the > terminal open and all the logging scrolls > > I've no idea how to move on to get this working in a similar way to the > traditional

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

2020-09-07 Thread castalla
castalla wrote: > I've been struggling all day to get this working (at least to the point > where tunnel is declared at ngrok.com > > I've had varying success using the tweaks route. Some success, and then > failures. I think I may have some corrupted files - the backup > complains about

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

2020-09-06 Thread philchillbill
arressen wrote: > Just a thought - are there any plans to support brief mode (if enabled) > for Alexa responses? For example, I'm finding the additional > session-mode prompts by "Brian" unnecessary and actually hinder/inhibit > the request flow. > > > Sent from my iPad using Tapatalk Brief

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

2020-09-06 Thread Paul Webster
mecouc wrote: > > 500 Can't locate loadable object for module HTML::Parser That is strange since it is not explicitly called by updater.pl so I guess that one of the other routines is calling it. I'll research further. Paul Webster http://dabdig.blogspot.com author of \"now playing\"

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

2020-09-06 Thread mecouc
I should have maybe spotted that! Now I get 500 Can't locate loadable object for module HTML::Parser in @INC (@INC contains: /usr/local/slimserver/CPAN /usr/local/lib/perl5/site_perl/5.28.2/arm-linux-gnue abihf-thread-multi-64int

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

2020-09-06 Thread Paul Webster
mecouc wrote: > > {"name":"mediaservertunnel","url":"https://xxx.eu.ngrok.io"} > Can't locate object method "escape" via package "JSON::PP" at > perl-updater.pl line 42. > I suspect a search/replace has done more than needed. line 42 and 43 should now look like this: Code:

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

2020-09-06 Thread arressen
Just a thought - are there any plans to support brief mode (if enabled) for Alexa responses? For example, I'm finding the additional session-mode prompts by "Brian" unnecessary and actually hinder/inhibit the request flow. Sent from my iPad using Tapatalk

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

2020-09-06 Thread castalla
Paul Webster wrote: > Hopefully we will get some feedback from castalla or mecouc after making > the small changes to updater.pl that I mentioned. I've been struggling all day to get this working (at least to the point where tunnel is declared at ngrok.com I've had varying success using the

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

2020-09-06 Thread mecouc
OK, so I did a search and replace for those 2 changes, and now I get: perl -I /usr/local/slimserver/CPAN perl-updater.pl {"name":"mediaservertunnel","url":"https://xxx.eu.ngrok.io"} Can't locate object method "escape" via package "JSON::PP" at perl-updater.pl line 42. I really

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

2020-09-06 Thread Paul Webster
Hopefully we will get some feedback from castalla or mecouc after making the small changes to updater.pl that I mentioned. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte

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

2020-09-06 Thread philchillbill
At the end of the day, the updater script just visits localhost:4040 to find the current tunnel details and then posts them off with a http GET to a smartskills.tech endpoint. The example scripts I built happen to be In Python and Perl but curl or wget in a bash script can do those things too.

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

2020-09-06 Thread Paul Webster
Changing all of the Encode to Escape and encode to escape ... might be the solution to that (because URI::Escape is included in LMS installs) Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia,

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

2020-09-06 Thread Paul Webster
... changing all of the XS to PP gets to the next step ... Code: Can't locate URI/Encode.pm in @INC ... researching ... Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw,

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

2020-09-06 Thread Paul Webster
Just tried it with updater.pl The above fixes things for LWP::UserAgent but it then fails on JSON::XS Code: Can't locate loadable object for module JSON::XS in @INC Perl is looking for XS.so and it cannot find one that matches this build.

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

2020-09-06 Thread Paul Webster
Change the command that executes perl to Code: perl -I /usr/local/slimserver/CPAN The switch is a capital letter i (eye) This tells perl to add this location to the start of the @INC list - and when LMS is installed that is (one of the places)

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

2020-09-06 Thread mecouc
As suggested above, I get "Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module) " When trying to run the update script on my picoreplayer mecouc's Profile:

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

2020-09-06 Thread philchillbill
Paul Webster wrote: > pCP with LMS installed has a lot of Perl because it needs it to run > LMS. > > Another user in this thread reported (I think) that it all works. > > If the others here cannot get it to work I’ll try it myself and document > the steps where they differ to that on Phil’s

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

2020-09-06 Thread Paul Webster
pCP with LMS installed has a lot of Perl because it needs it to run LMS. Another user in this thread reported (I think) that it all works. If the others here cannot get it to work I’ll try it myself and document the steps where they differ to that on Phil’s site. Paul Webster

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

2020-09-06 Thread philchillbill
pCP may have perl built in, but this particular script relies on use LWP::UserAgent; use JSON::XS; use URI::Encode qw(uri_encode); Unless those modules are already present or installable ion pCP t's not going to work anyway.

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

2020-09-06 Thread Paul Webster
castalla wrote: > > I'm still not sure how to proceed with the tweaks - if possible the > process should run in the background, shouldn't it? > You can't use the & in a tweak command. So, again what to do? > pCP runs the user commands by using "eval" on them and it puts a & at the end

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

2020-09-06 Thread Paul Webster
castalla wrote: > > I haven't tried ngrok http 80 as a tweak command to see what happens as > a test. Note - port 80 on pCP server is the pCP built-in web server Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland,

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

2020-09-06 Thread Paul Webster
mecouc wrote: > I'm still trying with my picore > > I put the ngrok executable in .ngrok2 > Ngrok now works through a reboot by putting the command > > /home/tc/.ngrok2/ngrok start -config=/home/tc/.ngrok2/ngrok.yml > mediaservertunnel > > in a tweak, but the perl updater script does not

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

2020-09-06 Thread mecouc
I'm still trying with my picore I put the ngrok executable in .ngrok2 Ngrok now works through a reboot by putting the command /home/tc/.ngrok2/ngrok start -config=/home/tc/.ngrok2/ngrok.yml mediaservertunnel in a tweak, but the perl updater script does not seem to be running. Alexa/media

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

2020-09-06 Thread castalla
Paul Webster wrote: > This should work ... > /home/tc/ngrok > > I have just done this on RPi running pCP > > > Code: > > > tc@PiTouch:~$ wget https://somewhere/ngrok-stable-linux-arm.zip > Connecting to x > ngrok-stable-linux-a 100%

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

2020-09-06 Thread Paul Webster
This should work ... /home/tc/ngrok I have just done this on RPi running pCP Code: tc@PiTouch:~$ wget https://bin.equinox.io/c/xxx/ngrok-stable-linux-arm.zip Connecting to bin.equinox.io (54.198.148.204:443) ngrok-stable-linux-a 100%

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

2020-09-06 Thread castalla
philchillbill wrote: > Move the dot to the beginning/ > > ./home/tc/ngrok Thanks! Will try that. LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0 Amp: Denon PMA-50 Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010,

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

2020-09-06 Thread philchillbill
castalla wrote: > I don't know how to specify the command for the tweak start-up commands, > eg. > > /home/tc/./ngrok doesn't work Move the dot to the beginning/ ./home/tc/ngrok philchillbill's Profile:

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

2020-09-06 Thread castalla
philchillbill wrote: > If it does run as ./ngrok then why is that not sufficient? I don't know how to specify the command for the tweak start-up commands, eg. /home/tc/./ngrok doesn't work LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0 Amp: Denon PMA-50

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

2020-09-06 Thread philchillbill
castalla wrote: > Sadly, didn't change anything. Still won't run. If it does run as ./ngrok then why is that not sufficient? philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this

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

2020-09-05 Thread castalla
Paul Webster wrote: > Try a > chmod +x ngrok > then > ngrok Sadly, didn't change anything. Still won't run. LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0 Amp: Denon PMA-50 Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3,

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

2020-09-05 Thread Paul Webster
Try a chmod +x ngrok then ngrok Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul

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

2020-09-05 Thread castalla
Paul Webster wrote: > In my example I set it to run from /home/tc > I would be surprised if it did not work or could not be made to work > from there. But how? At the command prompt in /home/tc only ./ngrok works. ngrok alone gives ngrok : not found LMS server: O2 Joggler with Jivelite,

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

2020-09-05 Thread Paul Webster
In my example I set it to run from /home/tc I would be surprised if it did not work or could not be made to work from there. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte

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

2020-09-05 Thread castalla
Paul Webster wrote: > Phil's instructions for the autostart on regular Linux shows ... > > Code: > > > /usr/local/bin/ngrok start -config=/home/pi/.ngrok2/ngrok.yml mediaservertunnel > > > > > So ... if you have followed his instructions

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

2020-09-05 Thread philchillbill
arressen wrote: > One other thing I've noticed - am I right in thinking that there have > been new releases of the skill in the last couple of weeks? The Alexa > app is telling me the last update was 15 days ago, so I'm not clear if > everything is updating correctly. The Alexa app only

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

2020-09-05 Thread arressen
philchillbill wrote: > Not with Smart Home skills like LMS-lite. The players -should- all be > automatically deleted when a skill is disabled so re-linking the skill > should start with a clean slate. But Amazon regularly digs up devices I > killed months ago and does so at random. I tried to

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

2020-09-05 Thread philchillbill
arressen wrote: > Is it not possible for the skill to determine if the player already > exists and not re-create it? > Not with Smart Home skills like LMS-lite. The players -should- all be automatically deleted when a skill is disabled so re-linking the skill should start with a clean slate.

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

2020-09-05 Thread arressen
philchillbill wrote: > LMS-lite will silently rediscover devices when it it linked. MediaServer > will not ask but rather will tell you it is rediscovering your players > and never duplicate. If LMS-lite duplicates your players it’s because > Amazon does not delete the old players when you

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

2020-09-05 Thread slartibartfast
philchillbill wrote: > LMS-lite will silently rediscover devices when it it linked. MediaServer > will not ask but rather will tell you it is rediscovering your players > and never duplicate. If LMS-lite duplicates your players it’s because > Amazon does not delete the old players when you

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

2020-09-05 Thread philchillbill
LMS-lite will silently rediscover devices when it it linked. MediaServer will not ask but rather will tell you it is rediscovering your players and never duplicate. If LMS-lite duplicates your players it’s because Amazon does not delete the old players when you unlink to re-link. Not the skill’s

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

2020-09-05 Thread Paul Webster
They should not be appearing multiple times. Maybe Phil can spot something in logs at his end. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland

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

2020-09-05 Thread slartibartfast
Paul Webster wrote: > That suggests that ngrok is already running. > So try to find it > ps -ef | grep ngrok > and then kill it using the task id.I rebooted the Pi and everything seems OK > now. Normally after rebooting and linking the LMS Lite skill I am asked to rediscover my devices. This

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

2020-09-05 Thread Paul Webster
That suggests that ngrok is already running. So try to find it ps -ef | grep ngrok and then kill it using the task id. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte

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

2020-09-05 Thread slartibartfast
I am trying to get autostart and autoupdate working following the guide. So far I have edited ngrok.yml. When I tested it using ngrok start mediaservertunnel I saw the error "Error reading configuration file '/home/pi/.ngrok2/ngrok.yml': config contains tab characters, YAML must use spaces for

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

2020-09-05 Thread slartibartfast
Paul Webster wrote: > There is a Python and Perl script that Phil supplies that can do that > automatically. > I don't know if that would work with micro Python on pCP - but Perl is > on pCP to run LMS so a good chance that it would work. > See the ngrok auto update section in >

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

2020-09-05 Thread Paul Webster
slartibartfast wrote: > True but even with autostart you still need to relink the skill with the > unpaid ngrok. > There is a Python and Perl script that Phil supplies that can do that automatically. I don't know if that would work with micro Python on pCP - but Perl is on pCP to run LMS so a

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

2020-09-05 Thread slartibartfast
mecouc wrote: > A manual restart is not an option for my elderly visually impaired > mother though. > > I think I will abandon LMS for her and use http://mymediaalexa.com which > lacks several nice Lms features (multiple genre tags for example) but > just works straight away. True but even

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

2020-09-05 Thread philchillbill
mecouc wrote: > A manual restart is not an option for my elderly visually impaired > mother though. > > I think I will abandon LMS for her and use http://mymediaalexa.com which > lacks several nice Lms features (multiple genre tags for example) but > just works straight away. You could just

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

2020-09-05 Thread mecouc
slartibartfast wrote: > You don't need ngrok autostart so I didn't bother with it. It still > works without it you just need to run it manually after a restart of > your Pi. > > Sent from my Pixel 3a using Tapatalk A manual restart is not an option for my elderly visually impaired mother

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

2020-09-05 Thread Paul Webster
Phil's instructions for the autostart on regular Linux shows ... Code: /usr/local/bin/ngrok start -config=/home/pi/.ngrok2/ngrok.yml mediaservertunnel So ... if you have followed his instructions but installed it in /home/tc on pCP then i

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

2020-09-05 Thread slartibartfast
mecouc wrote: > My linux headache gets worse! > I've just spent half an hour trying to set up ngrok autostart on my > picoreplayer to realise that I have a problem because the /etc/systemd > folder does not exist. > > I've read the posts now above about using the Tweaks section to start >

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

2020-09-05 Thread mecouc
My linux headache gets worse! I've just spent half an hour trying to set up ngrok autostart on my picoreplayer to realise that I have a problem because the /etc/systemd folder does not exist. I've read the posts now above about using the Tweaks section to start ngrok, but I have no idea what to

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

2020-09-05 Thread Paul Webster
Thinking aloud ... if the ngrok file is marked as executable (chmod +x) then running it without putting ./ in front should work (as long as you are in the same directory as it). Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw,

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

2020-09-04 Thread castalla
Paul Webster wrote: > You need to initiate a pCP backup (pcp bu) after things are setup and > before the next boot. > > Follow the instructions at > https://mediaserver.smartskills.tech/mediaserverhelp.html > except where it says "ngrok" type "./ngrok" to run it in the current > directory

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

2020-09-04 Thread Paul Webster
You need to initiate a pCP backup (pcp bu) after things are setup and before the next boot. Follow the instructions at https://mediaserver.smartskills.tech/mediaserverhelp.html except where it says "ngrok" type "./ngrok" to run it in the current directory rather than finding it on the path. Do

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

2020-09-04 Thread castalla
castalla wrote: > It's so long since I set ngrok up on a debian pi that I'm lost (again). > > I've downloaded ngrok and unzipped. Went over to the ngrok website > (where my account is still active) - it talks there about adding an auth > token to the default yaml file - I don't have one on

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

2020-09-04 Thread castalla
Paul Webster wrote: > I don't think it would be put there in pCP as I expect that is a > write-protected folder. > Simple leave it in the home directory. It's so long since I set ngrok up on a debian pi that I'm lost (again). I've downloaded ngrok and unzipped. Went over to the ngrok website

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

2020-09-04 Thread castalla
Thanks - I'll give it a go. LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0 Amp: Denon PMA-50 Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon

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

2020-09-04 Thread Paul Webster
I don't think it would be put there in pCP as I expect that is a write-protected folder. Simple leave it in the home directory. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and

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

2020-09-04 Thread philchillbill
There is no real install. It’s a single file when unpacked. Put it in /usr/local/bin when unpacked and that’s it. The beauty of ngrok. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View

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

2020-09-04 Thread Paul Webster
wget then unzip it unzip ngrok-stable-linux-arm.zip Then run it! Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland

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

2020-09-04 Thread castalla
Paul Webster wrote: > From ssh session or attached screen + keyboard. > > wget it ... and then how to install? I'm used to dpkg installs. LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0 Amp: Denon PMA-50 Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam,

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

2020-09-04 Thread Paul Webster
>From ssh session or attached screen + keyboard. wget it Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland

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

2020-09-04 Thread castalla
So, how do I install ngrok on picoreplayer? I thought it was only via extensions ... ? LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0 Amp: Denon PMA-50 Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe

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

2020-09-04 Thread Paul Webster
mecouc wrote: > > The instructions for ngrok autostart say to edit ngrok.yml in my home > directory on the Pi. But I've been told elsewhere that on PiCoreplayer > this directory is only in RAM and it's therefore a bad idea to use it. > It is a bad idea deal to put a large files (like an

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

2020-09-04 Thread mecouc
Following on from my earlier posts, I decided to get a Pi to (possibly) contain music that my elderly parents can listen to by voice. After my third re-imaging of the Pi I've got that going successfully. I've copied ngrok onto the pi and given it my authtoken. I have got a tunnel! The

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

2020-09-04 Thread arressen
Thanks Phil. I suspected that the Alexa architecture would be the limiting factor here, but can't help thinking that having the capability to notify skills of early events like this will eventually be desirable or necessary (if it isn't already). There are lots of A/V-related skills available

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

2020-09-04 Thread philchillbill
arressen wrote: > OK, so here's a long shot, but if you don't ask... > > One problem I'm coming across is that Alexa doesn't always hear what's > being said while there is noise in the room, such as audio playing on > squeezebox. > > Is there any way to have media server automatically duck the

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

2020-09-04 Thread arressen
OK, so here's a long shot, but if you don't ask... One problem I'm coming across is that Alexa doesn't always hear what's being said while there is noise in the room, such as audio playing on squeezebox. Is there any way to have media server automatically duck the volume when somebody says

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

2020-08-30 Thread philchillbill
As an aid to debugging problems with an outdated uuid still being in your updater.py file (vs the actual live skill-linking uuid), the command to "List known players" will now mention the first 5 characters of the correct uuid before finishing. That should be enough to know if you're on the

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

2020-08-29 Thread staresy
reinholdk wrote: > I don't want to hijack this thread and don't want to come over stubborn, > but are you starting the batch file from within a console window or by > double-clicking in file explorer? > In the latter case you will probably not see the output of the echo > command because the

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

2020-08-29 Thread reinholdk
staresy wrote: > Running ngrok from a command prompt establishes a tunnel and then just > hangs (ie. it doesn't run any subsequent code in the batch file), hence > the need to get two parallel processes running, as you say "call" > doesn't achieve this either. > > So, for example: > > ngrok

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

2020-08-29 Thread staresy
reinholdk wrote: > 'call' starts the program or batchfile in a new console session but not > in parallel. > > > > I don't know what might be special with ngrok, but I just tried using > start with an other command line program and it works as expected: > The autorunsc.exe executes in it's

<    1   2   3   4   5   6   7   8   9   10   >