Node-red user piTest -R

Topics about the Software of Revolution Pi
Post Reply
rhys_m
Posts: 2
Joined: 22 Nov 2024, 12:05

Node-red user piTest -R

Post by rhys_m »

Hi,

Recently upgraded a device to bookworm, node-red appears to now be running with limited priveleges which is great. However I can't seem to run piTest commands properly from node-red. Do I need to give access to the nodered user? I do get a return when running piTest -d, however not the return expected. Output from terminal

Code: Select all

Found 2 devices:

Address: 0 module type: 105 (0x69) RevPi Connect V1.0
Module is present
     input offset: 113 length: 6
    output offset: 119 length: 5

Address: 31 module type: 97 (0x61) RevPi DI V1.5
Module is present
     input offset: 0 length: 70
    output offset: 70 length: 18
Output from node-red

Code: Select all

Cannot retrieve device list: No such device
https://github.com/rhysmorgan134
User avatar
RevPiModIO
KUNBUS
Posts: 335
Joined: 20 Jan 2017, 08:44
Contact:

Re: Node-red user piTest -R

Post by RevPiModIO »

Hi!

In addition to Node-RED, the piControl device has also been improved in security. Only users of the group "picontrol" may access the process image via piTest, for example. However, you can easily change this for the user "nodered".

Code: Select all

# Add user nodered to group picontrol
sudo usermod -a -G picontrol nodered

# Restart Node-RED
pi@RevPi94373:~$ sudo systemctl restart nodered
That's all. Now you can use piTest again in the Exec node of Node-RED.

Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!
rhys_m
Posts: 2
Joined: 22 Nov 2024, 12:05

Re: Node-red user piTest -R

Post by rhys_m »

Awesome, thanks alot for the rapid response! Works perfectly
https://github.com/rhysmorgan134
Post Reply