Page 1 of 1

Configure without Pictory

Posted: 18 May 2017, 09:12
by JanMakowski
Hello,

we bought a RevPi with a DIO module for evaluation. We use the RevPi to analyse sensor signals and then send triggers to external components via the DIO module. We plan to ship the system as a solution. So far I've not been able to interface with the DIO module. With piTest, I can find the DIO module but it says that it's not configured. When reading values from the input section of the DIO module, I always get zeros regardless of the signals at the inputs. How can I configure the piControl module without Pictory. When we deploy our solution, we don't want to configure each shipped device manually. We either want to copy a configuration file or - preferred solution - do some API calls to configure the RevPi.

Jan

Re: Configure without Pictory

Posted: 18 May 2017, 12:56
by volker
Hi Jan,
actually that is quite simple: if you have done the configuration by PiCtory ans saved it you have created the JSON file which during boot time is read by PiControl. So for deployment all you need is to copy that file on every system which needs it.
The file can be found here:
/var/www/pictory/projects/_config.rsc