new influxdb auth

This commit is contained in:
2020-04-09 13:46:42 +02:00
parent 2ef9508fee
commit e58f180463
2 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -207,11 +207,15 @@ function drawGraph(deveui, alias, property, start, stop, create_graph) {
$.getJSON('https://mini-beieli.ch/metrics?deveui=' + deveui + '&alias=' + alias + '&property=' + property + range, function(mydata) {
if ("msg" in mydata) {
$('#chart').html(`<article class="message is-danger">
if (mydata.msg.includes("expired")) {
$('#chart').html(`<article class="message is-danger">
<div class="message-body">
Abo ist abgelaufen!
Abo ist abgelaufen
</div>
</article>`);
} else {
location.reload(true);
}
return;
}
var options = {