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 47.1k 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 @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
          • N Offline
            noorm91
            last edited by

            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
                                        }
                        },
            
            slametpsS 1 Reply Last reply Reply Quote 0
            • slametpsS Offline
              slametps @noorm91
              last edited by

              @noorm91 can you post the pm2/mm log?

              regards,

              Slamet PS

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

                @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!

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

                  @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

                    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.

                    slametpsS A 2 Replies Last reply Reply Quote 0
                    • slametpsS Offline
                      slametps @noorm91
                      last edited by

                      @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
                      • Z Offline
                        zzaidi148
                        last edited by

                        Is it possible to use another api service like islamic finder or salah times api so it would allow for 12-hour format? Thank You

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

                          @zzaidi148 said in MMM-PrayerTime:

                          Is it possible to use another api service like islamic finder or salah times api so it would allow for 12-hour format? Thank You

                          You should modify the module according to each API provider data. Why should be 12-hour format?

                          regards,

                          Slamet PS

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

                            @slametps 12hour format would be easier for people in America to read.

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

                              @zzaidi148 said in MMM-PrayerTime:

                              @slametps 12hour format would be easier for people in America to read.

                              Sorry for late response.
                              I’ll see what I can do tonight. I’ll inform you if 12-hour format is supported.

                              regards,

                              Slamet PS

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

                                @slametps said in MMM-PrayerTime:

                                @zzaidi148 said in MMM-PrayerTime:

                                @slametps 12hour format would be easier for people in America to read.

                                Sorry for late response.
                                I’ll see what I can do tonight. I’ll inform you if 12-hour format is supported.

                                I have added 12-hours time-format support. Please update your clone.

                                regards,

                                Slamet PS

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

                                  @slametps Thank you so much! How do I do that?

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

                                    @zzaidi148 @slametps

                                    does the MMM-PrayerTime still work??

                                    I am trying to set it up but fail to get anything.

                                    slametpsS 1 Reply Last reply Reply Quote 0
                                    • Krato5K Offline
                                      Krato5
                                      last edited by

                                      what kind of issue that you get ?

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

                                        @danialothman said in MMM-PrayerTime:

                                        @zzaidi148 @slametps

                                        does the MMM-PrayerTime still work??

                                        I am trying to set it up but fail to get anything.

                                        yeah, of course. mine is running. if you got trouble running this module, try install async module.

                                        npm install async
                                        

                                        regards,

                                        Slamet PS

                                        D 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          danialothman @slametps
                                          last edited by

                                          @slametps my apologies,

                                          yes it does work. Thank you for building this.

                                          there were some missing commas in your module page, which I overlooked.

                                          In case anyone from Brunei, you can use the below:

                                          {
                                          		module: "MMM-PrayerTime",
                                          		position: "top_left",
                                          		config: {
                                          			apiVersion: "1.0",
                                          			lat: 4.5353, 
                                          			lon: 114.7277,
                                          			timezone: "Asia/Brunei", 
                                          			timeFormat: 24,
                                          			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
                                          		}
                                          	}
                                          
                                          slametpsS 1 Reply Last reply Reply Quote 0
                                          • slametpsS Offline
                                            slametps @danialothman
                                            last edited by slametps

                                            @danialothman thx for correction. I fixed the info in the github.

                                            @zzaidi148 said in MMM-PrayerTime:

                                            @slametps Thank you so much! How do I do that?

                                            go to MMM-PrayerTime folder and run:

                                            git pull
                                            

                                            regards,

                                            Slamet PS

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • 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