diff --git a/README.md b/README.md index 1067e46..7977e60 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Yggdrasil map + * Internet: https://yggdrasil-map.cwo.fi + * Hyperboria: https://yggdrasil-map.h.cwo.fi + * Yggdrasil Network: https://yggdrasil-map.y.cwo.fi + Forked from the code for http://www.fc00.org (http://h.fc00.org on Hyperboria). ## Sending your view of the network diff --git a/web/graphPlotter.py b/web/graphPlotter.py index dc3fb9c..dd014be 100644 --- a/web/graphPlotter.py +++ b/web/graphPlotter.py @@ -65,6 +65,8 @@ def get_graph_json(G): centrality = centralities.get(n.name, 0) size = 5*(1 + 1*centrality) name = db.get(canonalize_ip(n.name)) + # If label isn't the default value, set name to that instead + if n.attr['label'] != n.name.split(':')[-1]: name = n.attr['label'] out_data['nodes'].append({ 'id': n.name, diff --git a/web/templates/about.html b/web/templates/about.html index 5045820..9ee8780 100644 --- a/web/templates/about.html +++ b/web/templates/about.html @@ -8,7 +8,7 @@

Network map

-

The network page has a map of Yggdrasil's spanning tree as it is now. The map is not complete since it is hard/impossible to get a full picture of the network, and it only includes the minimum subset of links needed to construct the spanning tree. The known nodes and tree coordinates are taken from Yakamo's API. Node names are taken from Yakamo's node list.

+

The network page has a map of Yggdrasil's spanning tree as it is now. The map is not complete since it is hard/impossible to get a full picture of the network, and it only includes the minimum subset of links needed to construct the spanning tree. The known nodes and tree coordinates are taken from Yakamo's API. Node can be configured by setting a "name" field in NodeInfo, or from Yakamo's node list as a fallback.