REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Monarco Hat RTC

    Monarco HAT
    2
    13
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MikeyH
      last edited by

      Hi All,

      I know there is post about this,, but it's closed.

      I just want to be sure what the best way to set the RTC of the Monarco is? What block or method?

      I just had one loose power and the clock failed, my own fault as I though I had set the clock. I just don't want it to happen again 😊

      Cheers

      Mike

      1 Reply Last reply Reply Quote 0
      • R
        reitinge
        last edited by reitinge

        @mikeyh

        Hi Mike,
        the easiest way to set the RTC is using terminal command timedatectl:

        timedatectl set-time "2015-01-31 11:13:54"
        

        Otherwise, you can use the Date and Time tab in DWM.
        31df603f-0a15-4143-b381-3bcbfe0fe3cf-image.png

        The most complicated solution is to use the DATETIME block. Set the isetmode parameter to 6 (this isn't documented yet). Set requested time in seconds from 1 January 2000 on the usec input and apply a leading edge to the SET input.
        6cb494b1-0a9e-4a6e-8205-36a11959e786-image.png

        Cheers,
        Jan

        M 1 Reply Last reply Reply Quote 0
        • M
          MikeyH @reitinge
          last edited by

          @reitinge
          Hi Jan,

          Thank you for that. I am making sure to update all devices to use the dwm.

          I have one just is still remote so has no internet connection. Can the RTC be set via REXYGEN Diagnostics?

          I can't seem to set the RTC, only local time, but the time shown in diagnostics is different again.

          For logging and archiving, is UTC better to use do you think? Over local time.

          Cheers

          Mike

          R 1 Reply Last reply Reply Quote 0
          • R
            reitinge @MikeyH
            last edited by

            @mikeyh
            Hi Mike,
            you're right, RTC will be better than UTC. Unfortunately, it is not possible to set RTC via Diagnostics (at least as far as I know). However, if you can connect to Monarco via Diagnostics, you should also be able to connect via Putty to the Terminal and set RTC via

            timedatectl set-time "2015-01-31 11:13:54"
            

            Or is I still missing something?

            Kind regards,
            Jan

            M 1 Reply Last reply Reply Quote 0
            • M
              MikeyH @reitinge
              last edited by MikeyH

              @reitinge
              Hi Jan,

              How do I change the RTC in DWM? I can change local time, but not the RTC.
              4e52f0ff-1125-4f0c-945f-0fe4480564c1-image.png

              I also get an error when trying to delete archive folder in the files tab. I can't seem to delete them. I assume, once I can delete them the archiving carries on from the next time the TRND block archive to it?

              cheers

              Mike

              1 Reply Last reply Reply Quote 0
              • R
                reitinge
                last edited by

                @mikeyh Hi Mike,
                what is your DWM version? You can find it by clicking on the menu icon in the upper right corner (see image below).
                0a15d0af-1473-453c-8c91-ac1c90b149ab-image.png

                I have tested RTC changing in versions v0.5.0-543 and v0.5.0-552 and it works for me.
                5831529d-2f0b-4a29-aa59-402045f7e44c-image.png
                d8534a04-0089-4cc8-ab35-316aa3d9cbbe-image.png

                Please, try to update your DWM using Terminal:

                sudo apt update
                sudo apt upgrade rex-dwm
                

                Deleting an archive from the File browser can be set, but it is not completely straightforward. It is easier to do it manually from terminal or create an event_log class in DWM with the allowDeleting option. Please take a look at Chapter 4 in DWM.

                Add following code part into /rex/dwm/config.js. Attention: For security reasons, this file cannot be edited directly using REXYGEN DWM.

                    {
                      class: 'event_log',
                      archive: 'ARC',
                      allowDeleting: true
                    },
                

                After refreshing the DWM page, there should be new tab called Event log with Delete archive icon (see figure below).91862506-ebf5-4d4b-9ee8-b8b959398b5f-image.png

                Cheers,
                Jan

                M 1 Reply Last reply Reply Quote 0
                • M
                  MikeyH @reitinge
                  last edited by MikeyH

                  @reitinge Hi Jan,

                  Ok, thank you. I'm sorted with the archives. Only issue I still have, is when I delete an archive I have to reboot to make the archive start saving data again.

                  My DWM was version was v0.5.0-543. I tried to update it but still have version v0.5.0-543. I rebooted which didn't change it either.

                  RTC still follows UTC not local time.

                  Cheers

                  Mike

                  M R 2 Replies Last reply Reply Quote 0
                  • M
                    MikeyH @MikeyH
                    last edited by

                    I fixed it with "sudo timedatectl set-local-rtc 1"

                    I hope this was the right way to do it haha

                    Cheers

                    Mike

                    1 Reply Last reply Reply Quote 0
                    • R
                      reitinge @MikeyH
                      last edited by

                      @mikeyh Hi Mike,
                      yes the version v0.5.0-543 is the last official version. So it's weird that it didn't work for you and it did for me. I'll try to find out the cause. Anyway, it's good that you solved it.

                      To restart after deleting the archive: Could you please post the ARC block settings here?
                      d7d7db2c-1307-4f62-9c25-def1e842a926-image.png

                      Cheers,
                      Jan

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MikeyH @reitinge
                        last edited by

                        @reitinge Hi Jan,

                        ARC block settings below
                        f5528a8f-715a-4a84-92a5-c064ed134edc-image.png

                        Cheers

                        Mike

                        R 2 Replies Last reply Reply Quote 0
                        • R
                          reitinge @MikeyH
                          last edited by

                          @mikeyh Hi Mike,
                          I'm sorry, I tested deleting archives on our working version of REXYGEN, where this problem has already been fixed. I have now spoken to the main developer, who should publish a new version of REXYGEN-next in a few days.

                          I'll let you know when the new -next version is released. There, the problem with writing to the deleted archive will be solved.

                          Cheers,
                          Jan

                          1 Reply Last reply Reply Quote 0
                          • R
                            reitinge @MikeyH
                            last edited by

                            @mikeyh Dear Mike,
                            we have published new REXYGEN pre-release version 2.50-next (2.50.10-13491) which is now available for testing. This version contains fix for the archive bug.

                            If you want to update your older REXYGEN-next version, just update and upgrade with

                            sudo apt update
                            sudo apt upgrade rexygen-runtime
                            

                            Best regards,
                            Jan

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              MikeyH @reitinge
                              last edited by

                              @reitinge Hi Jan,

                              Thank you. I've installed it and will try it today.

                              Cheers

                              Mike

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

                              There is also an outdated REXYGEN community forum.

                              Powered by NodeBB.