MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. banbutcher
    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 17
    • Posts 128
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-GoogleMapsTraffic

      hi folks,

      ive an issue with googlemapstraffic,and hotword… if i leave out the api key it hotword works fine except i get this page cant load google maps corrctly, whereas if i put in the api key goglemapstraffic works fine but hotword wont work properly, when i open dev i get this error when i try to use hotword

      MMM-Hotword.js:205 Uncaught TypeError: console.log is not a function
          at Class.doCommand (MMM-Hotword.js:205)
          at Class.socketNotificationReceived (MMM-Hotword.js:159)
          at module.js:246
          at r.<anonymous> (socketclient.js:25)
          at r.emit (index.js:83)
          at r.onevent (index.js:83)
          at r.MMSocket.self.socket.onevent (socketclient.js:19)
          at r.onpacket (index.js:83)
          at r.<anonymous> (index.js:83)
          at r.emit (index.js:83)
      
      

      please help :(

      posted in Transport
      B
      banbutcher
    • MMM-Pages & MMM-Hotword

      hi again,

      im back with more questions…

      i have hotword and assistant working together fine until i add pages into the mix. i have both of the in the fixed section correct number of pages etc everything is working fine except hot word… it catches the hotword phrase and records the command and saves it to the temp file then stops and so im kinda wondering if its not assistant picking it up either!!

      configs:

      
      // Pages Start
      
      		{
      			module: 'MMM-pages',
      			config: {
      			animationTime: 500,
      			rotationTime: 0,
      			rotationDelay: 0,
      			delaytime: 6000,
      				modules:
      					[["MMM-NetworkScanner"],["MMM-GoogleMapsTraffic"],["MMM-MyCommute", "MMM-NetworkScanner", "MMM-Spotify", "compliments", "calendar",
      					"newsfeed"], ["MMM-COVID-19", "MMM-NetworkScanner"]],
      				fixed: ["clock", "calendar_monthly", "currentweather", "weatherforecast", "MMM-pages",
      					"MMM-Hotword", "MMM-AssistantMk2", "notification", "alert", "MMM-page-indicator"],
      			}
      		},
      
      // HotWord Start
      
      {
      		 module: "MMM-Hotword",
      		  position: "bottom_center",
      		  config: {
      		    useDisplay: true,	
      		    chimeOnFinish: null,
      		    restart: true,
      		    autorestart: true,
      		    recipes: ["with-AMk2v3_computer.js","with-AMk2v3_Jarvis.js"],
      		    mic: {
      		      recordProgram: "arecord",
      		      device: "plughw:1,0"
      			 },
      
      			  },
      },
      
      
      // Assistant Start
      
      {
        module: "MMM-AssistantMk2",
        position: "fullscreen_above",
        config: {
          ui: "Fullscreen",
          assistantConfig: {
            latitude: xxxxxxx,
            longitude: xxxxxxx,
          },
          micConfig: { // put there configuration generated by auto-installer
            recorder: "arecord",
            device: "plughw:1",
          },
          recipes: [ "with-MMM-Hotword.js", "with-MMM-Spotify.js" ],
          profiles: {
            "default": {
              profileFile: "default.json",
              lang: "en-AU"
            }
          },
      
         addons: false,
        }
      }, 
      

      logs:

      
      pi@mirrorpi:~/MagicMirror $ npm start
      
      > magicmirror@2.10.1 start /home/pi/MagicMirror
      > ./run-start.sh
      
      [20:40:49.780] [LOG]    Starting MagicMirror: v2.10.1
      [20:40:49.788] [LOG]    Loading config ...
      [20:40:49.793] [LOG]    Loading module helpers ...
      [20:40:49.795] [LOG]    No helper found for module: MMM-pages.
      [20:40:50.166] [LOG]    Initializing new module helper ...
      [20:40:50.166] [LOG]    Module helper loaded: MMM-Spotify
      [20:40:50.197] [LOG]    Initializing new module helper ...
      [20:40:50.197] [LOG]    Module helper loaded: MMM-NetworkScanner
      [20:40:50.402] [LOG]    Initializing new module helper ...
      [20:40:50.403] [LOG]    Module helper loaded: MMM-Hotword
      [20:40:51.597] [LOG]    Initializing new module helper ...
      [20:40:51.598] [LOG]    Module helper loaded: MMM-AssistantMk2
      [20:40:51.598] [LOG]    No helper found for module: clock.
      [20:40:51.599] [LOG]    No helper found for module: calendar_monthly.
      [20:40:51.885] [LOG]    Initializing new module helper ...
      [20:40:51.886] [LOG]    Module helper loaded: MMM-MyCommute
      [20:40:51.887] [LOG]    No helper found for module: compliments.
      [20:40:51.887] [LOG]    No helper found for module: currentweather.
      [20:40:51.888] [LOG]    No helper found for module: weatherforecast.
      [20:40:51.924] [LOG]    Initializing new module helper ...
      [20:40:51.925] [LOG]    Module helper loaded: newsfeed
      [20:40:51.926] [LOG]    Initializing new module helper ...
      [20:40:51.927] [LOG]    Module helper loaded: MMM-GoogleMapsTraffic
      [20:40:51.927] [LOG]    No helper found for module: MMM-page-indicator.
      [20:40:51.928] [LOG]    All module helpers loaded.
      [20:40:51.928] [LOG]    Starting server on port 8080 ... 
      [20:40:51.941] [LOG]    Server started ...
      [20:40:51.942] [LOG]    Connecting socket for: MMM-Spotify
      [20:40:51.944] [LOG]    [SPOTIFY_AUTH] Token is fresh.
      [20:40:51.945] [LOG]    Connecting socket for: MMM-NetworkScanner
      [20:40:51.946] [LOG]    Starting module: MMM-NetworkScanner
      [20:40:51.946] [LOG]    Connecting socket for: MMM-Hotword
      [20:40:51.947] [LOG]    [HOTWORD] MMM-Hotword starts
      [20:40:51.948] [LOG]    Connecting socket for: MMM-AssistantMk2
      [20:40:51.948] [LOG]    Connecting socket for: MMM-MyCommute
      [20:40:51.949] [LOG]    ====================== Starting node_helper for module [MMM-MyCommute]
      [20:40:51.950] [LOG]    Connecting socket for: newsfeed
      [20:40:51.951] [LOG]    Starting module: newsfeed
      [20:40:51.951] [LOG]    Connecting socket for: MMM-GoogleMapsTraffic
      [20:40:51.952] [LOG]    Starting node_helper for module: MMM-GoogleMapsTraffic
      [20:40:51.952] [LOG]    Sockets connected & modules started ...
      [20:40:52.044] [LOG]    Launching application.
      [20:40:54.422] [LOG]    MMM-NetworkScanner received CONFIG
      [20:40:54.563] [LOG]    [HOTWORD] Recipe is loaded: with-AMk2v3_computer.js
      [20:40:54.566] [LOG]    [HOTWORD] Recipe is loaded: with-AMk2v3_Jarvis.js
      [20:40:54.570] [LOG]    Create new news fetcher for url: https://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      [20:40:54.621] [LOG]    Create new news fetcher for url: https://www.stuff.co.nz/rss - Interval: 300000
      [20:40:54.625] [LOG]    Create new news fetcher for url: https://www.techmeme.com/feed.xml?x=1 - Interval: 300000
      [20:40:54.627] [LOG]    Create new news fetcher for url: https://www.tesla.com/blog/feed - Interval: 300000
      [20:40:54.629] [LOG]    Create new news fetcher for url: https://teslamotorsclub.com/feed/ - Interval: 300000
      [20:40:54.631] [LOG]    Create new news fetcher for url: https://www.teslarati.com/feed/ - Interval: 300000
      [20:40:54.633] [LOG]    Create new news fetcher for url: https://www.youtube.com/feeds/videos.xml?user=spacexchannel - Interval: 300000
      [20:40:54.635] [LOG]    Create new news fetcher for url: https://www.technologyreview.com/topnews.rss - Interval: 300000
      [20:40:54.640] [LOG]    Working notification system. Notification: MMM-GOOGLE_MAPS_TRAFFIC-GET payload:  { style: 'standard' }
      [20:40:54.659] [LOG]    [AMK2] MMM-AssistantMk2 Version: 3.1.2
      [20:40:54.719] [LOG]    [AMK2] AssistantMk2 is initialized.
      [20:40:55.122] [LOG]    [HOTWORD] begins.
      [20:40:55.126] [LOG]    [HOTWORD] Detector starts listening.
      [20:40:55.731] [LOG]    [MMM-Spotify] Starting
      [20:41:19.942] [LOG]    [HOTWORD] Detected: computer
      [20:41:20.755] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:20.835] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:20.964] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:21.084] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:21.201] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:21.332] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:21.451] [LOG]    [HOTWORD] After Recording: 4000
      [20:41:22.564] [LOG]    [HOTWORD] stops.
      [20:41:22.569] [LOG]    [HOTWORD] After Recording finised. size: 28050
      [20:41:22.576] [LOG]    [HOTWORD:B2W] WAV_FILE_CREATED: /home/pi/MagicMirror/modules/MMM-Hotword/temp/afterRecording.wav 28050
      [20:41:22.578] [LOG]    [HOTWORD] Final Result: {
       detected: true,
       hotword: 'computer',
       file: 'temp/afterRecording.wav'
      }
      
      

      pretty stumped on this one :/ and help is appricated im getting s close to finishing the coding part, as you can see in the logs theres a good few modules on it!

      thanks again,
      Richie

      posted in Troubleshooting
      B
      banbutcher
    • SpaceX satellite finder

      I’m sure I’ve seen something like this in the module section but with the ISS.

      My idea is the you plug in your location and it tell you the next time the spaceX satellites will be visible in your region of the sky!

      Again I don’t know if this is possible but I’ve just seen that Elon musk/SpaceX have launched more!

      Thank you and good luck!

      posted in Requests
      B
      banbutcher
    • RE: MMM-NetworkScanner

      Nailed it down…

                  occupiedCMD: {notification: 'PAGE_CHANGED', payload: 2},
                  vacantCMD  : {notification: 'PAGE_CHANGED', payload: 0},
      
      

      happy days, now i can go to bed! :D

      posted in Utilities
      B
      banbutcher
    • RE: MMM-NetworkScanner

      @banbutcher

                  occupiedCMD: {notification: 'PAGE_CHANGED', payload:{payload:1}},
                  vacantCMD  : {notification: 'PAGE_CHANGED', payload: {'payload':'2'}},
      
      

      i think it something like this but cant figure it out! :/

      posted in Utilities
      B
      banbutcher
    • RE: MMM-NetworkScanner

      Hi,
      ive installed network scanner and its working great, im looking to tweek it a bit and was hoping for a little help…

      i have mmm-pages installed with 3 pages and what im hoping for is when the resident is home it displays page 1 and when resident is not home it displays page 3, hoping to add voice triggers later as page 2 is a fullscreen google traffic map, but thats later! i have to get this working first. i also have mmm-remote-control installed as i think i need this, im trying to figure what commands to put in where in this code snippet.

       	                occupiedCMD: {notification: 'REMOTE_ACTION', payload: {action: 'MONITORON'}},
                  		vacantCMD  : {notification: 'REMOTE_ACTION', payload: {action: 'MONITOROFF'}},
       
      

      as always your help is very much appreciated! :)

      posted in Utilities
      B
      banbutcher
    • RE: monitor - disassemble or not?

      i have a 23" LG monitor, thin enough but i might still look at removing the plastic!

      thanks folks! :)

      posted in Hardware
      B
      banbutcher
    • monitor - disassemble or not?

      Hi, not sure if this is in the right place.

      so no ive got my pi almost set up to my liking, it will soon be time to mount monitor behind my mirror, question is do you recommend disassembling the plastic case and then mount the monitor panel for a tighter fit to the glass or does it matter?

      thanks,
      Richie

      posted in Hardware
      B
      banbutcher
    • RE: MMM-MyCommute

      is there any way of knowing if calendar events are being passed? Ive added this code to mine and nothing gets added to my commute:

            maxCalendarEvents: 2,
            maxCalendarTime: 24 * 60 * 60 * 1000,
            calendarOptions: [
                    {
                    mode: 'driving'
                    }
            ],  
      

      am i missing something?

      posted in Transport
      B
      banbutcher
    • RE: MMM-MyCommute

      turns out i didnt have the address formatted correctly! took them directly from google maps and it worked great!

      thanks,
      Richie

      posted in Transport
      B
      banbutcher
    • 1 / 1