MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. btni
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Groups 0

    Posts

    Recent Best Controversial
    • MMM-HTMLBox not displaying my 1 hour countdown timer html file

      Hi,
      I want to have a 1 hour (minutes:seconds) countdown timer to show my young kids how much Tech Time they have left.
      I have tweaked the http://flipclockjs.com/ countdown timer and created this html file

      Cant seem to show the html code here - it just says DIV DIV and I cant attach a zip file. Will see if I can paste the code in the next reply.

      This HTML file works if opened normally in the Web browser on the Pi, but when loaded via MMM-HTMLBox doesnt show anything.
      I am sure I am missing one small thing, but after changing folder/subfolder locations, copying css and js files to MagicMirror locations etc I just cant get it to load in this module. Any advice would be greatly welcomed.
      Thanks
      Dave

      the config.js is configured like

      		{
      		  module: "MMM-HTMLBox",
      		  position:"bottom_bar",
      		  config: {
      		    width: "100%",
      		    height: "200px",
      		    refresh_interval_sec: 0,
      		    content: "There is nothing to display. <br>Put your HTML code into content field in 'config.js'.",
      		    file: "base.html", //When content is too long, you can use this for external file. relative path from `MMM-HTMLBox`
      		  }
      		},
      
      
      posted in Requests
      B
      btni
    • 1 / 1