Commit graph

87 commits

Author SHA1 Message Date
Tomaae
477c68cf55
Workaround for 7.17 missing /system/health in some devices, fixes #392 2025-05-01 13:10:17 +02:00
Tomaae
8e68931e57
Added SSL Verify option 2025-04-30 13:35:45 +02:00
Tomaae
975f882416
Added query path into query error 2023-09-18 09:07:10 +02:00
Tomaae
c8728238af
rebase 2023-08-31 02:53:34 +02:00
Tomaae
a21e95c36a
coordinator update 2023-08-08 00:50:09 +02:00
Ivan Pavlina
22844e7ae5 added attributes to execute method, using it on check-for-updates. hardcoded 10 seconds for duration 2023-05-31 06:56:50 +00:00
Tomaae
5408d60bbd
api cleanup 2022-06-30 22:20:45 +02:00
Tomaae
c10fb9fedb
API, renamed path and update functions 2022-06-28 20:28:00 +02:00
Tomaae
7782503f78
merged get_sfp into path 2022-06-28 20:13:07 +02:00
Tomaae
8efaa72492
API, option for path command to execute commands in path and pass arguments 2022-06-28 20:12:41 +02:00
Tomaae
a76417c240
Cleanup API 2022-06-25 15:18:14 +02:00
Tomaae
bd56487f42
force check for firmware update, fixes #208 2022-05-27 10:58:51 +02:00
Tomaae
4fbd5a4280 Cleanup interface bandwidth tracking, ref #166 2022-03-03 11:24:39 +01:00
Tomaae
5d04872032 Improved interface bandwidth tracking, fixes #166 2022-03-03 10:12:05 +01:00
Ivan Pavlina
e93b02e71d Accounting feature renamed to Client traffic. In case of older firmware fallback to accounting fetature for client traffic monitoring, instead use kid-control-devices 2022-01-20 09:54:40 +01:00
tomaae
3bf4c56254 Added SFP support #94 2021-04-12 14:28:39 +02:00
RSd108
7b47f55098
Incorrect id being sent through to the api 2021-03-31 09:23:27 +02:00
tomaae
3d57c1037a Removed break from update and execute #80 2020-12-28 14:45:49 +01:00
tomaae
aebb834420 Capture permission denied when using switches #80 2020-12-28 13:47:44 +01:00
tomaae
e2c6c3a77a Updated debug values for api execute #70 2020-12-28 01:32:28 +01:00
tomaae
7dc9120b19 Modified kid-control switches to block/unblock traffic #70 2020-12-28 01:26:46 +01:00
tomaae
5aa6652301 switched to standard ping 2020-12-09 00:27:18 +01:00
tomaae
46f7c582ab fixed api lock for run_script 2020-04-20 10:54:54 +02:00
tomaae
1fd65f6a94 fixed flake8 warnings 2020-04-13 12:25:08 +02:00
tomaae
8cf278be64 black 2020-04-13 07:52:26 +02:00
tomaae
19e7174446 run async_hwinfo_update after reconnect 2020-04-13 07:36:00 +02:00
tomaae
8efb4ff602 added socket error and timeout exception to api 2020-04-11 19:04:39 +02:00
tomaae
70cdb93eb3 reformatted using black 2020-04-11 05:45:36 +02:00
tomaae
6c88cd9b06 switched to official librouteros 2020-04-11 05:20:55 +02:00
tomaae
715fcc74ea replaced raise with logger error message for api queries 2020-04-10 11:49:02 +02:00
Ivan Pavlina
069897c32c Removed manual accounting enable/disable checkbox, now it dinamically creates entites depending on state in Mikrotik. Reverted config flow to version 1.
Reused ARP call in accounting hosts building.
2020-04-07 14:50:26 +02:00
Ivan Pavlina
e51304a5e3 Fixed imports, changed primary key for accounting hosts from ip address to mac address 2020-04-07 11:32:38 +02:00
Ivan Pavlina
aa8f41f6fe Merge branch 'master' into pr/1 2020-04-07 10:54:19 +02:00
tomaae
052d532fe0 Preliminary support for host tracking #24 2020-04-07 03:55:38 +02:00
Ivan Pavlina
ca39617aaf Update docs and comments 2020-04-05 23:15:53 +02:00
Ivan Pavlina
f9a458bbfb Add ability to automatically determine if the LAN accounting sensor should be created depending on account-local-traffic in Mikrotik API 2020-04-05 15:03:17 +02:00
tomaae
01801fdc2d removed unused variable 2020-04-05 00:27:16 +02:00
tomaae
f9a8d57167 converting generator to list in get_traffic #8 2020-04-04 22:37:41 +02:00
tomaae
12514b4af8 moved disconnect error messages to api.disconnect 2020-04-04 22:35:59 +02:00
tomaae
4c10d0ebc7 moved connection check to separated function 2020-04-04 22:15:06 +02:00
tomaae
592dbbe3dd removed response from api.path query debug 2020-04-04 22:03:46 +02:00
tomaae
f489259908 changed default for return_list in api.path 2020-04-04 21:43:19 +02:00
Ivan Pavlina
30c11db741 Add ability to track accounting data from Mikrotik. 2020-04-04 19:42:05 +02:00
Ivan Pavlina
1a46da5aae Add ability to return list results of API call instead of generator. On generator return do not call iterate over object, removes redundant calls to API. Update calls to api.path with new input param. Fix logging in helper object. 2020-04-04 17:51:35 +02:00
Andrey Khrolenok
7ccaf0d9c3
PM8 code optimization 2020-03-21 19:02:28 +03:00
Andrey Khrolenok
f0b4c5e723
Fix some minor errors and add russian translation. 2020-03-21 18:46:54 +03:00
tomaae
0a58db40cd reverted back to customized fork of librouteros 2020-03-18 09:33:36 +01:00
tomaae
1010a8aa3a catching socket.timeout using tuple exception during traffic poll #8 2020-03-17 00:42:44 +01:00
tomaae
50cf54c417 log disconnect error/retry only once until reconnect
log reconnect
2020-03-17 00:40:08 +01:00
tomaae
8ec4f9ade5 changed string formatting according to development guidelines 2020-03-16 19:02:54 +01:00