Skip to content

Webinterface for HoneyPi to make settings on the Raspberry Pi in maintenance mode.

License

Notifications You must be signed in to change notification settings

Honey-Pi/rpi-webinterface

Repository files navigation

rpi-webinterface Build

A modern and responsive webinterface written in Angular for HoneyPi maintenance.

Quick start

For guidance about installing HoneyPi on your Raspberry Pi please take a look into our main repo.

Development

First start

  1. install Node.js together with npm
  2. run npm install in rpi-webinterface/
  3. run ng serve

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build --prod to build the project. The build artifacts will be stored in the dist/ directory.

Backend

A PHP-based backend is located at /backend/. It is lightweight and does not require additional PHP modules.

Controling your HoneyPi using the backend

Those who want to control their HoneyPi remotely can use the following URLs:

http://honeypi.local can be replaced by the IP address in the home network. Only works if connected to WiFi.

Update Raspberry

Updating the webinterface to the latest release on your Raspberry Pi: By running the update.sh (located at the HoneyPi main repo) the /dist folder is copied into the webserver folder /var/www/html/.

Translations (i18n)

The translation files are located at /src/assets/i18n/

To add multi language we used i18n-editor. You can download this simple tool from here.

  1. Download the i18n-editor, which includes a runable .exe or .jar file.
  2. Open that i18-editor tool. Go to File, then Import Project. There, select our 'i18n' folder (/src/assets/i18n/).
  3. Now you can add more languages and edit the translations.