I'm pretty sure I had ngrok auto-running and updating on pCP - i think it is why I was using the Perl updater (because Perl was on the pCP machine to run LMS).
I don't have that set-up now though.
Results 811 to 820 of 891
-
2021-01-16, 15:31 #811
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 3,643
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
-
2021-01-17, 15:28 #812
Yes - unfortunately, my home network setup no longer has an "always-on" network server (we now just use laptops and my old Windows deskside machine is usually asleep).
I may build one from an unused Pi since it could serve other purposes as well, but other projects are priorities right now. Thanks for the suggestion, though.
-
2021-01-25, 12:36 #813
The instructions for setting up the skill have been refreshed with a new look and feel. Here's an example:
Hope it's deemed an improvement by all
Also, some people with slow hardware and/or poor internet speeds have been triggering unhandled timeouts lately - this should now error out more gracefully when it happens.
-
2021-01-26, 08:04 #814
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...ads/updater.py
Perl: https://mediaserver.smartskills.tech...ads/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?
-
2021-01-26, 08:43 #815
-
2021-01-26, 09:46 #816
-
2021-01-26, 12:24 #817
Originally Posted by chill;
-
2021-01-26, 12:49 #818
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 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.
-
2021-01-26, 14:42 #819
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.
-
2021-01-26, 15:00 #820
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.