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

    Posts

    Recent Best Controversial
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      I suspect the quotation marks not only to be in a different font but to be different signs. This is indeed an issue since javascript defines strings by double (") and single quotes (') only (for reference see: https://www.w3schools.com/jsref/jsref_obj_string.asp).

      So, just to be sure: After removing unnecessary properties you have a config.js that looks something like this minimal example

      var config = {
        port: 8080,
        [...]
        modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		[...]
      		{
      			module: 'MMM-Traffic',
      			position: 'top_left',
      			config: {
      				api_key: 'your_apikey_here',
      				origin: '4 Pennsylvania Plaza, New York, NY 10001',
      				destination: '1 MetLife Stadium Dr, East Rutherford, NJ 07073'
      			}
      		},
        ]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      with some content from the default config.js at the “[…]” places, your API-key instead of " ‘your_apikey_here’ " and possibly some lines commented out by prepending “//”, correct?

      The fact that the MM2 starts without error message about config.js indicates, that the issue is within the properties you set, i.e. the origin/destination or the API key.
      Some suggestions:

      1. Did you try to run it with default properties of the MMM-Traffic module (the ones I copied above)? Of course you have to input your own API key.
      2. Did you check whether your API key is valid?
        2.a Is your API key configured correctly? As far as I know you have to login into google account and there assign the key to a project and get the access restrictions right.
        2.b In case you didn’t copy the key: have you checked for typos?

      If you use default config.js parameters and example parameters from MMM-Traffic module it should run. From there, you can incrementally add your changes and figure out, which property leads to the issue.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      @joeytuck said in Help... I need help installing 3rd party modules to Magic Mirror 2:

      Also, do I need to do anything to the MMM-Traffic.js file defaults like adding the api_key or changing values to match my selections on the config.js file?

      No. To include the MMM-Traffic module you just have to include it in your config.js (providing all the required settings).

      @joeytuck said

      Turns out that if you put Drive, instead of Dr, it won’t recognize it.

      Where do you put Drive or Dr? In the readMe, possible values for “mode” are described to be ‘driving’, ‘walking’, ‘bicycling’, ‘transit’.

      I suggest to delete or comment (adding // before the line) all not-required settings of MMM-Traffic at first to minimize possible sources for errors.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      @joeytuck said in Help... I need help installing 3rd party modules to Magic Mirror 2:

      Do I need to add ’ ’ around numeric values as well?

      Usually you don’t. It distinguishes between (for example) the NUMBER 5 and the TEXT containing “5”. To be sure, you should look at the default values and just do it in the same way. For example, arrival_time seems to require " " even though the given example “1445” also could have been a plain number (I guess the reason is the leading 0 at for example “0800” which gets ignored when inputting as number)

      Also, you got some strange quotation marks ´ ´. Until now I thought, only " " and ’ ’ were valid.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      Welcome joeytuck,

      1. did you get it to run without additional 3rd party modules?
      2. if yes, share your config.js so we can have a look at it
      posted in Troubleshooting
      A
      Anhalter42
    • RE: Nobody is ready to Help!!

      @undergroundauth - I don’t know whether the problem is already solved or not. Anyway, since noone mentioned it explicitly, here a note: you should copy/rename config.js.sample to config.js at first since changes to config.js.sample are completely ignored. Only the file config.js is used and so, your changes should only go there.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      yeah this is the response from MMM-Remote-Control. You can do anything with this; your browser decides to plainly display it as text: “status”: “success”. Of course in this case, you usually want to just send the command and don’t receive anything. So in general, if you don’t want to see a response like this, have a look at for example Submit form and stay on same page and especially jQuery / XMLHttpRequest.

      If you want it to be integrated in the Remote-Control menu (the /remote.html), you have to add it yourself or request it from the developer of the MMM-Remote-Control module (unlikely though). It’s similar to the existing options like show/hide modules etc., so it isn’t that difficult to implement.

      posted in Utilities
      A
      Anhalter42
    • RE: Tell maps to from A to B

      As far as I know, there is no such module yet. Actually, I see this as two different things:

      1. A module that shows a route on a map and accepts notifications to change the route. For this, you could use the existing MMM-googlemaps module. Support of notifications has to be implemented, though.
      2. A voice-control module sending the notification to the module described in 1. It has to be able to detect not only keywords but truely recognize speech, so that you can input origin A and destination B. I guess this is already done in one of the several voice-control modules (probably in the pocketsphinx one)?!
      posted in Requests
      A
      Anhalter42
    • RE: Brightness

      Have a look at MMM-Remote-Control. With this you can increase/decrease the overall brightness.

      I didn’t implement it, but as far as I can see, it basically changes the color property of body, .dimmed, .normal, .bright and header in main.css using grayscale-values.
      Actually, it also uses an partially opaque overlay to imitate darker brightness values, but I guess, setting the color property itself or just using the existing module should be sufficient. (You can send notifications to MMM-Remote-Control to set the brightness at runtime)

      posted in Troubleshooting
      A
      Anhalter42
    • RE: MagicMirror as a schoolproject

      I’m curious, isn’t this a bit too costly for a school project? (The two-way mirror alone may be around 150€ here in Europe)

      However, I suggest to elaborate further what exactly you don’t understand or to give an example. From your question, I can’t tell whether you look for “How to start” tips or deep developer knowledge…

      posted in Troubleshooting
      A
      Anhalter42
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      If you have installed MMM-Remote-Control and set up some classes (e.g. “default”, “someclass”), then you can switch between them by calling these URLs:

      http://[RaspberryURL]:[port]/remote?action=NOTIFICATION& notification=CURRENT_PROFILE&payload=%22default%22
      http://[RaspberryURL]:[port]/remote?action=NOTIFICATION& notification=CURRENT_PROFILE&payload=%22someclass%22
      

      (Remove the whitespace between & and notification. “& not” gets converted to ¬ and i dont know how to prevent this :D)

      posted in Utilities
      A
      Anhalter42
    • 1 / 1