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.

    Calvin and Hobbs

    Scheduled Pinned Locked Moved Solved Troubleshooting
    18 Posts 3 Posters 3.7k Views 3 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.
    • S Do not disturb
      sdetweil @plainbroke
      last edited by sdetweil

      @plainbroke try this

      using this version https://github.com/B3DTech/MMM-CalvinAndHobbes.git
      in the node_helper.js

      comment out this line

                  const $ = cheerio.load(html);
                  //$('div[class^="ShowFiveFavorites"]').remove(); <----- comment out like this
      

      must restart MM as the node_helper is loaded only at MM startup time

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      plainbrokeP 1 Reply Last reply Reply Quote 0
      • plainbrokeP Offline
        plainbroke @sdetweil
        last edited by plainbroke

        @sdetweil
        Well that brought back the screen I have been stuck on, (that does not update)., I think it is the comic from april 3rd 2025, and now it is scrunched up at the top of my screen instead of filling the screen.
        Too weird how that one line does that.

        .MMM-CalvinAndHobbes .module-content {
                Margin-top: 10px;
                Margin-left: 10px;
                max-width: 1810px;
                max-height: 1025px;
                width: 1810px;
                height: 1025px;
                overflow: hidden;
        }
        
        #cahcomiccontent {
                width: 1810px;
                height: 1025px;
        }
        

        Is what I have had in my custom.css for a long time to show the comic full screen.
        That took a lot of tweaking to get just right.

        Slow learner. But trying anyways.
        MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
        Running Trixie and the latest MM version.

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @plainbroke
          last edited by

          @plainbroke i click the screen and it goes to center

          i dont see why the image is scrunched and stretched

          this is all the time i can invest in this

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          plainbrokeP 1 Reply Last reply Reply Quote 1
          • plainbrokeP Offline
            plainbroke @sdetweil
            last edited by

            @sdetweil
            That is ok, really.
            I am burnt out too trying to get it up and running myself.
            I am thinking unless someone else wants to put a bunch of time in to figuring out what changed. I am done with this one.
            I do appreciate the time you have invested in trying to figure it out…
            Thank you very much for your help…
            I will mark it resolved.

            Slow learner. But trying anyways.
            MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
            Running Trixie and the latest MM version.

            karsten13K 1 Reply Last reply Reply Quote 0
            • plainbrokeP plainbroke has marked this topic as solved on
            • karsten13K Offline
              karsten13 @plainbroke
              last edited by

              @plainbroke

              invested some time to grab the comic url, you can try my fork.

              plainbrokeP 1 Reply Last reply Reply Quote 1
              • plainbrokeP Offline
                plainbroke @karsten13
                last edited by

                @karsten13
                Thank you so very much for your work.
                I did have to restore the original css file from the original builder of this module.
                So I could get the full screen to work. Other wise it works so great now.
                My wife is very pleased.
                Thank you again for your great work…

                Just Jeff

                Slow learner. But trying anyways.
                MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                Running Trixie and the latest MM version.

                karsten13K 1 Reply Last reply Reply Quote 0
                • karsten13K Offline
                  karsten13 @plainbroke
                  last edited by

                  @plainbroke said in Calvin and Hobbs:

                  I did have to restore the original css file from the original builder of this module.

                  hm, did I fork from the wrong repo?

                  If you share a link to the original file you mentioned I can update it on my fork.

                  plainbrokeP 1 Reply Last reply Reply Quote 0
                  • plainbrokeP Offline
                    plainbroke @karsten13
                    last edited by

                    @karsten13
                    No you did not fork from the wrong repo, someone merged the two repo’s so they where the same I have the full original that i backed up the files to my nas drive.
                    I do not know how to send them to you or even share them. Not sure why the css was changed either. If it is not to technical I could try to load it somewhere on here for you…

                    Slow learner. But trying anyways.
                    MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                    Running Trixie and the latest MM version.

                    karsten13K 1 Reply Last reply Reply Quote 0
                    • karsten13K Offline
                      karsten13 @plainbroke
                      last edited by

                      @plainbroke said in Calvin and Hobbs:

                      I do not know how to send them to you or even share them. Not sure why the css was changed either. If it is not to technical I could try to load it somewhere on here for you…

                      you could publish the content of the file here as text using a code block

                      content
                      
                      plainbrokeP 1 Reply Last reply Reply Quote 0
                      • plainbrokeP Offline
                        plainbroke @karsten13
                        last edited by plainbroke

                        @karsten13
                        The original cahcomic.css contains only this.
                        Hope this helps you. I am not very good with all this code stuff.
                        Mainly I do it through trial and error.

                        /* The basic container */
                        .cahcomiccontainer {
                            overflow: hidden;
                        
                            /* To make the height of the container exact. */
                            -webkit-box-sizing: border-box;
                            -moz-box-sizing: border-box;
                            box-sizing: border-box;
                        }
                        #cahcomiccontent {
                          white-space: nowrap;
                          position: relative;
                          overflow: hidden;    /* Required to make ellipsis work */
                          text-overflow: clip;
                          
                          top: 0%;
                          
                          -webkit-transition: top 3s, height 3s;
                          -moz-transition: top 3s, height 3s;
                          transition: top 3s, height 3s;
                        }
                        

                        Slow learner. But trying anyways.
                        MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                        Running Trixie and the latest MM version.

                        plainbrokeP karsten13K 2 Replies Last reply Reply Quote 0
                        • plainbrokeP Offline
                          plainbroke @plainbroke
                          last edited by

                          Screenshot 2025-06-09 140803.png
                          Hopefully you can tell it fills my screen and is todays Monday June 9 2025’s
                          comic. We really love this comic, both my wife and I are big fans of Calvin and Hobbs comic. I really appreciate the help you provided getting the comic back to working form for us… Keep up the great work you are appreciated…

                          Slow learner. But trying anyways.
                          MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                          Running Trixie and the latest MM version.

                          1 Reply Last reply Reply Quote 0
                          • karsten13K Offline
                            karsten13 @plainbroke
                            last edited by

                            @plainbroke said in Calvin and Hobbs:

                            The original cahcomic.css contains only this.

                            I updated my fork with the original css, for updating go into the module folder and do

                            # remove all changed stuff in this repo out of the way:
                            git reset --hard
                            # pull new version:
                            git pull
                            
                            plainbrokeP 1 Reply Last reply Reply Quote 0
                            • plainbrokeP Offline
                              plainbroke @karsten13
                              last edited by

                              @karsten13
                              Done, Thank you. Working like it should now.

                              Slow learner. But trying anyways.
                              MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                              Running Trixie and the latest MM version.

                              1 Reply Last reply Reply Quote 0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 1 / 1
                              • 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