I already installed emoncms from zero through dietpi it seems that everything is going well but the data sent by emonesp by mqtt does not appear, where i would have to configure them in inputs? i am a little lost, in emoncms.org gets them well but no in local
root@emonpi:/var/www/html# service mqtt_input status
● mqtt_input.service - Emoncms MQTT Input Script
Loaded: loaded (/etc/systemd/system/mqtt_input.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2019-12-19 11:27:36 GMT; 29s ago
Docs: emoncms/MQTT.md at master · emoncms/emoncms · GitHub
Process: 1202 ExecStart=/usr/bin/php /var/www/emoncms/scripts/phpmqtt_input.php (code=exited, status=255/EXCEPTION)
Main PID: 1202 (code=exited, status=255/EXCEPTION)
root@emonpi:/var/www/html#
Service runner also try install but said me error
sudo pip install redis
sudo ln -s /var/www/emoncms/scripts/services/service-runner/service-runner.service /lib/systemd/system
sudo systemctl enable service-runner.service
sudo systemctl start service-runner.service
systemctl status service-runner.service
root@emonpi:/var/www/html/emoncms# systemctl status service-runner.service
● service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2019-12-19 11:56:42 GMT; 4s ago
Docs: emoncms/install-service-runner-update.md at master · emoncms/emoncms · GitHub
Process: 1929 ExecStart=/usr/bin/python /var/www/emoncms/scripts/services/service-runner/service-runner.py (code=exited, status=217/USER)
Main PID: 1929 (code=exited, status=217/USER)
I’m guilty for that , but DietPi and EmonCMS have moved on but it should still be possible.
The major issue is that the folder structure has changed as have the services since I wrote that and the Item I link to for the MQTT install has been depreciated - note the top heading.
I’m wondering how best to install EmonCMS onto DietPi now. I am thinking that it might be better to use the EmonScripts and tell the install script not to install the elements installed by dietpi-software. However, that is fairly high risk.
In simple terms you want to do the same as this bit of the install script
but possibly change the drop-in for the service.
What hardware are you using? Is there a specific need for DietPi? At the time I was using low power gear so wanted a lightweight base OS.
It really depends how much effort you want to put in to get it running. I suspect it will take a few attempts to get it right - when I am trying this sort of thing I tend to go back to a fresh image a couple of times when I get something wrong.
Looking at it, I think it should work if you use the EmonScript but with the appropriate changes to the config file.
It may need some manual setting of the webserver as that is all tied into the install of apache.
I know that DietPi do some interesting things when installing software so it is usually better to install from their software installer, but EmonCMS does some of the config after install.
If you stop EmonCMS installing Apache, then it will not get configured correctly!
sudo pip install redis
sudo ln -s /var/www/emoncms/scripts/services/service-runner/service-runner.service /lib/systemd/system
sudo systemctl enable service-runner.service
sudo systemctl start service-runner.service
systemctl status service-runner.service
pi@emonpi:~ $ systemctl status service-runner.service
● service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
Active: **active (running)** since Sat 2019-12-21 12:28:21 GMT; 1s ago
Docs: https://github.com/emoncms/emoncms/blob/master/scripts/services/install-service-runner-update.md
Main PID: 14983 ((python))
Memory: 0B
CGroup: /system.slice/service-runner.service
└─14983 (python)
Dec 21 12:28:21 emonpi systemd[1]: Started Emoncms service-runner Input Script.
but I a have new a problem in App My electric, not show Kwh yesterday show me but not today???
I don’t know if it has anything to do with the installation.