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: updated installer script available for testing

      @mrshu i just need some more testers… the screen saver and pm2 changes are newer…

      I want this to BE the installer script…
      and my updater too
      and maybe the pm2 standalone script

      yes, logging will help everyone.

      posted in Troubleshooting
      S
      sdetweil
    • RE: pir sensor

      @branchi so, you got a missing , or quote "

      Do

      npm run config:check
      

      Errors are usually reported on the line after the problem

      posted in Requests
      S
      sdetweil
    • proposed New processing and config for pi0/armv6 and serverOnly mode

      some users are using older PI hardware, based on the armv6 chipset. Unfortunately the electron browser is no longer built for that chipset, and forcing armv7 no longer works.

      so I propose an update to the run-start.sh script which will detect this and use the chromium browser instead. this helps because the impacted users don’t have to learn to modify the run-start file or the why

      its slower to start up, but just as functional
      (we also need to make the electron dependency optional, so the install will complete)

      also, in some cases our users would like to run serverOnly mode, so I think we could add a config.js option to enable that, and use the same update to run-start to just NOT start a browser…

        serverOnly:  "local"  or true or false (default)
                                    true means runserveronly, but no UI ON the local system
                                   "local"  means runserveronly, also run UI ON the local system, default for armv6
                                   false  (default), means do not run serveronly default for NOT armv6
      

      here is my proposed change to run-start.sh (extra spaces to handle the forum chopping off stuff after < )

      #!/bin/bash
        # use bash instead of sh
      ./untrack-css.sh
      
      if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
      	export DISPLAY=:0 # Set by default display
      fi
      # get the processor architecture
      arch=$(uname -m)
      # got the config option, if any
      serveronly=$(grep -i serveronly: config/config.js | awk '{print tolower($2)}' | tr -d ,\"\')
      # set default if not defined in config
      serveronly="${serveronly:=false}"
      # check for xwindows running
      xorg=$(pgrep Xorg)
      #
      # if the user requested serveronly OR 
      #    electron support for armv6l has been dropped OR
      #    system is in text mode
      #
      if [ "$serveronly." != "false." -o  "$arch" == "armv6l" -o  "$xorg." == "." ]; then
      	
      	# if user explicitly configured to run server only (no ui local)
      	# OR there is no xwindows running, so no support for browser graphics
      	if [ "$serveronly." == "true." -o "$xorg." == "." ]; then
      	  # start server mode, 
      	  node serveronly
      	else 
      		# start the server in the background
      		# wait for server to be ready
      		# need bash for this
      		exec 3< < (node serveronly)
      
      		# Read the output of server line by line until one line 'point your browser'
      		while read line; do
      			 case "$line" in
      			 *point\ your\ browser*)
      					echo $line 
      					break
      					;;
      			 *)
      					echo $line
      					#sleep .25
      					;;
      			 esac
      		done < &3
      
      		# Close the file descriptor
      		exec 3< &-	
      
      		# lets use chrome to display here now
      		# get the server port address from the ready message
      		port=$(echo $line | awk -F\: '{print $4}')	
      		# start chromium 
      		echo "Starting chromium browser now, have patience, it takes a minute"
      		chromium-browser -noerrdialogs -kiosk -start_maximized  --disable-infobars --app=http://localhost:$port  --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors 2>/dev/null
      		exit		  
      	fi 
      else  
      	# we can use electron directly	
      	`electron js/electron.js $1`;
      fi
      
      posted in General Discussion armv6 serveronly
      S
      sdetweil
    • RE: Can't install / Error with NPM / Electron not found

      @mdhenriksen said in Can't install / Error with NPM / Electron not found:

      libgconf-2.so.4

      a google search for ‘error while loading shared libraries: libgconf-2.so.4’
      see https://github.com/electron/electron/issues/1518

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-EasyBack no autostart Video

      @Darkmx-6 i don’t know where mmstart.sh came from… it is not part of the base MagicMirror solution.

      the MagicMirror start script is ~/MagicMirror/installers/mm.sh

      it does not run serveronly… it assumes you are running the mirror user experience ON the same machine.

      i don’t know if EasyBack works on the remote client of serveronly… THAT browser would have to enable autoplay… our fix was for the electron browser running ON the same machine

      edit:
      ok, i see what you are doing… using chromium for the browser for some reason…

      so u have to disable the autoplay blocker there , from
      https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

      You can decide to disable entirely the autoplay policy by setting the 
      Chrome flag "Autoplay Policy" to "No user gesture is required" at chrome://flags/#autoplay-policy. 
      This allows you to test your website as if user were strongly engaged with your site and playback autoplay would be always allowed.
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: The novice user problem with modules

      @art212 see the two links in my signature

      posted in Requests
      S
      sdetweil
    • RE: Coming Soon: Faster, 100% Backwards-Compatible MagicMirror Alternative

      @joshwilsonvu

      Maybe it could live on another branch so users could type git checkout experimental to opt into the new features.

      certainly this would be a good approach

      posted in General Discussion
      S
      sdetweil
    • RE: Can't install / Error with NPM / Electron not found

      note the missing g

      libconf-2-4
      should be
      libgconf-2-4

      posted in Troubleshooting
      S
      sdetweil
    • RE: troubles with rfacts, lunartic et google maps

      @chassain-0 did u get the updated googlemapstraffic from my GitHub repo?

      posted in Troubleshooting
      S
      sdetweil
    • RE: Chart Module for Json Data

      @feleb i have a covid charting module

      https://github.com/sdetweil/MyCovid19

      posted in Requests
      S
      sdetweil
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 165
    • 166
    • 6 / 166