This application to generate Azan Schedule or Sholat Schedule based on position(latitude, longitude, and timezone). This can be used at the smartphone if golang already support for android/ios.
- Run
govendor sync
If you want to generate files that set the azan schedule, build the cli
- Build the application using
make cli
- Run
./azan_cli generate --latitude=-6.18 --longitude=106.83 --timezone=+7 --city=jakarta
for generating schedule in json format - Run
./azan_cli play
to play azan manually - Run
./azan_cli start
to play azan automatically as scheduled
If you want to setup server for azan schedule, you can build the api server
- MYSQL
- MEMCACHED
- Build the api server using
make api
- Change env.sample to .env and edit the value as you need
- Run
./azan_api
- Apps will listen on port 1234
You may develop your own calculation implementation, see provider.go
for the contract about the calculation function and place it under calculation package
You may develop your own database implementation (if you want to use other db other than mysql), see provider.go
for the contract about database function and place it under database package
You may develop your own cache implementation (if you want to use other cache engine other than memcache), see provider.go
for the contract about cache function and place it under cache package
Copyright (c) 2015 Dr. T. Djamaluddin, Wastono ST
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.