lephisto / tesla-apiscraper

API Scraper for pulling Vehicle Statistics from the Tesla Owner API into an InfluxDB + Grafana Dashboards
GNU Lesser General Public License v3.0
365 stars 103 forks source link

Dashboard issue #35

Open shanelord01 opened 5 years ago

shanelord01 commented 5 years ago

Getting this error when viewing the dashboard. If I edit the variable to redirect to InfluxDB satabase "tesla" it works but then "can't save provisioned dashboards" - not sure why I'm getting the error though.

Templating init failed Datasource named ${DS_TESLA} was not found

shanelord01 commented 5 years ago

OK,

I've duplicated the dashboards and added a constant variable DS_TESLA = {databasename]

This has fixed it. Am I missing something where this should be automatic?

Thanks.

wishbone1138 commented 5 years ago

I just set this up and did not run into this issue, but I named everything exactly how the Author did. When adding your dashboards did you select the tesla database?

lephisto commented 5 years ago

I will look at it if there's something left hardcoded. Thanks for hinting at this..

lephisto commented 5 years ago

Which one of the Dashboards?

shanelord01 commented 5 years ago

Hi,

All 3 of them. :(

Regards, Shane.

lephisto commented 5 years ago

Ahm I don't know what's wrong. You don't need a template variable. Grafana should ask you which Datasource to connect to a dashboard when importing. The Datasource must be created before manually, if you don't use the Docker setup.

gaardiolor commented 4 years ago

I just had the same, when creating a new dashboard, going to Settings, JSON Model, and pasting the JSON.

It works when going to the Dashboard dropdown (top-left) and click Import Dashboard.