What's new

spdMerlin spdMerlin - Automated speedtests with graphs

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Make sure you pull down the minor update I published last night, then try using the automatic option, i.e.
Code:
spdmerlin automatic
To toggle the tests
Thanks a bunch @Jack Yaz :)
 

Attachments

  • Screenshot_20190928-102442_One UI Home.jpg
    Screenshot_20190928-102442_One UI Home.jpg
    19 KB · Views: 336
Hey @Jack Yaz, could you please add in a future update graphs retain view settings as in connmon? Thank you! :)
 
Hi,

I have just installed this on my RT-AC86U router and I am getting the following error message. Looking at this tread I see others also get this but I could not see a fix. Any help is well appreciated

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/jffs/scripts/spdmerlin.d/spdcli.py", line 126, in <module>
from md5 import md5
File "/opt/lib/python2.7/md5.py", line 10, in <module>
ImportError: cannot import name md5
Error: near line 2: near ",": syntax error
 
Hi,

I have just installed this on my RT-AC86U router and I am getting the following error message. Looking at this tread I see others also get this but I could not see a fix. Any help is well appreciated

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 147, in <module>
File "/opt/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/jffs/scripts/spdmerlin.d/spdcli.py", line 126, in <module>
from md5 import md5
File "/opt/lib/python2.7/md5.py", line 10, in <module>
ImportError: cannot import name md5
Error: near line 2: near ",": syntax error
Try
Code:
opkg update
opkg upgrade
and try again
 
Given that my new house has 350mbps downstream, unfortunately I have had to remove spdmerlin due to intermittent router crashes. Sadly the python script uses too much ram for the router to cope with.
 
@Jack Yaz, great work with the script.

I wonder if there's known compatibility issues with the AC87U running latest Merlin? For some reason I can't see charts from manual or automatic speed tests.

Thanks in advance for the advice.
 
v2.0.1
Updated 2019-09-29

This script uses a large amount of RAM/memory when the speedtest is running, and as such a swap file is required

The speedtest is scheduled to run at 12 past and 42 past the hour, every hour, by default

Regarding speeds not necessarily matching browser-based tests, please see https://github.com/sivel/speedtest-cli#inconsistency


Run automated speedtests for your Internet on your router with graphs available on the Tools page of the WebUI.

This script serves as a user-friendly installer for a personal project developed by @JGrana
Permission received from @JGrana to publish this!

spdMerlin is free to use under the GNU General Public License version 3 (GPL 3.0).

spdMerlin uses speedtest-cli

This project is hosted on GitHub

Love the script and want to support future development? Any and all donations gratefully received! PayPal donation

884ab7dbdc.png


612747873c.png


Supported Models
Models
All modes supported by Asuswrt-Merlin. Models confirmed to work are below:
  • RT-AC68U
  • RT-AC86U
  • RT-AC3100
Firmware versions
You must be running firmware no earlier than 384.XX Asuswrt-Merlin

Installation
Using your preferred SSH client/terminal, copy and paste the following command, then press Enter:
Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/spdMerlin/master/spdmerlin.sh" -o "/jffs/scripts/spdmerlin" && chmod 0755 /jffs/scripts/spdmerlin && /jffs/scripts/spdmerlin install

Usage
To launch the spdMerlin menu after installation, use:
Code:
spdmerlin

If this does not work, you will need to use the full path:
Code:
/jffs/scripts/spdmerlin
Updating
Launch spdmerlin and select option u
Hello,

How do I configure spdmerlin to test against the vpn server I'm connected to, and NOT the local servers geographically nearest to me?
Thanks to all.
 
Hello, I'm playing with 2.0.1 and comparing results using same server with speedtest site. Download might have similar results (around 300 mbits/sg) but upload keeps getting below 40 mbits/sg. I'm getting the expected values at speedtest (around 300 mbits/sg)
any clue about the problem?



thanks
 

Attachments

  • spdmerling.png
    spdmerling.png
    309.5 KB · Views: 278
  • speedtest.png
    speedtest.png
    30.1 KB · Views: 303
Hello - installed on 68u. Works fine from commandline but graphs are empty. Waited 24 hours but still no detain graphs under tools -> speediest page. Is there a log file of all the tests that tool ran in last 24 hours, that could be checked?
 
Hello - installed on 68u. Works fine from commandline but graphs are empty. Waited 24 hours but still no detain graphs under tools -> speediest page. Is there a log file of all the tests that tool ran in last 24 hours, that could be checked?
have you checked if the automated speed tests are enabled?
 
have you checked if the automated speed tests are enabled?
Here is what I see when i run spdMerlin script.
oggle automatic tests

Currently Enabled
and if i run speediest now.. it works and the data is shown below
Choose an option: 1


spdMerlin: Starting speedtest using auto-selected server in multi-connection mode


spdMerlin: Speedtest results - Download: 162.90 Mbit/s - Upload: 20.46 Mbit/s

Also the menu for auto test shown below
8. Configure schedule for automatic tests

No defined schedule - tests run every hour

Tests will run at 12 and 42 past the hour
 
Hello - installed on 68u. Works fine from commandline but graphs are empty. Waited 24 hours but still no detain graphs under tools -> speediest page. Is there a log file of all the tests that tool ran in last 24 hours, that could be checked?
check for any console errors on the page in your web browser (f12 tools etc.)
 
check for any console errors on the page in your web browser (f12 tools etc.)
Here is what I see.
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (moment.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (hammerjs.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (chartjs-plugin-zoom.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (chartjs-plugin-annotation.js, line 0)
[Error] ReferenceError: Can't find variable: moment
Global Code (spdstatsdata.js:3)
[Error] ReferenceError: Can't find variable: moment
Draw_Chart (AiMesh_Node_FirmwareUpgrade.asp:96)
RedrawAllCharts (AiMesh_Node_FirmwareUpgrade.asp:279)
initial (AiMesh_Node_FirmwareUpgrade.asp:303)
onload (AiMesh_Node_FirmwareUpgrade.asp:318)

Using safari
 
Here is what I see.
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (moment.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (hammerjs.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (chartjs-plugin-zoom.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (chartjs-plugin-annotation.js, line 0)
[Error] ReferenceError: Can't find variable: moment
Global Code (spdstatsdata.js:3)
[Error] ReferenceError: Can't find variable: moment
Draw_Chart (AiMesh_Node_FirmwareUpgrade.asp:96)
RedrawAllCharts (AiMesh_Node_FirmwareUpgrade.asp:279)
initial (AiMesh_Node_FirmwareUpgrade.asp:303)
onload (AiMesh_Node_FirmwareUpgrade.asp:318)

Using safari
Hm, looks like some of the required files are missing

which f/w version are you running?
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top