QIDITECH / QIDI_MAX3

GNU General Public License v3.0
38 stars 2 forks source link

Date and Time #15

Open mottld opened 7 months ago

mottld commented 7 months ago

There is no ntp on the system. All the files added have the wrong date and time. We should be able to set a timezone during setup and the system updates the time via ntp. This is pretty standard.

QIDITECH commented 7 months ago

Thank you for your feedback, we will fix this issue.

Phil1988 commented 6 months ago

I also discovered that.

Meanwhile you can connect to the printer via terminal (putty or similar), login as root and set the date like this: date MMDDhhmmCCYY with MM month number DD day number hh hours mm minutes CC century YY year

For NOW it should eg. look like this: sudo date 121301122023

Phil1988 commented 6 months ago

Another way to update the time manually is via terminal:

sudo chmod -x /usr/sbin/chronyd
sudo chmod -x /usr/sbin/ntpd
sudo systemctl start systemd-timesyncd
sudo systemctl daemon-reload

This way the time is being set to the current time and its synchronizing after boot.

potens1 commented 5 months ago

Hello,

If possible, leverage the timedatectl part of systemd, it is already installed and easier to use than "old way" (i.e. date)

To set the clock (useless if network available and using ntp time): timedatectl set-time '2024-01-06 18:17:16'

I would add also, do not install ntp, nor chrony at all (those are useless and add packages, I guess the aim if to have the less possible packages to install/installed), the only thing that needs to be done is to enable systemd ntp.

timedatectl set-timezone Asia/Shanghai  # or Europe/Paris or America/New_York, you get the idea
timedatectl set-ntp 1

(the list of timezone is available with timedatectl list-timezones ) No need to start systemd-timesyncd manualy, timedatectl takes care of that That's it...

By the way, you should also update the wiki (if using that) and correct the script that install the camera (because it installs ntp et. all, resulting in broken time on my printer)

QIDITECH commented 5 months ago

Thank you very much, we will try and test this way.

trancified commented 4 months ago

FYI, potens1 method is easily the best way to do this.