seanauff / metermon

Dockerized rtlamr wrapper that outputs formatted JSON messages over mqtt
MIT License
66 stars 12 forks source link

Online/Offline #22

Closed dmkjr closed 2 years ago

dmkjr commented 2 years ago

Good evening. Just learning about SDR and trying to follow some tutorials this evening. Everything appears well, except MQTT explorer is showing online/offline rapidly from 'metermon'.

I deployed rtl_tcp on a Ubuntu machine with Metermon running in Docker.

Used Docker-Compose

`version: '3.7' services:

metermon: image: seanauff/metermon:amd64 container_name: metermon environment:

Test work just fine using rtl_test. However, when I test to see if it's running it is not. RC.LOCAL also doesn't exist on my version of Ubuntu (latest LTS).

Any ideas? (Thank you in advance)

dmkjr commented 2 years ago

Here is the latest.

15:17:09.522305 main.go:90: Error connecting to spectrum server: dial tcp 0.0.0.0:1234: connect: connection refused

seanauff commented 2 years ago

I think the issue is that metermon cannot connect to rtl_tcp. Check the RTL_TCP_SERVER env variable. Try changing it to the IP of the host running rtl_tcp.

dmkjr commented 2 years ago

I think it was pointed the correct. Location. I since gave up with the install on the server that I have many other docker containers running and spun it up on a RPI. It worked like a charm.

If now I can just get the data to come over (into) Home Assistant correctly. Keep getting an "unknown" back.

https://community.home-assistant.io/t/electric-meter-setup/382896

edit: Disregard. Apparently I was missing two env variables to make it function correctly.

Thank you!

seanauff commented 2 years ago

Glad you got it working! Although the METERMON_SEND_BY_ID var needs to be true for the hass example to work properly.