MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Need Help - Absolute Beginner - Code Posted!

    Scheduled Pinned Locked Moved Troubleshooting
    20 Posts 3 Posters 2.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @bumrocks
      last edited by

      @bumrocks yes, just a warning… nothing u can do about it…

      should use the installer script from here
      https://github.com/sdetweil/MagicMirror_scripts

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @bumrocks
        last edited by

        @bumrocks as I said, nothing u can do… u can run audit fix, and u might get better, or might end with it not running…

        many of the ‘fixes’ require breaking changes…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • B Offline
          bumrocks @sdetweil
          last edited by

          @sdetweil
          Thank you for such a quick response! Going by magicmirrors.builders installation guidelines I was scared out of using any scripts and opted to go the manual route as it was the only way that was technically supported, at least by Michael and his “team”…At this point are you recommending I wipe my current install and use the script you recommend? Does it include Node v10 and I therefore need to wipe it too?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @bumrocks
            last edited by

            @bumrocks my scripts are listed as ‘alternative’ right below
            it also uses node 10, and would have installed for you … also fixes some odds and ends
            you can go ahead, or rename you magicmirror folder to some other name and run the script…
            it will also setup pm2 for restart after boot and disable screensaver (if u say yes at the respective prompts)

            Alternative Installation Methods
            The following installation methods are not maintained by the MagicMirror² core team. Use these scripts and methods at your own risk.
            
            #Automatic Installation Scripts
            Sam (@sdetweil, long time contributor of the MagicMirror² framework) maintains a easy to use installation and update script: https://github.com/sdetweil/MagicMirror_scripts
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              bumrocks @sdetweil
              last edited by

              @sdetweil

              Good looking out! And yes, I saw where you were listed as an alternate “authorized” way to install but let the “manual” message put the grip of fear on me, lol! I will do as you suggested and appreciate the help and tips!

              1 Reply Last reply Reply Quote 0
              • BKeyportB Online
                BKeyport Module Developer
                last edited by

                vulnerabilities aren’t to be worried about if the project isn’t going to peek out to the internet.

                The "E" in "Javascript" stands for "Easy"

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bumrocks
                  last edited by

                  @BKeyport
                  Which makes perfect sense but I am unclear what exactly might be peeking out if it connects to Internet for calendar stuff (intend to connect Google Calendar), updates for weather, Youtube module, and Amazon Alexa (if module is available)…I assume that all of these are in some way peeking and that most Magic Mirrors do in various ways. But, I am just a noob and can not say with any certainty. At the least, it is a daunting statement using the word “vulnerabilities”.

                  Let me also add, it is quite confusing that the developer and his team recommend doing the manual install but leave out such specifics and how to handle them when they arise. I am not the first or last person to make this attempt with a Rasberry Pi 4 and with me following the directions given within the terminal I still end up with…

                  fixed 15 of 20 vulnerabilities in 1052 scanned packages
                    3 vulnerabilities required manual review and could not be updated
                    2 package updates for 2 vulnerabilities involved breaking changes
                    (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
                  
                  

                  Which absolutely leaves a noob such as I in a state of confusion as to what to do. Continuing on and leaving that by the wayside I get to the configuration of the config file and low and behold things that the instructions say I can alter or change are not available at all…zoom, electronOptions, & customCss are nonexistent from my config file. I see great care to help absolute beginners in various ways but some of the most basic instructions are either wrong or completely missing. I am thankful, do not get me wrong, for this site, this app, the developers, the input, etc. Figuring out stuff on my own will help me retain the knowledge and only better me in the future but I can’t help but feel bad for those that are less computer savvy as an absolute beginner. Sorry for my slight rant! Not sure why I started on it but my intention is not to be a negative dick. I have spent way more hours and $ on this project that I originally planned or anticipated as I assumed wrongfully that this would be easy. Nobody’s fault but my own.

                  S BKeyportB 2 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @bumrocks
                    last edited by

                    @bumrocks they CAN be altered, but are not there by default… yes, you have to discover them , if u have the need

                    as for the issues and vulnerabilities, they are not in the MM code, but code it uses and that those use… where the MM owners have little to no control (or exposure to the problem)

                    but many of the issues you present are why I built up the installer and updater scripts, to get you up and running, regardless of your platform choice

                    this remains a volunteer project, where, if u are interested you can contribute. It is NOT a ‘product’

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Reply Quote 1
                    • BKeyportB Online
                      BKeyport Module Developer @bumrocks
                      last edited by

                      @bumrocks In this case, if it’s not serving anything to the public, it’s generally fine. Grabbing things off the internet is usually fine… so, as long as you’re just grabbing things from the net, and it’s webports are not outside, you’re golden.

                      The "E" in "Javascript" stands for "Easy"

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bumrocks @sdetweil
                        last edited by

                        @sdetweil Thank you for your response again. In my frustration I took a few days off and am now trying back at it…As far it not being a product and contributing, I understand very well and in what may be a feeble attempt did make remarks and suggestions for changes in a branch? off of the directions to include and/or remove certain information. On the Internet people can say or claim what they want whether truth or not but my intention is to not simply take what I can. I intend to contribute however I might, even if it is just monetarily. Unfortunately, I have not gotten very far and am still trying to figure out why.

                        In trying to simplify my life, I did as you suggested, changed the MagicMirror directory name and then tried an install from your script. After running the primary command

                        curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh
                        

                        I end up with a bunch of return code that ends with this (let me know if you need the full code it gives back)…

                        t -dpms
                        			else
                        			  echo "lxsession screen saver already disabled" >> $logfile
                        			fi
                        		fi
                        	fi
                        fi
                        echo " "
                        if [ $pm2setup -eq $true ]; then
                        	rmessage="pm2 start MagicMirror"
                        else
                          rmessage="DISPLAY=:0 npm start"
                        fi
                        echo -e "\e[92mWe're ready! Run \e[1m\e[97m$rmessage\e[0m\e[92m from the ~/MagicMirror directory to start your MagicMirror.\e[0m" | tee -a $logfile
                        
                        echo " "
                        echo " "
                        
                        date +"install completed - %a %b %e %H:%M:%S %Z %Y" >>$logfile
                        pi@MagicMirror2:~ $ 
                        
                        

                        It takes a matter of seconds to return all this and therefore is evident that nothing actually was installed. To confirm I have no new MagicMirror folder in my system, at least that I can find. Not within the /home/pi folder nor further back within the root directory. So I am at a loss as to what I now need to do. I tried running some other command but it also told me that Magic Mirror was not installed…

                        echo
                        			 echo or git stash pop to restore them all
                        			 echo
                        			 echo WARNING..
                        			 echo WARNING.. either will overlay the file just installed by the update
                        			 echo WARNING..
                        			 if [ $set_username == $true ]; then
                        			    git config --global --unset user.name >>/$logfile
                        					git config --global --unset user.email >>/$logfile
                        			 fi 
                        		 fi
                        	fi
                        	# return to original folder
                        	cd - >/dev/null
                        	date +"Upgrade ended - %a %b %e %H:%M:%S %Z %Y" >>$logfile
                        else
                        	echo It appears MagicMirror has not been installed on this system
                        	echo please run the installer, "raspberry.sh" first
                        fi
                        
                        

                        Thank you for your time and assistance in the matter. I have no issue starting from scratch if needed. Please advise :exploding_head:

                        @BKeyport Understood…Makes sense and thank you! I feel a bit better now!

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy