1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00
Commit graph

11 commits

Author SHA1 Message Date
Ycarus (Yannick Chabanois)
367ea040f2 Fix interface in OMR-Quota 2024-05-13 11:41:13 +02:00
bdaylik
bb483535fa
update omr-quota to up the interface when its usage is below threshold (#309)
Existing condition for the upping the interface asks for all 3 checks to have positive values (RX, TX and TT). However this is not necessary as some can be set to 0 to disable the check.

This modification makes sure that if the above checks for RX, TX and TT values have failed, thus the usage is still below the set quota, the interface is set to be up.

Thanks to this modification its possible to set only one check positive (e.g. TT) and let the script automatically down and up the interface as expected.
2024-03-25 12:14:55 +01:00
bdaylik
f44a31a46a
update omr-quota to compare in kbits as mentioned in GUI (#308)
vnstat by default reports the values in bits, however the OMR UI configuration asks values to be given in kbits. This commit fixes the omr-quota script by converting vnstat output to kbits.
2024-03-25 11:11:43 +01:00
bdaylik
a5ac3e4a01
omr-quota does not work as expected due to a typo in checking json field "months" (#306)
* Fix typo on omr-quota

vnstat json does not contain a field named "months". The name of the field id "month". This causes this script to not manage quotas.

* agree to contribution terms
2024-03-22 14:55:17 +01:00
Ycarus (Yannick Chabanois)
18d100f508 Should fix omr-quota 2021-10-12 19:56:19 +02:00
Ycarus (Yannick Chabanois)
c6f5b0f931 Fix omr-quota 2020-04-14 17:56:06 +02:00
Ycarus (Yannick Chabanois)
3264af85a5 Fix and add log for omr-quota 2020-04-14 17:29:50 +02:00
Ycarus (Yannick Chabanois)
377687a9f9 Fix omr-quota 2020-03-13 22:34:40 +01:00
Ycarus
5b3785a559 Add status check for omr-quota 2018-10-18 09:29:13 +02:00
Ycarus
f6efdc51c9 add quiet options when jsonfilter is used 2018-06-18 23:27:34 +02:00
Ycarus
b549503be7 Add quota support and small others changes 2018-03-06 15:09:20 +01:00