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.

    can someone help pleas with my config/config.js

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 3 Posters 3.1k Views 3 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.
    • J Offline
      jiyar
      last edited by

      language: "en",
      timeFormat: 12,
      units: "imperial",
      
      modules: [
      	{
      		module: "alert",
      	},
      	{
      		module: "updatenotification",
      		position: "top_bar"
      	},
      	{
      		module: "clock",
      		position: "top_left"
      	},
      	{
      	        module: 'MMM-PrayerTime',
      	        position: 'top_left',	// This can be any of the regions. Best result is in the top_left/top_right.
      	        config: {
      		         apiVersion: '1.0' // please, leave unchanged. reserved for future use.
      		        lat: false, // latitude of your position (city)
      		        lon: false, // longitude of your position (city)
      		        timezone: false, // please refer to http://php.net/manual/en/timezones.php
      		        timeFormat: 12,
      		        method: 5,
      		        playAdzan: ['spede', 'nivro', 'evar', 'maghrib', 'aisha'],
      		        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,
      		        showAdzanAlert: true,
      		        alertTimer: 15000
      				} 
      			]
              	}
      	},
      	{
      		module: "compliments",
      		position: "lower_third"
                	},
      	{
      		module: "currentweather",
      		position: "top_right",
      		config: {
      			location: "Erbil",
      			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
      			appid: "bd5e378503939ddaee76f12ad7a97608"
      		}
      	},
      	{
      		module: "weatherforecast",
      		position: "top_right",
      		header: "Weather Forecast",
      		config: {
      			location: "Erbil",
      			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
      			appid: "bd5e378503939ddaee76f12ad7a97608"
      		}
      	},
      	{
      		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
      		}
      	},
      ]
      

      };

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @jiyar
        last edited by

        @jiyar you have two issues, both are in the section of the module prayer time:

        1. after apiVersion there is a comma missing before your comment
          apiVersion: '1.0', // please, leave unchanged. reserved for future use.
        2. There are two brackets too much (} ]), it should be:
            alertTimer: 15000
          }
        },
        

        Please create a github issue if you need help, so I can keep track

        J 1 Reply Last reply Reply Quote 1
        • J Offline
          jiyar @strawberry 3.141
          last edited by

          @strawberry-3.141 thank u for replaying but I’v got the same problem
          language: “en”,
          timeFormat: 12,
          units: “imperial”,

          modules: [
          	{
          		module: "alert",
          	},
          	{
          		module: "updatenotification",
          		position: "top_bar"
          	},
          	{
          		module: "clock",
          		position: "top_left"
          	},
          	{
          	        module: 'MMM-PrayerTime',
          	        position: 'top_left',	// This can be any of the regions. Best result is in the top_left/top_right.
          	        config: {
          		         apiVersion: '1.0', // please, leave unchanged. reserved for future use.
          		        lat: false, // latitude of your position (city)
          		        lon: false, // longitude of your position (city)
          		        timezone: false, // please refer to http://php.net/manual/en/timezones.php
          		        timeFormat: 12,
          		        method: 5,
          		        playAdzan: ['spede', 'nivro', 'evar', 'maghrib', 'aisha'],
          		        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,
          		        showAdzanAlert: true,
          		        alertTimer: 15000
               		}
          	},
          	{
          		module: "compliments",
          		position: "lower_third"
                    	},
          	{
          		module: "currentweather",
          		position: "top_right",
          		config: {
          			location: "Duhok",
          			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
          			appid: "bd5e378503939ddaee76f12ad7a97608"
          		}
          	},
          	{
          		module: "weatherforecast",
          		position: "top_right",
          		header: "Weather Forecast",
          		config: {
          			location: "Erbil",
          			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
          			appid: "bd5e378503939ddaee76f12ad7a97608"
          		}
          	},
          	{
          		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
          		}
          	},
          ]
          

          };

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @jiyar
            last edited by

            @jiyar linting your config on http://jshint.com/ doesn’t give anymore issues, can you specify what the issue is with your config. Can you provide any error logs (pm2, electron, browser, terminal …)?

            Please create a github issue if you need help, so I can keep track

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jiyar @strawberry 3.141
              last edited by

              @strawberry-3.141 my problems when I run the magicmirror it says creat config file

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @jiyar
                last edited by

                @jiyar is your file called config.js? Is it stored in MagicMirror/config/config.js

                Please create a github issue if you need help, so I can keep track

                J 2 Replies Last reply Reply Quote 0
                • J Offline
                  jiyar @strawberry 3.141
                  last edited by jiyar

                  @strawberry-3.141 yes config.js

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jiyar @strawberry 3.141
                    last edited by

                    @strawberry-3.141 I add a new module I got this problem but whith defualt config file it works

                    1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer
                      last edited by

                      https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        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