Hi,
Does anyone knows a propper way to load the content of rules.mk files in a python script? I don’t know the estructure used for storing it, but I need to open it from python to process it and don’t know how to load from file
I read in documentation that this files are stored in some kind of python way and I’d like to know how to load them into a structure more easy to manipulate and read it.
You should really use the API for that task. The new REST-API is currently not able to edit rules but the older WATO-API is still available: Configuration via HTTP-API
Not sure in which patch level of 1.4 but it was a request from us to be able to create rules with API. I will check with my colleague how it has to be used.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.