Host Tawkit on your own website

The ZIP version of Tawkit is the complete app, with every option. You can put it on your own website, so the screens of your mosque open it at your own address, for example times.your-site.com, with your city, language, iqama and messages already set.

This page is for website admins who know how to upload files (FTP or the file manager of the hosting). The app needs no PHP and no database: any hosting works.

Why host it yourself

  • One address for all your screens. Each new screen opens with your settings ready: no setup on the screen itself.
  • Only your city. The app on your site holds only the data of your country and city: lighter and simpler.
  • More to read on the screen. Add more Qur'an verses (folder ayats), hadiths (file ahadith.js) and adhkar (folder azkar) to those the app shows, and write your own bottom messages and slides.
  • Your own look. Replace the backgrounds that the users can choose (folder themes: HR-0.jpg to HR-39.jpg for landscape, VR-0.jpg to VR-39.jpg for portrait), the logo (logo.png) and the fonts (folder font).
  • The adhan recording you prefer. Replace the MP3 files of the folder audio and keep their names (audio_fajr.mp3, audio_azan.mp3).
  • Weather at the right place. Give the exact position of the mosque in the tool below.
  • Fewer mistakes. Hide the menu items that users should not change: location, prayer time adjustments, import of settings.

When you change a file, keep its name and a copy of the original. Edit text files with a plain text editor and save them in UTF-8.

What you need

  • A website where you can upload files, and if possible a subdomain (for example times.your-site.com). A subdomain is better than a folder: the app keeps its settings per address, and your main site stays clean.
  • The ZIP version of the app, from the download page.
  • A computer to prepare the files.

Steps

  1. Create the subdomain in the panel of your hosting (for example times.your-site.com), linked to a new empty folder. A folder of your site also works (your-site.com/times/).
  2. Unzip the ZIP on your computer.
  3. Make your 3 files with the tool below: city, language, mosque name, iqama, messages and the menu items to hide. Download settings-defaults.js, messages-bottom.js and messages-slides.js, and put them in the main folder of the app, next to index.html, in place of the old ones.
  4. Keep only your country. The folder data holds one folder per country, named with 2 letters (for example SA for Saudi Arabia). Keep the folder 00 and the folder of your country, and delete all the others: this removes thousands of files, and many hostings limit the number of files. In the folder of your country, keep the country file (for example sa.js) and the file of your city (the tool shows its code; for Makkah it is sa.makkah, so the file is wtimes-sa.makkah.js); you may delete the other city files too.

Check that these 2 files are in your ZIP. The website lists every city of the app, but a ZIP may be older than the website: if data/SA/sa.js or the file of your city is missing, download the latest ZIP, or choose another city and make your files again. Without these files the app cannot show the times.

  1. Add more content if you want: more verses, hadiths and adhkar to show, and your backgrounds, logo, fonts and adhan recording (see above).
  2. Test on your computer: open index.html in Chrome, Edge or Firefox. Check the city, the times, the language, the messages and the menu.
  3. Upload everything inside the app folder to the folder of your subdomain, with the same folders and names.
  4. On the mosque screen, open your address in the browser, then Menu ☰ → Fullscreen mode. This click also lets the browser play the adhan.

Good to know

  • The 3 files are read only the first time the app opens in a browser. A screen that already opened your address keeps its own settings. To load your new files there, reset the app: click 7 times on the weather area (it erases the settings of that screen), or clear the data of the site in the browser.
  • Each browser keeps its own settings. A change made on one screen does not change the others: change the files, then reset each screen, or use Export and Import by ID (see the help center).
  • Hidden menu items are only hidden: the reset by 7 clicks on the weather area still works.
  • Do not use a private or incognito window: it keeps nothing.
  • The prayer times work without internet once the app is loaded. Weather needs internet.
  • Use https for your address if you can.
  • Tawkit is free. Keep the name Tawkit and its author. You may change it for your mosque and your home, but you may not sell it or share modified copies: read the license.

Need help? Ask the Tawkit AI assistant, or a volunteer of your country.

Make your 3 files

Choose your city and your settings: the 3 files are written below, ready to download. Nothing is sent to our server.

1 · City of the mosque
2 · Mosque and language

Filled with the centre of the city. Type the exact position of the mosque for a better weather.

3 · Iqama

Minutes between the adhan and the iqama of each prayer.

Leave empty to use the Dhuhr time.

4 · Messages

A line without | is shown every day. Advanced form: 1|DAILY|text, 1|JOMOA|text (Fridays), 1|10/01|text (a Hijri date, month/day). 0 at the start switches a message off.

In a slide, the sign | starts a new line on the screen.

5 · Hide menu items

Ticked items are hidden from the menu ☰ of the app, so the users of the screens cannot change them. Made for Tawkit 9.63: after an update of the app, make your files again.

Your files

Choose the country and the city first.

settings-defaults.js

messages-bottom.js

messages-slides.js

Put the 3 files in the main folder of the app (next to index.html) and replace the old ones.