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