I have the following error in the emoncms.log.
2016-10-09 12:09:39.002 |WARN| phpmqtt_input.php| Connecting to MQTT server: Connection Refused: not authorised.: code: 5
And the following in the emonhub.log
2016-10-09 11:46:53,502 INFO MQTT Could not connect... 2016-10-09 11:46:54,294 INFO MainThread Deleting interfacer 'MQTT' 2016-10-09 11:46:54,295 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi' 2016-10-09 11:46:54,297 ERROR MainThread could not open port /dev/ttyAMA0: [Errno 2] No such file or directory: '/dev/ttyAMA0' 2016-10-09 11:46:54,297 ERROR MainThread Unable to create 'RFM2Pi' interfacer: global name 'EmonHubInterfacerInitError' is not defined 2016-10-09 11:46:54,298 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT' 2016-10-09 11:46:54,299 INFO MainThread MQTT Init mqtt_host=192.168.0.41 mqtt_port=21 mqtt_user=pi 2016-10-09 11:46:54,302 DEBUG MainThread MQTT Subscribed to channel' : ToEmonCMS 2016-10-09 11:46:54,304 DEBUG MainThread emoncmsorg Subscribed to channel' : ToEmonCMS 2016-10-09 11:46:54,404 INFO MQTT Connecting to MQTT Server 2016-10-09 11:46:54,406 INFO MQTT Could not connect...
I tried serveral user id’s and passwords.
The config file is as follows (baseid = 8, mqtt_host = 192.168.0.41):
[[RFM2Pi]] Type = EmonHubJeeInterfacer [[[init_settings]]] com_port = /dev/ttyAMA0 com_baud = 38400 # 9600 for old RFM12Pi modules [[[runtimesettings]]] pubchannels = ToEmonCMS, subchannels = ToRFM12, group = 210 frequency = 433 baseid = 8 # emonPi / emonBase nodeID quiet = true # Report incomplete RF packets (no implemented on emonPi) calibration = 230V # (UK/EU: 230V, US: 110V) # interval = 0 # Interval to transmit time to emonGLCD (seconds) [[MQTT]] Type = EmonHubMqttInterfacer [[[init_settings]]] #mqtt_host = 127.0.0.1 #mqtt_port = 1883 mqtt_host = 192.168.0.41 mqtt_port = 81 mqtt_user = 'pi' mqtt_passwd = '********'