5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-09-19 21:52:30 +00:00
yggdrasil-map/README.md

32 lines
944 B
Markdown
Raw Normal View History

2014-03-30 14:43:14 +00:00
# fc00.org
2015-07-30 16:54:05 +00:00
Source code for http://www.fc00.org (http://h.fc00.org on Hyperboria).
2014-03-30 14:43:14 +00:00
2014-06-04 19:20:36 +00:00
## Sending your view of the network
2015-07-26 20:11:12 +00:00
2015-07-30 16:54:05 +00:00
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.
2014-06-04 19:20:36 +00:00
```bash
2015-07-26 20:11:12 +00:00
wget https://raw.githubusercontent.com/zielmicha/fc00.org/master/scripts/sendGraph.py
2015-07-30 16:54:05 +00:00
# edit configuration
2014-06-04 19:20:36 +00:00
nano sendGraph.py
chmod +x sendGraph.py
# Run this every 5-60 minutes
./sendGraph.py
2015-07-30 16:54:05 +00:00
# For example, add it to crontab
(crontab -l; echo "@hourly /root/sendGraph.py") | crontab -
2014-06-04 19:20:36 +00:00
```
2014-03-30 14:43:14 +00:00
## Web server
```bash
2015-07-26 20:11:12 +00:00
git clone git@github.com:zielmicha/fc00.org.git
git clone git@github.com:zielmicha/nodedb.git web/nodedb
2015-07-26 20:16:07 +00:00
sudo apt-get install python-flask python-flup python-mysqldb python-pygraphviz
2014-03-30 14:43:14 +00:00
cd fc00.org/web
2015-07-26 20:16:07 +00:00
python web.py
2014-03-30 14:43:14 +00:00
```
2015-07-26 20:16:07 +00:00
Run `web/updateGraph.py` periodically to rerender nodes graph. You may want to customize reverse-proxy IP retrieval logic in web.py.