Hello,
is there a way to read and change the data limit MB using a script?
(RUTX50 7.14)
Hello,
It is possible to read and modify the data limit using a custom script. You can achieve this either via the API or UCI commands.
To set a data limit using the API, you can add the following to your script: api put /data_limit/config/mob1s1a1 "{'data': {'data_limit': '1000'}}"
.
Full API documentation for data limit configuration is available here: https://developers.teltonika-networks.com/reference/rutx50/7.10.1/v1.2/data-limit
You can also use UCI commands to modify or read data limit settings:
-
To set the data limit (in MB):
uci set quota_limit.mob1s1a1.data_limit='1000'
uci commit
/etc/init.d/quota_limit reload
-
To read the current data limit value:
echo $(uci get quota_limit.mob1s1a1.data_limit)
You can view all current data limit configurations via CLI using:
uci show quota_limit
For additional details and custom script examples, please visit our wiki page: User Scripts examples - Teltonika Networks Wiki
Hope this helps! Let me know if you have any further questions.
Best regards,
Thank you for answer. Thats what i need.
Hello,
Glad to hear it helped!
If there’s anything else I can assist you with, please don’t hesitate to let me know.
Best regards,