Skip to content
Snippets Groups Projects
Commit 417f66d7 authored by puma's avatar puma
Browse files

Update bpm

parent f393ef24
No related branches found
No related tags found
No related merge requests found
......@@ -59,12 +59,12 @@
$('.home').html('<a id="home" target="_blank" href="https://puma-01.elettra.eu/panther/panther.php?machine=fermi" border="0"><img src="/img/puma.svg" class="media-object" style="width:30px;height:30px;"></a> ');
}
fetch('https://puma-01.elettra.eu/panther/updater.php?read&filename=fermi.100.bpm.src').then((response) => {return response.json();}).then((data) => {
console.log('src', data);
// console.log('src', data);
for (let device in data) {
console.log(device, data[device].Hor);
// console.log(device, data[device].Hor);
for (let i=0; i<data[device].Hor.length; i++) {
console.log(i, data[device].Hor[i], param);
if (data[device].Hor[i].indexOf(param)<-1) console.log(device, i, data[device].Hor[i]);
// console.log(i, data[device].Hor[i], param);
if (data[device].Hor[i].indexOf(param)>-1) console.log(device, i, data[device].Hor[i]);
}
}
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment