Group Details Private

Module Developers

You have developed a module for the MagicMirror? Join the group and get a “Module Developer” badge!

 
  • RE: Run MM on Ubuntu 16 VM

    @reitrac
    I can bet you have missed comma after language:"fr". 95% of syntax error was that thing in my case. 😃

    posted in General Discussion
  • RE: Run MM on Ubuntu 16 VM

    @reitrac

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     *
     * For more information how you can configurate this file
     * See https://github.com/MichMich/MagicMirror#configuration
     *
     */
    
    var config = {
    	address: "localhost", // Address to listen on, can be:
    	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
    	                      // - another specific IPv4/6 to listen on a specific interface
    	                      // - "", "0.0.0.0", "::" to listen on any interface
    	                      // Default, when address config is left out, is "localhost"
    	port: 8080,
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
    	                                                       // or add a specific IPv4 of 192.168.1.5 :
    	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
    	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
    	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
    
    	language: "en",
    	timeFormat: 24,
    	units: "metric",
    
    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check-o ",
    						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
    					}
    				]
    			}
    		},
    		{
    			module: "compliments",
    			position: "lower_third"
    		},
    		{
    			module: "currentweather",
    			position: "top_right",
    			config: {
    				location: "New York",
    				locationID: "",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
    				appid: "YOUR_OPENWEATHER_API_KEY"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "New York",
    				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "YOUR_OPENWEATHER_API_KEY"
    			}
    		},
    		{
    			module: "newsfeed",
    			position: "bottom_bar",
    			config: {
    				feeds: [
    					{
    						title: "New York Times",
    						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
    					}
    				],
    				showSourceTitle: true,
    				showPublishDate: true
    			}
    		},
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    
    posted in General Discussion
  • RE: Run MM on Ubuntu 16 VM

    @reitrac
    Your config.js might have some misspell or wrong syntax.

    posted in General Discussion
  • RE: MMM-RTSPStream Snapshot image resolution appears low, and blurry.

    Sorry you’re having issues. To give a brief background: showing snapshots instead of video was an afterthought in this module. I created the module because there were modules to show MJPEG streams and to show snapshots, but nothing that could play the video from an RTSP source which is what my cameras put out. I added snapshots in because the original ffmpeg version was a CPU and RAM hog and I needed to show something when I didn’t need to stream the video (sounds like the situation described above). Now fast-forward a year, and I’ve found that all I really need for my main mirror is snapshots. 😞

    Anyways, when I added the snapshots to get around some CORS issue I was having, the module grabs the snapshots from the node_helper.js on the “server” end, converts the jpeg to base64 and sends over the socket to the front end/browser, where it draws the image on the canvas (relevant code) trying to make use of the same elements which the original ffmpeg version used to draw the video on the canvas. I am sure this is not the most efficient or best way to render the images correctly which I’m sure is why you’re seeing some quality issues.

    If you guys want to take a look at the code and have a solution, I’d be happy to accept a PR and correct the problem.

    posted in Troubleshooting
  • RE: MMM-BMW-DS (A different kind of weather module)

    @sdetweil

    I don’t know how I missed that. Thanks again for showing me the error of my ways. 🙂

    // Module config defaults.
        defaults: {
            apiKey: "", // Get FREE API key from darksky.net
            tempUnits: "C", // C  or F
            lat: "40.123456", // Latitude
            lng: "-74.123456", // Longitude
            css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert
            ownTitle: "Current Conditions", // Default = Current Conditions
            useHeader: false, // true if you want a header
            header: "Your Header", // Any text you want. useHeader must be true
            maxWidth: "100%",
            animationSpeed: 3000,
            initialLoadDelay: 4250,
            retryDelay: 2500,
            updateInterval: 5 * 60 * 1000,
    
    posted in Utilities
  • RE: MMM-BMW-DS (A different kind of weather module)

    @sdetweil

    Ok, this is what I’ve done. I don’t know if this is the proper way of doing it but it does work.

    // Gets correct css file from config.js
        getStyles: function() {
          if(this.config.css != ""){
            return ["modules/MMM-BMW-DS/css/MMM-BMW-DS" + this.config.css + ".css"];
          } else {
            return ["modules/MMM-BMW-DS/css/MMM-BMW-DS1.css"]; // default.css
          }
        },
    posted in Utilities
  • RE: MMM-TracCar posted in Transport
  • RE: Modules with Images not Displaying

    @striiker said in Modules with Images not Displaying:

    “nah, I shouldn’t have to do that”

    True, you should not have to do that but I’m glad you got them working. 👍

    posted in Troubleshooting
  • RE: MMM-TracCar

    @maxs @iwaldrum you can add zoom: 75; to your custum css file
    Or you can use your keyboard and press Ctrl > - to zoom out or ctrl >Shift > + to zoom in

    posted in Transport
  • RE: Webcam instead of mirror?

    @flipfloplife

    I have a lot of color to my ‘mirror’, but I am on a limited income being disabled, so can’t really afford the one-way glass to turn it into a mirror yet. I just use it as an information and entertainment board.

    posted in General Discussion