Replies: 12 comments 53 replies
-
Starting with line 15
Possible Flux Equivalent
|
Beta Was this translation helpful? Give feedback.
-
Starting line 16
Since this is pulling from autogen.http, I beleive I need to get line 15 functional before I can do this one. Thankfully, this one doesn't look like it will be to hard once line 15 is working. |
Beta Was this translation helpful? Give feedback.
-
Line 17
|
Beta Was this translation helpful? Give feedback.
-
Current status: I am trying to mirror the screen shots in the readme her: https://github.com/jasonacox/Powerwall-Dashboard/ Issues so far:
Changes:
|
Beta Was this translation helpful? Give feedback.
-
As mentioned, skipping daily and monthly aggregates. I am debating taking a page from @nberardi and doing the rest all in a single task, but for now, still breaking out each one code wise. This is the new way I am using the date.truncate. It also allows this same query to be run to populate older data by adjusting the start period from -1m to whatever while ensuring all timing is on the minute exactly. Also fun new trick I learned. I'm not sure if Tesla supports up to 20 powerwalls, but the query does :)
|
Beta Was this translation helpful? Give feedback.
-
Lines 20-23
|
Beta Was this translation helpful? Give feedback.
-
Hey @jasonacox I am working on lines 25-31, which is basically vitals and I have a few questions whenever you get a minute. I see several fields that are are currently not aggregating, so they are lost with the retention policy. I do not see them being reported on, but would there be any reason to capture these long term?
Second question, this might relate to more people then me. I see you are capturing a few fields on line 30 like METER_Z and similar. I do not have any METER_Z but I do have a METER_Y which you would not be capturing. So now I am debating on trying to 1:1 move this to Flux or if I should keep with the variable method I am doing to account for these differences like Y vs Z and allowing a range. Also on why some fields are abandoned and not others, even though I do not see the ones that are captured represented anywhere on the dashboard, like the METER_Z stuff. |
Beta Was this translation helpful? Give feedback.
-
Lines 33-35 I did not include backup_reserve_percent. I liked the idea of this being in the instant_power(autogen) area since it is used in that same are on the dashboard. I am going to amend it there. Following the same thoughts, I am capturing all POD data here.
|
Beta Was this translation helpful? Give feedback.
-
Line 36
|
Beta Was this translation helpful? Give feedback.
-
Ok @jasonacox This is just about done Is there a better way for me to share all the queries and tasks then in this thread? Still extremely new to this and don't want to mess something up inadvertently. Couple of notes on differences at this point in time.
|
Beta Was this translation helpful? Give feedback.
-
ok @jasonacox I think I did this correctly. I got everything added and provided some instructions which I hope are clear enough. https://github.com/ThePnuts/Powerwall-Dashboard/tree/main/tools/influxdb2 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Starting a new thread to work on converting all of these continuous queries https://github.com/jasonacox/Powerwall-Dashboard/blob/main/influxdb/influxdb.sql into the Tasks equivalent for Influxdb 2. Apologies if this is not the best way to do this, new to github and this in general.
Mostly using this thread to track myself and progress as well as talk out loud if anyone wants to assist.
Edit:
As I learned that Influx 2+ changes how retention and databases are setup. As a result of this, I am working with the following differences from the way this currently works for Influx 1.8 which is used for this repository.
Weather data from weather411 is being logged to bucket: raw_weather
powerwall/solar data via Telegraf is being logged to bucket: raw_powerwall
As I am rewriting the continuous queries (influx 1.8) into tasks (influix2.0) for down sampling, these will go into the bucket: powerwall
This should maintain consistency with the majority of this repository.
Beta Was this translation helpful? Give feedback.
All reactions