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

How to set "measurement" with code #24

Open
github-ps1304 opened this issue Dec 20, 2021 · 0 comments
Open

How to set "measurement" with code #24

github-ps1304 opened this issue Dec 20, 2021 · 0 comments

Comments

@github-ps1304
Copy link

Hi - can you help me with you script?
Example csv:

timestamp,Ladezustand,Batterie,Batterie (Entladen),Netzeinspeisung,Netzbezug
01.05.2021 00:00,59,0,122,1,1
01.05.2021 00:00,40,0,140,5,2

my dbname is "test" - how to set "measurement" in influxdb correct with your script when trying to access
the data via Grafana? from my perspective measuremtn should contain all names in the header row like Ladezustand etc.
the values below should be visible as values

For example a Grafana query looks like this:

SELECT last("Leistung") FROM "Batterie" WHERE $timeFilter

where "Leistung" should be a value from csv above eg: 122, "Batterie is the column header name and one measurement

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

1 participant