Skip to content

Parse a sensor that already gives a list of (timestamp, values) #229

Answered by dbuezas
r-jean-pierre asked this question in Q&A
Discussion options

You must be logged in to vote

I think #213 is a good base for this. In this case it should be something like this: (not testee)

 filters:
      - fn: |-
          ({ meta }) => ({
            xs: meta.HistoryConsumption.map(([date, value ]) => new Date(date)),
            ys: meta.HistoryConsumption.map(([date, value ]) => value),
          })

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dbuezas
Comment options

You must be logged in to vote
3 replies
@dbuezas
Comment options

@r-jean-pierre
Comment options

@dbuezas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants