[SOLVED] getting wrong time from NTP server?? - Printable Version
+- WeatherDuino Forum (
https://www.meteocercal.info/forum)
+-- Forum: Weather Stations - WeatherDuino Pro2 Line (
https://www.meteocercal.info/forum/forum-4.html)
+--- Forum: Software Questions (
https://www.meteocercal.info/forum/forum-10.html)
+--- Thread: [SOLVED] getting wrong time from NTP server?? (
/thread-2058.html)
[SOLVED] getting wrong time from NTP server?? -
edr1924 - 04-08-2021
I don't know what to do... I can't get the right date from the NTP server?
I tried the reset option by long pressing the button on the pro 2 receiver.
(using the most recent version)
Any help would be appreciated!
Jk⸮⸮> ⸮⸮⸮⸮ZY0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(5a875ba)
v1.0.0.3
Mar 13 2018 09:37:06
OK
Mode station OK
Multiple mux OK
Join AP success!
Connected to AP: AT+CWJAP?
+CWJAP:"--------------","---------------",6,-59
OK
IP Address: 192.168.1.99
Broadcast IP: 192.168.1.255
Start tcp server OK
STATUS:2
Set tcp server timout 30 seconds
RTC current date & time: 156 Mar 2021 18:01
Sending NTP request to sync clock...
NTP replied
UTC date & time from NTP server: 156 Mar 2021 17:01
RTC adjusted to local date & time: 156 Mar 2021 18:01
Reading RTC date & time: 156 Mar 2021 18:01
System current date: 156/03/2021
System current time: 18:01:24
Checking for latest software version...
Latest software version: P2AT2560_RX_v9.0_b004
WiFi connection is ON
18:01:41 - Station ID: A1 Unit ID: 1 Sensor ID: 2 Full Message: A10012,6FA,2A4,A46,7FC,
RE: getting wrong time from NTP server?? -
werk_ag - 05-08-2021
Hi edr1924,
Please check this topic:
https://www.meteocercal.info/forum/Announcement-IMPORTANT-NOTICE-Compiling-WeatherDuino-Pro2-PLUS-Software
Then tell us if it solved the problem
Rgs.
[SOLVED] Re: getting wrong time from NTP server?? -
edr1924 - 05-08-2021
(05-08-2021, 00:54)Werk_AG Wrote: Hi edr1924,
Please check this topic:
https://www.meteocercal.info/forum/Announcement-IMPORTANT-NOTICE-Compiling-WeatherDuino-Pro2-PLUS-Software
Then tell us if it solved the problem 
Rgs.
oooooooh.. I forgot to do this.

This is THE proof I'm getting old...
I now added the NOTICE in the beginning of the sketch so I cannot forget it anymore!
This indeed solved the problem, thank you!!
ASCII text generator (just for fun):
https://patorjk.com/software/taag/#p=display&c=c%2B%2B&f=Colossal&t=NOTICE%20!!
// 888b 888 .d88888b. 88888888888 8888888 .d8888b. 8888888888 888 888
// 8888b 888 d88P" "Y88b 888 888 d88P Y88b 888 888 888
// 88888b 888 888 888 888 888 888 888 888 888 888
// 888Y88b 888 888 888 888 888 888 8888888 888 888
// 888 Y88b888 888 888 888 888 888 888 888 888
// 888 Y88888 888 888 888 888 888 888 888 Y8P Y8P
// 888 Y8888 Y88b. .d88P 888 888 Y88b d88P 888 " "
// 888 Y888 "Y88888P" 888 8888888 "Y8888P" 8888888888 888 888
//
//
// Arduino IDE, from version 1.8.6 onwards is supplied with a new AVR Boards Manager,
// which install a new compiler version (5.4.0-atmel3.6.1-arduino2).
// Code compiled with this new compiler cause reliability problems to WeatherDuino
// systems based on Mega and Nano microcontrollers.
// The software compiles without any errors, but during normal use,
// several issues will happen affecting system reliability.
//
// No matter the Arduino IDE version you are using, WeatherDuino Pro2 Plus
// software should be compiled with AVR boards manager to version 1.6.21.
//
// This can easily be done, and installation is automatic.
//
// Tools > Board > Boards Manager
// Wait for downloads to finish.
// When you move the mouse pointer over "Arduino AVR Boards",
// you will see a "Select version" dropdown menu appear. Select "1.6.21".
// Click "Install".
// Wait for installation to finish.
// Click "Close".
RE: [SOLVED] getting wrong time from NTP server?? -
werk_ag - 05-08-2021