README
This commit is contained in:
parent
951d2e518a
commit
39095594c8
22
README.md
22
README.md
@ -279,22 +279,22 @@ Display network information about a interface.
|
|||||||
Requires the PyPI package `netifaces-py3`.
|
Requires the PyPI package `netifaces-py3`.
|
||||||
|
|
||||||
Available formatters:
|
Available formatters:
|
||||||
* {interface} same as setting
|
* `{interface}` same as setting
|
||||||
* {name} same as setting
|
* `{name}` same as setting
|
||||||
* {v4} IPv4 address
|
* `{v4}` IPv4 address
|
||||||
* {v4mask} subnet mask
|
* `{v4mask}` subnet mask
|
||||||
* {v4cidr} IPv4 address in cidr notation (i.e. 192.168.2.204/24)
|
* `{v4cidr}` IPv4 address in cidr notation (i.e. 192.168.2.204/24)
|
||||||
* {v6} IPv6 address
|
* `{v6}` IPv6 address
|
||||||
* {v6mask} subnet mask
|
* `{v6mask}` subnet mask
|
||||||
* {v6cidr} IPv6 address in cidr notation
|
* `{v6cidr}` IPv6 address in cidr notation
|
||||||
* {mac} MAC of interface
|
* `{mac}` MAC of interface
|
||||||
|
|
||||||
Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings.
|
Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings.
|
||||||
|
|
||||||
|
|
||||||
__Settings:__
|
__Settings:__
|
||||||
|
|
||||||
* `interface` — Interface to obtain information for, i.e. eth0 (default: `eth0`)
|
* `interface` — Interface to obtain information for (default: `eth0`)
|
||||||
* `format_up` — (default: `{interface}: {v4}`)
|
* `format_up` — (default: `{interface}: {v4}`)
|
||||||
* `color_up` — (default: `#00FF00`)
|
* `color_up` — (default: `#00FF00`)
|
||||||
* `format_down` — (default: `{interface}`)
|
* `format_down` — (default: `{interface}`)
|
||||||
@ -386,7 +386,7 @@ the same, except for these additional formatters:
|
|||||||
|
|
||||||
__Settings:__
|
__Settings:__
|
||||||
|
|
||||||
* `interface` — Interface to obtain information for, i.e. eth0 (default: `eth0`)
|
* `interface` — Interface to obtain information for (default: `eth0`)
|
||||||
* `format_up` — (default: `{interface}: {v4}`)
|
* `format_up` — (default: `{interface}: {v4}`)
|
||||||
* `color_up` — (default: `#00FF00`)
|
* `color_up` — (default: `#00FF00`)
|
||||||
* `format_down` — (default: `{interface}`)
|
* `format_down` — (default: `{interface}`)
|
||||||
|
@ -45,21 +45,21 @@ class Network(IntervalModule):
|
|||||||
Requires the PyPI package `netifaces-py3`.
|
Requires the PyPI package `netifaces-py3`.
|
||||||
|
|
||||||
Available formatters:
|
Available formatters:
|
||||||
* {inteface} same as setting
|
* `{interface}` same as setting
|
||||||
* {name} same as setting
|
* `{name}` same as setting
|
||||||
* {v4} IPv4 address
|
* `{v4}` IPv4 address
|
||||||
* {v4mask} subnet mask
|
* `{v4mask}` subnet mask
|
||||||
* {v4cidr} IPv4 address in cidr notation (i.e. 192.168.2.204/24)
|
* `{v4cidr}` IPv4 address in cidr notation (i.e. 192.168.2.204/24)
|
||||||
* {v6} IPv6 address
|
* `{v6}` IPv6 address
|
||||||
* {v6mask} subnet mask
|
* `{v6mask}` subnet mask
|
||||||
* {v6cidr} IPv6 address in cidr notation
|
* `{v6cidr}` IPv6 address in cidr notation
|
||||||
* {mac} MAC of interface
|
* `{mac}` MAC of interface
|
||||||
|
|
||||||
Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings.
|
Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
settings = (
|
settings = (
|
||||||
("interface", "Interface to obtain information for, i.e. eth0"),
|
("interface", "Interface to obtain information for"),
|
||||||
"format_up", "color_up",
|
"format_up", "color_up",
|
||||||
"format_down", "color_down",
|
"format_down", "color_down",
|
||||||
"name",
|
"name",
|
||||||
|
Loading…
Reference in New Issue
Block a user