python-e3dc icon indicating copy to clipboard operation
python-e3dc copied to clipboard

Read multiple powermeter

Open maaque opened this issue 3 years ago • 1 comments

I have 2 power meter installed. How do I read the status of each of them? I do not find the correct tags in _rscptags.

maaque avatar Mar 12 '22 15:03 maaque

get_powermeter_data does allow passing an index of your powermeters: https://github.com/fsantini/python-e3dc/blob/master/e3dc/_e3dc.py#L1723 You will need to try out which are the correct indexes in your configuration. 0 and 6 are root powermeter, and other indexes will be additional meters. Once you know the indexes in your configuration, you can optionally initialize the package with this information:

{
  "powermeters": [
    {
      "index": 0
    },
    {
      "index": 3
    }
  ]
}

and also optionally use get_powermeters_data() to query both in one go.

vchrisb avatar Mar 12 '22 19:03 vchrisb