Skip to content

nvi-inc/gromet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gromet: the go MET server

gromet is a small server for multiplexing access to Paroscientific, Inc. MET3/4/4A Meteorological Measurement System and Vaisala WMT70x Ultrasonic Wind Sensors. It currenlty only supports Perle serial-to-ethernet converter, though local serial connections or other s2e devices may be added upon request.

Installation

(You must have the go language installed. With FSLx this is usually done with fsadapt as root.)

As root:

cd /usr2
git clone https://github.com/nvi-inc/gromet.git
chmod -R prog.rtx gromet

As prog:

cat <<EOF >>~/.profile
export GOPATH=~/go
PATH="$GOPATH/bin:/usr/local/go/bin:$PATH"
EOF
. ~/.profile
cd /usr2/gromet
make

As root:

git config --global --add safe.directory /usr2/gromet
make install

This installs gromet and configures it to run on startup.

Then edit the configuration in /usr2/control/gromet.yml point to your serial-to-ethernet converter, and start gromet with

systemctl start gromet

Note, this installation assumes you are using standard FS Linux directories (under /usr2) and user oper and that you are using a systemd based OS. If this do not match your setup, edit the Makefile appropriately.

Upgrading

To upgrade, fetch the new source and reinstall

cd /usr2/gromet
git pull
make

If an update to the service is needed, then as root:

make install
systemctl restart gromet

You will be prompted to overwrite your configuration or not. Typically, you don't want to overwrite /usr2/control/gromet.yml but it may need to be updated.