Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mise à l'heure automatique Mele
#1
Bonjour à tous,

Cela fait plusieurs fois que ca m'arrive, lors d'une coupure de courant, le Mele perd sa mise à l'heure.

Je suis obligé de la forcer à la main via Win SCP.

J'ai redémarré le NTPD aussi sans effet.

C'est assez gênant, tous les scénarios sont décalés et se déclenchent à des horaires complètement HS du coup

Voici le log Win SCP, quelqu'un a une idée? : 

/etc/calaos$ systemctl start ntpd
/etc/calaos$ systemctl stop ntpd
/etc/calaos$ systemctl start ntpd
/etc/calaos$ timedatectl
      Local time: Fri 2010-01-01 23:51:24 CET
  Universal time: Fri 2010-01-01 22:51:24 UTC
        RTC time: Fri 2010-01-01 23:51:18
        Timezone: Europe/Paris (CET, +0100)
    NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
      DST active: no
Last DST change: DST ended at
                  Sun 2009-10-25 02:59:59 CEST
                  Sun 2009-10-25 02:00:00 CET
Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2010-03-28 01:59:59 CET
                  Sun 2010-03-28 03:00:00 CEST
/etc/calaos$ date -s 2023.03.07-18:46:00
Tue Mar  7 18:46:00 CET 2023
/etc/calaos$ timedatectl
      Local time: Tue 2023-03-07 18:46:04 CET
  Universal time: Tue 2023-03-07 17:46:04 UTC
        RTC time: Fri 2010-01-01 23:52:36
        Timezone: Europe/Paris (CET, +0100)
    NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
      DST active: no
Last DST change: DST ended at
                  Sun 2022-10-30 02:59:59 CEST
                  Sun 2022-10-30 02:00:00 CET
Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2023-03-26 01:59:59 CET
                  Sun 2023-03-26 03:00:00 CEST


Merci beaucoup! Smile
Calaos-server & Calaos-home on mele a1000g with Elotouch 1537L and USB/RS232 converter | Wago controller 750-849 | DALI module (RGB) | Calaos-os V2.0 Stable | Ampli Onkyo TX-NR636
Reply
#2
Salut,

J'ai eu des problèmes similaires dans le passé et j'avais du modifier mon /etc/ntp.conf comme ceci :

Code:
# This is the most basic ntp configuration file
# The driftfile must remain in a place specific to this
# machine - it records the machine specific clock error
driftfile /etc/ntp.drift
# This obtains a random server which will be close
# (in IP terms) to the machine.  Add other servers
# as required, or change this.
server 0.be.pool.ntp.org
server 1.be.pool.ntp.org
server 2.be.pool.ntp.org
server 3.be.pool.ntp.org
# Using local hardware clock as fallback
# Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
#server 127.127.1.0
#fudge 127.127.1.0 stratum 14
# Defining a default security setting
#restrict default

J'avais commenté les lignes 127.127.1.0 car mon Raspberry n'a pas de RTC (real-time clock), je suppose que la Mele non plus.
  calaos-os-raspberrypi2-v3.0-alpha6-14-g341535a-2021-01-17 on Raspberry Pi 2 ▶ Wago_2.2/wago_881.pro on Wago 750-881 ▶ DS18B20 sensors on Pi GPIO ▶ Node-RED









Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)