You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

47 lines
961 B

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Solard</title>
<style type="text/css">
#graphs {
text-align: center;
}
</style>
</head>
<body>
<div id="graphs">
<h1>Solar Überwachung</h1>
<img src="voltages.png">
<img src="voltages_archive.png"><br/><br/>
<img src="currents.png">
<img src="currents_archive.png"><br/><br/>
<img src="soc.png">
<img src="soc_archive.png"><br/><br/>
<img src="charges.png">
<img src="charges_archive.png"><br/><br/>
<img src="relay.png">
<img src="relay_archive.png"><br/><br/>
</div>
<script type="text/javascript">
function update() {
var imgs = document.getElementById("graphs").getElementsByTagName("img");
for(img of imgs) {
var baseUrl = img.src.split('?')[0];
img.src = baseUrl + '?' + (new Date().valueOf());
}
window.setTimeout(update, 60*1000);
}
(function() {
update();
})();
</script>
</body>
</html>