Septentrio USB net, scripts

main
Jeff Moe 2022-06-14 15:21:22 -06:00
parent d6d9e4af54
commit a5e8e4ebd6
1 changed files with 59 additions and 0 deletions

View File

@ -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.