link to grafana from main page

This commit is contained in:
Alex Janka 2024-01-10 14:22:37 +11:00
parent d6c1f5fdf7
commit a80ca1ae68
3 changed files with 9 additions and 3 deletions

2
Cargo.lock generated
View file

@ -2193,7 +2193,7 @@ dependencies = [
[[package]] [[package]]
name = "tesla-charge-controller" name = "tesla-charge-controller"
version = "0.1.6" version = "0.1.7"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-channel", "async-channel",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "tesla-charge-controller" name = "tesla-charge-controller"
version = "0.1.6" version = "0.1.7"
edition = "2021" edition = "2021"
license = "MITNFA" license = "MITNFA"
description = "Controls Tesla charge rate based on solar charge data" description = "Controls Tesla charge rate based on solar charge data"

View file

@ -74,7 +74,7 @@
el = document.createElement('p'); el = document.createElement('p');
if (response) { if (response) {
el.appendChild(document.createTextNode("Home")); el.appendChild(document.createTextNode("At home"));
} else { } else {
el.appendChild(document.createTextNode("Not home")); el.appendChild(document.createTextNode("Not home"));
} }
@ -93,7 +93,13 @@
</head> </head>
<body></body> <body></body>
<div>
<h2>
<a href="/grafana">Grafana</a>
</h2>
</div>
<button onclick="flash()">flash</button> <button onclick="flash()">flash</button>
<div id="info"></div> <div id="info"></div>
</html> </html>