Community
OpenEnergyMonitor

Community

MQTT installation and integration

mqtt
emoncms
Tags: #<Tag:0x00007f16afdb84c8> #<Tag:0x00007f16afdb8270>

(Graham Wood) #1

I have been following the instructions here:
https://github.com/emoncms/emoncms/blob/input-improvements/docs/RaspberryPi/MQTT.md
Having got the installation done and enabled the mqqt_input service I got the following console and log entries:

[email protected]:/var/www/emoncms/Modules/feed/engine $ sudo systemctl status mqtt_input -n20
● mqtt_input.service - Emoncms MQTT Input Script
Loaded: loaded (/etc/systemd/system/mqtt_input.service; enabled)
Active: inactive (dead)
Docs: https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
[email protected]:/var/www/emoncms/Modules/feed/engine $ sudo systemctl start mqtt_input
[email protected]:/var/www/emoncms/Modules/feed/engine $ sudo systemctl status mqtt_input -n20
● mqtt_input.service - Emoncms MQTT Input Script
Loaded: loaded (/etc/systemd/system/mqtt_input.service; enabled)
Active: active (running) since Sat 2017-08-19 16:53:52 BST; 4s ago
Docs: https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
Main PID: 6744 (php)
CGroup: /system.slice/mqtt_input.service
└─6744 /usr/bin/php /var/www/emoncms/scripts/phpmqtt_input.php
Aug 19 16:53:52 rpi3gjw systemd[1]: Started Emoncms MQTT Input Script.
Aug 19 16:53:52 rpi3gjw mqtt_input[6744]: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20131226/dio.so’ - /usr/lib/php5/20131226/dio.so: cannot open shared object file: No such file or dire…Unknown on line 0
Hint: Some lines were ellipsized, use -l to show in full.
[email protected]:/var/www/emoncms/Modules/feed/engine $ sudo systemctl status mqtt_input -n20 -l
● mqtt_input.service - Emoncms MQTT Input Script
Loaded: loaded (/etc/systemd/system/mqtt_input.service; enabled)
Active: active (running) since Sat 2017-08-19 16:53:52 BST; 2min 10s ago
Docs: https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
Main PID: 6744 (php)
CGroup: /system.slice/mqtt_input.service
└─6744 /usr/bin/php /var/www/emoncms/scripts/phpmqtt_input.php
Aug 19 16:53:52 rpi3gjw systemd[1]: Started Emoncms MQTT Input Script.
Aug 19 16:53:52 rpi3gjw mqtt_input[6744]: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20131226/dio.so’ - /usr/lib/php5/20131226/dio.so: cannot open shared object file: No such file or directory in Unknown on line 0

Are the PHP warnings a problem? If so, any ideas about what I have done wrong and how to fix it?
Note - I do not have emonHub installed because I intend to pump data via MQTT into Emon MQTT input and the local emoncms.