diff --git a/raspberry/roberto/views/frontend/templates/index.html b/raspberry/roberto/views/frontend/templates/index.html index 57560a6..831619c 100644 --- a/raspberry/roberto/views/frontend/templates/index.html +++ b/raspberry/roberto/views/frontend/templates/index.html @@ -174,6 +174,7 @@ socket.on('battery', (data) => { var ctx = canvas.getContext("2d"); ctx.font = "14px Arial"; ctx.fillStyle = "blue"; + ctx.clearRect(3*canvas.width/4, 30, canvas.width/4, 24); ctx.fillText(data, 3*canvas.width/4, 30); });