dokeeffe / cloud-rain-monitor

Device to measure sky conditions (rain and cloud) for an astronomical observatory
16 stars 3 forks source link

wrong time logged #5

Closed Trigger-broom-289 closed 6 years ago

Trigger-broom-289 commented 7 years ago

Noticed that the time stamp isn't being recorded correctly.

root@heidenrod-obs:/home/cloud_rain# date Tue Aug 22 21:01:20 CEST 2017

http: {"readingTimestamp": "2017-08-22 19:00:26", "outsideTemp": 16.99, "skyTemp": 4.71, "rain": false}

dokeeffe commented 7 years ago

Thats really strange. I have noticed wrong times logged but it was because the pi's time was wrong. After setting up ntpd it fixed it but your time is correct.... very strange. I'll have a look

dokeeffe commented 7 years ago

Ah you are CEST. The time logged in the DB is UTC, no offeset is applied on read so you are getting back the raw UTC time

Trigger-broom-289 commented 6 years ago

We can close all of this now.