Browse Source

Added index.html

master
Sebastian 3 years ago
parent
commit
f28701d04e
  1. 47
      index.html

47
index.html

@ -0,0 +1,47 @@
<!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>
Loading…
Cancel
Save