Open BrianJKoopman opened 5 years ago
Sorry I may have not been clear on slack, but the RPC I was talking about was to get all feeds for a particular agent. You can do this by calling observatory.instance-id
and passing it the string get_feeds
as an argument.
If you want a single container for all agents, I'd recommend using the registry to get feed info for all registered agents. This is what the aggregator does to figure out which feeds to subscribe to.
Ah, I see, thanks for the clarification Jack. Are there agents that publish data to multiple feeds yet?
To get the feed info for all registered agents we'd need to subscribe to the "agent_activity" feed and have a client call "dump_agent_info"?
I don't think there are currently any agents that have more than one feed, but maybe the Lakeshore372 agent might want a separate feed for temperatures and heater outputs... For the load curves I just put them in the same feed.
Yeah, that'll do it.
Pattern based subscriptions is likely how this should be implemented. The structure of the cache might have to be adjusted.
As mentioned in #38, there's been some discussion about enabling the data_feed server to handle all OCS feeds. There are a couple of points to bring up for discussion.