Git Product home page Git Product logo

pray_reminder's Introduction

Pray Reminder v2

Root from Ibadah Reminder (https://github.com/jibrilhp/ibadah_reminder)

I hope this application will reminds many people to Ibadah :)

1. Create conncection to database and API

I'm using key from LINE, Google API and OpenWeather and create database.php and flag.php

flag.php

<?php
$channelAccessToken = '<from LINE API, insert here>';
$channelSecret = '<from LINE API, insert here>';

define("op_id","<open weather key>");
define('google_key','<google key >');
define("cron_key",'<custom key, you can make own key>'); 

?>

database.php

<?php
$servername ="localhost";
$username ="root";
$password = "";
$dbname = "db_reminder";

$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
    exit(' :( ');
}
?>

2. Deploy on your server, check the require_once location.

In my localhost, i'm using the "new" folder to serve.

3. Create your cron

Create for everyminutes
curl "<your_server>/reminder_cron.php?key=<key>"

Create for everyday
curl "<your_server>/reminder_cron.php?key=0816851c86&run=athan"

Create for every 5-day
curl "<your_server>/reminder_cron.php?key=0816851c86&run=weather"

4. Wait for athan reminder

Screenshot

pray_reminder's People

Contributors

jibrilhp avatar

Watchers

 avatar  avatar

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.