Skip to content
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

NTP configured, but localtime false #3345

Closed
djusHa opened this issue Oct 18, 2024 · 4 comments
Closed

NTP configured, but localtime false #3345

djusHa opened this issue Oct 18, 2024 · 4 comments

Comments

@djusHa
Copy link

djusHa commented Oct 18, 2024

The Problem

Hi,
it seems, the device try to sync time BEFORE WiFi Connection is established, so my device time is always 1970.
Please see Log's

Version

16.0.0-RC4

Logfile

[0d00h00m00s] 1970-01-01T05:50:42	<INF>	[MAIN] =================================================
[0d00h00m00s] 1970-01-01T05:50:42	<INF>	[MAIN] ==================== Start ======================
[0d00h00m00s] 1970-01-01T05:50:42	<INF>	[MAIN] =================================================
[0d00h00m01s] 1970-01-01T05:50:43	<INF>	[MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m01s] 1970-01-01T05:50:43	<INF>	[MAIN] Total heap: 4382911 byte
[0d00h00m03s] 1970-01-01T05:50:45	<INF>	[MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m03s] 1970-01-01T05:50:45	<INF>	[SDCARD] Basic R/W check started...
[0d00h00m04s] 1970-01-01T05:50:46	<INF>	[SDCARD] Basic R/W check successful
[0d00h00m04s] 1970-01-01T05:50:46	<INF>	[SNTP] TimeServer: de.pool.ntp.org
[0d00h00m04s] 1970-01-01T05:50:46	<INF>	[SNTP] Configuring NTP Client...
[0d00h00m04s] 1970-01-01T06:50:47	<INF>	[SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m05s] 1970-01-01T06:50:47	<INF>	[SNTP] time zone: +0100 Delta to UTC: 3600 seconds
[0d00h00m05s] 1970-01-01T06:50:47	<INF>	[SNTP] The local time is unknown, starting with 1970-01-01 06:50:47
[0d00h00m05s] 1970-01-01T06:50:47	<INF>	[SNTP] Once the NTP server provides a time, we will switch to that one
[0d00h00m05s] 1970-01-01T06:50:47	<INF>	[MAIN] CPU frequency: 160 MHz
[0d00h00m06s] 1970-01-01T06:50:48	<INF>	[SDCARD] Folder/file presence check started...
[0d00h00m06s] 1970-01-01T06:50:48	<INF>	[SDCARD] Folder/file presence check successful
[0d00h00m06s] 1970-01-01T06:50:48	<INF>	[MAIN] Tag: '16.0.0-RC4', Release: 16.0.0-RC4 (Commit: 0a4560e+), Date/Time: 2024-10-06 22:22, Web UI: Release: 16.0.0-RC4 (Commit: 0a4560e+)
[0d00h00m06s] 1970-01-01T06:50:48	<INF>	[MAIN] Reset reason: Via esp_restart
[0d00h00m06s] 1970-01-01T06:50:49	<INF>	[WLANINI] SSID: XXXXXXXXX
[0d00h00m07s] 1970-01-01T06:50:49	<INF>	[WLANINI] Password: XXXXXXXX
[0d00h00m07s] 1970-01-01T06:50:49	<INF>	[WLANINI] Hostname: GASOMETER
[0d00h00m07s] 1970-01-01T06:50:49	<INF>	[WLANINI] RSSIThreshold: -75
[0d00h00m07s] 1970-01-01T06:50:49	<INF>	[MAIN] WLAN config loaded, init WIFI...
[0d00h00m07s] 1970-01-01T06:50:49	<INF>	[WIFI] Automatic interface config --> Use DHCP service
[0d00h00m08s] 1970-01-01T06:50:50	<INF>	[WIFI] Set hostname to: GASOMETER
[0d00h00m08s] 1970-01-01T06:50:50	<INF>	[WIFI] Init successful
[0d00h00m10s] 1970-01-01T06:50:52	<INF>	[WIFI] Connected to: XXXXXXXXX, RSSI: -47
[0d00h00m12s] 1970-01-01T06:50:54	<INF>	[WIFI] Assigned IP: 192.168.178.141
[0d00h00m28s] 1970-01-01T06:51:10	<INF>	[MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m28s] 1970-01-01T06:51:10	<INF>	[MAIN] SD card info: Name: SD01G, Capacity: 982MB, Free: 974MB
[0d00h00m31s] 1970-01-01T06:51:13	<INF>	[MAIN] Initialization completed successfully
[0d00h00m33s] 1970-01-01T06:51:15	<INF>	[TFLITE] Trying to load the model. If it crashes here, it ist most likely due to a corrupted model!
[0d00h00m33s] 1970-01-01T06:51:15	<INF>	[LOGFILE] Set log level to DEBUG
[0d00h00m33s] 1970-01-01T06:51:15	<INF>	[MAINCTRL] Starting Flow...
[0d00h00m34s] 1970-01-01T06:51:16	<DBG>	[MAINCTRL] ----------------------------------------------------------------

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

@djusHa djusHa added the bug Something isn't working label Oct 18, 2024
@caco3
Copy link
Collaborator

caco3 commented Oct 19, 2024

How long did you wait after the device started before you checked the logfile?
See this log line: [0d00h00m05s] 1970-01-01T06:50:47 <INF> [SNTP] Once the NTP server provides a time, we will switch to that one

If it still never gets the right time, the device has no access to the NTP server!

@djusHa
Copy link
Author

djusHa commented Oct 23, 2024

switched to Tasmota

@djusHa djusHa closed this as completed Oct 23, 2024
@caco3
Copy link
Collaborator

caco3 commented Oct 23, 2024

Thats an odd response :)
Tasmota and our project have no purpose in common...

@SybexX
Copy link
Collaborator

SybexX commented Oct 23, 2024

@caco3 He's probably using one of these now:

Unbenannt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants