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

    Posts

    Recent Best Controversial
    • RE: After update MMM-Buttons breaks, made things worse trying to fix it

      @gonzonia had same problems and tried several methods. i’m not a linux crack and can only make what other say to try. :see-no-evil_monkey: :grinning_squinting_face:

      this Post help me: https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more/2?page=1

      1. delete any existing ../modules/MMM-Buttons folder.

      2. clone the repository in your modules folder:
        cd ~/MagicMirror/modules
        git clone https://github.com/MarcLandis/MMM-Buttons.git
        cd MMM-Buttons

      3. install magicmirror-rebuild library with this command:
        npm i magicmirror-rebuild

      pi@MM:~/MagicMirror/modules/MMM-Buttons $ npm i magicmirror-rebuild
      
      added 191 packages, and audited 192 packages in 43s
      
      37 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      1. try to execute MagicMirror-rebuild script for rebuild with this command:
        ./node_modules/.bin/MagicMirror-rebuild
      pi@MM:~/MagicMirror/modules/MMM-Buttons $ ./node_modules/.bin/MagicMirror-rebuild
      ⠹ MagicMirror Building module: epoll, Completed: 0gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
      ⠸ MagicMirror Building module: epoll, Completed: 0gyp http GET https://www.electronjs.org/headers/v25.2.0/node-v25.2.0-headers.tar.gz
      ⠏ MagicMirror Building module: epoll, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v25.2.0/node-v25.2.0-headers.tar.gz?force_headers_dist=1
      ⠼ MagicMirror Building module: epoll, Completed: 0gyp http GET https://www.electronjs.org/headers/v25.2.0/SHASUMS256.txt
      ⠋ MagicMirror Building module: epoll, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v25.2.0/SHASUMS256.txt?force_headers_dist=1
      ⠙ MagicMirror Building module: epoll, Completed: 0gyp info spawn /usr/bin/python3
      gyp info spawn args [
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/gyp/gyp_main.py',
      gyp info spawn args   'binding.gyp',
      gyp info spawn args   '-f',
      gyp info spawn args   'make',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/25.2.0/include/node/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/25.2.0',
      gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/25.2.0/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll',
      gyp info spawn args   '-Dnode_engine=v8',
      gyp info spawn args   '--depth=.',
      gyp info spawn args   '--no-parallel',
      gyp info spawn args   '--generator-output',
      gyp info spawn args   'build',
      gyp info spawn args   '-Goutput_dir=.'
      gyp info spawn args ]
      ⠹ MagicMirror Building module: epoll, Completed: 0gyp info spawn make
      gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
      make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build“ wird betreten
        CXX(target) Release/obj.target/epoll/src/epoll.o
      ⠹ MagicMirror Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
      ⠧ MagicMirror Building module: epoll, Completed: 0  COPY Release/epoll.node
      make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build“ wird verlassen
      ✔ MagicMirror Rebuild Complete
      

      That you see MagicMirror Rebuild Complete !
      Your module is now installed correctly

      This way will also be good for the Originl MMM-Buttons from the Year 2017 and many other modules!

      if you work with this module https://github.com/Jopyth/MMM-Buttons you must change 2 lines and add 1 line in the file package.json after git clone:

      a.) change Line 23 from
      "postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron" to
      "postinstall": "node_modules/.bin/magicmirror-rebuild -e ../../node_modules/electron"

      b.) change Line 29 from
      "electron-rebuild": "^1.2.1" to
      "magicmirror-rebuild": "^1.0.0"

      c.) add a line after line26 from
      "onoff": "latest" to

      "onoff": "latest",
      "magicmirror-rebuild": "latest"
      

      after that you can continue with step 3, good luck :)

      posted in Troubleshooting
      LusbuebL
      Lusbueb
    • RE: electron-rebuild and MagicMirror v2.18 (and more)

      @bugsounet said in electron-rebuild and MagicMirror v2.18 (and more):

      npm i magicmirror-rebuild

      Thank you very much :-)

      it works for me with another module “MMM-Buttons”, I’m so happy!
      do you have to run npm i magicmirror-rebuild every time in each module folder?

      posted in Development
      LusbuebL
      Lusbueb
    • RE: What is your backup and restore method?

      @BillyTheKid9588 yes, in the raspiBackup.conf i have this to lines to stop an start MM:

      
      # commands to stop services before backup separated by &
      DEFAULT_STOPSERVICES="sudo -u pi pm2 stop mm && systemctl stop lighttpd"
      
      # commands to start services after backup separated by &
      DEFAULT_STARTSERVICES="systemctl start lighttpd && sudo -u pi pm2 start mm"
      
      

      Will this be helpfull for you?

      Regards Peter

      posted in Troubleshooting
      LusbuebL
      Lusbueb
    • RE: What is your backup and restore method?

      @swvalenti on my Netgeras ReadyNAS i have enabled NFS and SMB and a Share named backup (everyone has full-access)

      07cc27f0-c849-4a19-9028-df4b36274fbf-image.png

      i start the raspibackup.sh-Script with this helper-Script named raspiBackupNfsWrapper.sh

      #!/bin/bash
      
      #######################################################################################################################
      #
      # 	Sample script which checks whether a nfsserver is available and exports a specific directory
      # 	and then starts raspiBackup
      #
      #######################################################################################################################
      #
      #   Copyright # (C) 2017,2018 - framp at linux-tips-and-tricks dot de
      #
      #   This program is free software: you can redistribute it and/or modify
      #   it under the terms of the GNU General Public License as published by
      #   the Free Software Foundation, either version 3 of the License, or
      #   (at your option) any later version.
      #
      #   This program is distributed in the hope that it will be useful,
      #   but WITHOUT ANY WARRANTY; without even the implied warranty of
      #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      #   GNU General Public License for more details.
      #
      #   You should have received a copy of the GNU General Public License
      #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
      #
      #######################################################################################################################
      
      NFSSERVER="192.168.192.10"
      NFSDIRECTORY="/c/backup"
      MOUNTPOINT="/backup"
      
      VERSION="0.0.3"
      
      # add pathes if not already set (usually not set in crontab)
      
      if [[ -e /bin/grep ]]; then
         PATHES="/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin"
         for p in $PATHES; do
            if ! /bin/grep -E -q "[^:]$p[:$]" <<< $PATH; then
               [[ -z $PATH ]] && export PATH=$p || export PATH="$p:$PATH"
            fi
         done
      fi
      
      function cleanup() {
      	umount -f $MOUNTPOINT
      }
      
      trap cleanup SIGINT SIGTERM EXIT
      
      if ping -c1 -w3 $NFSSERVER &>/dev/null; then
      	if showmount -e $NFSSERVER | grep -q $NFSDIRECTORY; then
      		echo "Mouting $NFSSERVER:$NFSDIRECTORY to $MOUNTPOINT"
      		mount -t nfs -o soft,vers=3 $NFSSERVER:$NFSDIRECTORY $MOUNTPOINT
      		if (( $? > 0 )); then
      			echo "Failed to mount $NFSSERVER:$NFSDIRECTORY"
      			exit 42
      		fi
      		raspiBackup7412.sh
      		rc=$?
      		if (( $rc > 0 )); then
      			echo "raspiBackup failed with rc $rc"
      			exit $rc
      		fi
      	else
      		echo "Server $NFSSERVER does not provide $NFSDIRECTORY"
      		exit 1
      	fi
      else
      	echo "Server $NFSSERVER not online"
      	exit 1
      fi
      
      

      Will this be helpfull for you?

      Regards Peter

      posted in Troubleshooting
      LusbuebL
      Lusbueb
    • RE: What is your backup and restore method?

      i use this tool:

      https://www.linux-tips-and-tricks.de/en/backup/

      every night I make a full backup of all 4 Raspi as a TAR file to a NAS on my network. then i shrink and convert the TAR files into an IMG file (read Framps Linux-Tips-and-Tricks).

      so I can always make a new SD card with my Win10 and Win32 Disk Imager.

      posted in Troubleshooting
      LusbuebL
      Lusbueb
    • RE: MMM-Netatmo, no windreadings

      same problem with ‘classic’ design, so i have add folling line in the config.js as workaround:

      design: ‘bubbles’

      }
      	module: 'netatmo',
      	position: 'middle_center', // the location where the module should be displayed
      	config: {
      		clientId: '............', // your app id
      		clientSecret: '............', // your app secret
      		refreshToken: '............', // your generated refresh token
      		design: 'bubbles', //'classic' or 'bubbles'
      		moduleOrder: ["Aussen", "Regen", "Wind", "Schlafzimmer", "Wohnzimmer"]
      	}
      },
      

      please have a look at the file netatmo.js in the section defaults: all variables are shown :)

      posted in Troubleshooting
      LusbuebL
      Lusbueb
    • RE: zram-conf

      is this the same?

      How to get smooth youtube/flash video playback on Raspberry Pi (updated 25-03-2019)

      • Effective Raspberry Pi ZRAM usage

      • SeryogaBrigada/rpi-zram

      posted in General Discussion
      LusbuebL
      Lusbueb
    • RE: Wheather/ Wunderground not loading

      @coloradokb

      Yes with the new API key you get current weather data and also forecast. However, most variables have changed their name and you have to adjust the code of “MMM-WunderGround.js” and “node_helper.js”.

      Examples:

      apiBase old: “http://api.wunderground.com/api/”
      apiBase new: “https://api.weather.com/”

      forecast old: “http://api.wunderground.com/api/yourApiKey/conditions/hourly/forecast10day/astronomy/alerts/lang:DL/q/pws:ISAFENWI13.json”
      forecast new: "https://api.weather.com/v3/wx/forecast/daily/5day?postalKey=81657:US&units=e&language=en-US&format=json&apiKey=yourApiKey
      "
      Variables:

      old: wind_mph
      new: windspeed

      old: relative_humidity
      new: relativeHumidity

      The effort to rewrite the existing code is very large, unfortunately I’m not a programmer :(

      greetings from Switzerland
      Peter
      (translated with Google)

      posted in Troubleshooting
      LusbuebL
      Lusbueb
    • 1 / 1