2017-10-12 12:17:13 +00:00
|
|
|
# Cosmic Pi Software on the Raspberry Pi
|
|
|
|
|
|
2018-04-22 22:34:57 +00:00
|
|
|
[](https://travis-ci.org/CosmicPi/cosmicpi-rpi_V1.5)
|
|
|
|
|
|
2018-05-21 18:20:41 +00:00
|
|
|
This software runs on the Raspberry Pi, which is integral to the CosmicPi V1.5.
|
2017-10-13 14:33:30 +00:00
|
|
|
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.
|
|
|
|
|
|
2017-10-12 12:17:13 +00:00
|
|
|
## Installation
|
2018-05-21 18:20:41 +00:00
|
|
|
For CosmicPi software installation only please use:
|
|
|
|
|
```
|
|
|
|
|
pip install cosmicpi
|
|
|
|
|
```
|
2017-10-12 12:17:13 +00:00
|
|
|
|
2018-05-21 18:20:41 +00:00
|
|
|
If you have scratch Raspbian image and you want to install software, expand filesystem, configure AP... please use:
|
|
|
|
|
```
|
2018-08-01 18:43:34 +00:00
|
|
|
curl http://cosmicpi.org/configure | sh
|
2018-05-21 18:20:41 +00:00
|
|
|
```
|
2017-10-12 12:17:13 +00:00
|
|
|
|
|
|
|
|
|
2017-10-13 14:33:30 +00:00
|
|
|
## Run
|
2018-05-21 18:20:41 +00:00
|
|
|
The software is normally controlled via SystemD. The following services are available:
|
|
|
|
|
- cosmicpi-ui
|
|
|
|
|
- cosmicpi-rest
|
|
|
|
|
- cosmicpi-mqtt
|
|
|
|
|
- cosmicpi-dbcleaner
|
|
|
|
|
- cosmicpi-detector
|
2017-10-12 12:17:13 +00:00
|
|
|
|
2018-05-21 18:20:41 +00:00
|
|
|
From the Raspberry Pi itself the application is available at:
|
2017-11-02 03:04:34 +00:00
|
|
|
|
|
|
|
|
`http://cosmicpi.local/` or `http://127.0.0.1/`
|
|
|
|
|
|
|
|
|
|
When used as an access point the application is available at:
|
|
|
|
|
|
2018-05-21 21:27:10 +00:00
|
|
|
`http://cosmicpi.local/` or `http://192.168.10.1/`
|
2017-11-02 03:04:34 +00:00
|
|
|
|
2017-11-02 03:26:10 +00:00
|
|
|
#### Debugging the software:
|
2017-11-02 03:04:34 +00:00
|
|
|
Stop all mentioned services. After this you should be able to run the software directly via the commandline.
|