What's new
  • 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!

spdMerlin spdMerlin v4.4.11 [2025-Jun-15] - Internet Speedtest and Monitoring Tool for AsusWRT Merlin

...
[: 0
0: bad number
/jffs/scripts/spdmerlin: line 5531: arithmetic syntax error
Starting speedtest using auto-selected server for WAN interface. Please wait...

I'll be issuing a new spdMerlin release version sometime in the next few days.

@itibi,

While waiting for the next production release, you could switch from the master to the *develop* branch, which has the fix for the problem you're experiencing:
Bash:
/jffs/scripts/spdmerlin develop
If you do the switch, let me know if the problem gets resolved in your router.

Once the next production release is available, you can switch back to the *master* branch:
Bash:
/jffs/scripts/spdmerlin stable

HTH.
 
Release Notes for spdMerlin v4.4.10 production version now available
[2025-Jun-08]


1) FIXED: New code to remove duplicate parameter key names found in the configuration file. Getting duplicate key values can cause "bad number" or "arithmetic syntax" errors.
[Thanks to @itibi for reporting the problem]​

2) FIXED: New code to display correct numeric values when download or upload data units are in GB or KB.
[Thanks to @Tarek Yag for reporting the problem]​

3) IMPROVED: Added code to create a separate logfile to capture the SQLite3 errors with more verbosity.
Debug logfile default location: /opt/share/tmp/

4) Miscellaneous code improvements and fine-tuning.


The fork from @Jack Yaz's spdMerlin is now hosted on the AMTM-OSR GitHub repo:
 
Hello again,

I'm reporting again regarding the numeric values bug I reported a few days ago. Today, while I was having my usual look at the latest automatic Speedtest results it came to my attention that numbers are showing consistently incorrect again!
So, I immediately made a few manual speed tests, but processing the numerics showed random results (alternating between new and old display) with no specific pattern that I could recognize for troubleshooting.

Moreover, for more troubleshooting, I tried switching between built-in and external Speedtest binaries (spdMerlin v4.4.10) to no avail, so I went with a first impression that it's caused by having multiple code paths for processing numeric values and the bug fix isn't applied to all code paths, or it could be some bug with processing Speedtest result's text itself. And I was about to report this first conclusion.

Anyway, I had an idea to try and check if there's any new code in the develop branch, and to my expectation, there was (v4.4.11)! I made more speed tests and the bug vanished completely with both Speedtest binaries (since there's a new external binary with the new version in development).

However, I thought it could be helpful to drop this information here for you guys, @Martinski, @ExtremeFiretop. It might be a bug you're already working on and/or already fixed.
Attached is a screenshot from my Last X Results table, showing automatic test results at the very bottom, then some test results with v4.4.10, then at the very top some test results with v4.4.11.

EDIT #1 : Re-wrote some points for clearance. Added more details.
EDIT #2 : Mentioned members.
 

Attachments

  • 2025-06-15_07-37-10.png
    2025-06-15_07-37-10.png
    308.1 KB · Views: 6
Last edited:
Release Notes for spdMerlin v4.4.11 production version now available
[2025-Jun-15]


1) FIXED: Display correct numeric values when using the built-in Speedtest binary, and download/upload data units are in GB or KB.

2) FIXED: Removed "color escape codes" from the AutoBW Report displayed on the WebUI page.
[Thanks to @maghuro for reporting the issue]​

3) IMPROVED: Updated external Speedtest CLI binaries from the previous 1.1.1.28 to the latest 1.2.0.84 version currently available.

4) Miscellaneous code improvements.


The fork from @Jack Yaz's spdMerlin add-on is now hosted on the AMTM-OSR GitHub repo:
 
Release Notes for spdMerlin v4.4.11 production version now available
[2025-Jun-15]


1) FIXED: Display correct numeric values when using the built-in Speedtest binary, and download/upload data units are in GB or KB.

2) FIXED: Removed "color escape codes" from the AutoBW Report displayed on the WebUI page.
[Thanks to @maghuro for reporting the issue]​

3) IMPROVED: Updated external Speedtest CLI binaries from the previous 1.1.1.28 to the latest 1.2.0.84 version currently available.

4) Miscellaneous code improvements.


The fork from @Jack Yaz's spdMerlin add-on is now hosted on the AMTM-OSR GitHub repo:
Thank you once again for your hard work! 💪🏻

A doubt I always has - what's the difference between the built-in and external binaries? And which should we use, which is the best and why?
 
Thank you once again for your hard work! 💪🏻

A doubt I always has - what's the difference between the built-in and external binaries? And which should we use, which is the best and why?
I don't have sufficient knowledge of the inner workings of the Speedtest binaries to provide meaningful answers to your questions.
 
Would it be possible to add tags and releases with the changelog to the AMTM-OSR github repos? Right now the most recent tag for AMTM-OSR/spdMerlin is 4.4.5 from Dec 2022, and there aren't any releases or changelogs at all. Adding releases would be helpful because then I could watch the repos on github and get email notifications with the changes when a new release is pushed.
 
Would it be possible to add tags and releases with the changelog to the AMTM-OSR github repos? Right now the most recent tag for AMTM-OSR/spdMerlin is 4.4.5 from Dec 2022, and there aren't any releases or changelogs at all. Adding releases would be helpful because then I could watch the repos on github and get email notifications with the changes when a new release is pushed.

It's one of my action items for the team, I think I brought that one up about 2 weeks ago. It's currently pending @thelonelycoder and @Martinski to review in our private discussions and provide feedback. It's on the list of many things but will get done eventually, it just got pushed back by other more priority things.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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

Members online

Back
Top