-
Notifications
You must be signed in to change notification settings - Fork 679
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
Suggestion - In dashboard can we have the car names instead of ID? #93
Comments
Yes, that would be great! I haven't figured out how to do it yet. But there's probably a clever way. |
When you insert the car ID in the database, perhaps if we add a column and call it CarName or something similar? From Tesla, the API returns this as "display_name" and it seems you are already logging this. Here is what I saw - looks like a function called create_new in vehicles.ex. Just using the display_name in addition to everything else might work.
I don't know Elixir, but sometime back I had written a Tesla Token Generator (for windows) and you can see the details on what the API returns here. Happy to try it out and help test/debug. Thanks again! |
Yes, storing the |
Do you think, it could be something like car_id - display_name. So it would show up like 1 - WhateverCoolNameYourCarHas - or something along those lines. |
If there is some way to replace text inside a variable, that could work! Another idea is to use two variables: one to select the name and another hidden one that references the name variable fetches the corresponding car id. |
Oh, there is a way to create a key/value variables in Grafana! SELECT name AS __text, id AS __value FROM cars |
So I am curious if this is a simple join or something more - when looking at the various dashboards, instead of the car numeral ("1") in my case, is it possible to show the Car name instead? This is the drop down in the top left corner.
The text was updated successfully, but these errors were encountered: