• 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.

Third-Party Module - how to get help?

Scheduled Pinned Locked Moved Solved Troubleshooting
64 Posts 3 Posters 26.3k 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.
  • S Offline
    sdetweil @ember1205
    last edited by sdetweil Dec 12, 2019, 4:41 PM Dec 12, 2019, 4:29 PM

    @ember1205 yes, it contains the code for the transition handling.

    I would make the swap 1 gig… its only a little disk (memory card) space…

    the code.

    basically it adds an img (appends) to the div to display, the image is hidden,
    then there is an onload handler, that gets notified when the image is loaded (not yet visible)
    it also adjusts the image size to keep the proportions correct, (css background-size:cover and contain both distort the image)

    it makes the image visible, and starts the timer for the next image.

    it then checks to see if there are TWO images in the div,
    if so, it hides the 1st, shows the second and removes the 1st (old image)
    repeat

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    E 1 Reply Last reply Dec 12, 2019, 4:31 PM Reply Quote 0
    • E Offline
      ember1205 @sdetweil
      last edited by Dec 12, 2019, 4:31 PM

      @sdetweil

      I will give your code a try. Increasing the swap size and re-enabling the cache resulted in another almost immediate crash.

      :(

      S 1 Reply Last reply Dec 12, 2019, 4:37 PM Reply Quote 0
      • S Offline
        sdetweil @ember1205
        last edited by Dec 12, 2019, 4:37 PM

        @ember1205 hm… mine runs like a top on pi0 , pi3 b+, pi4, odroid, jetson nano , macOs, ubuntu

        my selected pics holds 100 pics, some as large as 15meg. 7.4 meg avg

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        E 1 Reply Last reply Dec 12, 2019, 4:41 PM Reply Quote 0
        • E Offline
          ember1205 @sdetweil
          last edited by Dec 12, 2019, 4:41 PM

          @sdetweil

          Seems your code has dependencies? I’m getting an error when trying to load:

          WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node_helper'
          
          S 1 Reply Last reply Dec 12, 2019, 4:43 PM Reply Quote 0
          • S Offline
            sdetweil @ember1205
            last edited by Dec 12, 2019, 4:43 PM

            @ember1205 node_help is the build in module,

            sounds like u did an npm install, even tho not needed (and finds a bug or new feature we don’t want)

            recover with this

            cd ~/MagicMirror
            git checkout modules/node_modules/node_helper/index.js
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            E 1 Reply Last reply Dec 12, 2019, 4:47 PM Reply Quote 0
            • E Offline
              ember1205 @sdetweil
              last edited by Dec 12, 2019, 4:47 PM

              @sdetweil said in Third-Party Module - how to get help?:

              git checkout modules/node_modules/node_helper/index.js

              yeah, I get into the habit of installing add-ons this way and I did the npm install.

              Your fix cleaned it right up and it started up. But, guess what? Out of memory again.

              Seems that I have bigger issues here…

              S 1 Reply Last reply Dec 12, 2019, 4:51 PM Reply Quote 0
              • S Offline
                sdetweil @ember1205
                last edited by Dec 12, 2019, 4:51 PM

                @ember1205 show me the output of

                node-v 
                npm -v
                lsb_release -a
                uname -a
                

                and other than image, you are running default modules, correct?

                I’m gonna be out for a couple hours, running xmas errands. will try to look in on my phone

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                E 2 Replies Last reply Dec 12, 2019, 4:56 PM Reply Quote 0
                • E Offline
                  ember1205 @sdetweil
                  last edited by Dec 12, 2019, 4:56 PM

                  @sdetweil

                  pi@raspberrypi:~ $ node -v
                  v10.17.0
                  
                  pi@raspberrypi:~ $ npm -v
                  6.11.3
                  
                  pi@raspberrypi:~ $ lsb_release -a
                  No LSB modules are available.
                  Distributor ID: Raspbian
                  Description:    Raspbian GNU/Linux 10 (buster)
                  Release:        10
                  Codename:       buster
                  
                  pi@raspberrypi:~ $ uname -a
                  Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
                  
                  S 1 Reply Last reply Dec 12, 2019, 4:58 PM Reply Quote 0
                  • E Offline
                    ember1205 @sdetweil
                    last edited by Dec 12, 2019, 4:58 PM

                    @sdetweil said in Third-Party Module - how to get help?:

                    and other than image, you are running default modules, correct?

                    I have installed your MMM-ImagesPhotos and MMM-BackgroundSlideshow. Even paring the configuration down to ONLY one third-party module running, it will die unless I have the http cache disabled.

                    I have changed the swap size from the default of 100 to 250 and when it crashed, there was only a small portion of swap being used.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @ember1205
                      last edited by sdetweil Dec 12, 2019, 4:59 PM Dec 12, 2019, 4:58 PM

                      @ember1205 hm

                      my uname -a

                      Linux raspberrypi4 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
                      

                      we have different kernels… wonder why
                      just got the pi4 yesterday

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      E 1 Reply Last reply Dec 12, 2019, 5:00 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 2 / 7
                      2 / 7
                      • First post
                        14/64
                        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