• 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. pythugoras
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
P
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 1
  • Posts 1
  • Groups 0

pythugoras

@pythugoras

0
Reputation
59
Profile views
1
Posts
0
Followers
0
Following
Joined Nov 4, 2019, 11:07 PM
Last Online Feb 2, 2020, 4:45 PM

pythugoras Unfollow Follow

Latest posts made by pythugoras

  • MMM-Hotword - actions not being processed and restarting after detection

    Hi,

    massive fan of the project. I’m trying to get MMM-Hotword working with some simple off/on module commands. when I start the process using

    npm start dev
    

    I get the following output (console):

    Connecting socket for: MMM-Hotword
    [HOTWORD] MMM-Hotword starts
    Sockets connected & modules started ...
    Launching application.
    Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics - Interval: 300000
    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/josh.shallow%40gmail.com/private-a91aad9e61329573cb33a74704da0fb3/basic.ics - Interval: 300000
    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/cazz.bradshaw%40gmail.com/private-4a0e201364e11e14451b7d4310a52d9b/basic.ics - Interval: 300000
    Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml - Interval: 300000
    model.file :  /home/pi/MagicMirror/modules/MMM-Hotword/models/smart_mirror.umdl
    modelPath :  /home/pi/MagicMirror/modules/MMM-Hotword/models
    model.file :  /home/pi/MagicMirror/modules/MMM-Hotword/models/hideall.pmdl
    modelPath :  /home/pi/MagicMirror/modules/MMM-Hotword/models
    [HOTWORD] begins.
    [HOTWORD] Detector starts listening.
    [HOTWORD] Detected: hideall
    [HOTWORD] stops.
    [HOTWORD] Final Result: { detected: true, hotword: 'hideall', file: null }
    

    My questions are:

    • is there a way to restart the HOTWORD listening process once a keyword is detected?
    • when I run not in dev mode, the actions are not processed on the screen.

    my config is set up as below:

            {   
                module: "MMM-Hotword",
                config: {
                    mic: {
                        recordProgram : "arecord",
                        device: "plughw:1,0"        // recording device (e.g.: "plughw:1")
                    },  
                    models: [
                        {   
                            hotwords    : "smart_mirror",
                            file        : "smart_mirror.umdl",
                            sensitivity : "0.5",
                        },
                        {
                          hotwords    : "hideall",
                          file        : "hideall.pmdl",
                          sensitivity : "0.5",
                        },
                        {
                          hotwords    : "showall",
                          file        : "showall.pmdl",
                          sensitivity : "0.5",
                        },
                    ],
                    defaultCommand: {
                        notificationExec: {
                            notification: "ASSISTANT_ACTIVATE",
                            payload: (detected, afterRecord) => {
                            return {profile:"default"}
                            }
                        },
                        afterRecordLimit:0,
                        restart:false,
                    },
                    commands: {
                        "hideall": {
                          moduleExec: {
                            module: [],
                            exec: (module) => { module.hide()}
                          }
                        },
                        "showall": {
                          moduleExec: {
                            module: [],
                            exec: (module) => { module.show()}
                          }
                        },
                    },
                    restart: true,
                    testMic: true,
                    useDisplay: true,
                    verbose: true
                }
            }
    

    any guidance would be appreciated!

    Josh

    posted in Troubleshooting
    P
    pythugoras
    Nov 4, 2019, 11:18 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