Speedtest-cli site have changed something in the response their API gives out and hence speedtest-cli version 2.1.2 throws a ValueError. Resolved it by updating the version number in the requirements.txt file.
Also, updated the README file to include the command to install required dependency.
Added a try and except block in wifiSpeed.py to handle the error when device is not connected to the internet.
Type of change
Choosing one or more options from the following as per the nature of your Pull request.
NOTE: These boxes can be checked using [X]
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation Update
Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.
[x] I have named my files and folder, according to this project's guidelines.
[x] My code follows the style guidelines of this project.
[x] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
[x] I have included a requirements.txt file (if external libraries are required.)
[x] My changes do not produce any warnings.
[x] I have added a working sample/screenshot of the script.
Description
Speedtest-cli site have changed something in the response their API gives out and hence speedtest-cli version 2.1.2 throws a ValueError. Resolved it by updating the version number in the requirements.txt file. Also, updated the README file to include the command to install required dependency. Added a try and except block in wifiSpeed.py to handle the error when device is not connected to the internet.
Type of change
Choosing one or more options from the following as per the nature of your Pull request.
NOTE: These boxes can be checked using
[X]
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation Update
Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.
Update index.md
)README.md
, according to the givenREADME_TEMPLATE.