Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate influxdb continuous queries using a template versus bespoke, hand-hacked code. #133

Open
Nexarian opened this issue Jan 18, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Nexarian
Copy link
Contributor

In, #119, we realized that in order to utilize multiple TEGs (Tesla Energy Gateways), the CQ queries need to change, and they will need to adapt to what TEGs (Tesla Energy Gateways) the user has installed in their system.

Right now these queries are written assuming a single TEG, but given that some metrics (mainly strings and alerts among others) will need to be individualized to the gateways, this needs to evolve.

I propose using Jinja2 or another Python-friendly templating engine to generate these, with an input file that characterizes the topology of the system. It will be much, much easier to dynamically generate these (and/or have a few pre-generated templates for the most common setups), then to rely on a hand-hacked bespoke SQL query file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants