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

    Posts

    Recent Best Controversial
    • RE: Help with the camera

      I am getting the following error:
      Webcam.js Error: Could not access webcam: NotSupportedError: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV). NotSupportedError: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).

      Do you know by any chance what it means?

      posted in Troubleshooting
      X
      xela
    • RE: how to start an image slide show with a press of a button?

      I use a Microsoft round web cam that I’ve embedded into the frame and I’m using the camera module however the voice recognition is not very good so I wanted to start it with a press of a button, but I don’t know how and how to display the video vertically on full screen.

      posted in Troubleshooting
      X
      xela
    • RE: how to start an image slide show with a press of a button?

      works perfectly, thank you so much for your help!

      and now to the ultimate question for me… Is it possible to start the camera on full screen by a press of a button?

      posted in Troubleshooting
      X
      xela
    • RE: how to start an image slide show with a press of a button?

      thank you so much for your help!

      so, by going to the http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote.html and hiding the module, it works fine. under “edit view” when i slide it to hide the slideshow goes off and when i’m sliding it to on the slideshow goes on.

      however, both
      http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=HIDE&module=module_0_ImageSlideshow

      http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=SHOW&module=module_0_ImageSlideshow
      don’t work although I’m getting “success” message.

      posted in Troubleshooting
      X
      xela
    • RE: how to start an image slide show with a press of a button?

      Thank very much, but it didn’t work.
      the button definitely working outside MM (tested it with Python code).
      Also, is it possible to start the MMM-imageslideshow as hidden?

      Here is my config:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "0.0.0.0", // 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, 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"],
      
      	language: "en",
      	timeFormat: 12,
      	units: "metric",
      
      	modules: [
      		{
      			module: 'MMM-ImageSlideshow',
      			position: 'bottom_left',
      			config: {
      				imagePaths: ['modules/MMM-ImageSlideshow/Images']
      		}
      		},
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: 'helloworld',
      			position: 'top_bar',	// This can be any of the regions.
      			classes: 'small bright',
      			config: {
      			text: 'The Modelevich family Magic Mirror, built by a very talented person!'
      		}
      		},
      		{
      			module: "clock",
      			position: "top_bar"
      		},
      		{
      			module: 'calendar',
                  position: 'top_left',
      			config: {
      			urgency: 0,
      			getRelative: 6,
      			fade: 'false',
                  timeFormat: 'absolute',
      			cssStyle: 'block', // block, clean, custom, (slate is for no mirror),
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'http://www.vic.gov.au/themes/v6/images/VictoriaCalendar-PublicHolidays.ics'
      					},
      					{	// YOU GET THE FOLLOWING URL FROM YOUR GOOGLE CALENDAR PAGE
      						url: 'https://calendar.google.com/calendar/ical/public/basic.ics'
      					},
      				],
      			}
      		},
      		{
          		module: 'MMM-WunderGround', // Just for forecast w/css entry
          		position: 'top_right',
          		config: {
              	apikey: '', // private; don't share!
              	pws: 'pws:I', // Bentleigh East Weather Station - Very Cool
      			currentweather: 1,
              	coloricon: true,
              	hourly: '1',
              	fctext: '1',
              	fcdaycount: "7",
              	fcdaystart: "0",
              	hourlyinterval: "2",
              	hourlycount: "1",
      			animationSpeed: 5000,
              	alerttime: 10000,
              	alerttruncatestring: "english:",
          		roundTmpDecs: 0,
          		UseCardinals: 1,
      			fade: false,
          		layout: "vertical",
      			windunits: "mph",
          		sysstat: "0"
      		}
      		},
      		{
      	        module: 'MMM-Traffic',
                  position: 'top_left',
                  classes: 'dimmed medium', //optional, default is 'bright medium', only applies to commute info not route_name
                  config: {
                      api_key: '',
                      mode: 'driving',
      				origin: '9 Tambet Street, Bentleigh east, Australia 3165',
      				destination: '96 Herbert Street, Northcote, Australia 3070',
      				arrival_time: '0900', //optional, but needs to be in 24 hour time if used.
      				route_name: 'Home to Work',
                      changeColor: true,
                      showGreen: false,
                      limitYellow: 5, //Greater than 5% of journey time due to traffic
                      limitRed: 20, //Greater than 20% of journey time due to traffic
                      traffic_model: 'best_guess',
                      interval: 60000, //2 minutes
                      showWeekend: true,
                      allTime: true,
                      width: '300px',
                      height: '300px'
                  }
              },
      		{
                  module: 'MMM-GoogleMapsTraffic',
                  position: 'top_left',
                  config: {
                      key: '',
                      lat: -37.7685637,
                      lng: 144.9943173,
                      height: '400px',
                      width: '550px',
      				zoom: 13,
      				disableDefaultUI: false
                  }
              },
      		{
          		module: 'voicecontrol',
          		position: 'top_right',
          		config: {
              		models: [
                  	{
                      	keyword: "Show Camera",
                      	description: "Say 'Show Camera' to display camera",
                      	file: "showCamera.pmdl",
                      	message: "SHOW_CAMERA"
                  	},
                  	{
                      	keyword: "Hide Camera",
                      	description: "Say 'Hide Camera' to hide camera",
                      	file: "hideCamera.pmdl",
                      	message: "HIDE_CAMERA"
                  	},
                  	{
                      	keyword: "Selfie",
                      	description: "Say 'Selfie' when camera is visible",
                      	file: "selfie.pmdl",
                      	message: "SELFIE"
                  	},
              ],
      		}
      		},
      		{
      			module: 'camera',
          		position: 'fullscreen_above',
          		config: {
      			selfieInterval: 3,  // Time interval in seconds before the photo will be taken.
              	emailConfig: {
                  service: 'gamil', // Email provider to use to send email with a photo.
                  auth: {
      
              }
              }
      		}
      		},
      
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      		{
      			module: 'newsfeed',
      			position: 'bottom_bar',
      			config: {
      				feeds: [
      					{
      						title: "The Age",
                                                      url: "http://feeds.theage.com.au/rssheadlines/top.xml",
                                            },
                                              {
                                                      title: "Sport",
                                                      url:  "http://www.theage.com.au/rssheadlines/sport/article/rss.xml"
                                              }
                                      ],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      {
      		    module: 'MMM-Buttons',
      		    config: {
      			maxShortPressTime: 1000,
      		        buttons: [
      		            {
      		                pin: 18,
      		                name: "MMM-ImageSlideshow",
      		                shortPress: {
      		                    notification: "REMOTE_ACTION",
      		                    payload: {
                                  action: "HIDE",
                                  module: "module_0_MMM-ImageSlideshow"
                              }
      		                },
                                longPress: {
                                notification: "REMOTE_ACTION",
                                payload: {
                                action: "SHOW",
                                module: "module_0_MMM-ImageSlideshow"
                                                }
                                       },
      		       },
      		     ]
      		   }
      		},
      		{
      		module: 'MMM-Remote-Control', 
      		position: 'bottom_right'
      		},
      	]
      
      };
      
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      posted in Troubleshooting
      X
      xela
    • how to start an image slide show with a press of a button?

      Hello,

      I would like to start an image slide show with a short press of a button and then stop the image slide show with a long press of a button.
      I have a button connected to pin 15 and I’ve tested with a python code that it works.
      I think that I need to use the MMM-Imageslideshow and the MMM-Buttons modules but I don’t know how to configure them to work as described.

      Can someone please help?

      thank you!

      posted in Troubleshooting
      X
      xela
    • RE: Help with the camera

      Sorry… the modules I’m using are:
      Alert
      updatenotification
      helloworld
      clock
      calendar
      MMM-WunderGround
      MMM-Traffic
      MMM-GoogleMapsTraffic
      MMM-ImageSlideshow
      voicecontrol
      camera
      compliments
      newsfeed
      MMM-Remote-Control

      I also intend to use MMM-buttons so when I press a button it will start the image slideshow of artistic pictures (so it will act as a wall art).

      thank you for your help!

      posted in Troubleshooting
      X
      xela
    • RE: Help with the camera

      Thank you very much! That’s great.
      Do you know by any chance if it’s possible to have the camera image 90 degree rotated and on full screen? I want to use the camera as the mirror instead of applying a glass or a film.

      posted in Troubleshooting
      X
      xela
    • RE: Help with the camera

      thank you very much! it’s working!

      do you know by any chance if it’s possible to have the camera picture as vertically full screen?
      Or is not, is it possible to hide all other modules when the camera picture is on?
      I want to use the camera as my mirror so when I say the magic work everything disappears and only the camera picture stays.

      posted in Troubleshooting
      X
      xela
    • RE: Help with the camera

      i’m getting all of that which I have no idea what it means but I think it is related to the voicecontrol:

      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
      ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
      ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
      ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
      Cannot connect to server socket err = No such file or directory
      Cannot connect to server request channel
      jack server is not running or cannot be started
      JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
      JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
      
      posted in Troubleshooting
      X
      xela
    • 1
    • 2
    • 3
    • 2 / 3