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 bash because pCP does not
have bash natively) which will update a single tunnel (enough for pCP)
and give it the name 'false' (string) which will work fine as default in
my back-end. The code is


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=${DATA}"`";
  echo $RES
  
--------------------

All you need to do is change the value of the UUID variable to match the
uuid shown when you link the skill. Might be worth having a try with
this as no installs needed.


------------------------------------------------------------------------
philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
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

Reply via email to