SmartGridready / SGrPython

Development of SGr PyPi package
Other
1 stars 1 forks source link

8 generic variable substitution in external interfaces xml #9

Closed marco92 closed 5 months ago

marco92 commented 8 months ago

@Zupeuc as discussed, I added the dynamic replacement of variables in the xml. In a second step, we need to change the initialisation calls for Modbus TCP / RTU in the generic_interface.py

marco92 commented 8 months ago

@Zupeuc The second commit might break the parsing of the Clemap XML:

https://github.com/SmartGridready/SGrPython/pull/9/commits/da86ed1f0df123751df9f46857b9e50affeefc60

As you have the following "variable" in the XML which is not in the ini file:

<header>
    <headerName>Authentication</headerName>
    <value>Bearer {{bearerToken}}</value>
</header>