Connect via Tailscale
@@ -286,8 +294,24 @@ __ __ _ __ ____ __
{
printOnTerm.printError(printOnTerm.getErrorMessage(err));
}
- // The variables IMAGE_URL and DEVICE_TYPE are replaced by Github Actions.
- CheerpXApp.create({devices:[{type:DEVICE_TYPE,url:IMAGE_URL,name:"block1"}],mounts:[{type:"ext2",dev:"block1",path:"/"},{type:"cheerpOS",dev:"/app",path:"/app"},{type:"cheerpOS",dev:"/str",path:"/data"},{type:"devs",dev:"",path:"/dev"}], networkInterface}).then(runTest, failCallback);
+ function devCallback(state)
+ {
+ var h = document.getElementById("hddactivity");
+ if(state == "ready")
+ h.textContent = "\u{1F7E2}";
+ else
+ h.textContent = "\u{1F7E1}";
+ }
+ function cpuCallback(state)
+ {
+ var h = document.getElementById("cpuactivity");
+ if(state == "ready")
+ h.textContent = "\u{1F7E2}";
+ else
+ h.textContent = "\u{1F7E1}";
+ }
+ // The variables IMAGE_URL and DEVICE_TYPE are replaced by Github Actions.
+ CheerpXApp.create({devices:[{type:DEVICE_TYPE,url:IMAGE_URL,name:"block1"}],mounts:[{type:"ext2",dev:"block1",path:"/"},{type:"cheerpOS",dev:"/app",path:"/app"},{type:"cheerpOS",dev:"/str",path:"/data"},{type:"devs",dev:"",path:"/dev"}], networkInterface: networkInterface, activityInterface: {cpu: cpuCallback, dev: devCallback}}).then(runTest, failCallback);
}
function initialMessage()
{