MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. slametps
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 5
    • Topics 9
    • Posts 132
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-PrayerTime

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

      posted in Education
      slametpsS
      slametps
    • RE: MMM-PrayerTime

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

      posted in Education
      slametpsS
      slametps
    • RE: MMM-PrayerTime

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

      posted in Education
      slametpsS
      slametps
    • RE: MMM-PrayerTime

      @noorm91 can you post the pm2/mm log?

      posted in Education
      slametpsS
      slametps
    • RE: MMM-PrayerTime

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

      posted in Education
      slametpsS
      slametps
    • RE: MMM-PrayerTime

      @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'.

      posted in Education
      slametpsS
      slametps
    • RE: MMM-PrayerTime

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

      posted in Education
      slametpsS
      slametps
    • RE: MMM-RandomQuranAyah

      @zzaidi148 said in MMM-RandomQuranAyah:

      @slametps Alhumdulillah, actually worked! Is there any way to change the translation beside en.yusufali in english. Also, my arabic font is different from your screenshot. How do I get your arabic font? Thank you so much!

      Complete translation option can be found at http://api.alquran.cloud/edition. My shot is a browser capture, not actual MM capture and the font is indeed different.
      Actual result is like this:
      https://www.instagram.com/p/BR43DnDgG_r/.

      posted in Education
      slametpsS
      slametps
    • RE: MMM-RandomQuranAyah

      @zzaidi148 said in MMM-RandomQuranAyah:

      @slametps I took the character off but still something wrong

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      var config = {
      
      	address: "localhost", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "en",
      	timeFormat: 12,
      	units: "imperial",
      
      	modules: [
      		{
      		module: 'MMM-RandomQuranAyah',
      		position: 'top_bar',	
      		config: {
      			apiVersion: '1.0' 
      			showArabic: true,
      			showTranslation: true,
      			surahArabicName:false,
      			translationLang:'id.indonesian',
      			updateInterval: 3600 * 1000, 
      		}
      		},
      		{
      			module: "alert",
      		},
      
      		
      		{
      			module: "clock",
      			position: "top_left",
      		},
      
      		{
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      					symbol: "calendar-check-o",
      					url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
      					}
      				]
      			}
      		},
      		
      		{
      			module: "compliments",
      			position: "lower_third",
      		},
      		
      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "Dallas",
      				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "private",
      			}
      		},
      		
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Dallas",
      				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "",
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "New York Times",
      						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					},
      					{
      						title: "ESPN",
      						url: "http://www.espnfc.com/english-premier-league/23/rss"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      		{
                  	        module: 'MMM-GoogleMapsTraffic',
      			position: 'top_left',
                  		config: {
                      	   key: '',
                      	   lat: 33.033184,
                      	   lng: -96.625225,
                      	   height: '350px',
                      	   width: '400px',
                  	        }
              	},
      		]
      		};
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      

      There is missing character comma (,) after apiVersion: '1.0'.

      posted in Education
      slametpsS
      slametps
    • RE: MMM-RandomQuranAyah

      @slametps said in MMM-RandomQuranAyah:

      @zzaidi148 said in MMM-RandomQuranAyah:

      @slametps it just said to recheck your config

      Can you post your whole config? It seems your config is the problem.

      There is character / after config ApiVersion. Pls remove it.

      posted in Education
      slametpsS
      slametps
    • 1 / 1