MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. sdetweil
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 108
    • Topics 88
    • Posts 20,667
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-NewsFeedTicker not displaying full article, etc.

      @whoremoan the code does

      initial calc

       tickerBody.style.animationDuration = Math.round(this.config.updateInterval / 1000) + "s";
      

      this one u can change in config

      then using the actuals it does

                      function calcSpeed(speed) {
                          // Time = Distance/Speed
                          var spanSelector = document.querySelectorAll("headline"),
                              i;
                          for (i = 0; i < spanSelector.length; i++) {
                              var spanLength = spanSelector[i].offsetWidth,
                                  timeTaken = spanLength / speed;
                              spanSelector[i].style.animationDuration = timeTaken + "s";
                          }
                      }
                      calcSpeed(100);
      

      so, it calculates seconds in characters divided by 100/second,

      this second one for me is suspect, as until getDom() returns the 1st time, there are NO spans with headline class IN the dom.
      then on each other pass, there is the old one being replaced

      so THIS new (about to be shown headline is a fixed rate. regardless of content size

      probably the bigger problem is that the end of animation calls

        scheduleUpdateInterval: function() {
              var self = this;
      
              self.updateDom(self.config.animationSpeed);
      
              timer = setInterval(function() {
                  self.activeItem++;
                  self.updateDom(self.config.animationSpeed);
              }, this.config.updateInterval);
          },
      

      which refreshes the content AND starts a repeating time that does that too… on a fixed schedule.
      but it keeps starting new timers, on top of prior timers…

      posted in Troubleshooting
      S
      sdetweil
    • RE: How to migrate from one Pi to another (maybe MagicMirrorOS)

      @mcnahum MMOS is good for what it does, but a lot of the instructions you will find here and other places won’t work as MM is running inside a docker container… so all the maintenance work will be different

      for migrate…

      I wrote a little backup/restore

      which saves config.js, and custom.css and the links to the modules you have installed

      and then restore reads that info and reinstalls modules to a new MM install (previously completed, maybe with the automated install script, see https://github.com/sdetweil/MagicMirror_scripts) …

      my idea is that you would use git to hold the info from the backup (really small as just 2 files and links)
      (so you are not backing up gigabytes for stuff)

      and then clone it and restore from there

      https://github.com/sdetweil/MagicMirror-backup-restore

      the commands have help --help will display that

      posted in General Discussion
      S
      sdetweil
    • new script to install/fix PM2 config for start on boot

      i have just created a script for pm2 setup only…

      bash -c  "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
      

      this will remove any current MM definition and create a new one
      install pm2 if need be, and set it up for restart on boot…

      I also replicated this code in the installer to fix the problems there

      all these scripts (raspberry.sh, update-script.sh and fixuppm2.sh) now create log files of their processing

      let me know how it goes…

      posted in Troubleshooting
      S
      sdetweil
    • RE: Weather for the next 5 days

      @earnestrichards openweathermap says their forecast is updated every 3 hours, so at 9pm they would be forecasting for tomorrow…

      current weather is different than forecast

      posted in Troubleshooting
      S
      sdetweil
    • raspi 64 bit available

      see
      https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/

      note the issues w 64 bit chromium in the text

      posted in General Discussion
      S
      sdetweil
    • RE: new script to install/fix PM2 config for start on boot

      @sdetweil said in new script to install/fix PM2 config for start on boot:

      bash -c “$(curl -sL https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)”

      i added a couple fixes in case pm2 was already installed but didn’t work…

      posted in Troubleshooting
      S
      sdetweil
    • RE: install MM2.18 on win10 pc

      @johans see this issue comment

      https://github.com/MichMich/MagicMirror/issues/2779#issuecomment-1011124060

      posted in Troubleshooting
      S
      sdetweil
    • forum. controls to stop more spam

      in an attempt to limit spammers from registering and posting goo, we have enabled a higher level of reputation required to fill out the ‘About me’ and signature fields in the use profile.

      edit: and the website and picture content as well
      no more free advertising

      sorry. I know this will be trouble for some

      posted in General Discussion
      S
      sdetweil
    • RE: Magic Mirror wont start

      @everybodyfloats try my updated installer.

      Rename the MagicMirror folder out of the way first

      https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

      posted in Troubleshooting
      S
      sdetweil
    • RE: List of Modules with "Last Update" date

      @spospordo yeh, the change was a year ago… but I understand…

      thats why I post and pin resolutions to known problems at the top of the troubleshooting section.

      posted in Troubleshooting
      S
      sdetweil
    • 1 / 1