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

Getting multiple values of a single variable #24

Open
TamayoSH opened this issue Apr 3, 2023 · 1 comment
Open

Getting multiple values of a single variable #24

TamayoSH opened this issue Apr 3, 2023 · 1 comment

Comments

@TamayoSH
Copy link

TamayoSH commented Apr 3, 2023

i'm trying to get all the values from a variable with: get_values(), but it only gets the last value insted.
does anybody have the same problem?

this is my code:
newVariable = miVariable.get_values()
print(newVariable)

this is the result:
[{'timestamp': 1680562830666, 'value': 150.0, 'context': {}, 'created_at': 1680562830666}]

@SunandMittal
Copy link

I am also facing same issue, I tried getting 10 or 20 values.
volt1Var.get_values(5)
But, we just get one value.
[{'timestamp': 1722784240998, 'created_at': 1722784240998, 'value': 241.28, 'context': {}}]

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