speedtest-tracker: Result in API response is not calculated in Mbps or Gbps in version 0.16.x
Describe the bug Result in API response is not calculated in Mbps or Gbps in version 0.16.x but showing in bps
To Reproduce Steps to reproduce the behaviour:
- Install version 0.16.x
- Schedule a speedtest
- GET /api/speedtest/latest
- Download and Upload speed are in bps
Expected behavior It should show rounded results in Mbps or Gbps with 2 decimal values
Environment (please complete the following information):
- OS: Docker
- Architecture: arm64
- Browser: Chrome
- Version 0.16.3
API response v0.16.3 shows
{"message":"ok","data":{"id":1,"ping":264.839,"download":126109704,"upload":62118624}
v0.15.5 shows (Expected)
{"message":"ok","data":{"id":1,"ping":264.839,"download":126.1096,"upload":62.1184}
Screenshot
Logs N/A
Additional context Systems like Organizr etc do not calculate results but relies on what is provided within API
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 1
- Comments: 19 (4 by maintainers)
Same when pulling the api data via Homepage. Result should say Mbit/s instead of Tbit/s.
#1182 incoming in
v0.16.4
which will fix the calc for Speedtest Tracker dashboards and tables. This isn’t going to fix Homepage or Heimdall widgets as an fyi. Will have to circle back around to that later tonight.@MartynKeigher can you open a new issue and document how you added it to your StreamDeck?
I’d love to do the same on mine and then can get that into the docs.
Same issue using Heimdall:
Although I certainly would not mind if that were the real speed. 😊
@alexjustesen thank you for fixing this
working again, thank you very much @alexjustesen
Just pulled the latest lscr.io image, ran a test and now working as expected! Thanks 👍🏼
@alexjustesen here is the link to speedtest in organizr https://github.com/causefx/Organizr/blob/v2-master/api/homepage/speedtest.php
You can even do more…
Wow - I missed that someone else already reported this, before logging my own ticket (#1186). My use case is StreamDeck. 😉
I can assure ya, it looks much nicer when it’s just
### Mbps
.For a quick fix you can use the custom API. You can add this in your services.yaml Just replace http://speedtest with your own url