MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    pls help: how to force/refresh "External Compliment File"?

    General Discussion
    compliment refresh reload external file
    5
    7
    264
    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.
    • R
      rs last edited by

      Hello all,

      I have a remote external file for the Compliment module which works very well, however, when the content of the external file changes the Compliment module doesn’t read the made changes only when restarting the mirror, my question is how to force and reload the external file content to the Compliment module without restarting the mirror?

      Thanks much in advance!
      Ram

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @rs last edited by

        @rs the default compliments module only reads the file at mm startup.

        Sam

        Create a working config
        How to add modules

        R 1 Reply Last reply Reply Quote 0
        • R
          rs @sdetweil last edited by

          @sdetweil said in pls help: how to force/refresh "External Compliment File"?:

          @rs the default compliments module only reads the file at mm startup.

          thank you for your reply!

          well, that’s a bummer…

          swvalenti R 2 Replies Last reply Reply Quote 0
          • swvalenti
            swvalenti Project Sponsor @rs last edited by

            @rs to jump onto this I can’t get a remote file to work, how did you use yours?

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @swvalenti last edited by sdetweil

              @swvalenti see

              sorry, meant this one

              https://forum.magicmirror.builders/topic/6757/need-more-compliments-compliments-json/13?_=1632064035771

              well, both

              https://forum.magicmirror.builders/topic/6757/need-more-compliments-compliments-json/14?_=1632064035783

              Sam

              Create a working config
              How to add modules

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

                @swvalenti

                {
                			module: "compliments",
                			position: "middle_center",
                			config: { 
                				remoteFile: 'https://dl.dropbox.com/s/XXXXXXXXXXXX/mirror_messages.json'	}
                		},
                
                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @rs last edited by sdetweil

                  @rs for dropbox u need the shared link ( as no user is logged on to dropbox) and u need dl=1 (instead of 0) to enable direct download

                  Sam

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy