new influxdb auth
This commit is contained in:
+6
-2
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user