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

A different meter list response with named meter topics #22

Open
stephenhouser opened this issue Sep 16, 2021 · 0 comments
Open

A different meter list response with named meter topics #22

stephenhouser opened this issue Sep 16, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@stephenhouser
Copy link
Owner

Currently the meter list command returns an object that is parsed from the radio response. To assist in knowing what the meter name is for the named meter system an additional field topic is injected into the meter objects. While this helps, it might be more useful to have these meters indexed by these topics rather than their dynamic meter number.

The current result of a meter list is:

{
...
"15": { src: "TX-", num: "8", nam: "GAIN", ..., topic: "TX-/8/GAIN" }
...
}

This idea would either change this or add a new format response that would be:

{
...
"TX-/8/GAIN": { src: "TX-", num: "8", nam: "GAIN", ... }
...
}

One issue is where or how should the original meter number be reflected. Should it be a field in the meter list, perhaps meter_number

@stephenhouser stephenhouser added the enhancement New feature or request label Sep 16, 2021
@stephenhouser stephenhouser changed the title Better way to get meter topics A different meter list response with named meter topics Sep 16, 2021
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

1 participant