-
Notifications
You must be signed in to change notification settings - Fork 750
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
Add or allow adding currency symbol to all costs in default dashboards #3137
Comments
Well, $ would obviously not be correct for me... |
This would be very useful since when traveling abroad charges are in different currencies even at Tesla Superchargers. |
Hi all, +1 for this feature :) |
When modifying grafana's dashboard to save, it prompts
$ docker cp teslamate-grafana-1:/etc/grafana/provisioning/dashboards/dashboards.yml /tmp/
$ vim /tmp/dashboards.yml
apiVersion: 1
providers:
- name: 'teslamate_EN'
orgId: 1
folder: TeslaMate_EN
folderUid: Nr4ofiDZk
type: file
disableDeletion: false
editable: true
updateIntervalSeconds: 86400
# newly added
allowUiUpdates: true
options:
path: /dashboards_en
- name: 'teslamate_internal'
orgId: 1
folder: Internal
folderUid: Nr5ofiDZk
type: file
disableDeletion: false
editable: true
updateIntervalSeconds: 86400
# newly added
allowUiUpdates: true
options:
path: /dashboards_internal
- name: 'teslamate_reports'
orgId: 1
folder: Reports
folderUid: Nr6ofiDZk
type: file
disableDeletion: false
editable: true
updateIntervalSeconds: 86400
# newly added
allowUiUpdates: true
options:
path: /dashboards_reports
$ docker cp /tmp/dashboards.yml teslamate-grafana-1:/etc/grafana/provisioning/dashboards/dashboards.yml
$ docker restart teslamate-grafana-1 |
Hi. |
This fixed it. I had to change I tried FTPing into the server to change the file manually without CLI, but I straight up cannot find where Graphana's files are stored. There is no Graphana folder in /etc/ or in /var/lib/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi everyone, since last update, it seems this solution does not work anymore. Once restarted, Grafana is not working anymore. I need to pull the clean image to get it work :s |
@JakobLichterfeld @swiffer @DrMichael time to add another setting that allows a user to insert their desired currency? Similar to temperature, tire pressure and length. Then use that variable before the value. Is that even possible? |
Hm, on the one hand I do see a bit of improvement in UX, but on the other hand there comes lots of drawbacks with it. More settings mean more room for failure. What If someone moves the location where it is now another currency. My expectation would be an automatic conversion in my currency from setting. All this is not in the scope of TeslaMate nor should it be. So I strongly vote against it. Hm, on the one hand I see a slight improvement in the UX, but on the other hand there are a lot of drawbacks. More settings means more room for error. What if someone changes location, with a different currency. As a user I would expect an automatic conversion to my currency from the settings. All this is not in the scope of TeslaMate, nor should it be. So I strongly vote against it. |
Well, temperature, tire pressure and length are coming from Tesla, whereas the costs are in the responsibility of the user itself. |
Ok with adding a symbol to make it visually more appealing but agree with both of you that that might open expectations of handling & converting currencies - and as currency exchange rates are changing i wouldn' step into the topic at all. |
I understand your arguments. Maybe a "kind of solution" would be to set by default dashboards editable by users. I think it would be enough for most of users, just to be able to add their own currency if they want, but not an among of work for devs. |
we are doing that with PR #4338 - however changes are overwritten on update. |
Is there an existing issue for this?
What happened?
The current default dashboards in Teslamate do not have any currency symbols
While adding a currency symbol to these values is possible fairly easily:
The changes cannot be saved as Grafana says that it "Cannot save provisioned dashboard"
A potential workaround would be to specify a currency symbol in preferences and have all dashboards take this symbol over. Alternatively, telling Grafana to allow saving provisioned dashboards somehow would also work
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
Screenshots
No response
Additional data
Grafana v8.5.6 (623255cf2d)
Type of installation
Docker
Version
v1.27.1
The text was updated successfully, but these errors were encountered: