1
0
Fork 0
 
 
 
Go to file
git a7d8bf9ac5 Set new Base version 2021-03-23 10:41:41 +01:00
src Set new Base version 2021-03-23 10:41:41 +01:00
.gitignore Set new Base version 2021-03-23 10:41:41 +01:00
README.md Set new Base version 2021-03-23 10:41:41 +01:00
docker-compose.yml Set new Base version 2021-03-23 10:41:41 +01:00
site.conf Set new Base version 2021-03-23 10:41:41 +01:00

README.md

PiSwitch_frontend

A Frontend for the PiSwitch and PiSwitch_Reporting

Installation Process

Clone the repository

git clone https://git.dennisvandermeulen.nl/dennis/PiSwitch_frontend.git

Setup

Go to the js asset file folder

cd PiSwitch_frontend/assets/js/

Set the values in pagefunctions.js

nano pagefunctions.js

Set the key and the url of the PiSwitch reporting server

var apiurl = ''
var srvkey = ''

Set the key and the url of the PiSwitch for this dashboard instance

var deviceurl = ''
var deviceid = 

Set de mapquest api key in locationpicker.js

nano locationpicker.js

Set your mapquest key

L.mapquest.key = '';

Docker

Ensure you built the PiSwitch reporting server dockerfile

Use the included Docker-Compose files to start the nginx server

docker-compose . -up -d

Visit your dashboard at:

http://your-ip-or-hostname:81/index.html