Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    This Day in History ticker?

    Requests
    4
    14
    3319
    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.
    • D
      donutsoup last edited by

      Hi folks,

      I’ve found a handful of This Day in History modules and even RSS feeds, but they all show one fact per day. What I have in mind is a TDIH that’s like a news ticker. For example, if today were Feb. 23, then it would display “1836 - Battle of Alamo in Texas” and then four seconds later show “1887 - French Riviera hit by earthquake” and so on. Does such a thing already exist? If not, could someone help me code it?

      N 1 Reply Last reply Reply Quote 1
      • N
        ninjabreadman @donutsoup last edited by

        @donutsoup I think @cowboysdude’s module should do what you want: https://forum.magicmirror.builders/topic/1803/mmm-history/9

        It’s a TDIH module that cycles through different years and their significance.

        D 1 Reply Last reply Reply Quote 2
        • D
          donutsoup @ninjabreadman last edited by donutsoup

          @ninjabreadman Thank you! I wonder if there’s a way to make it display not quite so much info? Like just a little blurb before moving on to the next event on the day in question?

          yawns 1 Reply Last reply Reply Quote 0
          • yawns
            yawns Moderator @donutsoup last edited by

            @donutsoup

            You mean just showing an excerpt of the actual text? You could try to fiddle around with CSS using text-overflow: ellipsis; but this does not support multiline text. So it would be very ugly 🙂 Besides that, this is not possible at this point.
            Should be easy to implement something like maxLength: 200, to cut the text after 200 characters and to show a … at the end to indicate there is more text. I don’t see the use, as you cannot tap the … to see the whole text.

            I submitted a Pull Request, let’s see if cowboysdude accepts my changes to his module 🙂

            D cowboysdude 3 Replies Last reply Reply Quote 1
            • D
              donutsoup @yawns last edited by donutsoup

              @yawns Thank you! Solid suggestions. Yeah an excerpt would work. I just want less info on the screen at a time, and more of them. What I was envisioning is like what pops up when you type a date into Wikipedia (is that a faux pas? Noob here…). This was under the “Feb 12” entry: 0_1518501360438_Screen Shot 2018-02-12 at 11.53.57 PM.png

              1 Reply Last reply Reply Quote 0
              • D
                donutsoup @yawns last edited by

                @yawns Ok I think I found what I’m looking for here: http://history.muffinlabs.com

                Now how do I get it on my Magic Mirror? Again, Noob here.

                N 1 Reply Last reply Reply Quote 0
                • cowboysdude
                  cowboysdude Project Sponsor Module Developer last edited by

                  Just write a module.

                  1 Reply Last reply Reply Quote 0
                  • cowboysdude
                    cowboysdude Project Sponsor Module Developer @yawns last edited by

                    @yawns said in This Day in History ticker?:

                    @donutsoup

                    You mean just showing an excerpt of the actual text? You could try to fiddle around with CSS using text-overflow: ellipsis; but this does not support multiline text. So it would be very ugly 🙂 Besides that, this is not possible at this point.
                    Should be easy to implement something like maxLength: 200, to cut the text after 200 characters and to show a … at the end to indicate there is more text. I don’t see the use, as you cannot tap the … to see the whole text.

                    I submitted a Pull Request, let’s see if cowboysdude accepts my changes to his module 🙂

                    I wouldn’t have a problem with that if it’s a config option. 🙂

                    yawns 1 Reply Last reply Reply Quote 0
                    • yawns
                      yawns Moderator @cowboysdude last edited by

                      @cowboysdude said in This Day in History ticker?:

                      I wouldn’t have a problem with that if it’s a config option. 🙂

                      That’s exactly what I submitted: https://github.com/cowboysdude/MMM-History/pulls

                      cowboysdude 1 Reply Last reply Reply Quote 3
                      • cowboysdude
                        cowboysdude Project Sponsor Module Developer @yawns last edited by cowboysdude

                        @yawns said in This Day in History ticker?:

                        @cowboysdude said in This Day in History ticker?:

                        I wouldn’t have a problem with that if it’s a config option. 🙂

                        That’s exactly what I submitted: https://github.com/cowboysdude/MMM-History/pulls

                        Then request accepted 🙂 Thank you! It’s done!

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