2017-10-12 12:17:13 +00:00
|
|
|
# Cosmic Pi Software on the Raspberry Pi
|
|
|
|
|
|
2017-10-13 14:33:30 +00:00
|
|
|
This software runs on the raspberry pi, which is integral to the CosmicPi V1.5.
|
|
|
|
|
The central point is a SQLite database into which data is stored, as well as read from.
|
|
|
|
|
More instructions will follow when the software has reached the state of the V2 mock-up software.
|
|
|
|
|
|
|
|
|
|
## Current features
|
|
|
|
|
* 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
|
2017-10-20 15:15:28 +00:00
|
|
|
* *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
|
|
|
|
|
|
2017-10-13 14:33:30 +00:00
|
|
|
|
|
|
|
|
## Needed features to match up with the Version 2 mock-up software
|
2017-11-02 02:47:30 +00:00
|
|
|
- [x] Read data from the detector into the SQLite database
|
|
|
|
|
- [x] Display basic information in the Web-UI
|
|
|
|
|
- [ ] Start application on boot
|
|
|
|
|
- [ ] Start hotspot on boot
|
|
|
|
|
- [ ] Connect to a different WiFi via the webinterface
|
|
|
|
|
- [ ] Working install procedure
|
|
|
|
|
- [ ] SystemD services for all components
|
|
|
|
|
- [ ] Detector readout
|
|
|
|
|
- [ ] WebUI
|
|
|
|
|
- [ ] Hotspot
|
|
|
|
|
- [ ] Interface for getting the raw data and database dumps
|
|
|
|
|
- [x] Interface to create custom plots
|
|
|
|
|
- [x] Include about page
|
2017-10-20 15:15:28 +00:00
|
|
|
|
|
|
|
|
## Proposed future features
|
|
|
|
|
* Enforce read only access for the UI
|
2017-10-24 20:55:02 +00:00
|
|
|
* Setup proper logging mechanisms for all parts of the software
|
2017-10-20 15:15:28 +00:00
|
|
|
* 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
|
2017-10-24 20:55:02 +00:00
|
|
|
* Do the installation in a proper way, as example setuptools
|
2017-11-02 02:47:30 +00:00
|
|
|
* Run flask on an actual webserver, not the development server
|
2017-10-13 14:33:30 +00:00
|
|
|
|
2017-10-12 12:17:13 +00:00
|
|
|
## Installation
|
|
|
|
|
Clone this repository to the home folder of your CosmicPi (e.g. `/home/pi`)
|
|
|
|
|
then run:
|
|
|
|
|
|
|
|
|
|
```./install```
|
|
|
|
|
|
2017-10-13 14:33:30 +00:00
|
|
|
This will currently do nothing. Just clone the repository.
|
2017-10-12 12:17:13 +00:00
|
|
|
|
2017-10-13 14:33:30 +00:00
|
|
|
## Run
|
2017-10-20 15:15:28 +00:00
|
|
|
The software is normally controlled via SystemD. This is not yet implemented, so you will need to run the scripts directly.
|
2017-10-12 12:17:13 +00:00
|
|
|
|
|
|
|
|
|