I’m sure this was working but I’m seeing this fail now, has something changed?
var calcMbs=125000;
console.log("speedtest: start");
var results = actions.Exec.executeCommandLine(time.Duration.ofSeconds(30), "/usr/bin/speedtest", "-f", "json");
var js= JSON.parse(results);
output:
[rg.openhab.core.io.net.exec.ExecUtil] - Failed to execute commandLine ‘[/usr/bin/speedtest, -f, json]’
I don’t know speedtest history, but the current version does not know about a parameter -f. Instead, you have to use --json, so the line should read like this:
var calcMbs=125000;
console.log("speedtest: start");
var results = actions.Exec.executeCommandLine(time.Duration.ofSeconds(30), "/usr/bin/speedtest", "--json");
var js= JSON.parse(results);