maws2json

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2022 License: Unlicense Imports: 4 Imported by: 0

README

maws2json

Usage examples

Over serial line (stdin pipe)

Lets assume that Vaisala weather station is connected via RS232 to USB serial dongle in /dev/ttyUSB0:

cat /dev/ttyUSB0 | maws2json
Over TCP/IP stream (stdin pipe)

Lets assume thatVaisal weather station can be reached from IP address 10.10.10.10 in a port 5000:

netcat 10.10.10.10 5000 | maws2json
Convert data lines from a file

Lets assume that you have a file called "maws.dat" that contains MAWS datalines:

maws2json --file maws.dat
Read data and submit it to GCP Pub/Sub

Lets assume that you are reading again from serial port in real time:

cat /dev/ttyUSB0 | maws2json | sed 's/\"/\\\"/g' | xargs -I % gcloud pubsub topics publish projects/my-gcp-project-id/topics/maws --message='%'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL