branchard / fast-speedtest-api

fast.com API / CLI tool
https://npmjs.com/fast-speedtest-api
GNU General Public License v3.0
165 stars 38 forks source link

Latency and Upload speed? #1

Open mrose17 opened 6 years ago

mrose17 commented 6 years ago

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!

branchard commented 6 years ago

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

Thanks for paying attention to my project!

mrose17 commented 6 years ago

thank you!

mrose17 commented 6 years ago

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 commented 6 years ago

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

mchlima commented 5 years ago

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

jonnysamps commented 4 years ago

@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.