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.

    MMM-PrayerTime

    Scheduled Pinned Locked Moved Education
    55 Posts 14 Posters 41.3k Views 14 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.
    • Z Offline
      zzaidi148 @slametps
      last edited by

      @slametps Thank you for making this module. I just wanted to ask you why my config wouldn’t validate. I am in central north america. This is my config:

      {
      			module: 'MMM-PrayerTime',
      			position: 'bottom_right',	
      			config: {
      			apiVersion: '1.0' 
      			lat: 38.033184, 
      			lon: -86.625225, 
      			timezone: true, 
      			method: 5,
      			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
      			notDisplayed: ['midnight', 'sunset'],
      			useUpdateInterval: true,
      			updateInterval: 86400 * 1000, 
      			animationSpeed: 2.5 * 1000, 
      			language: config.language,
      			showAdzanAlert: true,
      			alertTimer: 15000
      				}
      		},
      
      yawnsY 1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator @zzaidi148
        last edited by

        @zzaidi148
        There is a comma missing after apiVersion: '1.0'

        Z 1 Reply Last reply Reply Quote 0
        • Z Offline
          zzaidi148 @yawns
          last edited by

          @yawns tried that but didn’t work. I think it has to be something with the timezone.

          slametpsS 1 Reply Last reply Reply Quote 0
          • slametpsS Offline
            slametps @zzaidi148
            last edited by

            @zzaidi148 said in MMM-PrayerTime:

            @yawns tried that but didn’t work. I think it has to be something with the timezone.

            There is a missing comma after apiVersion: '1.0'. What does not work? What you get on your mirror? Or in pm/mm log?

            regards,

            Slamet PS

            Z 1 Reply Last reply Reply Quote 0
            • N Offline
              noorm91
              last edited by yawns

              I am having trouble with my module…

              {
                                      module: 'MMM-PrayerTime',
                                      position: 'bottom_right',
                                      config: {
                                              apiVersion: '1.0',
                                              lat: 55.841727,
                                              lon: 13.303381,
                                              timezone: Europe/Stockholm,
                                              method: 3,
                                              playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                              notDisplayed: ['midnight', 'sunset'],
                                              useUpdateInterval: true,
                                              updateInterval: 86400 * 1000,
                                              animationSpeed: 2.5 * 1000,
                                              language: config.language,
                                              showAdzanAlert: true,
                                              alertTimer: 15000
                                              }
                              },
              

              can you see anything wrong?

              slametpsS 1 Reply Last reply Reply Quote 0
              • slametpsS Offline
                slametps @noorm91
                last edited by yawns

                @noorm91 said in MMM-PrayerTime:

                I am having trouble with my module…

                {
                                       module: 'MMM-PrayerTime',
                                       position: 'bottom_right',
                                       config: {
                                               apiVersion: '1.0',
                                               lat: 55.841727,
                                               lon: 13.303381,
                                               timezone: Europe/Stockholm,
                                               method: 3,
                                               playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                               notDisplayed: ['midnight', 'sunset'],
                                               useUpdateInterval: true,
                                               updateInterval: 86400 * 1000,
                                               animationSpeed: 2.5 * 1000,
                                               language: config.language,
                                               showAdzanAlert: true,
                                               alertTimer: 15000
                                               }
                               },
                

                can you see anything wrong?

                It should be timezone: 'Europe/Stockholm'.

                regards,

                Slamet PS

                J 1 Reply Last reply Reply Quote 0
                • Z Offline
                  zzaidi148 @slametps
                  last edited by

                  @slametps The mirror cannot validate the config.

                  Z 1 Reply Last reply Reply Quote 0
                  • Z Offline
                    zzaidi148 @zzaidi148
                    last edited by

                    @slametps It cannot read propert ‘language’

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      noorm91
                      last edited by

                                  {
                                          module: 'MMM-PrayerTime',
                                          position: 'top_right',
                                          config: {
                                                  apiVersion: '1.0',
                                                  lat: 55.841727,
                                                  lon: 13.303381,
                                                  timezone: 'Europe/Stockholm',
                                                  method: 3,
                                                  playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                                  notDisplayed: ['midnight', 'sunset'],
                                                  useUpdateInterval: true,
                                                  updateInterval: 86400 * 1000,
                                                  animationSpeed: 2.5 * 1000,
                                                  language: config.language,
                                                  showAdzanAlert: true,
                                                  alertTimer: 15000
                                                  }
                                  },
                      

                      Salam, changed it but still not working :( lon/lat: is ok? how about language: ?
                      Actually this is my first module I’m trying to get working, pretty new to MM2 so maybe I need to change somewhere else too.

                      The module is under here;
                      pi@raspberrypi:~/MagicMirror/modules $ ls
                      default MMM-PrayerTime node_modules README.md

                      pi@raspberrypi:~/MagicMirror/modules/MMM-PrayerTime $ ls
                      LICENSE MMM-PrayerTime.css MMM-PrayerTime.js node_helper.js README.md res screenshot2.jpg screenshot-alert.png screenshot.png translations

                      slametpsS 1 Reply Last reply Reply Quote 0
                      • slametpsS Offline
                        slametps @noorm91
                        last edited by

                        @noorm91 said in MMM-PrayerTime:

                                    {
                                            module: 'MMM-PrayerTime',
                                            position: 'top_right',
                                            config: {
                                                    apiVersion: '1.0',
                                                    lat: 55.841727,
                                                    lon: 13.303381,
                                                    timezone: 'Europe/Stockholm',
                                                    method: 3,
                                                    playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                                    notDisplayed: ['midnight', 'sunset'],
                                                    useUpdateInterval: true,
                                                    updateInterval: 86400 * 1000,
                                                    animationSpeed: 2.5 * 1000,
                                                    language: config.language,
                                                    showAdzanAlert: true,
                                                    alertTimer: 15000
                                                    }
                                    },
                        

                        Salam, changed it but still not working :( lon/lat: is ok? how about language: ?
                        Actually this is my first module I’m trying to get working, pretty new to MM2 so maybe I need to change somewhere else too.

                        The module is under here;
                        pi@raspberrypi:~/MagicMirror/modules $ ls
                        default MMM-PrayerTime node_modules README.md

                        pi@raspberrypi:~/MagicMirror/modules/MMM-PrayerTime $ ls
                        LICENSE MMM-PrayerTime.css MMM-PrayerTime.js node_helper.js README.md res screenshot2.jpg screenshot-alert.png screenshot.png translations

                        You may simply remove language: config.language line, and see if this work. It tells MMM-PrayerTime module to use MM global language config. If not work, please use 'en' for language entry.

                        regards,

                        Slamet PS

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 1 / 6
                        • 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