Added about page

This commit is contained in:
Hendrik Borras 2017-10-20 17:15:28 +02:00
parent 110236313c
commit 913913bb11
2 changed files with 16 additions and 5 deletions

View file

@ -8,6 +8,8 @@ More instructions will follow when the software has reached the state of the V2
* Create a SQLite database
* Read the serial output from the Arduino Due, parse it and store the information into the SQLite database
* Application for the UI, under development
* *Note*: The parser will only store data if the detector is fully working, e.g. Sensors are working/enabled and the GPS has a connection / is working
## Needed features to match up with the Version 2 mock-up software
* Read data from the detector into the SQLite database [DONE]
@ -20,10 +22,14 @@ More instructions will follow when the software has reached the state of the V2
* Detector readout
* WebUI
* Hotspot
* Database maintainance
* Interface for getting the raw data and database dumps [Not yet started]
* Interface to create custom plots [DONE]
* Include about page [Not yet started]
* Include about page [DONE]
## Proposed future features
* Enforce read only access for the UI
* Create additional ways to work with the data, focused on the needs of teachers in schools
* Database maintainance: Look at ways to aggregate the data, to avoid bloating of the database
## Installation
Clone this repository to the home folder of your CosmicPi (e.g. `/home/pi`)
@ -34,6 +40,6 @@ then run:
This will currently do nothing. Just clone the repository.
## Run
The software is normally controled via SystemD. This is not yet implemented, so you will need to run the scripts directly.
The software is normally controlled via SystemD. This is not yet implemented, so you will need to run the scripts directly.

View file

@ -64,7 +64,7 @@ icon_dict = {
@app.route('/', methods=['GET', 'POST'])
@app.route('/dashboard/', methods=['GET', 'POST'])
def dashboard():
def dashboard_page():
values_to_display =[{'name':'Hardware Serial', 'value':getserial(), 'icon':'fa fa-microchip fa-5x'}]
# get the latest datapoint
@ -91,7 +91,7 @@ def dashboard():
@app.route('/plotting/', methods=['GET', 'POST'])
def plotting():
def plotting_page():
location_vars = {'Latitude': 0, 'Longitude': 0}
# get the latest datapoint
@ -119,6 +119,11 @@ def plotting():
return render_template('plotting.html', location_vars=location_vars)
@app.route('/about/', methods=['GET', 'POST'])
def about_page():
return render_template('about.html')
@app.route('/histogram.png')
def build_plot():
# get user set parameters