Septentrio USB net, scripts
parent
d6d9e4af54
commit
a5e8e4ebd6
59
README.md
59
README.md
|
@ -185,6 +185,65 @@ for reboot.
|
|||
![septentrio-simpleRTK3B-stream](pics/ss-sept-streams.png)
|
||||
|
||||
|
||||
Then create a script that runs `septool` to consume the web data
|
||||
from the simpleRTK3B. Such as `/usr/local/bin/galmon-sept`:
|
||||
|
||||
```
|
||||
#!/bin/bash
|
||||
|
||||
septool \
|
||||
--quiet true \
|
||||
--source 192.168.3.1:29000 \
|
||||
--destination XXX.submit.galmon.eu \
|
||||
--station XXX
|
||||
```
|
||||
|
||||
Create a script to start it: `/etc/systemd/system/galmon.service`
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=galmon septool
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/galmon-sept
|
||||
User=debian
|
||||
Group=debian
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Then start it:
|
||||
|
||||
```
|
||||
sudo systemctl start galmon.service
|
||||
# Check logs:
|
||||
tail -f /var/log/daemon.log
|
||||
```
|
||||
|
||||
Start it at boot:
|
||||
|
||||
```
|
||||
sudo systemctl enable galmon.service
|
||||
```
|
||||
|
||||
Also, probably want to keep that USB network on reboot.
|
||||
Add this to `/etc/network/interfaces`, for example:
|
||||
|
||||
```
|
||||
auto usb0
|
||||
iface usb0 inet static
|
||||
address 192.168.3.2/24
|
||||
```
|
||||
|
||||
Then check if the ground station is appearing here:
|
||||
|
||||
* https://galmon.eu/observers.html
|
||||
|
||||
|
||||
# Status
|
||||
Three ground stations running.
|
||||
|
||||
|
|
Loading…
Reference in New Issue