From 3a1a03538993ed9b743e0baa4779dc95cb6a89c9 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Tue, 7 Nov 2017 23:24:37 +0100 Subject: [PATCH] remove battery indication --- index.html | 2 +- sumorobot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 8890465..4f1c066 100755 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ -
Battery: 0%
+
Disconnected
Close diff --git a/sumorobot.js b/sumorobot.js index 19f3b66..bf16946 100755 --- a/sumorobot.js +++ b/sumorobot.js @@ -56,7 +56,7 @@ Sumorobot.prototype.connect = function() { console.log(data); var battery = JSON.parse(data)["battery_voltage"]; battery = Math.round((((battery - 3.6) * 100) / (4.2 - 3.6))); - $("#battery").html(battery + ""); + //$("#battery").html(battery + ""); $("#bar").addClass("connected"); }; /* when there is an WebSocket error */