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

    Posts

    Recent Best Controversial
    • RE: Newbie question on updates

      I added a script to this topic that should see you covered:

      https://forum.magicmirror.builders/topic/361/how-to-update/12?page=2

      posted in Troubleshooting
      I
      izanbard
    • RE: How to update.

      @dam4 It is likely that two things are wrong.

      First the script needs to be executable so please run:

      $ chmod u+x update.sh
      

      this will add execute permissions for the file owner to the file. Have a look at man chmod for more detail.

      The next thing is to make sure that Linux knows where to look for it. This can be quite a complicated subject involving descriptions of the $PATH environment variable and all sorts. But the easy way to do it is to add a relative or absolute path to the start of the command. So from the command prompt in the folder where the script exists try:

      $ ./update.sh
      

      where the . means “this folder”. For the cron tab through you might want to use the full path something like:

      0 2 * * * /full/path/to/file/update.sh
      

      Hope at least some of that is meaningful for you.

      posted in Tutorials
      I
      izanbard
    • RE: console.Log() shows nothing?

      @mortenbirkelund just a note if you put a console.log() in the node_helper, then it apears on the command line output (or PM2 out.log if you are using PM2)

      posted in Development
      I
      izanbard
    • RE: console.Log() shows nothing?

      @mortenbirkelund these console.log() statements are not crated in the node application, but in the browser. Open the mirror in a main stream browser (IE or chrome or something) and hit F12 which will bring up the dev tools look in the console there for your message.

      posted in Development
      I
      izanbard
    • RE: How to update.

      I use this script, which comes with no guarantee:

       #!/usr/bin/env bash
      
      cd /home/pi/MagicMirror
      echo "######### CHECKING MAGIC MIRROR ##########"
      git fetch
      if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]
      then
          echo "######### UPGRADING MAGIC MIRROR #########"
          git pull
          npm install
      else
          echo "######## NO UPGRADE REQUIRED #########"
      fi
      echo ""
      
      cd modules
      
      for directory in *; do
          if [[ -d ${directory} && ${directory} != "node_modules" && ${directory} != "default" ]]; then
              echo "######### CHECKING ${directory} ##########"
              cd ${directory}
              git fetch
              if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then
                  echo "######### UPGRADING ${directory} #########"
                  git pull
                  if [[ -e "package.json" && -f "package.json" ]]; then
                      npm install
                  fi
              else
                  echo "######## NO UPGRADE REQUIRED #########"
              fi
              echo ""
              cd ..
          fi
      done
      
      posted in Tutorials
      I
      izanbard
    • RE: Cast from Server

      The simple answer is no not really.

      I have done some experimentation and if I run the mirror in chrome from the server machine and then cast that page then a still snapshot of the mirror appears on my cast device.

      posted in Feature Requests
      I
      izanbard
    • RE: For the life of me

      @Mykle1 lve your enthusiasm

      posted in Troubleshooting
      I
      izanbard
    • RE: Add data from another Pi

      Have emailed you with some instructions, but check:
      [card:izanbard/MMM-MyTemps]
      for the full source

      posted in Troubleshooting
      I
      izanbard
    • RE: Add data from another Pi

      @izanbard Of course if you already have a webpage with exactly the right stuff on it, then you could use the iframe module.

      posted in Troubleshooting
      I
      izanbard
    • RE: Add data from another Pi

      @Richard238

      serving it up via Apache/MySQL/PHP.

      I can help modify the scrip that servers up the data for viewing and instead of returning HTML it could easily return JSON. That would be step one. To help I would need to see your php files and know what url you are using to access the PHP page. either PM them to me, or point me at a repo.

      Step two would be writing a MM module that gets the JSON and displays it right. I may be able help here too.

      posted in Troubleshooting
      I
      izanbard
    • RE: MMM-NetworkScanner help needed

      in this context self has no meaning - add var self = this; to the top of the function or replace self with this

      posted in Troubleshooting
      I
      izanbard
    • Abandoned module - Yours if you want to pick it up

      Got part way through developing this module, but found in testing that my environment was not up to the task of playing the videos. more in the read me
      [card:izanbard/MMM-youreBeautiful]
      I am putting it up here in case anyone wants to pick it up

      posted in Development
      I
      izanbard
    • [MMM-IMDBComingSoon] - a module to show films from IMDB's Coming Soon section

      [card:izanbard/MMM-IMDBComingSoon]

      This is a module for anyone who wants to see whats coming up at the movies. It uses an API proxy to get the data from IMDB’s Coming Soon sectionfor this month and next. At the time of release it filters these for ones playing in English, but you are welcome to fork and make that an option.

      Props to fewieden for giving me the idea with his module MMM-MovieInfo which used a different DB.

      The data in the coming soon section is sometimes a bit out of date - for example when getting coming soon for Jan and Feb of 2017 I got a range from Apr 2015 - May 2017. Anyway here is a screen shot of the output. Again at time of release there are no optios for what data to show, but you are welcome to fork and add the options (there is still loads of stuff in the JSON that I have not included.

      Here is an example screen shot:

      screenshot of MMM-IMDBComingSoon

      posted in Entertainment
      I
      izanbard
    • RE: Display modules in a carousel

      @PointPubMedia yes you can, but you do it by position. Read the config above and see if you can work out in the positional settings you ignore modules per position. Hint it is between enabled and overrideTransitionInterval.

      posted in System
      I
      izanbard
    • RE: Display modules in a carousel

      @PointPubMedia yes, if all your iframes are in the same “position” (say top_left)on the page then this config should do it:

              {
                  module: 'MMM-Carousel',
                  config: {
                      transitionInterval: 10000,
                      mode: 'positional',
                      top_left: {enabled: true, ignoreModules: [], overrideTransitionInterval: 10000},
                  }
              },
      
      posted in System
      I
      izanbard
    • RE: Display modules in a carousel

      @amanzimdwini have a look at the latest version, I think it will have some of the features you are looking for

      posted in System
      I
      izanbard
    • RE: Display modules in a carousel

      @PointPubMedia @cnelso24 Hey, I have just had a PR accepted that adds several config options that should help you

      posted in System
      I
      izanbard
    • 1 / 1