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.

    remoteFile compliments

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 1.8k Views 2 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.
    • A Offline
      austenzombie7
      last edited by

      I can’t seem to figure out the code for remoteFile.

      In config.js
      {
      module: “compliments”,
      position: “lower_third”,

         config: {
                       updateInterval: 1500,
                       remoteFile: "compliments.json"
         }
      

      The path for compliments.json is:
      ~/MagicMirror/modules/default/compliments

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @austenzombie7
        last edited by

        @austenzombie7

        Your entry looks ok, aside from the missing closed curly bracket and comma }, that should appear at the end, after the last curly close bracket in your post above.

        One question, are you sure about that updateInterval: 1500,? That’s only 1.5 seconds before a new compliment will appear. The default fade speed for the module is 4 seconds, so your compliments are fading well before they even appear.

        Try updateInterval: 30000, - That’s 30 seconds

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          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