MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    MMM-QuotesFromReddit

    Entertainment
    magic mirror quotes random
    3
    9
    3667
    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.
    • bthuilot
      bthuilot last edited by yawns

      Description

      Picks a random post from /r/quotes and displays the title meaning a random supply of quotes! Ideally meant to replace the compliments module.

      Download

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

        @bthuilot said in MMM-QuotesFromReddit:

        Ideally meant to replace the compliments module.

        Blasphemy! 😉

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • S
          Spankythemusical last edited by

          Is there any way to add a css file to control the font size? While this is an unbelievably wonderful module, the quotes come in so large that it sometimes takes up half the screen.

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

            @Spankythemusical said in MMM-QuotesFromReddit:

            Is there any way to add a css file to control the font size?

            The readme for the compliments module:
            https://github.com/MichMich/MagicMirror/tree/develop/modules/default/compliments

            Configuration options

            classes

            Override the CSS classes of the div showing the compliments

            Default value: thin xlarge bright

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • S
              Spankythemusical last edited by

              While it is entirely possible that I’m overlooking something simple, adding that config to the MMM-QuotesFromReddit section of config.js has no effect.

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

                @Spankythemusical

                My mistake entirely. I thought we were talking about the compliments module.

                in your custom.css file you could try adding this:

                .MMM-QuotesFromReddit thin.xlarge.bright {
                  font-size: 21px;  /* Adjust accordingly */
                }
                

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • S
                  Spankythemusical last edited by Spankythemusical

                  No problem. I was sure it was something that I was doing wrong. So in my MMM-QuotesFromReddit.js file I added:

                   },
                  
                          getStyles: function () {
                                  return ["MMM-QuotesFromReddit.css"];
                          },
                  

                  Then I created a MMM-QuotesFromReddit.css file and put in the line that you wrote. Still no change. I’m going to continue messing with it, but any additional help would be unbelievably appreciated.

                  EDIT: I figured it out. I changed the line:

                  wrapper.className = "thin xlarge bright";
                  

                  to:

                  wrapper.className = "small";
                  

                  Works like a charm!

                  bthuilot 1 Reply Last reply Reply Quote 0
                  • bthuilot
                    bthuilot @Spankythemusical last edited by

                    @Spankythemusical Hey sorry for the late response, I will make it so that you can change that in the config file soon and not need to edit the js file.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Spankythemusical last edited by

                      @bthuilot It’s no big deal. I honestly don’t know if the issue I was having was the same for anyone else. Just glad I was able to find a workaround so that I could use your module. Thank you for the work!

                      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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy