Private
Public Access
1
0

small improvement

This commit is contained in:
Sander Roosendaal
2019-11-21 22:11:29 +01:00
parent 98d0c42738
commit 75664bbd62
2 changed files with 7 additions and 5 deletions

View File

@@ -175,7 +175,9 @@
document.getElementById("{{ id }}").innerHTML = {{ id }}_now; document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
{% endfor %} {% endfor %}
{% for group in metricsgroups %} {% for group in metricsgroups %}
set_{{ group }}(); try {
set_{{ group }}();
} catch (e) {}
{% endfor %} {% endfor %}
// gauge.set(catch_now); // gauge.set(catch_now);
try { try {

View File

@@ -39,10 +39,10 @@ var opts = {
generateGradient: true, generateGradient: true,
highDpiSupport: true, // High resolution support highDpiSupport: true, // High resolution support
staticZones: [ staticZones: [
{strokeStyle: "#00FF00", min: 0, max: 1}, // Red from 100 to 60 {strokeStyle: "#00FF00", min: 0, max: 2}, // Red from 100 to 60
{strokeStyle: "#0000FF", min: 1, max: 2}, // Yellow {strokeStyle: "#0000FF", min: 2, max: 3}, // Yellow
{strokeStyle: "#00FFFF", min: 2, max: 3}, // Green {strokeStyle: "#00FFFF", min: 3, max: 4}, // Green
{strokeStyle: "#FFDD00", min: 3, max: 5}, // Yellow {strokeStyle: "#FFDD00", min: 4, max: 5}, // Yellow
{strokeStyle: "#FF0000", min: 5, max: 6} // Red {strokeStyle: "#FF0000", min: 5, max: 6} // Red
], ],