1
0
2021-03-23 10:41:41 +01:00
2021-03-23 10:41:41 +01:00
2021-03-23 10:41:41 +01:00
2021-03-23 10:41:41 +01:00
2021-03-23 10:41:41 +01:00
2021-03-23 10:41:41 +01:00

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
Description
No description provided
Readme 48 KiB
Languages
JavaScript 44.3%
HTML 29.2%
CSS 26.5%