Page 1 of 1
Setting Domoticz Server time in Raspberry pi
Posted: Tuesday 12 September 2017 9:57
by cvasantrao
Hi,
I have installed domoticz on RPi3 and RPi3 shows the correct time. But domoticz time is about 3.5 hrs ahead. Can anybody help?
Thanks
Re: Setting Domoticz Server time in Raspberry pi
Posted: Tuesday 12 September 2017 9:58
by Trigun
Sudo raspi-config, set time zone. This should work
Sent from my iPhone using Tapatalk
Re: Setting Domoticz Server time in Raspberry pi
Posted: Tuesday 12 September 2017 10:56
by SweetPants
cvasantrao wrote: ↑Tuesday 12 September 2017 9:57
Hi,
I have installed domoticz on RPi3 and RPi3 shows the correct time. But domoticz time is about 3.5 hrs ahead. Can anybody help?
Thanks
Have you installed/configured NTP?
sudo apt-get install ntp
By default it will use a pre-configured NTP server in /etc/ntp.conf
change that to some servers (min 3) at your location
server <ip or domainname NTP server(s)>
sudo service ntp restart
This eventually should sync your clock to NTP, depending on the difference between the NTP server and your raspberry this can take hours/days
Re: Setting Domoticz Server time in Raspberry pi
Posted: Tuesday 12 September 2017 12:11
by cvasantrao
Yes. My RPi shows the correct time. The problem is with Domoticz time.
Thanks
Re: Setting Domoticz Server time in Raspberry pi
Posted: Tuesday 12 September 2017 12:35
by emme
...mmh what about
sudo timedatectl set-timezone Europe/<City>
sudo timedatectl set-ntp true
in domoticz be sure to have setted up the right GPS coordinates
Re: Setting Domoticz Server time in Raspberry pi
Posted: Wednesday 13 September 2017 4:29
by cvasantrao
Yes. I have set the GPS coordinates right using 'to find your location click here'. The sunrise and sunset timings are also wrong. Tried everything.
Thanks
Re: Setting Domoticz Server time in Raspberry pi
Posted: Wednesday 13 September 2017 7:12
by jannl
Hm, the fact that sunrise/sunset times are wrong implies the location setting are wrong. Do you see anything in the logfile(s)?
Verstuurd vanaf mijn SM-G930F met Tapatalk
Re: Setting Domoticz Server time in Raspberry pi
Posted: Wednesday 13 September 2017 19:06
by SweetPants
cvasantrao wrote: ↑Wednesday 13 September 2017 4:29
Yes. I have set the GPS coordinates right using 'to find your location click here'. The sunrise and sunset timings are also wrong. Tried everything.
Thanks
Are you really sure you got the right longitude/latitude from the 'click here' search?
Re: Setting Domoticz Server time in Raspberry pi
Posted: Thursday 14 September 2017 5:21
by cvasantrao
Yes,because i have used these coordinates in arduino for a aquarium controller and i get the sunrise/sunset timings right.
Re: Setting Domoticz Server time in Raspberry pi
Posted: Monday 01 January 2018 10:53
by axello2
Hello,
any update on this issue? I seem to have the same problem after I moved my Domoticz installation.
Short answer: fixed it!
Gps coords in Domoticz:
lon: 4.887, lat: 52.383, which is Amsterdam (and correct)
Domoticz 3.8153 claims : SunRise: 07:51, SunSet: 15:36
Weather.com states:
Zonsopgang 08:50
Zonsondergang 16:37
So this simply seems a timezone offset.
Back to the terminal:
date: Mon 1 Jan 10:37:16 CET 2018 (which is correct)
BUT: this was because the timezone was set in the .profile.
I have used the
timedatectl commands by *emme* above and now my Domoticz dashboard shows the correct sunset times!
Also the times in the Dashboard are better.
Thanks, and best wishes for 2018!
Re: Setting Domoticz Server time in Raspberry pi
Posted: Saturday 19 January 2019 14:50
by leby
emme wrote: ↑Tuesday 12 September 2017 12:35
...mmh what about
sudo timedatectl set-timezone Europe/<City>
sudo timedatectl set-ntp true
in domoticz be sure to have setted up the right GPS coordinates
Worked on my RPI as well..
Re: Setting Domoticz Server time in Raspberry pi
Posted: Friday 01 February 2019 16:53
by Rolandet
leby wrote: ↑Saturday 19 January 2019 14:50
emme wrote: ↑Tuesday 12 September 2017 12:35
...mmh what about
sudo timedatectl set-timezone Europe/<City>
sudo timedatectl set-ntp true
in domoticz be sure to have setted up the right GPS coordinates
Worked on my RPI as well..
Not wanting to bump a topic for nothing: timedatectl worked for me too.
Tnx