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

23 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)
56e032152d Support alias interfaces 2021-02-15 19:55:07 +01:00
Ycarus (Yannick Chabanois)
463542a4af Set a default value for omr-quota 2020-05-05 09:56:23 +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)
17670c520e Add interface in vnstat only if enabled in quota 2020-04-05 16:01:20 +02:00
Ycarus (Yannick Chabanois)
3a6a77c4db Use vnstat2 2020-03-27 10:23:01 +01:00
Ycarus (Yannick Chabanois)
377687a9f9 Fix omr-quota 2020-03-13 22:34:40 +01:00
Ycarus
7b8c43a449 Less output for uci defaults 2019-04-18 09:11:57 +02:00
Ycarus
7beebee9ae Add all interfaces in vnstat 2019-02-06 20:29:07 +01:00
Ycarus
18ffe1bb3e Update copyright year 2019-01-03 15:56:11 +01:00
Ycarus
edff787f63 Fix interface name for omr-quota 2018-12-12 21:30:43 +01:00
Ycarus
58800cb6a7 Little cosmetics changes 2018-11-12 09:37:33 +01:00
Ycarus
5b3785a559 Add status check for omr-quota 2018-10-18 09:29:13 +02:00
Ycarus
de716dd92d Check if script already in network affects before adding it 2018-06-25 09:15:59 +02:00
Ycarus
f6efdc51c9 add quiet options when jsonfilter is used 2018-06-18 23:27:34 +02:00
Ycarus
af4d5483fa Fix enabled check 2018-05-25 22:00:24 +02:00
Ycarus
82e83780eb Better quota and tracker interface 2018-03-12 17:02:30 +01:00
Ycarus
b549503be7 Add quota support and small others changes 2018-03-06 15:09:20 +01:00