5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-12 22:10:26 +00:00
Yggdrasil network map
Go to file
Johannes Löthberg 9ae06c9ddc sendGraph: Skip node completely if replied with not_found
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2015-11-30 22:43:24 +01:00
scripts sendGraph: Skip node completely if replied with not_found 2015-11-30 22:43:24 +01:00
web include IP in log 2015-11-21 14:23:21 +01:00
.gitignore Script for starting multiple cjdns nodes 2014-06-05 17:50:37 +03:00
LICENSE Added a license and a readme 2014-03-30 17:43:14 +03:00
README.md parallel sendGraph, don't accept data from old versions of sendGraph 2015-11-21 13:30:03 +01:00

fc00.org

Source code for http://www.fc00.org (http://h.fc00.org on Hyperboria).

Sending your view of the network

In order to display accurate map of Hyperboria fc00 need your help. If you run CJDNS node, please send your network view using sendGraph.py script.

# Install requests and cjdns for Python 3
pip3 install cjdns requests
# Get the script
wget https://raw.githubusercontent.com/zielmicha/fc00.org/master/scripts/sendGraph.py
# Edit configuration
nano sendGraph.py
chmod +x sendGraph.py

# Run this every 20-100 minutes
./sendGraph.py
# For example, add it to crontab
(crontab -l; echo "@hourly /root/sendGraph.py") | crontab -

Web server

git clone git@github.com:zielmicha/fc00.org.git
git clone git@github.com:zielmicha/nodedb.git web/nodedb
sudo apt-get install python-flask python-flup python-mysqldb python-pygraphviz

cd fc00.org/web
python web.py

Run web/updateGraph.py periodically to rerender nodes graph. You may want to customize reverse-proxy IP retrieval logic in web.py.