Hi
I am planning a project on Raspberry Pi 4, running either Maker Edition or Edge
I would like to trigger an Python Script from within Ignition. The script will initiate a photo via the Pi’s camera, plus a little image processing. The script also needs to read/write to the same database as Ignition, probably MariaDB.
I have searched the forum and remain unclear
Questions and or comments
Is this feasible?
Is Edge “lighter” than maker. (Edge has all capabilities required)
I assume I would use “system.util.execute()” scripting function. Is that correct? Where do I store the external function? Would it be defined a ***.py file?
Can my external python script access same database as Ignition (I saw somewhere that this could be problematic)?
Why on Windows? RPi doesn't run Windows, so your experiments won't be valid. Also, are you taking into account that gateway and perspective script run as part of the service. On windows, that service has numerous security and user-interface limitations.
It can, but executable access controls and PATH rules are different, and the service environment is different. In my opinion, testing on Windows for a future Linux environment is wasted time.