-
Notifications
You must be signed in to change notification settings - Fork 4
Documentation for the centeral server
Vasileios Karavasilis edited this page Oct 24, 2015
·
1 revision
The central server is designed to un on openshift, but it can run on every LAMP server.
It consist of the following files:
- https://github.com/ellak-monades-aristeias/system-of-traffic-lights-and-raspberry-pi-for-air-quality-estimation/blob/master/src/openshift/config.php : this is the file with the information about mysq. It is included in every other file.
- https://github.com/ellak-monades-aristeias/system-of-traffic-lights-and-raspberry-pi-for-air-quality-estimation/blob/master/src/openshift/insert.php : this file is responsible for inserting a new measurements record to the database. It check if the credentials are ok, if all the measurements are present, and it inserts them to the database.
- https://github.com/ellak-monades-aristeias/system-of-traffic-lights-and-raspberry-pi-for-air-quality-estimation/blob/master/src/openshift/index.php : it shows a table with the measurements that are already in the database.
- https://github.com/ellak-monades-aristeias/system-of-traffic-lights-and-raspberry-pi-for-air-quality-estimation/blob/master/src/openshift/get.php : it provides the API which can be used in order to retrieve the measurements as a json object.