21:45:02.637 [INFO ] [smarthome.event.ItemStateChangedEvent] - SpeedtestRunning changed from Measurement in Progress... to Data Analysis...
21:45:02.638 [ERROR] [ipse.smarthome.model.script.Speedtest] - --> speedtest failed. Output:
==============================================================================
You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:
https://www.speedtest.net/about/eula
https://www.speedtest.net/about/terms
https://www.speedtest.net/about/privacy
==============================================================================
To accept the message please run speedtest interactively or use the following:
speedtest --accept-license
the speedtest.exe file runs without any problem on the pc and have admin rights
do anybody know what is wrong ?? i have tried different versions boath v2.0 and v1.4
im on Openhab version snapshot 2.5.3 so mabye its the ? exec.whitelist
what to right ? , i have the misc / exec.whitelist ,but it`s emty.
The problem in your last error is the missing acceptance of the GDPR and license agreement.
You need to accept both with the user you‘re using to run the speedtest from your oH instance.
do you know how on windows ? to do that ,the exe file runs fine all to the end both as admin and as user is that it ? and i was asked to write YES both times
Just a shot in the dark and untestested (yet), but the executeCommandline option had some breaking change in openHAB 3.
Breaking changes in short:
Parameter order has changed
Timeout is now in secconds
Parameters don’t have to be separated with @@ anymore
So please test the following idea:
Take the example script part:
// execute the script, you may have to change the path depending on your system
var String speedtestCliOutput = executeCommandLine("/usr/local/bin/speedtest-cli@@--simple", 120*1000)
and change the function paramaters as following:
// execute the script, you may have to change the path depending on your system
var String speedtestCliOutput = executeCommandLine(120, "/usr/local/bin/speedtest-cli --simple")
Of course you should transfer any additions or changes you possibly made to this line yourself too.
Edit:
Please give some feedback if you have tested it and it works.
I will adapt the first post of this tutorial then.
Thank you for that quick reply. I’ve tested your changes, but without success.
I’ve attached you a screenshot with the errors on the bottom.
It seems that there is a problem with the timeout parameter and the section where the string gets splitted into the different output string.
2020-12-22 10:45:47.489 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘speedtest.rules’, using it anyway:
The constructor Float(String) is deprecated
The constructor Float(String) is deprecated
The constructor Float(String) is deprecated