Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show only nodes of predefined domains #105

Closed
citronalco opened this issue Feb 17, 2024 · 2 comments
Closed

Show only nodes of predefined domains #105

citronalco opened this issue Feb 17, 2024 · 2 comments

Comments

@citronalco
Copy link

Is your feature request related to a problem? Please describe.

We are in charge for the Freifunk networks of two cities. Each city has its own domain and its own public website.
We would like to run a Meshviewer instance for each of the domains, only showing the domain's nodes, using a common (global) meshviewer.json.

Describe the solution you'd like

Add a config option, e.g. "domainFilter", where one can give one or more domain names. Nodes from domains not listed get ignored.

Describe alternatives you've considered

Alternatively we would have to run several Yanic instances, or create filters for each domain that read meshviewer.json, removes all nodes not belonging to the desired domain, and feeds the result to Meshviewer.

Additional context

@citronalco citronalco changed the title Show only nodes of a single domain Show only nodes of selected domains Feb 17, 2024
@citronalco citronalco changed the title Show only nodes of selected domains Show only nodes of predefined domains Feb 17, 2024
@herbetom
Copy link

I think filtering via yanic is the way to go. It's not necessary to run several instances. Just define multiple filtered outputs:

# Community A

[[nodes.output.meshviewer-ffrgb]]
enable   = true
path = "/srv/yanic/comA/meshviewer.json"

[nodes.output.meshviewer-ffrgb.filter]
domain_as_site = true
sites = ["dom1", "dom2"]


# Community B

[[nodes.output.meshviewer-ffrgb]]
enable = true
path = "/srv/yanic/comB/meshviewer.json"

[nodes.output.meshviewer-ffrgb.filter]
domain_as_site = true
sites = ["dom3"]

FFMUC did just that and it seems to work for them:

freifunkMUC/ffmuc-salt-public#151
freifunkMUC/ffmuc-salt-public#152

@citronalco
Copy link
Author

Indeed that's much simpler, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants