!7 sclass BatteryStatus extends DynBigNumber { void start { super.start(); setDescription("BATTERY STATUS"); ownTimer(doEveryAndNow(10000, r actualUpdate)); } void actualUpdate { //time "Battery" { // <10 ms on Windows, up to 100 ms on Linux S value = "-"; double level = oshi_batteryLevel_withZeroPercentFix(); if (!isNaN(level)) value = iround(level) + " %"; setValue(value); //} } }