Giter Club home page Giter Club logo

calltom's Introduction

CallTom

CallTom is a simple webapplication written in PHP to quickly call someone.

Introduction

How often have you been called for dinner by your parents, but haven't you heard it because you was listening to music? It happened often to me. To prevent this (and because they were getting sick of it), I wrote CallTom. The concept is simple: They have an simple shortcut on their homescreen which they press. With a simple tap, they can call you without screaming on top of their lungs.

Requirements and stuff

CallTom has a few requirements in order to run smoothly:

  • CallTom's notification are being sent using PushBullet. The person you're calling, obviously, needs to have PushBullet. Also, you'll need their PushBullet API key.
  • CallTom has been written to work with MySQL.
  • CallTom should work fine with the latest PHP.
  • CallTom runs fine on Apache, other webservers may also work. Your mileage may vary.

Limitations

CallTom has no authentication. Making this available to the Internet is not recommended. Also, CallTom only supports calling one person.

Setting up

Simply put the files in a folder on your webserver and edit the settings.php file. Enter the API key for the person you're calling. Don't forget to change the webroot setting. Create a database and a user. When you're done, use the following SQL statements to create the tables:

CREATE TABLE `users` (
   `userid` varchar(15) NOT NULL COMMENT 'u_$uniqid',
   `username` varchar(30) NOT NULL,
   PRIMARY KEY (userid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `devices` (
   `deviceid` varchar(15) NOT NULL COMMENT 'd_$uniqid',
   `userid` varchar(15) NOT NULL,
   `devicename` varchar(30) NOT NULL,
   PRIMARY KEY (deviceid),
   FOREIGN KEY (userid) REFERENCES users(userid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `calls` (
	`callid` varchar(15) NOT NULL COMMENT 'c_$uniqid',
	`deviceid` varchar(15) NOT NULL,
	`type` int(1) NOT NULL,
	`time` int(11) NOT NULL,
	`response` int(1) NOT NULL,
	`reminded` int(1) NOT NULL,
	`message` text,
	`remsg` text,
	PRIMARY KEY (callid),
	FOREIGN KEY (deviceid) REFERENCES devices(deviceid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

When everything is set up, open CallTom with your webbrowser. Follow the directions.

Thanks to

I want to thank subtlepatterns.com for the backgrounds.

Want to improve CallTom?

If you spot a problem with CallTom, feel free to create an issue or do a pull request! Thanks!

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.