From: Erik Andresen Date: Thu, 2 Apr 2020 05:11:49 +0000 (+0200) Subject: www: added hostname variable X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=2b77cd47ca07d0e078b3dd27616ab255b7657db1;p=ros_wild_thumper.git www: added hostname variable --- diff --git a/www/assets/javascripts/application.js b/www/assets/javascripts/application.js index a7b4785..df4c9eb 100644 --- a/www/assets/javascripts/application.js +++ b/www/assets/javascripts/application.js @@ -4,7 +4,7 @@ function init() { var isDragging = false; function connect() { - ros.connect('ws://wildthumper:9090'); + ros.connect('ws://'+robothostname+':9090'); } ros.on('connection', function() { diff --git a/www/index.html b/www/index.html index 7a86765..bc209ac 100644 --- a/www/index.html +++ b/www/index.html @@ -21,6 +21,9 @@ + Wild Thumper control @@ -115,7 +118,7 @@
- +