Tad new here, I’m trialling the UPS hat at the moment and I seem to be running into a few teething issues.
Upon installing the software via curl, I noticed that the software had noticed the lack of ‘pi’ user (I develop industrial cryogenic vessel interfaces, so security vulnerabilities like generic usernames are a BIG no no). It seems that because of this, the software is not transmitting information to the cloud.
Looking into brought me to this post: connected but no data
(TL;DR) solution suggested was:
# create user power, add power to the groups: sudo, i2c, video sudo adduser power sudo adduser power sudo sudo adduser power i2c sudo adduser power video # edit /etc/sudoers and at the end of the file insert a line with the following content: "power ALL=(ALL) NOPASSWD:ALL". echo "power ALL=(ALL) NOPASSWD:ALL"|sudo EDITOR='tee -a' visudo # stop pms_agent, edit user in /etc/systemd/system/pms_agent.service and start pms_agent sudo systemctl stop pms_agent sudo sed -i 's/^\(User=\).*/\1power/' /etc/systemd/system/pms_agent.service sudo systemctl start pms_agent
Unfortunately for reasons that are beyond my understanding, the section RE restarting the pms_agent fails:
uname@hostname:/home/uname# sudo systemctl stop pms_agent Failed to stop pms_agent.service: Unit pms_agent.service not loaded. uname@hostname:/home/uname# sudo sed -i 's/^\(User=\).*/\1power/' /etc/systemd/system/pms_agent.service sed: can't read /etc/systemd/system/pms_agent.service: No such file or directory uname@hostname:/home/uname# sudo systemctl start pms_agent Failed to start pms_agent.service: Unit pms_agent.service not found.
I don’t suppose anyone could weigh in with any suggestions to what may be going wrong here?
Thanks in advance,