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.

    Compliments text cycler without the randomizer

    Scheduled Pinned Locked Moved Solved Requests
    14 Posts 4 Posters 7.5k Views 4 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.
    • C Offline
      cnelso24
      last edited by

      I am trying to have a text cycler just like the compliments module but no randomization so I can customize the order.

      cowboysdudeC 1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer @cnelso24
        last edited by

        @cnelso24 You’ll have to tear the compliments module apart and use parts from it to construct what you want. NO sense in re-inventing the wheel :)

        1 Reply Last reply Reply Quote 0
        • W Offline
          washichi
          last edited by

          I’m new to JavaScript, so please correct me here if needed!
          I gave it a go and deleted the randomness, didn’t try it out cause my RPI sin’t running, but this should work:

          https://gist.github.com/washichi/74a1b08025aa166c8c296a245b06a517

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            cnelso24 @washichi
            last edited by

            @washichi

            it does not work. I tried loading your code into the compliments.js file and none of my modules loaded after that. Thank you for trying though. I am also very new, that’s why I am asking for help

            W 1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer
              last edited by

              Easy way is if you don’t want random then enter just 1 entry under each time… ;) That way you don’t have to do anything to change it… it’ll just show what you want all the time …

              The compliments module isn’t random. It rotates through whatever is in the module according to the time of day…

              So if you want it say something different then change it :)

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                cnelso24 @cowboysdude
                last edited by

                @cowboysdude

                hmm… good point but then it will only display 1 string at a time, am I correct? What I am trying to do is display 6-8 strings all the time in a specific order.

                1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer
                  last edited by cowboysdude

                  @cnelso24 Do a search on here… someone was asking or trying to make this work with a separate json file that they wanted to create… maybe you can do it that way.

                  Try this forum… near the bottom:

                  https://forum.magicmirror.builders/topic/1460/personalize-compliments/6

                  yawns was talking about something that could possibly work!

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    washichi @cnelso24
                    last edited by

                    @cnelso24 Okay, so what you want is more something like hello world, but 6 times.
                    I’ll get my PI back tomorrow, I will setup magicmirror and play around with the modules.
                    I’m planning on making my own module, so this is a good exercise :p

                    I’ll let you know If I got it working

                    1 Reply Last reply Reply Quote 1
                    • yawnsY Offline
                      yawns Moderator
                      last edited by

                      I just put this together, based on the original compliments module. I am not sure if this should be added to the default module by PullRequest, which is why I created a standalone repository first.

                      [card:yawnsde/MMM-Compliments]

                      C 1 Reply Last reply Reply Quote 3
                      • C Offline
                        cnelso24 @yawns
                        last edited by

                        @yawns

                        Thank you! I’ll check it out when I get home

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