After rebooting openHAB, I get the following warnings:
2019-11-14 16:14:25.481 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '5.5785282448' of item Speedtest_ResultDown with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.485 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '5.5785282448' of item Speedtest_ResultDown with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.491 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '5.5785282448' of item Speedtest_ResultDown with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.493 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '5.5785282448' of item Speedtest_ResultDown with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.497 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '5.5785282448' of item Speedtest_ResultDown with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.499 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '0.0560459576' of item Speedtest_ResultUp with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.509 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '0.0560459576' of item Speedtest_ResultUp with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.511 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '0.0560459576' of item Speedtest_ResultUp with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.512 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '0.0560459576' of item Speedtest_ResultUp with format '%.2f %unit%': Conversion = 'u'
2019-11-14 16:14:25.514 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '0.0560459576' of item Speedtest_ResultUp with format '%.2f %unit%': Conversion = 'u'
they are related to this code from the documentation:
What needs to be fixed to get rid of these warnings?
PS It is very inconvenient that the binding returns units of measure, they have one problem
Can I somehow abandon the units?
Thanks!
Three of those Items use UoM. The error appears to be having some sort of problem with the %unit% conversion for the Number:DataTransferRate Items, not the Speedtest_Progress Items so I donât think the link you went to is related to your problem.
It looks like it is not properly interpreting the %unit% which essentially means âthe default unitsâ. Instead it is trying to read it as %u as the unit which doesnât exist.
@sihui, since itâs working for you, can you print what units these two Items are showing on your sitemap or events.log? The DataTransferRate units are not in the docs yet (I opened an Issue for that) and it will be easier if someone to post what they are seeing rather than guessing.
For those of you how got this to work, how did you find a speedtest URL and, more importantly, the name of the file?
The Network binding now implements the speedtest natively so you donât have to use the Exec binding and the speedtest-cli any more. Assuming you can figure out how to configure it. But the Network binding requires the Items use UoM and that seems to be the root of the problem.
It works but it doesnât actually help us figure out if there is a regression bug that has been recently introduced in how the %unit% is handled. Youâve avoided the error by eliminating the UoM but there is still something wrong with the UoM and the %unit% play holder.
Overall this binding works well for me, assuming I stick with the example server and filename given in the binding documentation. BUT, that serverâs in France, so not that meaningful for me. Iâd like to use a closer server as a better benchmark of my up/down speeds.
⊠and that gives a âError status code 404â errors.
I did a brute force search on this directory with DirBuster, and found that this link: https://hou.speedtest.sbcglobal.net:8080/download/download
⊠successfully begins a download of a 10.0 GB file. Cool, thatâs good to know, seems like I am getting somewhere!
But since then I have fiddled around with the Thing definition with various permutations of the url and the fileName parameters, and still not yet managed to make it work. I keep getting 404 errors.
Hej @Dave_Baldwin - I ended up with the same question, when I shifted from speedtest-cli to the binding based network speedtest. The latter shows lower up/download capacity, than speedtest, which seems to automatically choose the closest server (in my case Stockholm)
Could you solve your problem and would you share your solution here?
My entry to this was though the webpage of an internet provider http://speedtest4.tele2.net/ , which expolians nicely the underlying concept of the speedtest servers.
The network.things file has to point at an anycast server address, which automatically connects to the closest servers, and one can choose from a range of files in different sizes in order to test the connection.
This is my working definition:
Hi all,
Nice binding, very usefull.
For the speedtest, i try the basic thing and it works, but result is very strange as it says my bandwidth is between 2.3 - 2.4Mbit/s (DL).
Problem is that i have a 1Gbits connexion (tested and effective at 950Mbits).
When i do a WGET on the same file with the server, i have more than 900Mbits for bandwidth.
Any clue why the binding speedtest is so slow ?
Thanks
Thanks for your response.
I monitor the interface all the time, so while the test is performed.
(with iftop for this test)
I really dont understand why network binding/speedtest is so slow âŠ
Hello,
No one else has the same problem ?
Forgot to mention my system : raspberry PI4 (1gb interface) with raspbian.
After a reboot for another reason, my results are now : 40mb/s (DL) 25 mb/s (UL), still far from real bandwidth.
Thank you @mdnx, the suggested server works fine for me and the numbers seem realistic compared to other (web based) speedtests!
However, I got a problem with the returned text from the binding:
2021-02-10 11:14:47.733 [WARN ] [e.internal.SseItemStatesEventBuilder] - Exception while formatting value '91.4568805736 Mbit/s' of item SpeedTest_DownloadRate with format '%d %unit%': d != java.math.BigDecimal
But I donât really get the problem? The number seems to fit into BigDecimal and there is a space separating it from the unit. Whatâs failing here?
Where did you do that? Iâm trying to avoid file configs with OH3 now. So I checked the possibilities when linking the item and see that âNumber:DataTransferRateâ is the preset.