Read the statement by Michael Teeuw here.
MMM-PrayerTime
-
@yawns tried that but didn’t work. I think it has to be something with the timezone.
-
@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? -
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?
-
@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'. -
@slametps The mirror cannot validate the config.
-
@slametps It cannot read propert ‘language’
-
{ 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.mdpi@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 -
@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.mdpi@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 translationsYou may simply remove
language: config.languageline, 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. -
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 } }, -
@noorm91 can you post the pm2/mm log?
-
@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!
-
@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. -
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.
-
@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.
-
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
-
@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?
-
@slametps 12hour format would be easier for people in America to read.
-
@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. -
@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.
-
@slametps Thank you so much! How do I do that?
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
