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

Timestamp value is wrong in version 15.3.0 #2610

Closed
wesseli01 opened this issue Sep 16, 2023 · 4 comments
Closed

Timestamp value is wrong in version 15.3.0 #2610

wesseli01 opened this issue Sep 16, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@wesseli01
Copy link

wesseli01 commented Sep 16, 2023

The Problem

The timestamp value is wrong. The timezone function was activated with values CET-1CEST,M3.5.0,M10.5.0/3 in config file.
But the current time will be not set in the system. I found the wrong value e.g. 1970-01-03T08:09:40 in the log file and in the data which were sent over mqtt.

Version

Release: v15.3.0 (Commit: 3fbff0a)

Logfile

[0d00h00m06s] 1970-01-03T08:09:18 <INF> [WIFI] Manual interface config -> DNS: 192.168.2.1
[0d00h00m06s] 1970-01-03T08:09:18 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m06s] 1970-01-03T08:09:18 <INF> [WIFI] Init successful
[0d00h00m09s] 1970-01-03T08:09:21 <INF> [WIFI] Connected to: 3ags, RSSI: -67
[0d00h00m09s] 1970-01-03T08:09:21 <INF> [WIFI] Assigned IP: 192.168.2.101
[0d00h00m26s] 1970-01-03T08:09:38 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 300
[0d00h00m26s] 1970-01-03T08:09:38 <INF> [MAIN] SD card info: Name: , Capacity: 3840MB, Free: 3821MB

Data log file:
1970-01-03T00:08:01+0100,main,00674.6013,674.6013,674.6013,0.000000,0.0000,no error,0.0,0.0,6.0,7.0,4.0,5.7,0.1,1.3,3.1
1970-01-03T00:11:01+0100,main,00674.6013,674.6013,674.6013,0.000000,0.0000,no error,0.0,0.0,6.0,7.0,4.0,5.7,0.1,1.4,3.1
1970-01-03T00:14:01+0100,main,00674.6013,674.6013,674.6013,0.000000,0.0000,no error,0.0,0.0,6.0,7.0,4.0,5.8,0.1,1.4,3.1
1970-01-03T00:17:01+0100,main,00674.6013,674.6013,674.6013,0.000000,0.0000,no error,0.0,0.0,6.0,7.0,4.0,5.7,0.1,1.3,3.1
1970-01-03T00:20:01+0100,main,00674.6013,674.6013,674.6013,0.000000,0.0000,no error,0.0,0.0,6.0,7.0,4.0,5.8,0.1,1.4,3.1

Expected Behavior

No response

Screenshots

image image image image

Additional Context

No response

@wesseli01 wesseli01 added the bug Something isn't working label Sep 16, 2023
@wesseli01 wesseli01 changed the title Timestamp value is wrong Timestamp value is wrong in version 15.3.0 Sep 16, 2023
@friedpa
Copy link

friedpa commented Sep 16, 2023

Please provide full LOG. I am sure that the timeserver could not be reached... you will see that in the LOG

@wesseli01
Copy link
Author

It can be. Please look. I found the info:

[0d00h00m05s] 1970-01-03T07:09:17 [SNTP] TimeServer not defined, using default: pool.ntp.org

Where can I set the time server?

Log-file:

[0d00h00m00s] 1970-01-03T07:05:33	<INF>	[MAIN] =================================================
[0d00h00m00s] 1970-01-03T07:05:34	<INF>	[MAIN] ==================== Start ======================
[0d00h00m00s] 1970-01-03T07:05:34	<INF>	[MAIN] =================================================
[0d00h00m00s] 1970-01-03T07:05:34	<INF>	[MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 1970-01-03T07:05:34	<INF>	[MAIN] Total heap: 4376759 byte
[0d00h00m04s] 1970-01-03T07:05:38	<INF>	[MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 1970-01-03T07:05:38	<INF>	[SDCARD] Basic R/W check started...
[0d00h00m04s] 1970-01-03T07:05:38	<INF>	[SDCARD] Basic R/W check successful
[0d00h00m04s] 1970-01-03T07:05:38	<INF>	[SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 1970-01-03T07:05:38	<INF>	[SNTP] Configuring NTP Client...
[0d00h00m04s] 1970-01-03T08:05:38	<INF>	[SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 1970-01-03T08:05:38	<INF>	[SNTP] The local time is unknown, starting with 1970-01-03 08:05:38
[0d00h00m05s] 1970-01-03T08:05:38	<INF>	[SNTP] Once the NTP server provides a time, we will switch to that one
[0d00h00m05s] 1970-01-03T08:05:38	<INF>	[MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[SDCARD] Folder/file presence check started...
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[SDCARD] Folder/file presence check successful
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[MAIN] Tag: 'v15.3.0', Release: v15.3.0 (Commit: 3fbff0a), Date/Time: 2023-07-22 09:42, Web UI: Release: v15.3.0 (Commit: 3fbff0a)
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[MAIN] Reset reason: Via esp_restart
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] SSID: 3ags
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] Password: XXXXXXXX
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] Hostname: watermeter
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] IP-Address: 192.168.2.101
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] Gateway: 192..168.2.1
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] DNS: 192.168.2.1
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WLANINI] RSSIThreshold: -75
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WIFI] Manual interface config -> IP: 192.168.2.101, Gateway: 192..168.2.1, Netmask: 255.255.255.0
[0d00h00m05s] 1970-01-03T08:05:39	<INF>	[WIFI] Manual interface config -> DNS: 192.168.2.1
[0d00h00m06s] 1970-01-03T08:05:39	<INF>	[WIFI] Set hostname to: watermeter
[0d00h00m06s] 1970-01-03T08:05:39	<INF>	[WIFI] Init successful
[0d00h00m09s] 1970-01-03T08:05:42	<INF>	[WIFI] Connected to: 3ags, RSSI: -67
[0d00h00m09s] 1970-01-03T08:05:42	<INF>	[WIFI] Assigned IP: 192.168.2.101
[0d00h00m26s] 1970-01-03T08:05:59	<INF>	[MAIN] Device info: CPU cores: 2, Chip revision: 300
[0d00h00m26s] 1970-01-03T08:05:59	<INF>	[MAIN] SD card info: Name: , Capacity: 3840MB, Free: 3821MB
[0d00h00m28s] 1970-01-03T08:06:01	<INF>	[MAIN] Initialization completed successfully
[0d00h00m30s] 1970-01-03T08:06:03	<INF>	[LOGFILE] Set log level to ERROR
[0d00h00m00s] 1970-01-03T07:09:11	<INF>	[MAIN] =================================================
[0d00h00m01s] 1970-01-03T07:09:12	<INF>	[MAIN] ==================== Start ======================
[0d00h00m01s] 1970-01-03T07:09:12	<INF>	[MAIN] =================================================
[0d00h00m01s] 1970-01-03T07:09:12	<INF>	[MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m01s] 1970-01-03T07:09:12	<INF>	[MAIN] Total heap: 4376759 byte
[0d00h00m05s] 1970-01-03T07:09:16	<INF>	[MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m05s] 1970-01-03T07:09:16	<INF>	[SDCARD] Basic R/W check started...
[0d00h00m05s] 1970-01-03T07:09:16	<INF>	[SDCARD] Basic R/W check successful
[0d00h00m05s] 1970-01-03T07:09:17	<INF>	[SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m05s] 1970-01-03T07:09:17	<INF>	[SNTP] Configuring NTP Client...
[0d00h00m05s] 1970-01-03T08:09:17	<INF>	[SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m05s] 1970-01-03T08:09:17	<INF>	[SNTP] The local time is unknown, starting with 1970-01-03 08:09:17
[0d00h00m05s] 1970-01-03T08:09:17	<INF>	[SNTP] Once the NTP server provides a time, we will switch to that one
[0d00h00m05s] 1970-01-03T08:09:17	<INF>	[MAIN] CPU frequency: 160 MHz
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[SDCARD] Folder/file presence check started...
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[SDCARD] Folder/file presence check successful
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[MAIN] Tag: 'v15.3.0', Release: v15.3.0 (Commit: 3fbff0a), Date/Time: 2023-07-22 09:42, Web UI: Release: v15.3.0 (Commit: 3fbff0a)
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[MAIN] Reset reason: Via esp_restart
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] SSID: 3ags
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] Password: XXXXXXXX
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] Hostname: watermeter
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] IP-Address: 192.168.2.101
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] Gateway: 192..168.2.1
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] Netmask: 255.255.255.0
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] DNS: 192.168.2.1
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WLANINI] RSSIThreshold: -75
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[MAIN] WLAN config loaded, init WIFI...
[0d00h00m06s] 1970-01-03T08:09:17	<INF>	[WIFI] Manual interface config -> IP: 192.168.2.101, Gateway: 192..168.2.1, Netmask: 255.255.255.0
[0d00h00m06s] 1970-01-03T08:09:18	<INF>	[WIFI] Manual interface config -> DNS: 192.168.2.1
[0d00h00m06s] 1970-01-03T08:09:18	<INF>	[WIFI] Set hostname to: watermeter
[0d00h00m06s] 1970-01-03T08:09:18	<INF>	[WIFI] Init successful
[0d00h00m09s] 1970-01-03T08:09:21	<INF>	[WIFI] Connected to: 3ags, RSSI: -67
[0d00h00m09s] 1970-01-03T08:09:21	<INF>	[WIFI] Assigned IP: 192.168.2.101
[0d00h00m26s] 1970-01-03T08:09:38	<INF>	[MAIN] Device info: CPU cores: 2, Chip revision: 300
[0d00h00m26s] 1970-01-03T08:09:38	<INF>	[MAIN] SD card info: Name: , Capacity: 3840MB, Free: 3821MB
[0d00h00m28s] 1970-01-03T08:09:40	<INF>	[MAIN] Initialization completed successfully
[0d00h00m30s] 1970-01-03T08:09:42	<INF>	[LOGFILE] Set log level to ERROR

@friedpa
Copy link

friedpa commented Sep 16, 2023

Just go to Configuration -> click on the Expert Modus -> Scroll all the way down to Time Server (NTP).
I am using my Router as Time Provider as it provides such a services. Just check your Routers manual for it.
I heard also from other users that they had to put in the IP Address, as e.g. pool.ntp.org did not work

@wesseli01
Copy link
Author

wesseli01 commented Sep 16, 2023

Thank you. Great. The problem was the missing IP-entry of my router in the configuration. I have to change the pool.ntp.org to my server IP. It was my mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants