aidengilmartin/speedtest-to-influxdb

additional speedtest information not showing up in Influx

Closed this issue · 0 comments

Hi,

The speedtest delivers additional information like server and location.
However this is not stored in influx by the script.

Any idea how this can be done?
The JSON output delivers the information:

speedtest --accept-license --accept-gdpr -s 4087 -f json
{"type":"result","timestamp":"2021-05-15T14:16:42Z","ping":{"jitter":0.032000000000000001,"latency":5.391},"download":{"bandwidth":32655144,"bytes":259696700,"elapsed":8001},"upload":{"bandwidth":4623519,"bytes":58489684,"elapsed":13207},"packetLoss":0,"isp":"Deutsche Telekom AG","interface":{"internalIp":"2003:c9:4727:7900:bc93:2361:976f:e978","name":"eth0","macAddr":"DC:A6:32:12:A3:98","isVpn":false,"externalIp":"2003:c9:4727:7900:bc93:2361:976f:e978"},"server":{"id":4087,"name":"wilhelm.tel","location":"Norderstedt","country":"Germany","host":"speedtest.wtnet.de","port":8080,"ip":"2a02:2028:ff00::f9:2"},"result":{"id":"0817ab3e-03d7-426a-9df2-173a7a0f1e00","url":"https://www.speedtest.net/result/c/0817ab3e-03d7-426a-9df2-173a7a0f1e00"}}