forked from marva/sumorobot-web
		
	edit connect status
This commit is contained in:
		@@ -57,6 +57,7 @@ Sumorobot.prototype.connect = function() {
 | 
			
		||||
        var battery = JSON.parse(data)["battery_voltage"];
 | 
			
		||||
        battery = Math.round((((battery - 3.6) * 100) / (4.2 - 3.6)));
 | 
			
		||||
        //$("#battery").html(battery + "");
 | 
			
		||||
        $("#bar").html("Connected");
 | 
			
		||||
        $("#bar").addClass("connected");
 | 
			
		||||
    };
 | 
			
		||||
    /* when there is an WebSocket error */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user