From: Erik Andresen Date: Sun, 17 May 2020 10:33:12 +0000 (+0200) Subject: www: properly set image hostname X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=commitdiff_plain;h=eec61b85016f4b8acc989b2aecf5c38f838cb850 www: properly set image hostname --- diff --git a/www/assets/javascripts/application.js b/www/assets/javascripts/application.js index 7a87c12..1a61324 100644 --- a/www/assets/javascripts/application.js +++ b/www/assets/javascripts/application.js @@ -240,6 +240,7 @@ function init() { }); $("input[type='number']").spinner(); + $("#usb_cam").attr("src", "http://"+robothostname+":8080/stream?topic=/camera/color/image_raw"); } Vue.component('input-value', { diff --git a/www/index.html b/www/index.html index db7e48d..15e2aed 100644 --- a/www/index.html +++ b/www/index.html @@ -22,7 +22,7 @@ Wild Thumper control @@ -126,7 +126,7 @@
- +