roest01 / docker-speedtest-analyser

Automated docker speedtest analyser tool with included web interface to monitor your internet speed connection over time. Setup at home on your NAS (Synology, QNAP tested) and the container runs hourly speedtests. The speedtest results are displayed in an webinterface as line graph(s) over the day.
Other
108 stars 47 forks source link

JSON parsing instead of substrings #50

Closed regregoryallen closed 3 years ago

regregoryallen commented 3 years ago

Goals are to have more robust parsing (vs substrings) and to get access to more detailed data collected by speedtest-cli.

Switched to using the --json option for speedtest-cli and parsed the output using Python's "json.loads()" routine. Then used dictionary view to access needed data, with the addition of ISP, latitude and longitude. There is much more available in that dictionary structure if needed.

roest01 commented 3 years ago

i am going to merge this on a feature branch to solve the merge conflict