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 that displays a certain text from a website, the text on the website is updated daily

    Scheduled Pinned Locked Moved Requests
    36 Posts 6 Posters 10.0k Views 7 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
      Amoniak @lolo
      last edited by

      @lolo
      thank you, I’ll try right now

      1 Reply Last reply Reply Quote 0
      • A Offline
        Amoniak
        last edited by Amoniak

        dnevni_citat.jpg

        @lolo there it is.
        many, many, many thanks. and thanks for adding explanations

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          lolo @Amoniak
          last edited by

          @Amoniak you’re welcome.
          Just delete the second appendChild in MMM-Dnevni_citat.js

                      var table = document.createElement('tr');
                      table.classList.add("xsmall", "normal");
                      var title = document.createElement('tr');
                      title.innerHTML = this.textDataRecived.title;
                      table.appendChild(title);
                      var textData = document.createElement('tr');
                      textData.innerHTML = this.textDataRecived.textData;
          
                      table.appendChild(textData);
                      table.appendChild(title);        // delete this one
                      wrapper.appendChild(table);
          
          

          I added twice,my mistake.

          1 Reply Last reply Reply Quote 0
          • E Offline
            e199504 @Amoniak
            last edited by

            @amoniak how did you fix the black screen? I am getting the same error

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

              @e199504 is this after install?

              did u do the npm install in the module folder?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                e199504 @sdetweil
                last edited by

                @sdetweil in the reeadme file it did not say to go inside the module and use npm install but once I did it started working.
                thank you

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

                  @e199504 yes. it seems many authors forget to write that step.

                  general rule. look for a package.json file.
                  if present, run the npm install

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • 1
                  • 2
                  • 3
                  • 4
                  • 3 / 4
                  • 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