Comments (10)
Adding TM_TZ
will not help here. There is no code inside TeslaMate that looks at TM_TZ
. If you remove TZ
and replace it with TM_TZ
then you haven't actually set the timezone.
The key problem here is that PL
is not a valid TZ identifier.
Look at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones I think the correct value is "Poland".
iex(4)> Timex.Timezone.get("PL")
{:error, :time_zone_not_found}
iex(5)> Timex.Timezone.get("Poland")
#<TimezoneInfo(Poland - CET (+01:00:00))>
from teslamate.
Well, it turns out I was wrong. I actually have 2 cars connected to Teslamate and by checking Grafana I've just found out that the one that my father drives was being charged when I was getting this error.
Now that both cars are not being charged, the website loads fine, so it seems that this is indeed related to the estimated completion time feature.
from teslamate.
Try adding TM_TZ, the timezone and keep TZ in the file as well. Restart the container and see what happens when you start charging.
from teslamate.
The key problem here is that
PL
is not a valid TZ identifier.Look at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones I think the correct value is "Poland".
It seems like this is the solution, I'll test it soon. I think the most appropriate value would be "Europe/Warsaw" but both should work.
from teslamate.
I can confirm that the invalid identifier was the problem. I've changed it to Europe/Warsaw and everything works now :)
from teslamate.
Are you charging at the time of the internal server error?
Does your Docker file contain the TZ environment variable?
https://docs.teslamate.org/docs/configuration/environment_variables
Release 1.28.3 introduced estimated completion time for charging and we are seeing errors while charging.
from teslamate.
Are you charging at the time of the internal server error?
I checked both while charging and not, it didn't change anything.
Does your Docker file contain the TZ environment variable? https://docs.teslamate.org/docs/configuration/environment_variables
Yes, it does. TZ=PL
from teslamate.
Try adding TM_TZ, the timezone and restart the container. Reference #3678
from teslamate.
Great catch @brianmay, thank you.
from teslamate.
Please note that when setting your TZ env you can't have it in quotes.
eg. In a Docker compose
- TZ="Australia/Brisbane"
Fails, but
- TZ=Australia/Brisbane
Works.
from teslamate.
Related Issues (20)
- Unable to delete, edit or add geofencing HOT 2
- Net and gross values in different places HOT 2
- Overview Dashboard Slow (Inside / Outside / Driver Temp) HOT 9
- Little issue that I have on migration (solved), now TeslaFI Import issue HOT 9
- perf: updates dashboard slow HOT 10
- [dev] Unable to establish code space; postgres user / password not established HOT 3
- Grafana maps not fitting data; zoomed out to world view HOT 5
- State showing offline when alseep since 2024.14.9 HOT 2
- Can't set charging session cost HOT 6
- Wrong battery capacity in Battery Health HOT 7
- Lost all Map Details upgrading from 1.29.2 to 1.30.0 HOT 3
- Grafana map automatic zoom not working HOT 2
- 1.30.1 - Localized Grafana doesn't work as per claim in #4064 HOT 16
- Battery Health not plotting HOT 4
- Teslamate is failing to run after update HOT 2
- Unauthorized using Tesla Fleet API directly HOT 12
- "Range Added" is incorrect, and has incorrect units on the "Charges" dashboard HOT 1
- Status: 500. Message: db query error: pq: time zone "$__timezone" not recognized on Statistics dashboard HOT 2
- Switching to Fleet API from current Owners API. Refersh Token mismatch issue
- "Last status change" in the status panel is not displayed correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamate.