Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Setting date and time problem
#20

I am a happy owner of four modules DS3231  Smile
Each bought at different store. When you start the Weatherduino chip is set to the correct date and time by NTP (ignoring the hour shift (?)) 
but the displayed  the date 8-04-2018. 
This module when it is connected to another Arduino shows the correct date and time on LCD (e.g. 16-09-2018 21:45). 
[Image: 9246329be9db.jpg]

When I connect Cumulus Weatherduino adjust correctly time only on the display (eliminates the hour offset) but the date is in the format e.g.. 222-05-2019 and the RTC when connected to the reference turns out to be reset and shows 01-01-2000 00:00. 
Cumulus log:
Code:
16.09.2018 21:52:08.817 : Discon period: 3
16.09.2018 21:52:08.817 : VP2: Setting station clock
16.09.2018 21:52:08.817 : y=2018 m=9 d=16 h=21 m=52
16.09.2018 21:52:10.190 : VP2: SetStationTime_V res = 0
16.09.2018 21:52:10.190 : VP2: Getting station clock
16.09.2018 21:52:10.771 : VP2: GetStationTime_V res = 0
16.09.2018 21:52:10.771 : y=2019 m=5 d=8 h=21 m=52
16.09.2018 21:52:10.771 : Loading last N hour data from data logs: 16.09.2018 19:36:00


Sketch from RTClib library sets correctly DS3231 both on the WeatherDuino and reference the layout of the Arduino Mega. 
I removed the BME280 and put SHT21 and its indication of T/H are also valid. 
All this happens on a clean install of Weatherduino v. 7 and is independent of the settings of the longitude and latitude or time zone. 

I do not understand why the program ignores my time zone settings.
Code:
TimeChangeRule PST = {"PST", Last, Sun, Mar, 1, 120};   //Portuguese Summer Time -  "UTC + 1" or GMT + 1
TimeChangeRule GMT = {"GMT", Last, Sun, Oct, 2, 60};    //Portuguese Winter Time -  "UTC + 0" or GMT
Timezone myTZ(PST, GMT);

Slowly end to me ideas, replace the EEPROM, Meduino, whether to buy a fifth RTC?
Reply


Messages In This Thread
Setting date and time problem - by jarekh3 - 08-09-2018, 18:07
RE: Setting date and time problem - by werk_ag - 08-09-2018, 20:07
RE: Setting date and time problem - by jarekh3 - 08-09-2018, 20:57
RE: Setting date and time problem - by werk_ag - 09-09-2018, 22:08
RE: Setting date and time problem - by jarekh3 - 09-09-2018, 22:17
RE: Setting date and time problem - by werk_ag - 09-09-2018, 23:21
RE: Setting date and time problem - by jarekh3 - 09-09-2018, 23:38
RE: Setting date and time problem - by werk_ag - 10-09-2018, 00:03
RE: Setting date and time problem - by jarekh3 - 10-09-2018, 00:11
RE: Setting date and time problem - by werk_ag - 10-09-2018, 00:28
RE: Setting date and time problem - by jarekh3 - 10-09-2018, 00:56
RE: Setting date and time problem - by werk_ag - 10-09-2018, 01:45
RE: Setting date and time problem - by jarekh3 - 10-09-2018, 07:53
RE: Setting date and time problem - by jarekh3 - 10-09-2018, 16:58
RE: Setting date and time problem - by werk_ag - 10-09-2018, 22:46
RE: Setting date and time problem - by jarekh3 - 10-09-2018, 23:30
RE: Setting date and time problem - by jarekh3 - 10-09-2018, 23:40
RE: Setting date and time problem - by werk_ag - 11-09-2018, 00:17
RE: Setting date and time problem - by jarekh3 - 11-09-2018, 00:34
RE: Setting date and time problem - by jarekh3 - 17-09-2018, 09:18
RE: Setting date and time problem - by hornychz - 17-09-2018, 21:58
RE: Setting date and time problem - by werk_ag - 18-09-2018, 02:56
RE: Setting date and time problem - by jarekh3 - 18-09-2018, 22:14
RE: Setting date and time problem - by werk_ag - 19-09-2018, 01:17
RE: Setting date and time problem - by jarekh3 - 20-09-2018, 21:32
RE: Setting date and time problem - by werk_ag - 21-09-2018, 02:30
RE: Setting date and time problem - by jarekh3 - 24-09-2018, 20:18
RE: Setting date and time problem - by hornychz - 20-09-2018, 22:34
RE: Setting date and time problem - by uncle_bob - 20-09-2018, 22:52
RE: Setting date and time problem - by jarekh3 - 20-09-2018, 23:09



Users browsing this thread: 1 Guest(s)