MagicMirror Forum

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

    Display More on Python Print Module

    General Discussion
    module
    3
    7
    83
    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.
    • E
      Extra 0 last edited by

      Hello,

      I’m using the Python Print Module by @sdetweil and I was wondering if there’s a way to have it print multiple lines (a long paragraph) and have it auto scroll on the screen?

      Right now, when my code needs to print out a paragraph, nothing will print out/display because it’s too long. So, I’m wondering I can display all that content in one shot?

      Thanks in advance.

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

        @extra-0 don’t understand, won’t display.

        my code puts all the content in a div, it should display up to the bottom edge of the screen.
        and every python print sends a new bunch of text replacing the prior one

        I set the python script to not buffer stdout so the content should come thru immediately.

        but if u want to add scrolling, fork my repo and be my guest. youight be able to do it all with css transition… but I have trouble with that all the time.

        Sam

        Create a working config
        How to add modules

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

          @sdetweil It displays but it covers some of the other module’s contents on the screen. Is there a way to have it so it won’t cover the other content on the screen? ( Maybe modifying the width and height, make half of it fade, or send it to the back, behind the other modules?)

          Or perhaps I’ll make the long texts display in parts/sections (Through my python code)

          In my python code I also have some text print out with a TypeWriter effect (that doesn’t display to the Magic Mirror, because it rapidly prints one letter at a time).
          Is there a way to implement that so the python print module can print the text using the typewriter effect or does that have to be done through CSS?

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

            @extra-0 you could set the size of the div thru css. the class is PythonPrint (see the example in the readme). but that will clip the content not scroll unless u add css classes to do that.

            otherwise it keeps going. this is just a web page

            as for typewriter mode, I think u can do that w css a Google search should help there.

            I don’t know, never tried any of those kinds of presentation

            Sam

            Create a working config
            How to add modules

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

              @sdetweil Alright, thanks for the insight.

              I’ll try some things out and see if I can get it working the way I want it to.

              KristjanESPERANTO 1 Reply Last reply Reply Quote 0
              • KristjanESPERANTO
                KristjanESPERANTO @Extra 0 last edited by KristjanESPERANTO

                Out of curiosity: I can’t find any Python Print Module on the list of 3rd party modules. Which one is it exactly?

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

                  @kristjanesperanto it’s not on the list

                  https://github.com/sdetweil/MMM-PythonPrint

                  Sam

                  Create a working config
                  How to add modules

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