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.

    Module to display a local list?

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 2 Posters 4.3k 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.
    • J Offline
      jasondreher
      last edited by

      How do I get it to refresh? I added it to “refresh_interval_sec: 60,” but it does not seem to refresh. If I “Ctrl+R” i refreshes and shows changes.

      Other than that it works great!!!
      This is my test pi, the list from HTMLBox is in the upper right.
      0_1512583760228_2017-12-06-114646_1680x1050_scrot.png

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @jasondreher
        last edited by

        @jasondreher
        You are right. I did some mistakes about refreshing. (I didn’t test it. sorry)
        I think it was caused by caching.
        You can made hot-fix about that.

        In line 58 of MMM-HTMLBox.js

        xmlHttp.open("GET", url, true)
        

        modify it like this;

        xmlHttp.open("GET", url + "?" + Date.now(), true)
        

        I think it will work. sorry.

        1 Reply Last reply Reply Quote 1
        • J Offline
          jasondreher
          last edited by

          @Sean said in Module to display a local list?:

          xmlHttp.open(“GET”, url + “?” + Date.now(), true)

          I did this but no change, it still will not update…

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @jasondreher
            last edited by A Former User

            @jasondreher
            Weird. Is Your local file updated periodically? Can you show your config for this module?
            I’ve tested it now, and it works definitely.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jasondreher
              last edited by

              Darn it, I was changing the update time in the module but not the config. It works now, thanks for all your help, this is a fantastic module!!!

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy