script that tells how fast the internet is at X moment

Greetings to all,
Can you help me create a script that tells how fast the internet is at X moment?




EL DONCITO.

But how do certain things come to your mind?
And where do you store it, in the NAND/Flash memory of the RouterBOARD? If you do that, after a few weeks you throw the RouterBOARD away…

this is something that would probably be better suited for a container app, which should hopefully be available again soon.. then you can run a speedtest-cli or something in there on a cron job and process the json results however you want..

Who said that in a few weeks he would throw it away, please help me rextended.



EL DONCITO.

How much your using a point of time is easier. But running /tool/speed-test, indirectly, is possible with the Dude server. If you create a probe that runs the SNMP GET for a ROS script file, set "polling" intervals etc to adjusted data storage (which end up in sqlite since that's what the Dude uses). At the end, you'd should be able see a graph of speed for time. This isn't for the faint-of-heart, but possible. Not just one-or-two steps however, likely a dozen or more.

@Amm0,
it is possible to do it, but the problem here is that YOU have to do it all to him…

Sorry @eldoncito, but if you doesn’t have the knowledge to put it all up on your own, ask help to @Amm0 or other users,
who are always ready to advise that you can do something else, but afterwards they do not explain it and they do not help you to do it.
I can’t be your personal assistant (not even the corrector of scripts made by others).

I think I was more pointing that tracking the current usage (e.g. traffic going in/out of WAN, LTE, etc.) is easy with Dude. But yeah some regular loop that runs speed-test and records the results, that is more involved was more my point. I wasn’t offering to write a script, if this was a wAP with 16MB, yeah recording data is a big problem.

I think my meta-point is perhaps the Dude be better to monitor the OP’s device, than trying to write scripts if you don’t know how to write scripts. Tracking the usage likely be useful and easy, the “how fast the internet” requires some scheduled bandwidth or speed-test which is harder with pure RouterOS or even with the Dude.