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

    lb-rezende

    @lb-rezende

    0
    Reputation
    618
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    lb-rezende Unfollow Follow

    Latest posts made by lb-rezende

    • RE: Yet Another Voice Module (Sphinx + Alexa)

      @whyjustin

      Thanks for your help. I formatted the SD card and installed all over again, but it has something that does not work.

      I have Alexa working, I used the following guide:
      https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry-Pi

      So, following the README of your module, I have the following:
      VLC:

      VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)

      JAVA

      java version “1.8.0_111”
      Java™ SE Runtime Environment (build 1.8.0_111-b14)
      Java HotSpot™ Client VM (build 25.111-b14, mixed mode)
      javac 1.8.0_111

      So ALPN is configured to 8.1.0.v20141016 (1.8.0u11 OpenJDK version)

      MAVEN

      Apache Maven 3.0.5
      Maven home: /usr/share/maven
      Java version: 1.8.0_111, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-8-oracle/jre
      Default locale: en_GB, platform encoding: UTF-8
      OS name: “linux”, version: “4.4.35-v7+”, arch: “arm”, family: “unix”

      I configured config.js with the following sets and after that executed npm install in the module directory:

                  {
                          module: 'magic-mirror-voice',
                          header: 'Magic Mirror Voice',
                          position: 'top_right',
                          config: {
                                  debug: true,
                                  alexa: {
                                          productId: 'my_device',
                                          dsn: '1xxxxxxxxxx'
                                  },
                                  ssl: {
                                          sslCaCert: '',
                                          sslKey: '',
                                          sslCert: '',
                                          sslClientKeyStore: '',
                                          sslClientKeyStorePassphrase: ''
                                  },
                                  companion: {
                                          port: 3000,
                                          serviceUrl: 'https://localhost:3000',
                                          redirectUrl: 'https://localhost:3000/authresponse',
                                          clientId: '.MY PRIVATE KEY',
                                          clientSecret: 'MY PRIVATE KEY'
                                  },
                                  client: {
                                          alpnVersion: '8.1.0.v20141016',
                                          vlcPath: '/usr/lib/vlc',
                                          vlcPluginPath: '/usr/lib/vlc/plugins'
                                  },
                                  sphinx: {
                                          commands: {
                                                  "mirror mirror": {
                                                          action: 'alexa'
                                                          }
                                                  },
                                          dictionary: './commands.dic', // Optional
                                          model: './commands.lm' // Optional
                                          }
                                  }
                  },
      

      I removed the ssl optional configuration, the port is the same that is configured at the amazon developer site, the clientId and clientSecret are correct (I removed here), the ALPN version is the same of Java and the vlc address is correct, so it should be working, but I receive the following message:

      Whoops! There was an uncaught exception…
      TypeError: parser.close is not a function
      at SAXStream.openf1 (/home/pi/MagicMirror/node_modules/feedme/lib/xmlfeedparser.js:107:14)
      at emitOne (events.js:96:13)
      at SAXStream.emit (events.js:188:7)
      at Object.me._parser.(anonymous function) [as onopentag] (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:258:17)
      at emit (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:640:35)
      at emitNode (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:645:5)
      at openTag (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:841:5)
      at Object.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:1318:13)
      at SAXStream.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:239:18)
      at yoshi.write (/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js:41:14)
      at IconvLiteDecoderStream.ondata (_stream_readable.js:555:20)
      at emitOne (events.js:96:13)
      at IconvLiteDecoderStream.emit (events.js:188:7)
      at readableAddChunk (_stream_readable.js:176:18)
      at IconvLiteDecoderStream.Readable.push (_stream_readable.js:134:10)
      at IconvLiteDecoderStream.Transform.push (_stream_transform.js:128:32)
      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

      Do you have any idea of what is happening?

      posted in Development
      L
      lb-rezende
    • RE: Yet Another Voice Module (Sphinx + Alexa)

      @whyjustin said in Yet Another Voice Module (Sphinx + Alexa):

      -Dmaven.multiModuleProjectDirectory=$M2_HOME

      Where do I set the $M2_HOME (and how)? I just created the maven.sh file as described in the tutorial and included the two lines. I inserted this line that you suggested in the same file, maven.sh, but did not work.
      Is there a way to uninstall those applications and do all over again?

      posted in Development
      L
      lb-rezende
    • RE: Yet Another Voice Module (Sphinx + Alexa)

      @whyjustin

      I followed this doc that you linked and it has more details than the original readme file that I used, when I used the automated installation. The problem now is that Maven is no longer working. I receive the following message:

      -Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.

      Any idea how to solve it?

      posted in Development
      L
      lb-rezende
    • RE: Stocks

      Is it possible to check currency rates using this module?

      posted in Utilities
      L
      lb-rezende
    • RE: Yet Another Voice Module (Sphinx + Alexa)

      @whyjustin

      I had done that step when I installed. I checked again, and Alexa is working when I execute the last step of the installation process (the one that has to open three different terminals and then the Alexa opens).

      As I said, I’m new with Linux, so probably I configured it with something missing or wrong. My config.js is this way:

                  {
                          module: 'magic-mirror-voice',
                          header: 'Magic Mirror Voice',
                          position: 'top_right',
                          config: {
                                  debug: true,
                                  alexa: {
                                          productId: 'MagicMirrorEmmanuel',
                                          dsn: 'MagicMirrorEmmanuel'
                                  },
                                  ssl: {
                                          sslCaCert: './magic-mirror-voice/alexa-certificate-generator/certs/ca/ca.crt',
                                          sslKey: './magic-mirror-voice/alexa-certificate-generator/certs/server/node.key',
                                          sslCert: './magic-mirror-voice/alexa-certificate-generator/certs/server/node.crt',
                                          sslClientKeyStore: './magic-mirror-voice/alexa-certificate-generator/certs/client/client.pkcs12',
                                          sslClientKeyStorePassphrase: ''
                                  },
                                  companion: {
                                          port: 3000,
                                          serviceUrl: 'https://localhost:3000',
                                          redirectUrl: 'https://localhost:3000/authresponse',
                                          clientId: 'MY PRIVATE CLIENT ID',
                                          clientSecret: 'MY PRIVATE CLIENT SECRET'
                                  },
                                  client: {
                                          alpnVersion: '1.0.2',
                                          vlcPath: '/usr/lib/vlc',
                                          vlcPluginPath: '/usr/lib/vlc/plugins'
                                  },
                                  sphinx: {
                                          commands: {
                                                  "mirror mirror": {
                                                          action: 'alexa'
                                                          }
                                                  },
                                          dictionary: './commands.dic', // Optional
                                          model: './commands.lm' // Optional
                                          }
                                  }
                  },
      

      I’m not sure about the alpnVersion, vlcPath and vlcPluginPath, because I do not know where and how to find it. The dsn line as well, where do I find it?
      I already changed ports as discussed here before, but did not work.

      Thanks!

      posted in Development
      L
      lb-rezende
    • RE: Yet Another Voice Module (Sphinx + Alexa)

      Hi,

      I’m having a problem installing this module and maybe someone could help me, because this is my first experience with Linux and the Magic Mirror.

      I followed the link describe in the Github to install Alexa. It was everything ok, I talked to her at the end.

      I followed the rest of the instructions to install the module, although when I start the Magic Mirror it keeps at “loading” and after a while the application crash.

      The last message is:
      Listening for transport dt_socket at address: 5005
      electron js/electron.js: …/src/java.cpp:105: v8::Localv8::Value Java::ensureJvm(): Assertion `result->IsNull()’ failed.

      How can I solve it?

      Thanks in advance.

      posted in Development
      L
      lb-rezende