Coder Social home page Coder Social logo

zaimramlan / waktu-solat-api Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 8.0 2 MB

Malaysia Waktu Solat JSON API (E-Solat API). Data from JAKIM's E-Solat.

Home Page: https://zaimramlan.github.io/waktu-solat-api/

License: MIT License

Ruby 85.99% JavaScript 2.02% CoffeeScript 1.07% CSS 1.24% HTML 8.78% SCSS 0.90%
waktu-solat-api prayer-times json-api ruby-on-rails e-solat-api

waktu-solat-api's Introduction

Waktu Solat API

Malaysia prayer times (waktu solat) JSON API @ E-Solat API. Data from JAKIM's E-Solat.

Built with Waktu Solat API

Waktu Solat Malaysia Telegram Bot by Zaim Ramlan

About

  • Built with Ruby (2.7.3) on Rails (5.2.5)
  • First deployed on Heroku on midnight of 01 Feb 2017
  • Data updates every midnight

Documentation

https://zaimramlan.github.io/waktu-solat-api/

Endpoints

  1. https://waktu-solat-api.herokuapp.com/api/v1/prayer_times.json
  2. https://waktu-solat-api.herokuapp.com/api/v1/zones.json
  3. https://waktu-solat-api.herokuapp.com/api/v1/states.json

Future Improvements

  • Pagination for /prayer_times.json

Contributing

Do fork this project and improve where you see fit. Submit your Pull Request for merge review.
Use the prepare repository section to help setup the repo on your local environment.

Prepare Repository

Clone the repo and install the dependencies

$ git clone https://github.com/zaimramlan/waktu-solat-api.git
$ cd waktu-solat-api
$ bundle install

Set up the database

$ rake db:create db:migrate

Download the list of states, zones and prayer times

$ rake esolat:v2:scrapezones esolat:v2:scrapetimes

Run the Server

$ rails server

License

  • MIT

waktu-solat-api's People

Contributors

dependabot[bot] avatar zaidhuda avatar zaimramlan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

waktu-solat-api's Issues

Zones in code KTN02 returns empty array of waktu solat

Zones in KTN02 (Gua Musang (Daerah Galas Dan Bertam), Jeli, Jajahan Kecil Lojing) all returns empty array of waktu solat.

Tested with each endpoints

  • Prayer times by state
    https://waktu-solat-api.herokuapp.com/api/v1/prayer_times.json?negeri=kelantan

response data:

"data": {
        "negeri": "kelantan",
        "zon": [
            ... other zones that works fine,    
            {
                "nama": "gua musang (daerah galas dan bertam)",
                "waktu_solat": []
            },
            {
                "nama": "jeli",
                "waktu_solat": []
            },
            {
                "nama": "jajahan kecil lojing",
                "waktu_solat": []
            }
        ]
    },
  • Prayer times by zon
    https://waktu-solat-api.herokuapp.com/api/v1/prayer_times.json?zon=gua%20musang

response data:

"data": [
        {
            "negeri": "kelantan",
            "zon": "gua musang (daerah galas dan bertam)",
            "waktu_solat": []
        }
    ],

https://waktu-solat-api.herokuapp.com/api/v1/prayer_times.json?zon=jeli

response data:

"data": [
        {
            "negeri": "kelantan",
            "zon": "jeli",
            "waktu_solat": []
        }
    ],

same goes with 'Jajahan Kecil Lojing'

  • Prayer times by negeri and zon
    https://waktu-solat-api.herokuapp.com/api/v1/prayer_times.json?negeri=kelantan&zon=gua%20musang

response data:

"data": {
        "negeri": "kelantan",
        "zon": [
            {
                "nama": "gua musang (daerah galas dan bertam)",
                "waktu_solat": []
            }
        ]
    },

As far as I tested all the zones, only the zones in this area (KTN02) that returns empty array of waktu solat.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.