Configure inputs from python

Moderator: RevPiModIO

Post Reply
marcel.robitaille
Posts: 3
Joined: 24 Jan 2019, 17:32

Configure inputs from python

Post by marcel.robitaille »

Hello.

First, thanks for making RevPiModIO. It's a great library.

I am wondering if there is a way to configure inputs from within RevPiModIO. For my project, this is something I am going to have to do programmatically one way or another. I have added an AIO device and want to set it up with a pretty standard configuration. It's not yet accessible through

Code: Select all

RevPiModIO.device
and

Code: Select all

piTest -d
warns me that "Module is present, but NOT CONFIGURED!!!". Is there any way to initialize it from RevPiModIO? I'd rather not have to reverse engineer PiCtory.

Thanks!
User avatar
RevPiModIO
KUNBUS
Posts: 335
Joined: 20 Jan 2017, 08:44
Contact:

Re: Configure inputs from python

Post by RevPiModIO »

Hi marcel.robitaille!

I'm sorry, but there is no way to modify the config.rsc (piCtory configuration) with our library. We "read only" the file to setup all IOs.

Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!
marcel.robitaille
Posts: 3
Joined: 24 Jan 2019, 17:32

Re: Configure inputs from python

Post by marcel.robitaille »

Hi miprotek.

Thanks for the reply. In that case, could you point me to where config.rsc is documented?

Thanks!
Post Reply