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

    Posts

    Recent Best Controversial
    • RE: MMM-Traffic 2.0

      @beck0r All good,

      I’ve missed that line :-)

      Note: Google maps coordinates are latitude,longitude, but Mapbox uses longitude,latitude so be sure to reverse what you copy from Google.

      posted in Transport
      B
      beck0r
    • RE: MMM-Traffic 2.0

      Hello there,

      i’ve entered my coordinates but somehow the calculated time is 15 mins less to Google Maps. Can you say why there is such an inaccuracy compared to Google Maps? I’m very sure that I’ve used the correct coordinates. Also tested it with other coordinates.

      Thank you very much
      Kind Regards

      posted in Transport
      B
      beck0r
    • RE: MagicMirror OS How to restart MagicMirror?

      Thank you very much!

      posted in Troubleshooting
      B
      beck0r
    • MagicMirror OS How to restart MagicMirror?

      Hello there,

      I’m using MagicMirror OS and was asking myself how to restart the MagicMirror service without restarting the whole PI.

      “pm2 restart mm” is not working

      Thanks in advance

      Kind Regards

      posted in Troubleshooting
      B
      beck0r
    • RE: Need help with config syntax error

      Yes… I am trying to uncomment the MMM-History area. With that area not included MM starts (still throwing errors messages but it works). Akismet won’t let me change my post :)

      posted in Troubleshooting
      B
      beck0r
    • RE: Need help with config syntax error

      Hey,

      thank you for your answer. About the additional comma. This happened when I replaced my personal information with ###. I have now removed the api keys. Thanks for taking care!

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      	ipWhitelist: ["###"], // Set [] to allow all IP addresses.
      	language: "de",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		//{
      			//module: "alert"
      		//},
      		/*{
      			module: "updatenotification",
      			position: "top_bar"
      		},*/
      		{
          			module: "MMM-Admin-Interface"
          		},
      		{
         			module: 'MMM-voice',
          			position: 'top_left',
          			config: {
             				 microphone: 1,
             				 keyword: 'MAGIC',
      				 timeout: 15
      				}
      		},	
      		{
      			module: "clock",
      			position: "top_left",
      			config: {
      				showWeek: true
      				}
      		},
      		{
      			module: "calendar",
      			header: "Deine Termine",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check-o ",
      						url: "###"
      					},
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third",
      			updateInterval: 20000,
      			config: {
      				remoteFile: "custom_complis.json"
      				}
      		},
      		{
      			module: "currentweather",
      			header: "Aktuelles Wetter",
      			position: "top_right",
      			config: {
      				location: "###",
      				locationID: "2937591",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "###",
      				appendLocationNameToHeader: true,
      				degreeLabel: true,
      				showHumidity: true		
      				}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Wettervorhersage",
      			config: {
      				location: "###",
      				locationID: "2937591",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "###",
      				appendLocationNameToHeader: true,
      				colored: true,
      				showRainAmount: true
      			}
      		},
      		{
         			module: "MMM-DHT22",
      			header: "Raumtemperatur",
         			position: "top_right",
          			config: {
              			sensorPIN: 3,
              			updateInterval: 1 // Minutes    
          				}
        		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "kicker.de",
      						url: "http://rss.kicker.de/news/fussball"
      					},
      					{
      						title: "spiegel.de",
      						url: "http://www.spiegel.de/schlagzeilen/tops/index.rss"
      					},
      				],
      				showSourceTitle: true,
      				showPublishDate: true,
      				showDescription: true,
      				wrapDescription: false
      			}
      		},
      		//{
      				//module: 'MMM-History',
      				//position: 'top_right',
                		//config: {
      					//maxWidth: "300px"  // Increase to maximum px or 100% to stretch across mirror. See Examples above.
               	 		//},
          		//},
      		{
      			module: "MMM-SystemStats",
      			position: "top_right", // This can be any of the regions.
      			header: "System Stats", // This is optional
      			classes: "small dimmed", // Add your own styling. Optional.
      			config: {
      				updateInterval: 10000,
      				animationSpeed: 0,
      				align: 'right' // align labels
      				},
      		},
      		{
          			module: 'MMM-ip',
          			position: 'top_right',
      			config:  {
      				 fontSize: 16,
      				 showFamily: "IPv4",
      				 voice: false
      				}
          		},
      		{
        				module: 'MMM-MyCommute',
        				position: 'top_left',
        				config: {
          					showHeader: true,
          					headerText: 'Verkehr',
         					apikey: '###',
          					origin: '###',
          					startTime: '05:00',
          					endTime: '20:00',
          					destinations: [
            							{
              						destination: '###',
             	 						label: 'Auto zur Arbeit',
              						mode: 'driving',
              						color: '#7D26CD'
            							},      						
            							{
              						destination: '###',
              						label: 'Fahrrad zur Arbeit',
              						mode: 'bicycling',
      							color: '#FFB444'
            							},
      							{
              						destination: '###',
              						label: 'RMV zur Arbeit',
              						mode: 'transit',
      							color: '#FF73D5'
            							}
          							]
        					}
      		},
      		/*{
      			module: 'MMM-Globe',
      			position: 'top_center',
      			config: {
      				style: 'europeDiscNat',
      				imageSize: 300,
      				updateInterval: 10*60*1000
      				}
      		},*/
      		{
      			module: 'MMM-SoccerLiveScore',
      			position: 'top_left',
      			header: 'Live-Scores',
      			config: {
      				leagues: [35, 1, 9],
              			showNames: true,
              			showLogos: true,
              			displayTime: 60 * 1000,
              			showTables: true
      				}
      		},
      		/*{
      			module: 'MMM-Podcast',
      			config: {
      				feedUrl: 'http://www.tagesschau.de/export/video-podcast/webxl/tagesschau-in-100-sekunden/'
      				}
      		},*/
      		/*{
      		module : 'MMM-RandomBackground',
      		position : 'fullscreen_below', // Any region but this one makes the most sense
      		config : {
      			animationSpeed : 4000,
      			updateInterval : 9000
      			}
      		},*/
      
      		{
                 	 	module: 'MMM-Carousel',
                  		config: {
                      		transitionInterval: 10000,
                      		ignoreModules: ['MMM-DHT22'],
                      		mode: 'positional',
                      		bottom_right: {enabled: true, ignoreModules: [], overrideTransitionInterval: 10000},
                      		}			
                 	}
      	        					
      ]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      
      posted in Troubleshooting
      B
      beck0r
    • Need help with config syntax error

      Hey there,

      i had to turn off my pi for a while since I’ve moved to a new location. During the starting sequence of MM it tells me I have syntax errors in my config. I can’t really imagine since I haven’t touched the config at all. JS syntax checkers keep telling me that the config is correct but my screen stays black.

      Can somebody help me? It’s been a while since I have faced the syntax of the config file so I’m not familiar with it any longer.

      Thank you very much

      Starting MagicMirror: v2.1.1
      Loading config ...
      Loading module helpers ...
      Initializing new module helper ...
      Module helper loaded: MMM-Admin-Interface
      Initializing new module helper ...
      Module helper loaded: MMM-voice
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper ...
      Module helper loaded: MMM-DHT22
      Initializing new module helper ...
      Module helper loaded: newsfeed
      WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
      Loading module helpers ...
      Initializing new module helper ...
      Module helper loaded: MMM-Admin-Interface
      Initializing new module helper ...
      Module helper loaded: MMM-voice
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper ...
      Module helper loaded: MMM-DHT22
      Initializing new module helper ...
      Module helper loaded: newsfeed
      App threw an error during load
      SyntaxError: Error parsing /home/pi/MagicMirror/modules/MMM-History/node_modules/request/package.json: Unexpected token  in JSON at position 4111
          at JSON.parse ()
          at readPackage (module.js:92:52)
          at tryPackage (module.js:102:13)
          at Function.Module._findPath (module.js:183:20)
          at Module._resolveFilename (module.js:468:25)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
          at Function.Module._load (module.js:418:25)
          at Module.require (module.js:498:17)
          at require (internal/module.js:20:19)
          at Object. (/home/pi/MagicMirror/modules/MMM-History/node_helper.js:8:17)
      Whoops! There was an uncaught exception...
      { SyntaxError: Error parsing /home/pi/MagicMirror/modules/MMM-History/node_modules/request/package.json: Unexpected token  in JSON at position 4111
          at JSON.parse ()
          at readPackage (module.js:92:52)
          at tryPackage (module.js:102:13)
          at Function.Module._findPath (module.js:183:20)
          at Module._resolveFilename (module.js:468:25)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
          at Function.Module._load (module.js:418:25)
          at Module.require (module.js:498:17)
          at require (internal/module.js:20:19)
          at Object. (/home/pi/MagicMirror/modules/MMM-History/node_helper.js:8:17)
        path: '/home/pi/MagicMirror/modules/MMM-History/node_modules/request/package.json' }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Launching application.
      
      

      Config removed. yawns

      posted in Troubleshooting
      B
      beck0r
    • RE: MMM-voice

      not for me… still the same error message in debug.log

      pocketsphinx_continuous: error while loading shared libraries: libpocketsphinx.so.3: cannot open shared object file: No such file or directory
      
      
      posted in Utilities
      B
      beck0r
    • RE: MMM-voice

      still the same ;-(

      posted in Utilities
      B
      beck0r
    • RE: MMM-DHT22 Humidity and Temperature Module

      same here, shows loading for a very long time and ‘undefined’ afterwards

      the sensor is working, see here:

      0_1496151901454_upload-79b4ac08-535a-4fe6-848e-99f80fe7650d

      any idea?

      posted in Utilities
      B
      beck0r
    • RE: CSS basics

      Have you tried to use an external Browser e.g. from your Laptop to Open your Magic Mirror Homepage ? (192.168.178.20:8080 for example) there you could use F12(developer Mode) to find out the css class names you Need

      posted in Development
      B
      beck0r
    • RE: MMM-PIR-Sensor Black screen..

      Thank’s for your answer. As you have already seen I was able to solve it nealry like cowboysdude did

      posted in Troubleshooting
      B
      beck0r
    • RE: Motion Detect/PIR-Sensor tvservice -p does not turn on TV

      Thanks a lot. Working as described.

      posted in Troubleshooting
      B
      beck0r
    • RE: Motion Detect/PIR-Sensor tvservice -p does not turn on TV

      This works for me !

      /opt/vc/bin/tvservice -p; sudo /bin/chvt 6; sudo /bin/chvt 7
      

      instead of…

      tvservice -p
      

      Source:

      https://www.elektronik-kompendium.de/sites/raspberry-pi/2111101.htm

      posted in Troubleshooting
      B
      beck0r
    • Motion Detect/PIR-Sensor tvservice -p does not turn on TV

      Hi there,

      i’m currently trying to implement my PIR-Sensor HCSR501. My goal is, like those of many others, to turn off my HDMI output when there is no motion in front of the mirror. The sensor itself works and is able to detect movements. I’ve been trying to use the MMM-PIR-Sensor module but without success…
      I was looking for another solution, without a module and found this explanation

      http://www.ofbrooklyn.com/2014/01/2/building-photo-frame-raspberry-pi-motion-detector/
      (jump to Detecting movement)

      Since I wasn’t quite sure about the LED PIN and the io.output stuff I removed those parts from the script.
      Result:

      #!/usr/bin/env python
      
      import sys
      import time
      import RPi.GPIO as io
      import subprocess
      
      io.setmode(io.BCM)
      SHUTOFF_DELAY = 10 # seconds
      PIR_PIN = 4       # 22 on the board
      
      
      def main():
          io.setup(PIR_PIN, io.IN)
          turned_off = False
          last_motion_time = time.time()
      
          while True:
              if io.input(PIR_PIN):
                  last_motion_time = time.time()
                  print ".",
                  sys.stdout.flush()
                  if turned_off:
                      turned_off = False
                      turn_on()
              else:
                  if not turned_off and time.time() > (last_motion_time + 
                                                       SHUTOFF_DELAY):
                      turned_off = True
                      turn_off()
                  if not turned_off and time.time() > (last_motion_time + 1):
                      time.sleep(.1)
      
      def turn_on():
          subprocess.call("sh /home/pi/monitor_on.sh", shell=True)
      
      def turn_off():
          subprocess.call("sh /home/pi/monitor_off.sh", shell=True)
      
      if __name__ == '__main__':
          try:
              main()
          except KeyboardInterrupt:
              io.cleanup()
      

      monitor_on.sh

      sudo tvservice -p
      

      monitor_off.sh

      sudo tvservice -o
      

      The sensor recognizes movement and turns off the screen as soon as moving ends. But unfortunately the turn on process does not work. Even when I try to use the command manually

      sudo tvservice -p
      

      nothing happens…

      I’ve asked myself if this could be related to my (older) Toshiba 42XV635D TV but then I remembered that every time I rebooted the pi (which is connected to the TV via HDMI) the TV automatically was turned on (of course it was turned off before the reboot)

      Can somebody help me with that? I (think) i’m nearly there…

      PS:

      I have found two different commands here… It says that, in relation to the tvservice command this commands would bring back the TV signal immediately. Actually I have no idea what i’m saying right now ;-) So do they commands make any sense?

      https://pi-buch.info/tag/tvservice/

      vcgencmd display_power 1
      
      vcgencmd display_power 0
      
      posted in Troubleshooting
      B
      beck0r
    • RE: Blackscreen after install MMM-PIR-Sensor

      Having the same problem. Any solution ?

      posted in Troubleshooting
      B
      beck0r
    • RE: MMM-PIR-Sensor Black screen..

      Facing the same issue… The sensor itself works. Tested with a python script…
      As soon as I implement the config for the sensor the screen stays black (via VNC) and the MM is not reachable via browser.

      By the way, I have connected my GPIO-data-cable to PIN wiringPi 7. The description says that BCM numbering should be used, so I used 4 instead of 7 in the config. Is that correct?

      0_1495955558091_upload-4326d89c-c750-454d-baea-0405235938ca

      (Sorry for german screenshot)

      posted in Troubleshooting
      B
      beck0r
    • RE: German "Umlaute" (ä, ü, ö, ß) in compliments module

      @Anhalter42
      Sorry I was a little bit frustrated after a long day in front of the PC… I have validated my code against JSONLint aaaaaaaaaand… a single quotation mark " was missing in the middle of the file ;)

      posted in Troubleshooting
      B
      beck0r
    • RE: German "Umlaute" (ä, ü, ö, ß) in compliments module

      errr… after a restart of the pi the custom file doesn’t load anymore :-(
      I don’t get it…can somebody help me?

      posted in Troubleshooting
      B
      beck0r
    • RE: MMM-voice

      @cowboysdude

      I did that, still the same… here’s what “npm start dev” is showing me right now

      
      
      TypeError: this.sendSocketNotification is not a function
          at fs.appendFile (/home/pi/MagicMirror/modules/MMM-voice/node_helper.js:311:22)
          at /home/pi/MagicMirror/modules/MMM-voice/node_modules/graceful-fs/graceful-fs.js:43:10
          at FSReqWrap.oncomplete (fs.js:112:15)
      
      
      
      TypeError: Cannot read property 'debug' of undefined
          at PocketSphinxContinuous.handleData (/home/pi/MagicMirror/modules/MMM-voice/node_helper.js:247:28)
          at emitOne (events.js:96:13)
          at PocketSphinxContinuous.emit (events.js:188:7)
          at Socket.<anonymous> (/home/pi/MagicMirror/modules/MMM-voice/node_modules/pocketsphinx-continuous/index.js:39:11)
          at emitOne (events.js:96:13)
          at Socket.emit (events.js:188:7)
          at readableAddChunk (_stream_readable.js:176:18)
          at Socket.Readable.push (_stream_readable.js:134:10)
          at Pipe.onread (net.js:551:20)
      
      

      So if anybody has an idea let met know :)

      Thanks

      posted in Utilities
      B
      beck0r
    • 1
    • 2
    • 1 / 2