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.

    Webcam for MM build?

    Scheduled Pinned Locked Moved Hardware
    27 Posts 5 Posters 11.2k Views 5 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 Do not disturb
      sdetweil @bumrocks
      last edited by

      @bumrocks the motion log is on /var/log/motion/motion.log

      so u can see what it is doing

      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 , well my issue of the moment is it will not let me save the changes made to the motion.conf file, arg! I tried to change the files attributes to “anyone” and I get…

        Error setting permissions: Operation not permitted
        
        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @bumrocks
          last edited by

          @bumrocks yes, the file is in the etc tree, so u need sudo

          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 bumrocks

            @sdetweil , :) Thank you! It appears I have made the necessary changes and will test here shortly! :crossed_fingers_light_skin_tone:

            Ug! I have apparently edited my config file improperly…Message I get after checking it…

            pi@mm2:~/MagicMirror $ npm run config:check
            
            > magicmirror@2.12.0 config:check /home/pi/MagicMirror
            > node js/check_config.js
            
            [2020-09-06 01:16:00.192] [INFO]   Checking file...  /home/pi/MagicMirror/config/config.js
            [2020-09-06 01:16:00.266] [LOG]    Line 101 col 16 Parsing error: Unexpected token below
            /home/pi/MagicMirror/js/check_config.js:66
            			throw new Error("Wrong syntax in config file!");
            			^
            
            Error: Wrong syntax in config file!
                at /home/pi/MagicMirror/js/check_config.js:66:10
                at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
            npm ERR! code ELIFECYCLE
            npm ERR! errno 1
            npm ERR! magicmirror@2.12.0 config:check: `node js/check_config.js`
            npm ERR! Exit status 1
            npm ERR! 
            npm ERR! Failed at the magicmirror@2.12.0 config:check script.
            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/pi/.npm/_logs/2020-09-06T07_16_00_294Z-debug.log
            
            

            Here are the lines in question…

                module: 'MMM-SleepWake',
                delay:  15,               // default
                source: 'external',
                mode:  see below,
                 // detectionDir: folder containing externally generated file when motion starts
                 //               will be created if needed
                 // detectionFile:  filename generated for motion start. default = 'detected'
            
            }
            },
            	]
            

            “mode: see below,” is line 101 as referenced in file check above…

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @bumrocks
              last edited by

              @bumrocks you are missing

              config:{

              after the module:
              line

              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 bumrocks

                @sdetweil , my apologies for not thanking you sooner! I have too many "projects in the works at any given moment and I caved to my frustration with the mirror and took a break. Intended to be a present to my wife, I am now hoping that I can get this the way I want before her birthday comes around again facepalm

                Anyways, I am back to being committed and frustration slaps me in the face immediately…I added the line that was missing (not sure how I did that when I copy and pasted it to begin with) and now I get this error…

                [2020-10-01 23:26:22.548] [INFO]   Checking file...  /home/pi/MagicMirror/config/config.js
                [2020-10-01 23:26:24.211] [LOG]    Line 1 col 1 Definition for rule 'prettier/prettier' was not found.
                /home/pi/MagicMirror/js/check_config.js:66
                			throw new Error("Wrong syntax in config file!");
                			^
                
                Error: Wrong syntax in config file!
                    at /home/pi/MagicMirror/js/check_config.js:66:10
                    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1
                npm ERR! magicmirror@2.12.0 config:check: `node js/check_config.js`
                npm ERR! Exit status 1
                npm ERR! 
                npm ERR! Failed at the magicmirror@2.12.0 config:check script.
                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/pi/.npm/_logs/2020-10-02T05_26_24_231Z-debug.log
                
                
                

                Here is my config file from top to bottom as it is now…

                /* Magic Mirror Config Sample
                 *
                 * By Michael Teeuw http://michaelteeuw.nl
                 * MIT Licensed.
                 *
                 * For more information on how you can configure this file
                 * See https://github.com/MichMich/MagicMirror#configuration
                 *
                 */
                
                var config = {
                
                	address: "localhost", // Address to listen on, can be:
                	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                	                      // - another specific IPv4/6 to listen on a specific interface
                	                      // - "0.0.0.0", "::" to listen on any interface
                	                      // Default, when address config is left out or empty, is "localhost"
                	port: 8080,
                	ipWhitelist: [], // Set [] to allow all IP addresses
                	                                                       // or add a specific IPv4 of 192.168.1.5 :
                	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                
                	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
                	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
                	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
                
                	language: "en",
                	timeFormat: 24,
                	units: "imperial",
                	// serverOnly:  true/false/"local" ,
                			     // local for armv6l processors, default
                			     //   starts serveronly and then starts chrome browser
                			     // false, default for all  NON-armv6l devices
                			     // true, force serveronly mode, because you want to.. no UI on this device
                
                	modules: [
                		{
                			module: "alert",
                		},
                		{
                			module: "updatenotification",
                			position: "top_bar"
                		},
                		{
                			module: "clock",
                			position: "top_left"
                		},
                		{
                			module: "calendar",
                			header: "US Holidays",
                			position: "top_left",
                			config: {
                				calendars: [
                					{
                						symbol: "calendar-check",
                						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
                				]
                			}
                		},
                		{
                			module: "currentweather",
                			position: "top_right",
                			config: {
                				location: "Colorado Springs",
                				locationID: "5417598", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                				appid: "cf2de0d28398c756b6bad589d8e33c2a"
                			}
                		},
                		{
                			module: "weatherforecast",
                			position: "top_right",
                			header: "Weather Forecast",
                			config: {
                				location: "Colorado Springs",
                				locationID: "5417598", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                				appid: "cf2de0d28398c756b6bad589d8e33c2a"
                			}
                		},
                		{
                			module: "newsfeed",
                			position: "bottom_bar",
                			config: {
                				feeds: [
                					{
                						title: "BBC Top News Stories",
                						url: "http://feeds.bbci.co.uk/news/rss.xml"
                					}
                				],
                				showSourceTitle: true,
                				showPublishDate: true,
                				broadcastNewsFeeds: true,
                				broadcastNewsUpdates: true
                			}
                		},
                {
                    module: 'MMM-SleepWake',
                    config:{
                       delay:  15,               // default
                       mode:  Hide
                    }
                		},
                	]
                };
                
                /*************** DO NOT EDIT THE LINE BELOW ***************/
                if (typeof module !== "undefined") {module.exports = config;}
                

                Lastly, did I understand that if I am using an energy star lcd tv with floating “no signal” message when Pi is off that I should use "mode: Hide " ?

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @bumrocks
                  last edited by sdetweil

                  @bumrocks general rules

                  the thing on the left of : does not need quotes

                  if the thing to the right of : is a number or true/false, also does not need quotes

                  if the thing to the right of : has letters in it, then it needs quotes, either kind are ok, but must be the same

                  yes, if the monitor/tv has the ugly no signal/connection, then u want to use hide

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1
                  • 2
                  • 2 / 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