a7d8bf9ac5 | ||
---|---|---|
src | ||
.gitignore | ||
README.md | ||
docker-compose.yml | ||
site.conf |
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