| ${url} | ${btype(o.type)} ${o.vid==0?"N/A":o.vid} |
`;
- // console.log("Node", o);
if (o.ip) { //in ap mode no ip...
- //fetch the rest of the nodes info
- fetchAndExecute(`http://${o.ip}/`, "json", nnodes, function(nnodes,text) {
- // console.log(text);
- let state = JSON.parse(text)["state"];
- let info = JSON.parse(text)["info"];
- let effects = JSON.parse(text)["effects"];
- let nodeInfo = {};
- // console.log(nnodes, state, info, effects);
- nodeInfo.ip = info.ip;
- nodeInfo.count = info.leds.count;
- //append to table row
-
- // gId(`node${nnodes}`).appendChild(addEl('td', `