Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show failed speedtests as 0? #43

Closed
brycedjohnson opened this issue Jun 23, 2020 · 14 comments
Closed

Show failed speedtests as 0? #43

brycedjohnson opened this issue Jun 23, 2020 · 14 comments
Labels
enhancement New feature or request

Comments

@brycedjohnson
Copy link

Might be nice to show failed speedtests as dl/up 0 in the graph? Had an internet outage today from for 11 hrs and looked back to see when the last successful test was run to see when it started and ended and if it was was working at all in between.

Thanks for the great work! Very useful!

@arevindh
Copy link
Owner

@brycedjohnson Let me try.

@arevindh arevindh added the enhancement New feature or request label Jun 24, 2020
@arevindh arevindh reopened this Jul 13, 2020
@arevindh
Copy link
Owner

@brycedjohnson : Feature is now added in the dev branch , wil you be able to test before it goes live ?

@brycedjohnson
Copy link
Author

brycedjohnson commented Jul 25, 2020 via email

@arevindh
Copy link
Owner

arevindh commented Jul 26, 2020

sudo su
cd /var/www/html/admin
git pull
git checkout dev

Now go to settings set an invalid speedtest id like 3333333

Test by running sudo "/var/www/html/admin/scripts/pi-hole/speedtest/speedtest-official.sh"

@karimnouh
Copy link

@arevindh Tested and confirmed to work. Thanks for making it happen.
image
image

@brycedjohnson
Copy link
Author

I'm getting a error when I run the script
root@raspberrypi:/var/www/html/admin# /var/www/html/admin/scripts/pi-hole/speedtest/speedtest-official.sh Testing with 10051 usage: speedtest [-h] [--no-download] [--no-upload] [--bytes] [--share] [--simple] [--csv] [--csv-delimiter CSV_DELIMITER] [--csv-header] [--json] [--list] [--server SERVER] [--exclude EXCLUDE] [--mini MINI] [--source SOURCE] [--timeout TIMEOUT] [--secure] [--no-pre-allocate] [--version] speedtest: error: unrecognized arguments: -s 10051 --accept-gdpr --accept-license -f json-pretty 2020-07-28 09:38:09 2020-07-28 09:38:10 0 Error: near ",": syntax error
I'm on 5.1? Maybe there is an issue there?

@arevindh
Copy link
Owner

@karimnouh
Copy link

@brycedjohnson You probably currently have speedtest-cli by sivel aka Python version in the web GUI. Meanwhile, speedtest-official.sh uses 'Speedtest CLI' from Ookla https://www.speedtest.net/apps/cli.

@brycedjohnson
Copy link
Author

brycedjohnson commented Jul 28, 2020

@arevindh I did the update and still getting that syntax error.

@karimnouh That sh script runs the official speedtest directly. I can run speedtest.sh script which runs the python script and that one works to get the speedtest, although I didn't get the no internet in the database when trying it with a different invalid server, or disconnected my pi from the internet during the test.

Version from the web interface: Pi-hole v5.1.1 Web Interface v5.1 FTL v5.1

edit: After updating I forgot to checkout dev let me try that...

@brycedjohnson
Copy link
Author

@karimnouh Oops yes you were right. I had the Speedtest official installed at one point and it was working, but must have reverted back to the python script at some point.

Also glossed over the first step somehow just now when reinstalling. Doh. Install Speedtest CLI (Important)

@arevindh Tested it and it works now! Sorry about the confusion!

@arevindh
Copy link
Owner

Thanks for testing.

@arevindh
Copy link
Owner

@brycedjohnson @karimnouh: Line char or bar chart is better? ( Changed from bar to line chart along with this change).

@brycedjohnson
Copy link
Author

brycedjohnson commented Jul 29, 2020 via email

@karimnouh
Copy link

Agreed the line chart works way better for a time series.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants