-
Fototrend
Vodafone (ex UPC Magyarország Kft.) (analóg / digitálisTV, internet, telefon)
Aktív témák
-
vargalex
félisten
válasz
ztsoft
#116283
üzenetére
Bocs, hogy beleszólok, de felesleges emberi értelmezésre szánt kimenetet parse-olni. Maga a paranccsoros speedtest alkalmazás különböző kimenetek előállítására képes , ami automatikus feldolgozása sokkal egyszerűbb:
[gavarga@arch ~]$ speedtest --helpSpeedtest by Ookla is the official command line client for testing the speed and performance of your internet connection.Version: speedtest 1.1.1.28Usage: speedtest [<options>]-h, --help Print usage information-V, --version Print version number-L, --servers List nearest servers-s, --server-id=# Specify a server from the server list using its id-I, --interface=ARG Attempt to bind to the specified interface when connecting to servers-i, --ip=ARG Attempt to bind to the specified IP address when connecting to servers-o, --host=ARG Specify a server, from the server list, using its host's fully qualified domain name-p, --progress=yes|no Enable or disable progress bar (Note: only available for 'human-readable'or 'json' and defaults to yes when interactive)-P, --precision=# Number of decimals to use (0-8, default=2)-f, --format=ARG Output format (see below for valid formats)--progress-update-interval=# Progress update interval (100-1000 milliseconds)-u, --unit[=ARG] Output unit for displaying speeds (Note: this is only applicablefor ‘human-readable’ output format and the default unit is Mbps)-a Shortcut for [-u auto-decimal-bits]-A Shortcut for [-u auto-decimal-bytes]-b Shortcut for [-u auto-binary-bits]-B Shortcut for [-u auto-binary-bytes]--selection-details Show server selection details--ca-certificate=ARG CA Certificate bundle path-v Logging verbosity. Specify multiple times for higher verbosity--output-header Show output header for CSV and TSV formatsValid output formats: human-readable (default), csv, tsv, json, jsonl, json-prettyMachine readable formats (csv, tsv, json, jsonl, json-pretty) use bytes as the unit of measure with max precisionValid units for [-u] flag:Decimal prefix, bits per second: bps, kbps, Mbps, GbpsDecimal prefix, bytes per second: B/s, kB/s, MB/s, GB/sBinary prefix, bits per second: kibps, Mibps, GibpsBinary prefix, bytes per second: kiB/s, MiB/s, GiB/sAuto-scaled prefix: auto-binary-bits, auto-binary-bytes, auto-decimal-bits, auto-decimal-bytesPl. egy json-pretty kimenet:
[gavarga@arch ~]$ speedtest --format=json-pretty
{
"type": "result",
"timestamp": "2022-02-06T14:14:57Z",
"ping": {
"jitter": 1.5820000000000001,
"latency": 7.7290000000000001
},
"download": {
"bandwidth": 62064567,
"bytes": 443964995,
"elapsed": 7200
},
"upload": {
"bandwidth": 2251610,
"bytes": 26788000,
"elapsed": 12208
},
"packetLoss": 0,
"isp": "Vodafone Hungary",
"interface": {
"internalIp": "192.168.22.200",
"name": "enp1s0",
"macAddr": "XX:XX:XX:XX:XX:XX",
"isVpn": false,
"externalIp": "XXX.XX.XXX.XXX"
},
"server": {
"id": 28951,
"host": "bp-speedtest.zt.hu",
"port": 8080,
"name": "ZNET Telekom Zrt.",
"location": "Budapest",
"country": "Hungary",
"ip": "185.232.83.0"
},
"result": {
"id": "deb53599-d6e9-4c4c-b182-16054b7102f7",
"url": "https://www.speedtest.net/result/c/deb53599-d6e9-4c4c-b182-16054b7102f7",
"persisted": true
}
}
Aktív témák
- NVIDIA GeForce RTX 5070 / 5070 Ti (GB205 / 203)
- A legrosszabb CPU-k – az ExtremeTech szerint
- Két generációval korábbi GeForce gyártása indulhat újra
- Autós topik
- Házimozi haladó szinten
- World of Tanks - MMO
- Apple MacBook
- Geri Bátyó: Agglegénykonyha 12 – Ecetek és zsiradékok
- BMW topik
- Milyen okostelefont vegyek?
- További aktív témák...
- DDR3 so-dimm 8GB notebook RAM modulok - több db
- Samsung Galaxy S22 Ultra 256GB, Kártyafüggetlen , 1 Év Garanciával
- Honor Magic V5 Black 16/512 GB Újszerű, kipróbált Garancia 2028. 12. 02-ig
- Bomba ár! HP ProBook X360 435 G7 - Ryzen 3 I 8GB I 256SSD I 13,3" FHD Touch I W11 I Cam I Gari!
- BESZÁMÍTÁS! ASROCK H510M i5 11400F 16GB DDR4 512GB SSD RTX 3060TI 8GB Rampage SHIVA ADATA 650W
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest

