This commit is contained in:
parent
d03611672b
commit
09b5c8047f
12
main.js
12
main.js
|
@ -12,8 +12,6 @@ const myArray = grafana.split(delimiter);
|
|||
async function main(){
|
||||
for (let i=0; i < myArray.length; i++) {
|
||||
|
||||
let percentage = Math.round((i / myArray.length) * 100);
|
||||
|
||||
let url = "https://grafana.verdnatura.es/api/dashboards/uid/" + myArray[i];
|
||||
let response = await fetch(url, {
|
||||
method: "GET",
|
||||
|
@ -41,18 +39,8 @@ async function main(){
|
|||
if (isFound) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*console.clear();^
|
||||
console.log("Cargando... " + percentage + "%");
|
||||
console.clear()*/
|
||||
if (isFound)
|
||||
console.log('https://grafana.verdnatura.es/d/' + `${myArray[i]}:`, colors.green(isFound));
|
||||
|
||||
if (!isFound)
|
||||
console.log(`${myArray[i]}:`, colors.red(isFound));
|
||||
}
|
||||
/*console.clear();
|
||||
console.table(myJSON[0][0]);*/
|
||||
}
|
||||
main();
|
Loading…
Reference in New Issue