• 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.

MMM-PrayerTime

Scheduled Pinned Locked Moved Education
55 Posts 14 Posters 35.2k 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 Nov 6, 2017, 3:12 AM

    @slametps The mirror cannot validate the config.

    Z 1 Reply Last reply Nov 6, 2017, 3:15 AM Reply Quote 0
    • Z Offline
      zzaidi148 @zzaidi148
      last edited by Nov 6, 2017, 3:15 AM

      @slametps It cannot read propert ‘language’

      1 Reply Last reply Reply Quote 0
      • N Offline
        noorm91
        last edited by Nov 6, 2017, 7:54 AM

                    {
                            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

        S 1 Reply Last reply Nov 6, 2017, 8:53 AM Reply Quote 0
        • S Offline
          slametps @noorm91
          last edited by Nov 6, 2017, 8:53 AM

          @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
          • N Offline
            noorm91
            last edited by Nov 6, 2017, 7:56 PM

            Alhamdulillah almost there, the module shows up in top_right with this conf, but it just says " Loading … " any known reason?

                        {
                                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: 'en',
                                        showAdzanAlert: true,
                                        alertTimer: 15000
                                        }
                        },
            
            S 1 Reply Last reply Nov 6, 2017, 8:36 PM Reply Quote 0
            • S Offline
              slametps @noorm91
              last edited by Nov 6, 2017, 8:36 PM

              @noorm91 can you post the pm2/mm log?

              regards,

              Slamet PS

              Z 1 Reply Last reply Nov 7, 2017, 12:15 AM Reply Quote 0
              • Z Offline
                zzaidi148 @slametps
                last edited by Nov 7, 2017, 12:15 AM

                @slametps Alhamdulillah I got it work by taking out the language line. It works well now. I was wondering if there was any way I could take out the Imsak times from the module and to have the times be in a 12 hour format. Also, how do I make sure that it plays the athan? Thanks for all the help!

                S 1 Reply Last reply Nov 7, 2017, 6:04 AM Reply Quote 0
                • S Offline
                  slametps @zzaidi148
                  last edited by Nov 7, 2017, 6:04 AM

                  @zzaidi148 said in MMM-PrayerTime:

                  @slametps Alhamdulillah I got it work by taking out the language line. It works well now. I was wondering if there was any way I could take out the Imsak times from the module and to have the times be in a 12 hour format. Also, how do I make sure that it plays the athan? Thanks for all the help!

                  You can remove Imsak from the schedule by adding config notDisplayed: ['midnight', 'sunset', 'imsak']. Currently, support 24-hour format only.
                  Your MM has speaker? If yes, you can check type following command in console:
                  /usr/bin/omxplayer -o hdmi modules/MMM-PrayerTime/res/adzan.mp3
                  It will play adzan.mp3.

                  regards,

                  Slamet PS

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    noorm91
                    last edited by Nov 7, 2017, 10:23 AM

                    I will try get the log when I’m home, just a simple question, does this work with Midori browser, because that is the one I’m using on Rpi 1 model b…I entered my Rpi IP address in chrome from my computer and then I saw the module perfectly.

                    S A 2 Replies Last reply Nov 7, 2017, 11:13 PM Reply Quote 0
                    • S Offline
                      slametps @noorm91
                      last edited by Nov 7, 2017, 11:13 PM

                      @noorm91 said in MMM-PrayerTime:

                      I will try get the log when I’m home, just a simple question, does this work with Midori browser, because that is the one I’m using on Rpi 1 model b…I entered my Rpi IP address in chrome from my computer and then I saw the module perfectly.

                      Sorry, I haven’t test it on midori browser.

                      regards,

                      Slamet PS

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