Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ActivityTracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
willm3
ActivityTracker
Merge requests
!8
README
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
README
wmalisch/dev
into
main
Overview
2
Commits
1
Pipelines
0
Changes
1
Merged
willm3
requested to merge
wmalisch/dev
into
main
1 year ago
Overview
2
Commits
1
Pipelines
0
Changes
1
Expand
Created by: wmalisch
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
2de0a13c
1 commit,
1 year ago
1 file
+
52
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.md
+
52
−
2
Options
@@ -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