parse messages
This commit is contained in:
parent
65ad286add
commit
0897210754
5 changed files with 193 additions and 2 deletions
26
event_proxy/README.md
Normal file
26
event_proxy/README.md
Normal 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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue