Skip to content

Customize RaspAP

Bofu Chen edited this page Mar 15, 2020 · 5 revisions

Introduction

This page is for the developers who are interested in modifying the installed RaspAP.

AIKEA uses RaspAP to provide network configuration management and add customized features including:

  • Telegram client configuration for setting Telegram token.
  • AIKEA pipeline configuration for adjusting sensitivity of home intruder detection.

Installation

In AIKEA project, we install RaspAP by the steps:

$ git clone https://github.com/DT42/raspap-webgui.git
$ cd raspap-webgui/installers
$ ./raspbian.sh -y -o 0 -r bafu/raspap-webgui -b aikea

Customizations

Control Panel Options

Enable / disable options: Edit /var/www/html/config/config.php

RaspAP Concepts

Essential SW Components

Process Description
hostapd Make RPi to be a hotspot (WiFi AP).
lighttpd Webserver

index.php

  • Including includes/*
    • Every include page will setup functions
    • After setup functions, returns template for rendering
  • Copy config/config.php to includes/config.php

PHP Debugging

Log files

  • lighttpd log: /var/log/lighttpd/error.log
  • lighttpd conf: /etc/lighttpd/lighttpd.conf

Job for hostapd.service failed because the control process exited with error code. See systemctl status hostapd.service and journalctl -xe for details.

Clone this wiki locally