• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

RRF configuration file mirroring and management

Scheduled Pinned Locked Moved
Third-party software
4
7
701
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.
  • undefined
    pfn
    last edited by pfn 21 Oct 2021, 21:40

    I've been using RRF for the past year, it's great. Configuration management is a little bit of a pain, edit it in DWC or by pulling out the SD card and plopping it into my PC. This is a feature where having SBC-mode is an advantage.

    But, there's no killer feature for SBC-mode, so I refuse to use it 😁 -Instead of that, I wrote a new tool that runs on any local machine that has python2: that would include macOS, Linux and some Windows computers (but untested on macOS and Windows).

    What it does:

    1. Initially downloads all files from a DWC URL under /sys and /macros to a specified directory (-m URL -d DIRECTORY)
    2. Creates a metadata file that remembers the DWC URL and digests of all files downloaded

    Now you have a local copy of your configuration, but that's not so useful yet, on top of that you can operate in the mirrored configuration folder, there are options to:

    1. See if there are any local modifications by checking for differences in digests (run without arguments)
    2. Refresh and download configuration from RRF again (-r option)
    3. Edit files locally, using your choice of editor; I prefer VIM
    4. Upload changed local files to RRF (-u argument)

    Limitations:

    • Passwords set in RRF will prevent this from working
    • Local modifications will be overwritten without notice with -r
    • Only /sys and /macros directory trees are synchronized
    • There is no diffing to determine difference
      • However, there is nothing to prevent the use of git or other SCM to manage configuration and tracking of changes.

    Currently I have it uploaded into a gist, and perhaps it will move into a repo if it gets enough traction:
    https://gist.github.com/pfn/9f28b1e8d70a9e0d1182c77af177161c

    Hope someone finds this useful!

    undefined undefined 2 Replies Last reply 21 Oct 2021, 21:49 Reply Quote 3
    • undefined
      droftarts administrators @pfn
      last edited by 21 Oct 2021, 21:49

      @pfn there’s also https://forum.duet3d.com/topic/10880/rfm-reprapfirmware-filemanager-duetbackup-successor

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      undefined 1 Reply Last reply 21 Oct 2021, 21:57 Reply Quote 0
      • undefined
        pfn @droftarts
        last edited by 21 Oct 2021, 21:57

        @droftarts I never knew about this before (not the specifics anyhow). However, upon browsing rfm, the UI seems very different. In my case, I'm looking for a very "git/mercurial/other-dvcs"-like workflow where I can see what my file status looks like at any given moment with minimal/no configuration other than an "init" (-m ... -d ... ) command.

        rfm looks great on its own as a general-purpose tool to fetch/upload files from RRF.

        This tool itself is only intended to work with files under /sys and /macros

        undefined 1 Reply Last reply 22 Oct 2021, 08:28 Reply Quote 0
        • undefined
          T3P3Tony administrators @pfn
          last edited by 22 Oct 2021, 08:28

          @pfn thanks for this. I have moved the thread to the third party software category so its less likely to get lost in the volume on General Discussion.

          www.duet3d.com

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators @pfn
            last edited by 22 Oct 2021, 09:22

            @pfn you may also find this interesting https://github.com/adammhaile/rrgit.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            undefined undefined 2 Replies Last reply 22 Oct 2021, 09:34 Reply Quote 0
            • undefined
              droftarts administrators @dc42
              last edited by 22 Oct 2021, 09:34

              I've added @pfn 's RRF configuration file mirroring and management tool, and @adammhaile 's rrgit to https://duet3d.dozuki.com/c/Community_Projects

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              1 Reply Last reply Reply Quote 0
              • undefined
                pfn @dc42
                last edited by pfn 22 Oct 2021, 16:21

                @dc42 that's pretty nice as well, thanks for linking. the suggestion to use M38 is also good, but ultimately unusable because of race conditions in getting rr_gcode/rr_reply properly aligned.

                1 Reply Last reply Reply Quote 0
                • undefined droftarts referenced this topic 12 Jan 2024, 01:03
                4 out of 7
                • First post
                  4/7
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA