I’m trying to get this to run on my Ubuntu installed emoncms (/var/www/html/emoncms). Have edited the locations to suit, but can’t get mqtt_input to run.
Jan 15 14:47:46 ip-172-31-45-141 systemd[1]: Stopped LSB: Starts phpmqtt_input agent daemon at boot time.
Jan 15 14:47:46 ip-172-31-45-141 systemd[1]: mqtt_input.service: Unit entered failed state.
Jan 15 14:47:46 ip-172-31-45-141 systemd[1]: mqtt_input.service: Failed with result ‘exit-code’.
I have tried running the underlying php file directly …
ubuntu@ip-172-31-45-141:/var/www/html/emoncms/scripts$ sudo php phpmqtt_input.php
PHP Fatal error: Uncaught Error: Class ‘Mosquitto\Client’ not found in /var/www/html/emoncms/scripts/phpmqtt_input.php:101
Stack trace: #0 {main}
thrown in /var/www/html/emoncms/scripts/phpmqtt_input.php on line 101