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

BJ Duncan

@BJ Duncan

Self-confessed geek that enjoys exploring and discovering in the tech world.

1
Reputation
257
Profile views
15
Posts
0
Followers
4
Following
Joined Jun 14, 2019, 9:18 AM
Last Online Aug 9, 2020, 10:28 AM
Age 46
Location Schofields, NSW, Australia

BJ Duncan Unfollow Follow

Best posts made by BJ Duncan

  • RE: How to configure more than one calendar?

    You can do it one of two ways; if you wanted a label of each calendar then you can just duplicate the module with the alternating title and calendar link.
    EG:

    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
    					}
    				]
    			}
    		},
    		{
    			module: "calendar",
    			header: "Another Calendar",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/templates/ical/Another-calendar-link.ics"
    					}
    				]
    			}
    		},
    

    The other option is to place the links in the one calendar.
    EG:

    	{
    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
    					},
                                           {
                                           						symbol: "calendar-check",
                                           						url: "webcal://www.calendarlabs.com/templates/ical/AnotherCalendar.ics"
                                          },
                                         {
                                         						symbol: "calendar-check",
                                         						url: "webcal://www.calendarlabs.com/templates/ical/AndAThirdOneIfYouWant.ics"
                                         	}
    				]
    			}
    		}       
    
    posted in Troubleshooting
    B
    BJ Duncan
    Jul 1, 2019, 6:36 AM

Latest posts made by BJ Duncan

  • Looking for a notification type module...

    Hi to all my MagicMirror mates. :-)

    Is there a “Notification” type module that will let you display notices from my own website database? So objectively, to have something similar to the “Alert” module but customise it for my own alert that I want to place on the screen from my own website database?

    posted in Development
    B
    BJ Duncan
    Jul 7, 2019, 10:19 AM
  • RE: MMM-AssistantMk2 / MMM-Hotword Issue

    Hey @JonoGee, mate I have been researching but to no avail. Sorry mate on that. I’m just not too familiar with your set up.
    The Mic and Speakers I got are just some cheap USB type models.
    Speakers | Mic

    If you do go by this type of setup then the previous code I placed up should work #fingersCrossed ;-)

    posted in Troubleshooting
    B
    BJ Duncan
    Jul 5, 2019, 11:25 AM
  • RE: MMM-AssistantMk2 / MMM-Hotword Issue

    Sorry @JonoGee mate, I may not be the best person to resolve as I have USB Mic so my settings will be different to yours.

    I will attempt to do some research for you though and see if I can assist with a solution.

    posted in Troubleshooting
    B
    BJ Duncan
    Jul 2, 2019, 9:53 AM
  • RE: MMM-AssistantMk2 / MMM-Hotword Issue

    What type of microphone is it? Is it USB?
    Also, what version of Raspbian are you using? And is it Raspberry Pi 3+ ?

    posted in Troubleshooting
    B
    BJ Duncan
    Jul 2, 2019, 2:14 AM
  • RE: How to configure more than one calendar?

    You can do it one of two ways; if you wanted a label of each calendar then you can just duplicate the module with the alternating title and calendar link.
    EG:

    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
    					}
    				]
    			}
    		},
    		{
    			module: "calendar",
    			header: "Another Calendar",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/templates/ical/Another-calendar-link.ics"
    					}
    				]
    			}
    		},
    

    The other option is to place the links in the one calendar.
    EG:

    	{
    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
    					},
                                           {
                                           						symbol: "calendar-check",
                                           						url: "webcal://www.calendarlabs.com/templates/ical/AnotherCalendar.ics"
                                          },
                                         {
                                         						symbol: "calendar-check",
                                         						url: "webcal://www.calendarlabs.com/templates/ical/AndAThirdOneIfYouWant.ics"
                                         	}
    				]
    			}
    		}       
    
    posted in Troubleshooting
    B
    BJ Duncan
    Jul 1, 2019, 6:36 AM
  • RE: MMM-AssistantMk2 / MMM-Hotword Issue

    No dramas at all.

    Now you need to double check that you are pointing to the correct device number for your audio with the Assistant module.
    In a terminal at the root directory (pi@raspberrypi:~ ) Check the device list for audio input:

    arecord -l
    

    This should provide you a list of CAPTURE Hardware Devices. The numbers you want to write down is the Card number, and device number.
    As an example on my device I have it as Card: 2 Device: 0

    Now within the config.js of the MagicMirror ensure that the device number is the same. Here is what it looks like within my config.js:

    {
    		  module: "MMM-AssistantMk2",
    		  position: "bottom_bar",
    		  config: {
    		    record: {
    		      recordProgram : "arecord",  
    		      device        : "plughw:2",
    		    },
    		
    		    notifications: {
    		      ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
    		      ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
    		    },
    		  }
    		},
    		{
    		  module: "MMM-Hotword",
    		  config: {
    		    chimeOnFinish:null,
    		    mic: {
    		      recordProgram : "arecord",  
    		      device        : "plughw:2",
    		    },
    		    models: [
    		      {
    		        hotwords    : "smart_mirror",
    		        file        : "smart_mirror.umdl",
    		        sensitivity : "0.5",
    		      },
    		    ],
    		    defaultCommand: {
    		      notificationExec: {
    		        notification: "ASSISTANT_ACTIVATE",
    		        payload: (detected, afterRecord) => {
    		          return {profile:"default"}
    		        }
    		      },
    		      afterRecordLimit:0,
    		      restart:false,
    		    },
    		  },
    },
    

    Notice within both my modules because my card number is ‘2’, that the

    device : "plughw:2",
    

    So make sure your number corresponds with your Card number.

    Give that a test and we will go from there.

    posted in Troubleshooting
    B
    BJ Duncan
    Jun 30, 2019, 8:41 PM
  • RE: MMM-AssistantMk2 / MMM-Hotword Issue

    Have you test your microphone to see if it working in general?

    From home directory:

    arecord test.wav
    

    and talk for about 5 seconds into your microphone.
    Then cancel that by Ctrl+C

    Once you have cancelled the test check your directory to ensure that the ‘test.wav’ file is there:

    dir
    

    if your file shows up then you can test that file to ensure it recorded your voice from the microphone:

    aplay test.wav
    

    You should be able to hear back what you just recorded.
    If you can, that means it is a configuration setting that just needs to be tweaked. If not, then there is something wrong with either the microphone settings or audio settings within the pi itself.

    I will keep monitoring and let me know how you go.

    posted in Troubleshooting
    B
    BJ Duncan
    Jun 30, 2019, 5:14 AM
  • RE: MMM-AssistantMk2 terminating and not activating by voice after that.

    @Sean said in MMM-AssistantMk2 terminating and not activating by voice after that.:

    mpg321

    Woo-Hoo! - Thank you so much @Sean - That worked for me. I just reinstalled (or maybe just installed) mpg321 and it is completing the whole sentence without any cutoff. #veryHapppy :-)

    The code I used was:

    sudo apt-get -y install mpg321
    

    Thanks to all that contributed to this post and I hope it helps others out just as it helped me.

    Regards,
    BJ Duncan

    posted in Troubleshooting
    B
    BJ Duncan
    Jun 17, 2019, 8:47 AM
  • RE: MMM-AssistantMk2 terminating and not activating by voice after that.

    Thanks @Ivanov_d I found that link the other day and did try those solutions. They didn’t work for me.

    However, I will try @Sean’s suggestion and will post back on the forum if it worked or not.

    Thanks to everyone for your assistance. Very much appreciated.

    Regards,
    BJ Duncan

    posted in Troubleshooting
    B
    BJ Duncan
    Jun 16, 2019, 7:33 PM
  • RE: MMM-AssistantMk2 terminating and not activating by voice after that.

    So I have been testing random things and I have noticed that if I ask it to tell me a joke, it actually completes that request. If I ask it for any type of information (eg. weather, time, who invented the telephone etc) that’s when it cuts off.

    Could it be something to do with sending a request online?

    posted in Troubleshooting
    B
    BJ Duncan
    Jun 14, 2019, 11:23 PM
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