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.

    MMM-pihole-stats module

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 1.4k 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.
    • M Offline
      mjb2287
      last edited by

      I signed up and started this topic hoping the community would know where I’m going wrong. I have added other modules to my MagicMirror with great success. This one is eluding me. Since I came across this module all I can find is the entry for my config/config.js. is this all I need? When adding my apiURL it starts with ‘http://’. What is stumping me is in config/config.js anything after // is not looked at. When I save and reboot it tells me to create a config file. If I go and put // in front of the apiURL line it works fine as if I wasn’t having any issues.I’m not sure if anyone has come across this and solved it, I do appreciate any help I could get.I’ve tried on my own now I lean on everyone here for assistance. Thanks in advance!!!

      …OH!! pihole is running on a different raspberry pi!

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

        @mjb2287 you have to add a module entry to config J’s array of modules

        The minimum entry is

        {
             module: "some module name",
             position: "some area of the screen",
             config: {
             }
        },
        

        If there is info to the module, it will be enclosed in quotes in not numeric, or true/false

        If u have syntax errors, u will get the ‘create a config’ message.

        In the MagicMirror folder do

        npm check:config
        

        Fix errors from the top down, Snd rerun til no errors

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          “some module name” MUST match the name of the folder in mm/modules, and the name of the js file which implements the module operations

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 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