Skip to content

Commit

Permalink
fixed problems, now using env in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanburmane committed Oct 17, 2024
1 parent df215a0 commit 5f50ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@app.route("/")
def index():
return render_template("index.html")
return render_template("index.html", rov_ip=os.getenv("ROV_IP"))


def initialize_frontend_nodes():
Expand Down
4 changes: 2 additions & 2 deletions ui/src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
2. Change only the IP address, the port REMAINS 8889
3. Delete the extra camera output frames if duplicates -->

<iframe src="http://192.168.1.11:8889/camera_1" scrolling="no" style="width: 100%; height: 100%;"></iframe>
<iframe src="http://192.168.1.11:8889/camera_2" scrolling="no" style="width: 100%; height: 100%;"></iframe>
<iframe src="http://{{ rov_ip }}:8889/camera_1" scrolling="no" style="width: 100%; height: 100%;"></iframe>
<iframe src="http://{{ rov_ip }}:8889/camera_2" scrolling="no" style="width: 100%; height: 100%;"></iframe>
</div>
</body>
</html>

0 comments on commit 5f50ba5

Please sign in to comment.