Giter VIP home page Giter VIP logo

Comments (10)

brianmay avatar brianmay commented on July 19, 2024 2

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.

Kacper2Kaczmarek avatar Kacper2Kaczmarek commented on July 19, 2024 1

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.

cwanja avatar cwanja commented on July 19, 2024 1

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.

Kacper2Kaczmarek avatar Kacper2Kaczmarek commented on July 19, 2024 1

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.

Kacper2Kaczmarek avatar Kacper2Kaczmarek commented on July 19, 2024 1

I can confirm that the invalid identifier was the problem. I've changed it to Europe/Warsaw and everything works now :)

from teslamate.

cwanja avatar cwanja commented on July 19, 2024

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.

Kacper2Kaczmarek avatar Kacper2Kaczmarek commented on July 19, 2024

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.

cwanja avatar cwanja commented on July 19, 2024

Try adding TM_TZ, the timezone and restart the container. Reference #3678

from teslamate.

cwanja avatar cwanja commented on July 19, 2024

Great catch @brianmay, thank you.

from teslamate.

rhapgood avatar rhapgood commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.