Damit scheint es zu funktionieren. Aber insgesamt eine unverständliche Konfiguration. Schade das es keine richtige Doku dazu gibt.
Diese Konfiguration scheint soweit zu funktionieren.
[[nodes.output.meshviewer]]
enable = true
version = 2
nodes_path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/nodes.json"
graph_path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/graph.json"
no_owner = false
domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
[nodes.output.meshviewer.filter]
# Filtern nach den spezifischen Domains
domain_append_site = true
sites = ["ffpi.ffpi_ibss", "ffpi.ffpi_80211s", ".ffpi"]
Das interesante/merkwürdige. Lasse ich domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
weg, wird gar nichts ausgegeben. Lasse ich statdessen den Filter weg werden auch Domains ausgegeben die nicht mit in der Liste stehen.
Für die Gateways die keine Domain haben, musste ich das ffpi mit einem vorangestellten Punkt angeben.
Schön wäre noch wenn es eine Möglichkeit gäbe Knoten die lange offline sind ganz auszublenden, ohne deren Historie zu löschen.
Und ich vermisse im Meshviewer die Airtime. Hatte ich schon öfters bei anderen Communities gesehen, konnte die angaben hier aber nicht in den json Daten finden.
Im gesamten sieht meine config bisher so aus.
# outputs all nodes as points into nodes.geojson
[[nodes.output.geojson]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/nodes.geojson"
# definition for the new more compressed meshviewer.json
[[nodes.output.meshviewer-ffrgb]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/meshviewer.json"
# definition for nodes.json
[[nodes.output.meshviewer]]
enable = true
# The structure version of the output which should be generated (i.e. nodes.json)
# version 1 is accepted by the legacy meshviewer (which is the master branch)
# i.e. https://github.com/ffnord/meshviewer/tree/master
# version 2 is accepted by the new versions of meshviewer (which are in the legacy develop branch or newer)
# i.e. https://github.com/ffnord/meshviewer/tree/dev
# https://github.com/ffrgb/meshviewer/tree/develop
version = 2
# path where to store nodes.json
nodes_path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/nodes.json"
# path where to store graph.json
graph_path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/graph.json"
no_owner = false
# definition for nodelist.json
[[nodes.output.nodelist]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/nodelist.json"
# definition for prometheus-sd.json
[[nodes.output.prometheus-sd]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/prometheus-sd.json"
# ip = lates recieved ip, node_id = node id from host
target_address = "ip"
# definition for raw.json
[[nodes.output.raw]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data.global/raw.json"
################
# PINNEBERG
# ##############
[[nodes.output.meshviewer]]
enable = true
version = 2
nodes_path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/nodes.json"
graph_path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/graph.json"
no_owner = false
domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
[nodes.output.meshviewer.filter]
# Filtern nach den spezifischen Domains
domain_append_site = true
sites = ["ffpi.ffpi_ibss", "ffpi.ffpi_80211s", ".ffpi"]
[[nodes.output.meshviewer-ffrgb]]
enable = true
no_owner = false
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/meshviewer.json"
domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
[nodes.output.meshviewer-ffrgb.filter]
# Filtern nach den spezifischen Domains
domain_append_site = true
sites = ["ffpi.ffpi_ibss", "ffpi.ffpi_80211s", ".ffpi"]
[[nodes.output.geojson]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/nodes.geojson"
domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
[nodes.output.geojson.filter]
# Filtern nach den spezifischen Domains
domain_append_site = true
sites = ["ffpi.ffpi_ibss", "ffpi.ffpi_80211s", ".ffpi"]
# definition for nodelist.json
[[nodes.output.nodelist]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/nodelist.json"
domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
[nodes.output.nodelist.filter]
domain_append_site = true
sites = ["ffpi.ffpi_ibss", "ffpi.ffpi_80211s", ".ffpi"]
[[nodes.output.raw]]
enable = true
path = "/var/www/vhosts/meshviewer.pinneberg.freifunk.net/data/raw.json"
domains = ["ffpi_ibss", "ffpi_80211s", "ffpi"]
[nodes.output.raw.filter]
# Filtern nach den spezifischen Domains
domain_append_site = true
sites = ["ffpi.ffpi_ibss", "ffpi.ffpi_80211s", ".ffpi"]
###############
# HELGOLAND
###############
[[nodes.output.meshviewer]]
enable = true
version = 2
nodes_path = "/var/www/vhosts/meshviewer.helgoland.freifunk.net/data/nodes.json"
graph_path = "/var/www/vhosts/meshviewer.helgoland.freifunk.net/data/graph.json"
no_owner = false
[nodes.output.meshviewer.filter]
domain_append_site = true
sites = ["ffpi.helgoland", "ffpi.helgoland_old", ".ffpi"]
[[nodes.output.meshviewer-ffrgb]]
enable = true
no_owner = false
path = "/var/www/vhosts/meshviewer.helgoland.freifunk.net/data/meshviewer.json"
[nodes.output.meshviewer-ffrgb.filter]
# Filtern nach den spezifischen Domains
domain_append_site = true
sites = ["ffpi.helgoland", "ffpi.helgoland_old", ".ffpi"]
[[nodes.output.geojson]]
enable = true
path = "/var/www/vhosts/meshviewer.helgoland.freifunk.net/data/nodes.geojson"
[nodes.output.geojson.filter]
domain_append_site = true
sites = ["ffpi.helgoland", "ffpi.helgoland_old", ".ffpi"]
[[nodes.output.nodelist]]
enable = true
path = "/var/www/vhosts/meshviewer.helgoland.freifunk.net/data/nodelist.json"
[nodes.output.nodelist.filter]
domain_append_site = true
sites = ["ffpi.helgoland", "ffpi.helgoland_old", ".ffpi"]
[[nodes.output.raw]]
enable = true
path = "/var/www/vhosts/meshviewer.helgoland.freifunk.net/data/raw.json"
[nodes.output.raw.filter]
domain_append_site = true
sites = ["ffpi.helgoland", "ffpi.helgoland_old", ".ffpi"]