Hi everybody,
I want to configure the components of my edge via the REST API. In my case I am using python but it should be the same for all languages.
If I update the system it would be good to first delete all components (except the core cycle and the API itself) and then run the configuration script. As I am already can already delete components by using {“method”: “createComponentConfig”} I only need to get a list of all active components and then delete them.
It is done in the simulator app in a simular way. So the question boils down to: How to get all active components via the REST API?
Thank you in advance!
Hi Nils,
there is a JSON-RPC call getEdgeConfig
that gives you the entire configuration:
{
"jsonrpc": "2.0",
"id": "UUID",
"method": "getEdgeConfig",
"params": {}
}
See the docs, that I added a few weeks ago: Configuration :: Open Energy Management System
Perfect! I didn’t know that you added the description. It really helps!
By the way, my work around was to start the simulator app that cleans up everything
Thank you again for your help Stefan!
1 Like