Hi all,
I’m literally pulling my hair out trying to install OEM.
I first tried to install using the instructions at GitHub - Open-Building-Management/compose-files: compose files to use with docker-compose. Everything loads but I can’t receive any data. I am using two emonTH’s with the Jeelink to USB interface.
Here are my config files:
compose_emonhub.yaml
services:
emonhub:
image: alexjunk/emonhub
volumes:
- ./emonhub.conf:/opt/openenergymonitor/emonhub/conf/emonhub.conf
- /dev:/dev
device_cgroup_rules:
- 'c 204:* rmw'
command: /opt/openenergymonitor/emonhub/src/./emonhub.py
network_mode: service:emoncms
restart: always
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
compose.yaml
services:
emoncms:
image: alexjunk/emoncms
volumes:
- /data:/data
environment:
- TZ=Europe/Paris
- REDIS_BUFFER=1
- EMONCMS_LOG_LEVEL=2
- MYSQL_DATABASE=emoncms
- MYSQL_USER=emoncms
- MYSQL_PASSWORD=emonpiemoncmsmysql2016
- MQTT_USER=emonpi
- MQTT_PASSWORD=emonpimqtt2016
- MQTT_HOST=localhost
- MQTT_BASETOPIC=emon
- MQTT_CLIENT_ID=emoncms
- MQTT_LOG_LEVEL=error
- CRT_FILE=/etc/ssl/apache2/server.pem
- KEY_FILE=/etc/ssl/apache2/server.key
- CNAME=localhost
- CUSTOM_APACHE_CONF=0
- USE_HOSTNAME_FOR_MQTT_TOPIC_CLIENTID=0
ports:
- 7443:443
- 8081:80
- 9883:1883
restart: always
emonhub.yaml
#######################################################################
####################### emonHub settings #######################
#######################################################################
[hub]
### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
loglevel = DEBUG
### Autoconf is used to automatically add node decoders
### If you have unknown nodes appearing disable this feature
### Make sure to restart emonHub after changing this
autoconf = 0
#######################################################################
####################### Interfacers #######################
#######################################################################
[interfacers]
[[jeelink]]
Type = EmonHubOEMInterfacer
[[[init_settings]]]
com_port = /dev/ttyUSB0
com_baud = 38400
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
subchannels = ToRFM12,
nodename = RF
[[MQTT]]
Type = EmonHubMqttInterfacer
[[[init_settings]]]
mqtt_host = 127.0.0.1
mqtt_port = 9883
mqtt_user = 'emonpi'
mqtt_passwd = 'emonpimqtt2016'
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
# emonhub/rx/10/values format
# Use with emoncms Nodes module
node_format_enable = 1
node_format_basetopic = emonhub/
# emon/emontx/power1 format - use with Emoncms MQTT input
# http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
nodevar_format_enable = 1
nodevar_format_basetopic = emon/
# Single JSON payload published - use with Emoncms MQTT
node_JSON_enable = 0
node_JSON_basetopic = emon/
[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = http://localhost:8081
apikey = 79a6adf358a7528f33615bfe95e2575e
senddata = 1 # Enable sending data to Emoncms.org
sendstatus = 1 # Enable sending WAN IP to Emoncms.org MyIP > https://emoncms.org/myip/list
interval = 30 # Bulk send interval to Emoncms.org in seconds
#######################################################################
####################### Nodes #######################
#######################################################################
[nodes]
[[19]]
nodename = emonTH_19
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[20]]
nodename = emonTH_20
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[21]]
nodename = emonTH_21
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[22]]
nodename = emonTH_22
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[23]]
nodename = emonTH_23
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[24]]
nodename = emonTH_24
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[25]]
nodename = emonTH_25
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
[[26]]
nodename = emonTH_26
[[[rx]]]
names = temperature, external temperature, humidity, battery, pulseCount
datacodes = h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,1
units = C,C,%,V,p
Any help appreciated.