parse messages

This commit is contained in:
Travis Shears 2025-12-22 09:23:12 +01:00
parent 65ad286add
commit 0897210754
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
5 changed files with 193 additions and 2 deletions

26
event_proxy/README.md Normal file
View file

@ -0,0 +1,26 @@
# Home Assistant Event Proxy
I found getting MQTT message sending on the pico MCP to be too trickey. I built this event proxy go app to simplify things.
With it in place the MCP only needs to send a very simple TCP message like "M01,25.5,60,1013". This this proxy app with
convert it into a Home Assistant MQTT event.
## Dev
Run dev server with:
```shell
$ go run main.go
```
Run unit tests with:
```shell
$ go test -v
```
To send a test message from the command line:
```shell
$ echo "M01,1.0,1.1,1.2" | nc 192.168.1.153 8080
```