Hello all, I am trying to retro-actively generate kWh logs from power feed. I selected power to kWh and chose the input feed and selected the postporcess name. I selected from start and clicked start.
The response I got was “added to queue” It has been in queue every since, over 5 days from now. I have added other processes and same thing. (See screenshot)
Thanks for the pointer.
I decided to start with the emoncms_mqtt script, discovered I did not have mqtt module for php installed but after installing it, I still could not get this to work.
I get this from systemctl
emoncms_mqtt.service - Emoncms emoncms_mqtt script
Loaded: loaded (/var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2023-06-26 20:01:02 WAT; 31s ago
Docs: https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
Process: 23756 ExecStartPre=/bin/mkdir -p ${LOG_PATH} (code=exited, status=0/SUCCESS)
Process: 23757 ExecStartPre=/bin/chown ${USER} ${LOG_PATH} (code=exited, status=0/SUCCESS)
Process: 23758 ExecStartPre=/bin/touch ${LOG_PATH}/emoncms-mqtt.log (code=exited, status=0/SUCCESS)
Process: 23759 ExecStartPre=/bin/chmod 666 ${LOG_PATH}/emoncms-mqtt.log (code=exited, status=0/SUCCESS)
Process: 23760 ExecStart=/usr/bin/php /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php (code=exited, status=0/SUCCESS)
Main PID: 23760 (code=exited, status=0/SUCCESS)
Jun 26 20:01:02 localhost systemd[1]: Started Emoncms emoncms_mqtt script.
Jun 26 20:01:02 localhost emoncms_mqtt[23760]: PHP Notice: Undefined index: phpfiwa in /var/www/emoncms/process_settings.php on line 83
Jun 26 20:01:02 localhost emoncms_mqtt[23760]: PHP Notice: Trying to access array offset on value of type null in /var/www/emoncms/process_settings.php on line 85
Are you using emonscripts to build this system? I’m guessing not. That is the starting point for your issues. It all works fine on PHP8.x when built with the scripts.
It turned out to be a case of fixing the chown user in the script settings from “pi” and enabling the service in settings.ini. Both services are running fine now