• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.4k 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 Jan 28, 2017, 8:41 AM

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

    C 1 Reply Last reply Jan 29, 2017, 9:53 PM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @cnelso24
      last edited by Jan 29, 2017, 9:53 PM

      @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 Jan 29, 2017, 10:42 PM

        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 Jan 29, 2017, 11:42 PM Reply Quote 0
        • C Offline
          cnelso24 @washichi
          last edited by Jan 29, 2017, 11:42 PM

          @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 Jan 30, 2017, 12:29 PM Reply Quote 0
          • C Offline
            cowboysdude Module Developer
            last edited by Jan 29, 2017, 11:59 PM

            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 Jan 30, 2017, 12:06 AM Reply Quote 0
            • C Offline
              cnelso24 @cowboysdude
              last edited by Jan 30, 2017, 12:06 AM

              @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
              • C Offline
                cowboysdude Module Developer
                last edited by cowboysdude Jan 30, 2017, 12:31 AM Jan 30, 2017, 12:29 AM

                @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 Jan 30, 2017, 12:29 PM

                  @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
                  • Y Offline
                    yawns Moderator
                    last edited by Jan 30, 2017, 1:37 PM

                    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 Jan 30, 2017, 5:39 PM Reply Quote 3
                    • C Offline
                      cnelso24 @yawns
                      last edited by Jan 30, 2017, 5:39 PM

                      @yawns

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

                      Y 1 Reply Last reply Feb 1, 2017, 12:02 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/14
                        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