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 Win10 servers and both use the Python version of
the script with ngrok auto update which works well. I tried the Perl
version but had trouble getting it going, after instalingl Python and
the relevant libraries it worked 1st time (thanks to PhilChill for
assisting!).

The way my auto update is set up is I run a batch file from the start-up
shell which starts the ngrok tunnel and also calls a 2nd batch file to
run the auto-update procedure. So, the first batch file points to the
directory where ngrok and the update files are stored, it then calls a
2nd batch file, and then runs ngrok to start the tunnel. Meanwhile, as
the 2nd batch file runs, it has a short delay to allow the tunnel to
open, and then runs the python aut-update script.

It seems a bit long winded, but calling ngrok from a batch file then
causes the batch file to stop running so it would never run auto-update,
hence I needed to call the 2nd batch file to solve this. Tweak the delay
to the minimum to allow the tunnel to successfully establish itself else
the auto-update routine won't work.

Example batch files below:


Batch File 1 (Call this one from the startup shell):

cd/
CD C:\Google Drive\LMS Stuff\ngrok
start /min batchfile2
ngrok start -region=eu home

Batch File 2 (this one is called from the one above):

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

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