slametps / MMM-PrayerTime

This an extension for the [MagicMirror](https://github.com/MichMich/MagicMirror). It will display prayer time (in local time).
MIT License
20 stars 10 forks source link

Not working for me #21

Closed MrGitGo closed 4 years ago

MrGitGo commented 5 years ago

I have wrote for lat and lon 51.48165 7.21648 values and for time zone: 'Europe/Berlin' but it is not working. I always get an error. What am I doing wrong?

slametps commented 5 years ago

Can you paste your config here?

MrGitGo commented 5 years ago
```

{ module: 'MMM-PrayerTime', position: 'top_left', // This can be any of the regions. Best result is in the top_left/top_right. config: { apiVersion: '1.0', // please, leave unchanged. reserved for future use. lat: 51.5388, // latitude of your position (city) lon: 7.22572, // longitude of your position (city) timezone: 'Europe/Berlin', // please refer to http://php.net/manual/en/timezones.php timeFormat: 24, method: 5, playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'], notDisplayed: ['midnight', 'sunset'], useUpdateInterval: true, updateInterval: 86400 1000, // How often do you want to fetch new praying time? (milliseconds) animationSpeed: 2.5 1000, // Speed of the update animation. (milliseconds) language: config.language, showAdzanAlert: true, showTomorrow: true, alertTimer: 15000 } }

MrGitGo commented 5 years ago

Oh now it worked, when I changed the language to 'en'. So my next problem is that the time that is showing is not correct. I want to display the time of diyanet. For this I have found an API: http://ezanvakti.herokuapp.com/vakitler?ilce=10565 I just want this city in the link displayed. I tried to get the value with this.url.Aksam but this did not worked and then I tried this.url[0].Aksam but no success. I basically just want to use an other api with only this specific city displayed. I hope you can help me.

(Someone wrote alreasy an app with using that api: https://github.com/ademilter/prayer-times/blob/master/src/store/getters.js)

slametps commented 5 years ago

You should create your own module for using that API. But you may check the latest version because there are a new config entry methodSettings for custom prayer time calculation.