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

aggregated and raw values in parallel #686

Closed
indus opened this issue Dec 19, 2024 · 3 comments
Closed

aggregated and raw values in parallel #686

indus opened this issue Dec 19, 2024 · 3 comments

Comments

@indus
Copy link

indus commented Dec 19, 2024

I would like to write aggregated values (“aggtime”: 60) to an Influx database and at the same time retrieve live data (“aggtime”: -1) via the local HTTP service (httpd).

I thought I could simply specify the same device again in the configuration with a different aggtime, but unfortunately this is not possible. Maybe I'm doing something wrong in the config? Or is there another possibility?

My config looks like this:

{
  "retry": 0,
  "daemon": true,
  "verbosity": 3,
  "local": {
        "enabled": true,
        "port": 8081,    
        "index": true,   
        "timeout": 30,   
        "buffer": -1                      
  },
  "meters": [
    {
      "enabled": true,
      "skip": true,
      "aggtime": 30,
      "protocol": "sml",
      "device": "/dev/eHZ0",
      "channels": [
        {
          "api": "influxdb",
          "uuid": "a5d64b0c",
          "identifier": "1-0:16.7.0",
          "measurement_name": "eHZ0_167",
          "aggmode": "avg",
          "host": "http://172.17.0.1:8086",
          "database": "home",
          "organization": "my_org",
          "token": "my_token",
        },
        {
          "api": "influxdb",
          "uuid": "a5d64b00",
          "identifier": "1-0:1.8.0",
          "measurement_name": "eHZ0_180",
          "aggmode": "max",
          "host": "http://172.17.0.1:8086",
          "database": "home",
          "organization": "my_org",
          "token": "my_token",
        }
      ]
    }
/* *** this doesn't work ***
    ,{
      "enabled": true,
      "skip": true,
      "aggtime": -1,
      "protocol": "sml",
      "device": "/dev/eHZ0",
      "channels": [
        {
          "api": "null",
          "uuid": "8c10862c",
          "identifier": "1-0:16.7.0",
          "measurement_name": "eHZ0_167_live",
          "aggmode": "none"
        }
      ]
    }
*/
  ]
}
@r00t-
Copy link
Contributor

r00t- commented Dec 19, 2024

this is a duplicate of an issue that is on the first page of the tracker....
#609 (comment)
there is a suggested workaround there, why don't you try it and report results?

@indus
Copy link
Author

indus commented Dec 19, 2024 via email

@r00t-
Copy link
Contributor

r00t- commented Dec 20, 2024

closing as duplicate of #609

@r00t- r00t- closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants