Skip to content
Snippets Groups Projects

README

Merged willm3 requested to merge wmalisch/dev into main
1 file
+ 52
2
Compare changes
  • Side-by-side
  • Inline
+ 52
2
@@ -8,7 +8,57 @@ Implementation of an activity tracking software using RaspberryPi's and a 9-degr
* Python 3.11
## Setup:
* TODO
* Setup Pi:
* Using the Raspberry Pi Imager, flash your SD card with Raspbian OS. For this project, we are using:
* Bookworm
* Raspberry Pi 4
* 32gb SD card
* Boot up your Pi
* `Python 3.11` should be installed. If not, install it
* Setup `ssh`, so you can access your Pi and start the script.
* Install `sqlite3`:
* We followed https://www.raspberrypi.com/software/
* Setup the DB on your Pi:
* Create the DB:
```
sqlite3 Activity.db
```
* This should take you inside the DB, via `sqlite3` shell. Create the tables with:
```
sqlite> BEGIN;
sqlite> CREATE TABLE activitybasic(id INTEGER PRIMARY KEY AUTOINCREMENT, startdate DATE, starttime TIME, enddate DATE, endtime TIME, steps INT);
sqlite> COMMIT;
```
* DB is ready. Exit with:
```
sqlite> .quit
```
## Run:
* TODO
\ No newline at end of file
* First, Complete [Setup](#setup)
* `ssh` into your PI
* Run:
* Run the script:
```
cd ~/ActivityTracker
python main.py
```
* Push the SenseHat joy stick in to start recording:
* If successful, the following should appear on `ssh` terminal
```
Activity Started.
```
* WHen you are finished recording, you may end the call, or press pound for more options :P
\ No newline at end of file
Loading