philchillbill wrote: 
> @staresy runs two locations/servers on Win10, having followed the
> instructions at 
> https://support.microsoft.com/en-us/help/4026268/windows-10-change-startup-apps
> and using Python for the updater script (not sure if manually or somehow
> linked to the ngrok startup). Maybe he can pitch in?

Indeed I do! I run x2 Win 10  LMS 8.0 servers, using ngrok (free
version) with auto-update via the Python script. I tried the Perl
version 1st but had some trouble getting it to run so used the Python
version which worked 1st time after I had installed all the libraries
and with some help from PhilChill (thanks!). It all works very well.

The trick to running the auto-update in Windows is to run a couple of
batch files from the Windows start-up shell. The 1st batch file points
to the relevant directory containing the ngrok and auto-update script.
This file then goes on to run ngrok to open the tunnel and call a second
file to run the updater script. This may seem a bit long winded (ie. why
x2 batch files?) but the answer is that ngrok has to run first to
establish the tunnel before updater can run, the problem is running
ngrok from a batch file stops the batch file running (meaning you can't
then run the updater script). So the solution is to call a 2nd batch
file which calls a short delay (to let the tunnel get established) and
then runs the updater script. It works fine, if you can think of a more
elegant solution, let me know!

Example batch files below:

Batch File 1 (call this from the start-up shell):

cd/
CD C:\Google Drive\LMS Stuff\ngrok
start /min batch2.bat
ngrok start -region=eu server name

Batch File 2 (called from batch file 1 above):

cd/
cd C:\Google Drive\LMS Stuff\ngrok
timeout 5
updater.py

Adjust the timeout to the minimum to allow the ngrok tunnel to reliably
get up and running.

Hope that helps.



location 1: lms 8.0 on win 10 brix server, x2 sb radios, x1 touch, x1
controller : location 2: lms 8.0 on win 10 brix server, x2 sb radios, x1
duet receiver, x1 controller : alexa mediaserver smart skill, material
android, squeezelitex control
------------------------------------------------------------------------
staresy's Profile: http://forums.slimdevices.com/member.php?userid=807
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to