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

    gndimitro

    @gndimitro

    1
    Reputation
    667
    Profile views
    13
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gndimitro Unfollow Follow

    Best posts made by gndimitro

    • RE: Having issues loading library

      @MichMich Thanks! I’ll fix my code accordingly so that I won’t modify vendor.js

      posted in Development
      G
      gndimitro

    Latest posts made by gndimitro

    • RE: Access the default values in outside functions

      @MichMich Oh okay, thanks for the help!

      posted in Development
      G
      gndimitro
    • RE: Having issues loading library

      @MichMich Thanks! I’ll fix my code accordingly so that I won’t modify vendor.js

      posted in Development
      G
      gndimitro
    • RE: Deploying to heroku troubleshooting

      @dmcinnes So I found a solution! I changed a line in server.js to server.listen(process.env.PORT || config.port); and that seemed to work, it didn’t break my config file

      posted in Troubleshooting
      G
      gndimitro
    • RE: Deploying to heroku troubleshooting

      @dmcinnes I changed my port value to port: process.env.PORT, just for heroku.

      posted in Troubleshooting
      G
      gndimitro
    • RE: Deploying to heroku troubleshooting

      @dmcinnes Actually it’s giving me an odd error in the dev console, it’s saying “process is not defined” and then that breaks my config file so the app is running but not working correctly, do you have any ideas?

      posted in Troubleshooting
      G
      gndimitro
    • RE: Deploying to heroku troubleshooting

      @dmcinnes Thanks! That worked, now I have different issues but it’s live on heroku now. :)

      posted in Troubleshooting
      G
      gndimitro
    • RE: Deploying to heroku troubleshooting

      @dmcinnes yeah that’s what I thought but I’m having issues with that, it seems to fail at:
      016-08-09T00:38:56.941069+00:00 app[web.1]: Ready to go! Please point your browser to: http://localhost:8080
      2016-08-09T00:39:37.042725+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
      2016-08-09T00:39:37.042725+00:00 heroku[web.1]: Stopping process with SIGKILL
      2016-08-09T00:39:37.194692+00:00 heroku[web.1]: Process exited with status 137

      posted in Troubleshooting
      G
      gndimitro
    • RE: Deploying to heroku troubleshooting

      can you post what you did to setup MagicMirror on heroku? I want to do the same thing, but I’m not 100% sure what I need to change, thanks!

      posted in Troubleshooting
      G
      gndimitro
    • Access the default values in outside functions

      I’m having troubles accessing my default values in my hello function, in my start function the values exist but in hello they are undefined and unreadable, code is below:

      Module.register("jarvis", {
      // Module defaults
        defaults: {
          assistantName: "jarvis",
          assistantVoice: "UK English Male"
        },
      
        // Required Scripts
        getScripts: function() {
      	return ["annyang.js",
              "http://code.responsivevoice.org/responsivevoice.js"];
      },
      
      hello: function(name) {
      
          if(name)
            name = name.trim().toLowerCase();
      
      Log.info(name)
      Log.info(this.config.assistantName)
      
      if(name && (name == this.config.assistantName))
        responsiveVoice.speak("Hello George");
      else {
        responsiveVoice.speak("Hello");
      }
        },
      
        start: function() {
        Log.info("Starting module: " + this.name);
        annyang.debug();
          if (annyang) {
            // Let's define a command.
            var commands = {
              'hello (*name)': this.hello
            };
      
            // Add our commands to annyang
            annyang.addCommands(commands);
      
            // Start listening.
            annyang.start();
      }
      
      Log.info(this.config.assistantVoice)
      Log.info(this.config.assistantName)
      
      // Setting voice default
      responsiveVoice.setDefaultVoice(this.config.assistantVoice);
        }
      });
      

      Please help, thank you!

      posted in Development
      G
      gndimitro
    • RE: Having issues loading library

      @gndimitro Found the issue, I needed to copy the script to the vendor folder and modify the vendor.js script

      posted in Development
      G
      gndimitro