• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMA - Praytime

Scheduled Pinned Locked Moved Unsolved Requests
10 Posts 3 Posters 1.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    govabm
    last edited by Aug 1, 2018, 9:02 PM

    Hello ,

    I have a Problem with the config file Can someone Help me

    Thats my config file

    this is my config file

    /*************** DO NOT EDIT THE LINE BELOW **************/
    if (typeof module !== “undefined”) {module.exports = config;}
    / 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: “de”,
    timeFormat: 24,
    units: “metric”,

    modules: [
    {
    module: ‘MMM-PrayerTime’,
    position: ‘bottom_right’, .
    config: {
    apiVersion: ‘1.0’,
    lat: 31.972836,
    lon: 35.898916,
    timezone: ‘Asia/Dubai’, // please refer to http://php.net/manual/en/timezones.asia.php
    timeFormat: 12,
    method: 5,
    playAdzan: [‘fajr’, ‘dhuhr’, ‘asr’, ‘maghrib’, ‘isha’],
    notDisplayed: [‘midnight’, ‘sunset’],
    useUpdateInterval: true,
    updateInterval: 86400 * 1000, // How often do you want to fetch new praying time? (milliseconds)
    animationSpeed: 2.5 * 1000, // Speed of the update animation. (milliseconds)
    language: config.language | ‘en’,
    showAdzanAlert: true,
    alertTimer: 15000
    }
    },
    ]
    [
    {
    module: “alert”,
    },

    {
    	module: "updatenotification",
    	position: "top_bar"
    },
    {
    	module: "clock",
    	position: "top_left"
    },
    {
    	module: "calendar",
    	header: "Ferien NRW",
    	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://www.openweathermap.org/help/city_list.txt
    		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
    	}
    },
    

    ]

    J 2 Replies Last reply Aug 2, 2018, 12:43 AM Reply Quote 0
    • J Offline
      justjim1220 Module Developer @govabm
      last edited by Aug 2, 2018, 12:43 AM

      @govabm

      there where a few syntax errors,

      But the biggest issues I am finding is your quotes and double quotes…

      this is what is showing for in the cofig I copied from your config…

      ‘bottom_right’
      “alert”

      this is what it should look like…

      ‘bottom_right’
      “alert”

      you can see there is a difference by the slant of the quotes…

      Hope this helps!

      "Life's Too Short To Dance With Ugly People"
      Jim Hallock - 1995

      G 1 Reply Last reply Aug 5, 2018, 7:14 PM Reply Quote 0
      • J Offline
        justjim1220 Module Developer @govabm
        last edited by justjim1220 Aug 2, 2018, 1:34 AM Aug 2, 2018, 12:53 AM

        @govabm

        Made a few modifications…
        Will leave the quotes to you to fix!

        /* Magic Mirror config.js
         *
         * 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: “de”,
            timeFormat: 24,
            units: “metric”,
        
        modules: [
        {
            module: ‘MMM-PrayerTime’,
            position: ‘bottom_right’,	.
            config: {
                apiVersion: ‘1.0’,
                lat: 31.972836,
                lon: 35.898916,
                timezone: ‘Asia/Dubai’, // please refer to http://php.net/manual/en/timezones.asia.php
                timeFormat: 12,
                method: 5,
                playAdzan: [‘fajr’, ‘dhuhr’, ‘asr’, ‘maghrib’, ‘isha’],
                notDisplayed: [‘midnight’, ‘sunset’],
                useUpdateInterval: true,
                updateInterval: 86400 * 1000, // How often do you want to fetch new praying time? (milliseconds)
                animationSpeed: 2.5 * 1000, // Speed of the update animation. (milliseconds)	
                language: config.language | ‘en’,
                showAdzanAlert: true,
                alertTimer: 15000
            }
        },
        
        {
            module: “alert”
        },
        
        {
            module: "updatenotification",
            position: "top_bar"
        },
        
        {
            module: "clock",
            position: "top_left"
        },
        
        {
            module: "calendar",
            header: "Ferien NRW",
            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://www.openweathermap.org/help/city_list.txt
                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;}
        

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        B 1 Reply Last reply Aug 2, 2018, 1:06 AM Reply Quote 0
        • B Offline
          bhepler Module Developer @justjim1220
          last edited by Aug 2, 2018, 1:06 AM

          @govabm - Take @justjim1220 example of a fixed config.js and remove the " from in front of the lat: value. The values being passed are real numbers and not strings. So they do not need quotes around them.

          Additionally, you specify both German and English as your language. You should probably pick one and stick with it.

          J 1 Reply Last reply Aug 2, 2018, 1:32 AM Reply Quote 0
          • J Offline
            justjim1220 Module Developer @bhepler
            last edited by Aug 2, 2018, 1:32 AM

            @bhepler

            Thanks for the catch!
            didn’t even noticed That I had put that there!!!

            "Life's Too Short To Dance With Ugly People"
            Jim Hallock - 1995

            B 1 Reply Last reply Aug 2, 2018, 1:37 AM Reply Quote 0
            • B Offline
              bhepler Module Developer @justjim1220
              last edited by Aug 2, 2018, 1:37 AM

              @justjim1220 - It just sort of jumped out at me. Of course, now that I think about it, it’s entirely possible that the module needs quotes around those values. I don’t think so, based upon my quick glance at the source code. But I could be wrong. And I don’t have the time to install that module and try it out.

              But hey, @govabm can try it without quotes and then with quotes and let us know what works. The module readme really should provide a working example other than just listing the default of false.

              J 1 Reply Last reply Aug 2, 2018, 1:40 AM Reply Quote 0
              • J Offline
                justjim1220 Module Developer @bhepler
                last edited by Aug 2, 2018, 1:40 AM

                @bhepler

                My issue with it is not knowing why I would put just the first quotes and not finish it with quotes…

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                1 Reply Last reply Reply Quote 0
                • G Offline
                  govabm @justjim1220
                  last edited by Aug 5, 2018, 7:14 PM

                  @justjim1220 i installed complete Sm mirror again now its work i config now the moduls on the screen do you know all the position on the screen witch i can select ?

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    govabm
                    last edited by Aug 5, 2018, 7:45 PM

                    ou no i have some mistakes

                    i edit the possition on the screen know its show me i shoud config the file

                    G 1 Reply Last reply Aug 5, 2018, 8:11 PM Reply Quote 0
                    • G Offline
                      govabm @govabm
                      last edited by yawns Aug 6, 2018, 7:52 AM Aug 5, 2018, 8:11 PM

                      thats a working file know

                      /* 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: "de",
                      	timeFormat: 24,
                      	units: "metric",
                      
                      	modules: [
                      		{
                      		module:'MMM-PrayerTime',
                      		position: 'bottom_left',
                      		config: {
                      			apiVersion: "1.0",
                      			lat: 55.841727, 
                      			lon: 13.303381,
                      			timezone: 'Europe/Berlin', 
                      			timeFormat: 24,
                      			method: 2,
                      			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                      			notDisplayed: ['midnight', 'sunset'],
                      			useUpdateInterval: true,
                      			updateInterval: 86400 * 1000,
                      			animationSpeed: 2.5 * 1000,
                      			language: "en",
                      			showAdzanAlert: true,
                      			alertTimer: 15000
                      			}
                      		},
                      		{
                      			module: 'MMM-RandomQuranAyah',
                      			position: 'top_bar',	
                      			config: {
                      			apiVersion: '1.0', 
                      			showArabic: true,
                      			showTranslation: true,
                      			surahArabicName:false,
                      			translationLang:'de.Aburida',
                      			updateInterval: 3600 * 100, 
                      			}
                      		},
                      
                      		{
                      			module: "alert",
                      		},
                      		{
                      			module: "updatenotification",
                      			position: "top_bar"
                      		},
                      		{
                      			module: "clock",
                      			position: "top_right"
                      		},
                      		{
                      			module: "calendar",
                      			header: "Ferien Deutschland",
                      			position: "top_left",
                      			config: {
                      				calendars: [
                      					{
                      						symbol: "calendar-check-o ",
                      						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                      					}
                      				]
                      			}
                      		},
                      		{
                      			module: "compliments",
                      			position: "bottom_bar"
                      		},
                      		{
                      			module: "currentweather",
                      			position: "top_right",
                      			config: {
                      				location: "New York",
                      				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
                      				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;}
                      
                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      1 / 1
                      • First post
                        8/10
                        Last post
                      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