|
|
|
@ -53,11 +53,11 @@ func main() { |
|
|
|
|
var forever chan struct{} |
|
|
|
|
|
|
|
|
|
shellPipe := Piper{} |
|
|
|
|
shellPipe.Init(&influx, amqpConn, "shelly", "shellies.#") |
|
|
|
|
shellPipe.Init(&influx, &amqpConn, "shelly", "shellies.#") |
|
|
|
|
go shellPipe.RunPipe(ShellyConverter) |
|
|
|
|
|
|
|
|
|
tasmotaPipe := Piper{} |
|
|
|
|
tasmotaPipe.Init(&influx, amqpConn, "tasmota", "tele.#.SENSOR") |
|
|
|
|
tasmotaPipe.Init(&influx, &amqpConn, "tasmota", "tele.#.SENSOR") |
|
|
|
|
go tasmotaPipe.RunPipe(TasmotaConverter) |
|
|
|
|
|
|
|
|
|
log.Printf(" [*] Waiting for logs. To exit press CTRL+C") |
|
|
|
|