fast-speedtest-api icon indicating copy to clipboard operation
fast-speedtest-api copied to clipboard

Latency and Upload speed?

Open mrose17 opened this issue 7 years ago • 6 comments

Have you considered updating the package to allow options as to which statistic(s) to return, e.g.,

    speedtest.getStats({ statistics: [ 'download', 'upload', 'latency' ]}).then(stats => {
      // examine stats.download, stats.upload, stats.latency, all in stats.unit
    }).catch(e => { console.error(e.message); });

just a thought, thanks!

mrose17 avatar Aug 25 '18 22:08 mrose17

I would add this kind of features when I have time. Feel free to submit pull requests.

Thanks for paying attention to my project!

branchard avatar Aug 28 '18 13:08 branchard

thank you!

mrose17 avatar Aug 28 '18 13:08 mrose17

ps: in case you're wondering, i'd like to make a homebridge plugin that reports the three values. there is an existing plugin -- https://github.com/SeydX/homebridge-broadband -- but it uses the speedtest.net platform...

mrose17 avatar Aug 30 '18 05:08 mrose17

just fyi: https://github.com/homespun/homebridge-accessory-bandwidth-quality

mrose17 avatar Oct 08 '18 03:10 mrose17

I believe it is very important to have the upload test as well.

mchlima avatar Oct 09 '19 16:10 mchlima

@branchard I'd really like to see this happen and would be happy to work on a PR on this. Any hints? It looks like you've reverse engineered the fast.com client.

jonnysamps avatar Oct 13 '20 23:10 jonnysamps