MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Lusbueb
    3. Best
    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: 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: Netatmo module will not shown

      @kusselin
      In your configuration, I’m missing the entry modulOrder. This entry was essential for me! I initially used the default name until I realized that it only works if the module name is stored exactly as you configured it in the web-app (https://auth.netatmo.com/de-de/access/login):

      my config:

      		{
      		module: 'netatmo',
      		position: 'middle_center', // the location where the module should be displayed
      		config: {
      			clientId: '*myID*', // your app id
      			clientSecret: '*mysecret*', // your app secret
      			refresh_token: *'mytoken*', // your generated refresh token
      			moduleOrder: ["Outdoor","Regen","Wind","Schlafzimmer","Wohnzimmer"], //take same names from web-app!
      			updateInterval: 6, // every 3 minutes, refresh interval on netatmo is 10 minutes
      			animationSpeed: 1000,
      			design: 'bubbles', // classic or bubbles
      			horizontal: false,
      			lastMessageThreshold: 600, // in seconds (10 minutes)
      			showLastMessage: true,
      			showBattery: true,
      			showRadio: true,
      			showWiFi: true,
      			showTrend: true,
      			showMeasurementIcon: true,
      			showMeasurementLabel: true,
      			showStationName: false,
      			showModuleNameOnTop: true,
      			fontClassModuleName: 'small', // xsmall, small, medium, large, xlarge
      			fontClassPrimary: 'large',
      			fontClassSecondary: 'xsmall',
      			fontClassMeasurement: 'xsmall',
      			thresholdCO2Average: 800,
      			thresholdCO2Bad: 1800,
      			mockData: false,
      		}
      		},
      

      https://home.netatmo.com/control/dashboard
      49d249bf-378a-4219-bfbc-9c4ec2325410-image.png

      MM:
      71c93ef7-bfc8-4db0-ac7f-7e289ec92301-image.png

      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: MMM-Netatmo does not load

      @tommys in history the moduleOrder was like this:

      moduleOrder: ["Outdoor", "Regen", "Wind", "Schlafzimmer", "Wohnzimmer"]
      

      but in newer versions the code has a new variable called showStationName and as default it is set to true. Now set this to false or expand the moduleOrder like this StationName - Module

      moduleOrder: ["im Fritz - Outdoor","im Fritz - Regen","im Fritz - Schlafzimmer","im Fritz - Wohnzimmer"]
      

      this solved my Problem Netatmo load without errors but shows nothing (blank screen)

      good luck, Peter

      posted in Utilities
      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
    • 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?

      @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
    • 1 / 1