From 78e6f973e4c14835079b30755a3ba5b541e76df3 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Wed, 15 Jun 2022 12:37:56 -0600 Subject: [PATCH] split out scripts, patch --- patch/septool-owner.patch | 13 +++++++++++++ scripts/galmon-sept | 20 ++++++++++++++++++++ scripts/galmon.service | 14 ++++++++++++++ scripts/ubxtool-ttyACM0 | 27 +++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 patch/septool-owner.patch create mode 100755 scripts/galmon-sept create mode 100644 scripts/galmon.service create mode 100644 scripts/ubxtool-ttyACM0 diff --git a/patch/septool-owner.patch b/patch/septool-owner.patch new file mode 100644 index 0000000..90bccf0 --- /dev/null +++ b/patch/septool-owner.patch @@ -0,0 +1,13 @@ +--- galmon-0.20220307.orig/septool.cc 2022-04-14 23:06:38.000000000 +0000 ++++ galmon-0.20220307/septool.cc 2022-06-14 23:31:26.962133157 +0000 +@@ -376,8 +376,8 @@ + nmm.mutable_od()->set_clockaccuracyns(0); + nmm.mutable_od()->set_freqaccuracyps(0); + +- nmm.mutable_od()->set_owner("Septentrio"); +- nmm.mutable_od()->set_remark(""); ++ nmm.mutable_od()->set_owner("Jeff Moe SpaceCruft"); ++ nmm.mutable_od()->set_remark("Colorado, USA | Traverse Ten64 | Septentrio simpleRTK3B USB"); + nmm.mutable_od()->set_recvgithash(g_gitHash); + nmm.mutable_od()->set_uptime(time(0) - starttime); + ns.emitNMM( nmm); diff --git a/scripts/galmon-sept b/scripts/galmon-sept new file mode 100755 index 0000000..012dcae --- /dev/null +++ b/scripts/galmon-sept @@ -0,0 +1,20 @@ +#!/bin/bash + +septool \ + --quiet true \ + --source 192.168.3.1:29000 \ + --destination submit.galmon.eu \ + --station 201 + + +exit + --stdout \ + --owner 'Jeff Moe SpaceCruft' \ + --remark \ + 'Colorado, USA | Traverse Ten64 | simpleRTK3B USB | Calibrated Survey GNSS Tripleband + L-band antenna' \ + --gps \ + --galileo \ + --beidou \ + --glonass \ + + --stdout \ diff --git a/scripts/galmon.service b/scripts/galmon.service new file mode 100644 index 0000000..0bdf9a0 --- /dev/null +++ b/scripts/galmon.service @@ -0,0 +1,14 @@ +[Unit] +Description=galmon septool +After=network-online.target +Wants=network-online.target + +[Service] +ExecStart=/usr/local/bin/spacecruft-galmon-septool +User=debian +Group=debian +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/scripts/ubxtool-ttyACM0 b/scripts/ubxtool-ttyACM0 new file mode 100644 index 0000000..3a8ee4d --- /dev/null +++ b/scripts/ubxtool-ttyACM0 @@ -0,0 +1,27 @@ +# Copyright 2020 AHU Holding BV - bert@hubertnet.nl - https://berthub.eu/ +# https://galmon.eu - https://github.com/ahupowerdns/galmon +# This package is free software: /usr/share/common-licenses/GPL-3 +# +# INSTRUCTIONS: +# (Pre-condition: "dmesg | tail" reports your GPS device appears on /dev/ttyACM0.) +# Copy this file from /etc/default/galmon to /etc/default/ubxtool-ttyACM0 +# Please choose your constellations, update the owner and remark, and set your station and destination (ipv6 supported) +# After customization, start the daemon: +# systemctl enable --now ubxtool@ttyACM0 && journalctl -fu ubxtool +# If you want, enable automatic upgrades at boot and every three days following: +# systemctl enable --now galmon-upgrade.timer +# If you have several devices, enable multiple services with their unique device names. +# +# FOR HELP: +# Review the Operator.md file: https://github.com/ahupowerdns/galmon/blob/master/Operator.md +# Download an IRC client like Textual (Mac) or HexChat (Windows). Join #galileo on the OFTC servers. +# Thank you for contributing, it is nice to see data from your location on the map. +# +# +# DO NOT SET THE "PORT" OPTION HERE. +# The device is set by an argument to service, see above. +# +# uBlox ZED F9T and F9P modules support all four major constellations simultaneously but not SBAS. +# +DAEMON_OPTS="--owner 'Jeff Moe SpaceCruft' --remark 'Colorado, USA | Traverse Ten64 | simpleRTK2B-mPCIe' --gps --galileo --beidou --glonass --station XXX --destination XXX.submit.galmon.eu" +