• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

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

Scheduled Pinned Locked Moved General Discussion
compliment refresh reloadexternal file
7 Posts 5 Posters 880 Views 5 Watching
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 Offline
    rs
    last edited by Sep 22, 2021, 9:53 AM

    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 Sep 22, 2021, 11:14 AM Reply Quote 0
    • S Away
      sdetweil @rs
      last edited by Sep 22, 2021, 11:14 AM

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Sep 22, 2021, 12:58 PM Reply Quote 0
      • R Offline
        rs @sdetweil
        last edited by Sep 22, 2021, 12:58 PM

        @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…

        S R 2 Replies Last reply Sep 22, 2021, 2:51 PM Reply Quote 0
        • S Offline
          swvalenti Project Sponsor @rs
          last edited by Sep 22, 2021, 2:51 PM

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

          S 1 Reply Last reply Sep 22, 2021, 2:52 PM Reply Quote 0
          • S Away
            sdetweil @swvalenti
            last edited by sdetweil Sep 22, 2021, 3:00 PM Sep 22, 2021, 2:52 PM

            @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

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              rs @rs
              last edited by rs Sep 23, 2021, 6:18 AM Sep 23, 2021, 6:17 AM

              @swvalenti

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

                @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

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  7/7
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy