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
|
2015-07-28 12:04:14 +00:00
|
|
|
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
|
|
|
|
2014-06-04 21:32:11 +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.
|