Announcement

Collapse
No announcement yet.

Manually Set Date and Time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Manually Set Date and Time

    Living in Florida, I have had power outages then power restored but no internet for days after some storms. Is there a way to manually set the date and time until internet connectivity returns? With my old HS3 things operated at the wrong time of day until internet returned.

    #2
    You would set it at the O/S level. What are you running?
    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

    Comment


      #3
      Originally posted by randy View Post
      You would set it at the O/S level. What are you running?
      As this is under the HS4 Pi heading, perhaps a RPi
      Jon

      Comment


        #4
        Originally posted by jon00 View Post

        As this is under the HS4 Pi heading, perhaps a RPi
        Probably, but you never know. If it is Linux, I have little experience. On a Pi you can login and use “sudo date -s ‘YYYY-MM-DD HH:MM:SS’“, as long as you know the login credentials.

        HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

        Comment


          #5
          On Linux, use command "timedatectl".
          https://www.makeuseof.com/how-to-set...nd-time-linux/

          Run this without arguments to display the current state.
          Code:
                         Local time: Sun 2023-03-05 15:30:55 PST
                     Universal time: Sun 2023-03-05 23:30:55 UTC
                           RTC time: n/a
                          Time zone: America/Los_Angeles (PST, -0800)
          System clock synchronized: yes
                        NTP service: active
                    RTC in local TZ: no
          To set date & time,
          Code:
          sudo timedatectl set-time "2023-03-05 15:37:00"​

          Comment


            #6
            On my pi, I've always had to first turn off NTP.
            So before doing whats already said, do:
            Code:
            sudo timedatectl set-ntp false
            Then after actually setting the time, do:
            Code:
            sudo timedatectl set-ntp true
            to turn NTP back on.

            Comment


              #7
              Thanks, I will try this.

              Comment


                #8
                Or....

                If you're interested in doing a little hardware and OS work, you can add a RTC (Real-Time Clock) module to a Raspberry Pi, so it keeps time when its external power is off, just like a typical PC.

                Do a Google search on "Raspberry Pi RTC" for plenty of examples.

                Comment


                  #9
                  If you have a windows computer, you can always set it as a local time server.

                  https://support.industry.siemens.com...dti=0&lc=en-AZ
                  HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
                  Home Assistant 2024.3
                  Operating System: Microsoft Windows 11 Pro - Desktop
                  Z-Wave Devices via two Z-Net G3s
                  Zigbee Devices via RaspBee on RPi 3b+
                  WiFi Devices via Internal Router.

                  Enabled Plug-Ins
                  AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

                  Comment

                  Working...
                  X