Skip to content
Snippets Groups Projects
Unverified Commit 5f4a5a30 authored by Annika Wickert's avatar Annika Wickert Committed by GitHub
Browse files

Merge pull request #4 from GoliathLabs/master

Merge with upstream
parents aca22edd 572d17d0
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
* lsb_release
* ethtool
* python3.3
* python3 (>= 3.3)
* python3-netifaces
* batman-adv
......@@ -15,36 +15,46 @@
## Setup
### Debian-Dependencies
```
```sh
apt-get install python3-netifaces ethtool lsb-release
```
### config.json
Start parameter for ext-respondd.
Copy `config.json.example` to `config.json` and change it to match your server configuration.
(`cp config.json.example config.json`)
* `batman` (string) (Optional: default bat0)
* `bridge` (string) (Optional: default br-client)
* `mesh-wlan` (array of string) (Optional: Ad-Hoc batman-Mesh)
* `mesh-vpn` (array of string) (Optional: fastd, GRE, L2TP batman-Mesh)
* `fastd_socket` (string) (Optional: needed for uplink-flag)
* `rate_limit` (integer) (Optional: limit incoming requests per minutes)
* `rate_limit_burst` (integer) (Optional: allow burst requests)
* `"addr"` (`str` / _default:_ `ff05::2:1001`)
- address to listen to
* `"port"` (`str` / _default:_ `1001`)
- port to listen to
* `"batman"` (`str` / _default:_ `bat0`)
- batman-adv interface
* `"bridge"` (`str` / _default:_ `br-client`)
- client bridge
* `"mesh-wlan"` (`str[]`)
- ad hoc batman-mesh
* `"mesh-vpn"` (`str[]`)
- fastd, GRE, L2TP batman-Mesh
* `"fastd_socket"` (`str`)
- needed for uplink-flag
* `"rate_limit"` (`int` / _default:_ `30`)
- limit incoming requests per minutes
* `"rate_limit_burst"` (`int` / _default:_ `10`)
- allow burst requests
### alias.json
Aliases to overwrite the returned server data.
Copy `alias.json.example` to `alias.json` and input e.g. owner information.
(`cp alias.json.example alias.json`)
The JSON content matches one block of the nodes.json, which is outputted by e.g. the [HopGlass-Server](https://github.com/hopglass/hopglass-server).
### ext-respondd.service
Register ext-respondd as a systemd service
```
```sh
cp ext-respondd.service.example /lib/systemd/system/ext-respondd.service
! modify the path inside of the ext-respondd.service !
# modify the path inside of the ext-respondd.service if necessary
systemctl daemon-reload
systemctl enable ext-respondd
systemctl start ext-respondd
```
......@@ -57,5 +67,5 @@ Collecting data from respondd:
Respondd for servers:
* [ffho-respondd](https://github.com/FreifunkHochstift/ffho-respondd) from Freifunk Hochstift (fork of ext-respondd)
* [ffnord-alfred-announce](https://github.com/ffnord/ffnord-alfred-announce) from FreiFunkNord
* [mesh-announce](https://github.com/ffnord/mesh-announce) from Freifunk Nord
* [py-respondd](https://github.com/descilla/py-respondd)
[Unit]
Description=ext-respondd (respondd status for servers)
After=syslog.target network.target
After=syslog.target network-online.target
[Service]
Type=simple
......
......@@ -6,7 +6,7 @@ import sys
def call(cmdnargs):
try:
output = subprocess.check_output(cmdnargs, stderr=subprocess.STDOUT)
output = subprocess.check_output(cmdnargs, stderr=None)
lines = output.splitlines()
lines = [line.decode('utf-8') for line in lines]
except subprocess.CalledProcessError as err:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment