lukealford / abb-speedtest-cli Goto Github PK
View Code? Open in Web Editor NEWA cli tool for running aussie broadband speed test
License: MIT License
A cli tool for running aussie broadband speed test
License: MIT License
The --quiet
mode is described as:
.option('-q, --quiet [optional]', 'disables result reporting to ABB')
However the actual effect in the code seems to be mixed -- it also reduces the verbosity of console log output (see #11 )
Could I suggest using two flags, perhaps?
Maybe --quiet
to reduce the console status output down to just the data, and --no-report
to disable the reporting back to ABB?
After a bit of debugging, I've noticed it's no longer recording the result on my.aussiebroadband.com.au for me. Need to figure out why this is the case, the tool waits for all XHR Requests to complete but still fails to make it to the website
I've tried extending the XHR wait times and also making sure a valid agent header is set still no change. Needs further debugging.
It's constructing paths with '\' instead of '/'. Overriding the output destination doesn't help.
$ abb-speedtest --location Melbourne --csv --save
{ Error: EACCES: permission denied, mkdir '/home/evan\Documents\abb-speedtests'
at Object.fs.mkdirSync (fs.js:885:18)
at checkFolder (/usr/local/lib/node_modules/abb-speedtest-cli/cli.js:63:8)
at Command.<anonymous> (/usr/local/lib/node_modules/abb-speedtest-cli/cli.js:26:11)
at Command.listener (/usr/local/lib/node_modules/abb-speedtest-cli/node_modules/commander/index.js:315:8)
at emitNone (events.js:106:13)
at Command.emit (events.js:208:7)
at Command.parseArgs (/usr/local/lib/node_modules/abb-speedtest-cli/node_modules/commander/index.js:665:12)
at Command.parse (/usr/local/lib/node_modules/abb-speedtest-cli/node_modules/commander/index.js:474:21)
at Object.<anonymous> (/usr/local/lib/node_modules/abb-speedtest-cli/cli.js:58:9)
at Module._compile (module.js:652:30)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/home/evan\\Documents\\abb-speedtests' }
Running the program with --json
produces output that is similar to JSON, but is not valid JSON, and not parsed by JSON libraries.
For example:
results: {
location: 'Melbourne',
ping: '8',
jitter: '2',
download: '108.4',
upload: '21.4',
date: '8/30/2020 12:26:30 pm'
}
That won't parse in either the command-line jq
utility, nor Ruby or Scala's JSON parsers...
Can I suggest aiming for a format more like this?
{ "location": "Melbourne", "ping": 8, "jitter": 2, "download": 108.4, "upload": 21.4, "date": "2020-08-30T00:26:30" }
That will enable the output to be parsed by common JSON libraries, or imported into databases and spreadsheets easily.
Just installed abb-speedtest-cli and got the following warnings:
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
Is it possible to update abb-speedtest-cli to use more recent packages?
Any plans to add scheduling in, something that can be run in the event you're doing fault-finding with AussieBB?
Would it be possible to have the results added to a grafana/chronograf-friendly DB format, like InfluxDB?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.