Skip to content

Study project POWER that includes Raspberry Pi, Android and PHP WebServer.

License

Notifications You must be signed in to change notification settings

jacekkulis/incognito-server-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IncognitoServer

Study project POWER that includes Raspberry Pi, Android and PHP WebServer.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development.

Prerequisites

Programs and frameworks needed to run this server

  • XAMPP - XAMPP WebServer for PHP 7.1.*
  • Composer - Dependency Manager for PHP

Installing

  1. Follow this steps to install XAMPP pack for Windows.
    Follow this steps to install XAMPP pack for Linux.
  2. Start Apache and MySQL services through XAMPP Control Panel or console
  3. Now clone repo to xampp/htdocs/ folder
git clone https://github.com/jacekkulis/IncognitoServer
  1. Open browser and check if server is accessible
Write url in browser: http://localhost/IncognitoServer
  1. Install composer https://getcomposer.org/download/
  2. Use composer download dependencies link
go to composer.json directory
composer install
composer update
  1. Server is now setup and running,scripts can be accessed by Raspberry and Android.

POST request format

Send HTTP POST with format like:

"keyName" : "value"

We need few info send through post:

Identificator:

"id" : "generated id"

Info about client (who wants anything) for example:

"client" : "raspberry"
"client" : "android"

Info about what client needs for example:

"request" : "notification"
"request" : "cameraPreview"

It can be send with JSON format.

Deployment

Access scripts from Android using local adress http://10.0.2.2/directory/scriptName.php.
From Raspberry Pi use

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Study project POWER that includes Raspberry Pi, Android and PHP WebServer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages