Fix misspells
This commit is contained in:
parent
db213db621
commit
082f8d6c7e
|
@ -139,7 +139,7 @@ password = ""
|
||||||
# Tags used by Yanic would override the tags from this config
|
# Tags used by Yanic would override the tags from this config
|
||||||
# nodeid, hostname, owner, model, firmware_base, firmware_release,frequency11g and frequency11a are tags which are already used
|
# nodeid, hostname, owner, model, firmware_base, firmware_release,frequency11g and frequency11a are tags which are already used
|
||||||
#tagname1 = "tagvalue 1"
|
#tagname1 = "tagvalue 1"
|
||||||
# some usefull e.g.:
|
# some useful e.g.:
|
||||||
#system = "productive"
|
#system = "productive"
|
||||||
#site = "ffhb"
|
#site = "ffhb"
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ func TestToInflux(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
neigbour := &runtime.Node{
|
neighbour := &runtime.Node{
|
||||||
Nodeinfo: &data.NodeInfo{
|
Nodeinfo: &data.NodeInfo{
|
||||||
NodeID: "foobar",
|
NodeID: "foobar",
|
||||||
Network: data.Network{
|
Network: data.Network{
|
||||||
|
@ -119,7 +119,7 @@ func TestToInflux(t *testing.T) {
|
||||||
Statistics: &data.Statistics{},
|
Statistics: &data.Statistics{},
|
||||||
}
|
}
|
||||||
|
|
||||||
points := testPoints(node, neigbour, droppednode)
|
points := testPoints(node, neighbour, droppednode)
|
||||||
var fields map[string]interface{}
|
var fields map[string]interface{}
|
||||||
var tags map[string]string
|
var tags map[string]string
|
||||||
|
|
||||||
|
|
|
@ -364,7 +364,7 @@ graph_path = "/var/www/html/meshviewer/data/graph.json"
|
||||||
## [[nodes.output.nodelist]]
|
## [[nodes.output.nodelist]]
|
||||||
{% method %}
|
{% method %}
|
||||||
The nodelist output is a minimal output with current state of collected data.
|
The nodelist output is a minimal output with current state of collected data.
|
||||||
Should be prefered to use it on the [ffapi](https://freifunk.net/api-generator/) for the [freifunk-karte.de](https://freifunk-karte.de)
|
Should be preferred to use it on the [ffapi](https://freifunk.net/api-generator/) for the [freifunk-karte.de](https://freifunk-karte.de)
|
||||||
{% sample lang="toml" %}
|
{% sample lang="toml" %}
|
||||||
```toml
|
```toml
|
||||||
[[nodes.output.nodelist]]
|
[[nodes.output.nodelist]]
|
||||||
|
@ -510,14 +510,14 @@ password = ""
|
||||||
### [database.connection.influxdb.tags]
|
### [database.connection.influxdb.tags]
|
||||||
{% method %}
|
{% method %}
|
||||||
You could set manuelle tags with inserting into a influxdb.
|
You could set manuelle tags with inserting into a influxdb.
|
||||||
Usefull if you want to identify the yanic instance when you use multiple own on the same influxdb (e.g. multisites).
|
Useful if you want to identify the yanic instance when you use multiple own on the same influxdb (e.g. multisites).
|
||||||
|
|
||||||
Warning:
|
Warning:
|
||||||
Tags used by Yanic would override the tags from this config (e.g. `nodeid`, `hostname`, `owner`, `model`, `firmware_base`, `firmware_release`, `frequency11g`, `frequency11a`).
|
Tags used by Yanic would override the tags from this config (e.g. `nodeid`, `hostname`, `owner`, `model`, `firmware_base`, `firmware_release`, `frequency11g`, `frequency11a`).
|
||||||
{% sample lang="toml" %}
|
{% sample lang="toml" %}
|
||||||
```toml
|
```toml
|
||||||
tagname1 = "tagvalue 1s"
|
tagname1 = "tagvalue 1s"
|
||||||
# some usefull e.g.:
|
# some useful e.g.:
|
||||||
system = "productive"
|
system = "productive"
|
||||||
site = "ffhb"
|
site = "ffhb"
|
||||||
```
|
```
|
||||||
|
|
|
@ -33,7 +33,7 @@ cp /opt/go/src/github.com/FreifunkBremen/yanic/contrib/init/linux-systemd/yanic.
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
```
|
```
|
||||||
|
|
||||||
Before start, you should configurate yanic by the file `/etc/yanic.conf`:
|
Before start, you should configure yanic by the file `/etc/yanic.conf`:
|
||||||
|
|
||||||
```
|
```
|
||||||
systemctl start yanic
|
systemctl start yanic
|
||||||
|
|
|
@ -21,7 +21,7 @@ type Flags struct {
|
||||||
Gateway bool `json:"gateway"`
|
Gateway bool `json:"gateway"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Statistics a meshviewer spezifisch struct, diffrent from respondd
|
// Statistics a meshviewer spezifisch struct, different from respondd
|
||||||
type Statistics struct {
|
type Statistics struct {
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
Clients uint32 `json:"clients"`
|
Clients uint32 `json:"clients"`
|
||||||
|
|
|
@ -183,7 +183,7 @@ func (coll *Collector) sendPacket(conn *net.UDPConn, destination net.IP) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// send packets continously
|
// send packets continuously
|
||||||
func (coll *Collector) sender() {
|
func (coll *Collector) sender() {
|
||||||
ticker := time.NewTicker(coll.interval)
|
ticker := time.NewTicker(coll.interval)
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue