-
Notifications
You must be signed in to change notification settings - Fork 28
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
indicator_ha showing one hour less #48
Comments
I hade the same issue, and it seems to be caused by a part of the code in indicator_city.c To be precise it occurs in "static void __indicator_http_task(void *p_arg)" I adjusted:
into
I agree it is somewhat radical, and limits my zone to UTC-2:00, so please if you use this adjust this to your own zone If others know of a better fix, please share |
Hey @metlinux The actual issue is that the code fetches the UTC based on you IP address using an API. Yes you can either hard code the UTC or change the snprintf line so that the UTC is formatted properly as expected by dependent code You can check this #25 issue as it is a similar one and I have provided the fix there. |
@yupyvovarov It seems to be connection issue with your wifi ? Is It able to connect with your wifi ? Have you used the same code provided in the release build ? |
@the-confused-genius No it's not. The WiFi connection is OK. It can connect to the internet, retrieve location, and send metrics to HA, but do not set a time zone. As I mentioned, the basic example firmware works perfectly, the ha example - doesn't. |
@metlinux Your fix will probably work. But I am curious why the same indicator_city code works for indicator_basic. What is the difference? |
that mbedtls_ssl_setup error implies that there isn't enough memory. If you check out What's a bit interesting is I added a log for getting the current heap free ( |
indicator_hr is showing one hour less than it should
Time Auto Update: ON
timezone Europe/Berlin
two possible culprits:
The text was updated successfully, but these errors were encountered: