openhab-addons
openhab-addons copied to clipboard
[speedtest] Binding for Ookla's Speedtest - Initial contribution
The goal of this binding was to create an easy to setup speedtest option. It's fairly low frills, though should work with very limited interaction outside of the main ui.
Does require the installation of Ookla's speedtest though has been tested on Linux, Windows and openHabian without issue.
Jar file : https://github.com/bigbasec/openhab-addons/releases/download/v0.4/org.openhab.binding.speedtest-3.1.0-SNAPSHOT.jar
It might be an idea to merge any missing functionality into the speedtest thing that is already part of the Network Binding. :thinking:
See: https://www.openhab.org/addons/bindings/network/#thing-configuration
That is all covered in the post on the forum. I didn't do that for a reason.
Successfully tested under Linux running OH3.0.1 in a Docker using v0.5
This pull request has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/oh3-and-speedtest-ookla/124721/25
This pull request has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/speedtest-cli-by-ookla-internet-up-downlink-measurement-integration/94447/106
@bigbasec When you have completed going over the suggestions please post that you have finished and want someone to take a look.
Last activity form the author was 17 months ago. Unfortunately, it might be time to close this PR ?
@bigbasec : if you want to resume the work on this binding, you are welcome to reopen this PR.
In https://github.com/MikeTheTux/openhab-addons/tree/speedtest I fixed most of the review findings from above. My TODOs for the next days:
- Introduction of UOM
- Improvement of Docu
@bigbasec, I would like to ask for your consent in order to contribute this great binding into openHAB.
100%. I tried that when I first wrote it and I was declined because it was something someone could do other ways. Was told that it shouldn't need to be a binding. Sort of why I stopped doing any development on the platform. But hey, if you have better luck by all means go for it.
Feel free to reopen the Pull request as it was already offered just above. Don't let people in a forum discourage you, we value everyone that wants to contribute and do not wish someone that does contribute to move away from our project or lose interest.
If someone will code and maintain a binding PLUS someone will review it, then it should get merged IMHO. Otherwise we loose people that are willing to contribute and we always need more of them. Multiple people have contributed to reviewing as well as we now have/had two willing to maintain the code, so let's move this forward.
The person who wants to move it forward, just reopen this as bigbasec has given the OK and signed off the contribution to opensource. Thanks for all contributions made.
Great to see that this binding is able to continue and therefore the efforts of @bigbasec are not lost.
Re-based the changes to main (OH3.4.0) and resolved the existing conflict. Now we have a green build and I'm ready to continue developing on the remaining review findings.
@bigbasec When you have completed going over the suggestions please post that you have finished and want someone to take a look.
Finished - please have a look.
Remaining open point:
- Improvement of Docu
updated docu.
I guess now it's time to remove the stale and await feedback flag ;-)
Can you fix the DCO signoff issues?
After this link works, can you then create a post on the forum so this goes into the Marketplace? Having multiple users reporting that the binding works and is useful will help convince any nay sayers that this should get added.
https://openhab.jfrog.io/artifactory/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.speedtest/3.4.0-SNAPSHOT/org.openhab.binding.speedtest-3.4.0-SNAPSHOT.jar
Can you fix the DCO signoff issues?
done
After this link works, can you then create a post on the forum so this goes into the Marketplace?
There is already a Forum topic. I will check if this one can be re-used for this purpose
After this link works, can you then create a post on the forum so this goes into the Marketplace?
Now also on Marketplace: https://community.openhab.org/t/ooklas-speedtest-binding/139924
Can you add yourself to the codeowners list/file? When someone raises an issue or PR in the future you then get notified.
Can you add yourself to the codeowners list/file? When someone raises an issue or PR in the future you then get notified.
done
You might also want to look into the last SAT warning: NonThreadSafeSingleton
done
As I can see there are some comments to be addressed and a conflict to be resolved I'm updating review status.
Think everything is addressed now.
There are some compiler warnings to check. There are also some checkstyle warnings left. You could take a look at target/code-analysis/report.html.
@jlaur, compiled it in an OH4.0.0 environment and report.html
contains zero findings.
@openhab/add-ons-maintainers - I could use a second pair of eyes on the approach of requiring software installation on the host OS and calling an executable.
@wborn - thanks for joining the review, can you help with input here?
can you help with input here?
What kind of input?
We already have some other add-ons that require software installation and that create processes to use this software:
- Pico TTS (PicoTTSAudioStream)
- Network Binding (NetworkUtils)
can you help with input here?
What kind of input?
We already have some other add-ons that require software installation and that create processes to use this software:
- Pico TTS (PicoTTSAudioStream)
- Network Binding (NetworkUtils)
That kind of input. 🙂 Thanks! I just needed confirmation that having such requirements is fine/acceptable.
@bigbasec - there are three compiler warnings left to fix:
Warning: /home/runner/work/openhab-addons/openhab-addons/bundles/org.openhab.binding.speedtest/src/main/java/org/openhab/binding/speedtest/internal/SpeedtestHandler.java:[164,39] Potential null pointer access: this expression has a '@Nullable' type
Warning: /home/runner/work/openhab-addons/openhab-addons/bundles/org.openhab.binding.speedtest/src/main/java/org/openhab/binding/speedtest/internal/SpeedtestHandler.java:[174,36] Potential null pointer access: this expression has a '@Nullable' type
Warning: /home/runner/work/openhab-addons/openhab-addons/bundles/org.openhab.binding.speedtest/src/main/java/org/openhab/binding/speedtest/internal/SpeedtestHandler.java:[175,13] Potential null pointer access: this expression has a '@Nullable' type
I'll comment one of them with a proposed solution.