Commit graph

128 commits

Author SHA1 Message Date
tomaae
e4e128ab4b changed host device_tracker from dhcp to host data point 2020-04-08 09:44:00 +02:00
tomaae
a9c0be0b2c removed temporary debug line 2020-04-08 09:21:26 +02:00
tomaae
b267943ba7 added custom data["host"] data point 2020-04-08 09:17:25 +02:00
tomaae
6ab2df8ef1 added comment to data["dhcp"] data point 2020-04-08 09:16:05 +02:00
tomaae
9c6712b511 added data["dns"] data point 2020-04-08 09:15:26 +02:00
tomaae
f0fc6f3c25 separated DHCP data point from host processing 2020-04-08 07:15:14 +02:00
tomaae
6515fa8ef5 Reordered host device tracker attributions on UI card #24 2020-04-07 04:15:23 +02:00
tomaae
94eed1fba3 Moved interface and available fields to ensure_val #24 2020-04-07 04:01:33 +02:00
tomaae
052d532fe0 Preliminary support for host tracking #24 2020-04-07 03:55:38 +02:00
tomaae
03d1162e7d remove duplicate NAT rules to prevent crash #20 2020-04-06 22:50:01 +02:00
tomaae
fc3ad56044 added slovak translation 2020-04-05 04:28:02 +02:00
tomaae
dcb1ec36cf updated english translation 2020-04-05 04:27:20 +02:00
tomaae
5a845ba07b PEP8 2020-04-05 00:38:29 +02:00
tomaae
f89a263691 removed unused variable 2020-04-05 00:33:04 +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
tomaae
1ec4e13eb8 added entity update debugs #18 2020-04-04 19:46:40 +02:00
Ivan Pavlina
b58b1aa8a3 Typo fix 2020-04-04 18:01:26 +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
Tomaae
e4b7551b9c
Merge pull request #16 from ivanpavlina/dev
Add support for simple queues.
2020-03-25 17:22:12 +01:00
Ivan Pavlina
63210ec62b Fix - .id was missing from retrieved params 2020-03-25 13:28:52 +01:00
Ivan Pavlina
bcf86dc7a3 Add support for simple queues. Transfer traffic_type and traffic_div calculation to separate method 2020-03-25 13:18:49 +01: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
tomaae
7af3ef0bb3 changed info logger according to development guidelines 2020-03-16 18:39:39 +01:00
tomaae
bd82612cb8 reformatted code using black 2020-03-16 18:35:51 +01:00
tomaae
3cf637d1ba reverted to official librouteros #9 2020-03-16 18:33:51 +01:00
tomaae
25e90702d2 added more options to measurement for traffic #10 2020-03-16 18:20:21 +01:00
tomaae
e418c20252 reformatted code using black 2020-03-16 04:51:41 +01:00
tomaae
b6e5c10540 added option to select units of measurement for traffic #10 2020-03-16 01:32:13 +01:00
tomaae
0f7ad23e3c catching socket.timeout using tuple exception #8 2020-03-13 02:39:35 +01:00
tomaae
b20d140383 api code cleanup 2020-03-13 02:27:21 +01:00
tomaae
d68ffbdc46 catch an error on recv in librouteros and raise an error #8 2020-03-12 13:21:03 +01:00
tomaae
d9dd5330ee missing interface workaround #11 2020-03-11 23:39:43 +01:00
tomaae
fc74a2cd56 simplified api path call 2020-03-11 23:35:28 +01:00
tomaae
df9f551b96 fixed traffic debug 2020-03-11 23:34:26 +01:00
tomaae
f111131a9b changed traffic sensors to kbps #10 2020-03-11 23:25:51 +01:00
tomaae
94a80656c3 api disconnects from router on communication error 2020-03-11 20:01:29 +01:00
tomaae
2a9585a4b3 changed defaults for NAT protocol and dst-port 2019-12-21 14:58:41 +01:00
tomaae
3ee017e11c fixed arp debug message 2019-12-21 08:21:17 +01:00
tomaae
9c144d7ade api, limit reconnect attempts to once per minute #7 2019-12-21 07:57:20 +01:00
tomaae
26d523c035 parse_api, fill default values if key is not specified #7 2019-12-21 07:34:23 +01:00