rhodesman / teslaPowerDash

GNU General Public License v3.0
85 stars 11 forks source link

Weather info stuck in N/A #5

Closed shanep2300 closed 5 years ago

shanep2300 commented 5 years ago

I know this is a third party api, but when I get the site with my lat/lon it works fine. Grafana doesn't want to display anything though and the queries are set up correctly.

liveaverage commented 5 years ago

@shanep2300 Just wanted to mention that the telegraf input for weather wasn't defined in the repo's configuration. I had to manually add this, but it worked fine once present.: https://github.com/liveaverage/docker-powerwall-dashboard/blob/master/powerwall.conf#L16-L26

Note: I provided a name override of "weather" to make the query reference more universal when reusing the grafana dashboard: https://github.com/liveaverage/docker-powerwall-dashboard/blob/master/graf_dash.json#L730-L733

rhodesman commented 5 years ago

Thank you @liveaverage !!

shanep2300 commented 5 years ago

@liveaverage That worked perfectly!! How do you use the "weather" name in Grafana (new to Grafana :))?

Lastly, do you know how to change the temp to F? I'm guessing I would have to add a math eq to get it working properly?

liveaverage commented 5 years ago

The second link (https://github.com/liveaverage/docker-powerwall-dashboard/blob/master/graf_dash.json#L730-L733) shows the raw query in an exported grafana dashboard referencing the weather table, along with the conversion to Fahrenheit -- I had the same preference :) I store the values as Celsius and render as Fahrenheit with the grafana query. You can manipulate via GUI, too, by clicking the weather "panel" and selecting "Edit": https://imgur.com/a/AUPBYLQ

shanep2300 commented 5 years ago

Awesome! Thank you very much for the help!