Categorygithub.com/liskl/batrium-udp2http-bridge
modulepackage
0.0.0-20240118031548-5ecbb7c7df97
Repository: https://github.com/liskl/batrium-udp2http-bridge.git
Documentation: pkg.go.dev

# README

#batrium-udp2http-bridge

This service should Listen for UDP broadcasts from the Batrium Watchmon 4+ and collect all the metrics and expose them on as JSON on individual http routes.

BUILD

docker build -t batrium-udp2http-bridge . ;

RUN

docker run -it -p 18542:18542/udp batrium-udp2http-bridge:latest;

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Find takes a slice and looks for an element in it.
Float32bytes Converts Float32 to []bytes of size 8.
Float32frombytes converts []bytes form float32 to float.

# Constants

UDPhost address we bind to for listening to UDP broadcasts: defaults to 0.0.0.0".
UDPport port we listen on for UDP broadcasts: defaults to 18542".