I’ve just installed emoncms on an Ubuntu VM, with install_mosquitto=false in config.ini. (I already have a working mqtt instance.)
I’m new to this, but my understanding is that there’s a service which runs emoncms_mqtt.php which in turn subscribes to emon/ topics and turns them into inputs. Please tell me if I’ve misunderstood.
In the admin panel, emoncms_mqtt is stuck at “Activating” and doesn’t appear to want to start.
I found the php file and ran it from a command line, and it outputs the following
PHP Fatal error: Uncaught Error: Class "Mosquitto\Client" not found in /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php:123
Stack trace:
#0 {main}
thrown in /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php on line 123
Fatal error: Uncaught Error: Class "Mosquitto\Client" not found in /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php:123
Stack trace:
#0 {main}
thrown in /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php on line 123
I have a great deal of experience as a programmer and sys admin, but I seem to have totally avoided knowing anything useful about php.
Please could someone enlighten me? Is this error spurious or does it point to something that needs installing, and if so, how, please?
Thanks.