Skip to content

The web server and site that runs on a raspberry pi to keep track of time spent in the robotics room.

License

Notifications You must be signed in to change notification settings

lobobellos/time-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time-Tracker

GitHub
A little device to clock people in and out of the robotics lab

cad image

The Why

In the 2022 season, we used a Google Form to track who spent the most time in the robotics room, with the end goal being to quantitatively decide who the most dedicated people on the team were. This system worked, but it was tedious and a pain to manage. However, in the 2023 season, our team captain of 3 years left, and things got a little bit crazy. Due to this, we didn't even implement it that year. In an effort to track time spent, I (bakedpotatolord) created this project. Moreover, in an effort to make it easy to update and fix long after I'm gone, everything is open sourced.

This includes:

The How

This project uses multiple technologies for the different parts of it. Here's a breakdown:

Production Setup

Supported Hardware

device tested?
raspberry pi 4 yes
raspberry pi 3 hypothetically should work

Dependencies

Steps

  • Deploy on Vercel

  • Deploy on raspi client

    • Clone directory onto raspberry pi with git clone https://github.com/lobobellos/time-tracker.git
    • navigate to client/ with cd client/
    • npm i to install deps
    • npm i rpi-gpio lcd global-keypress
    • Create .env
      • Set PROD_URL to your vercel url
    • Give script execute perms with chmod +x scripts/startTmux.sh
    • Edit your /etc/rc.local file, to look like this, replacing /absolute/path/ with your actual one, which will be something like /home/pi/projects/time-tracker/ on a raspberrypi
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    #
    # By default this script does nothing.
    
    sudo /absolute/path/to/scripts/startTmux.sh &&
    exit 0

Dev Setup

Supported Hardware

  • Anything that can run nodejs

Dependencies

  • npm and node v18+

Steps

  • Clone directory with git clone https://github.com/lobobellos/time-tracker.git
  • Navigate to app/
  • npm i to install deps
  • Create .env
    • ADMIN_PASSWORD
    • MONGO_URL
  • npm run dev to start nuxt dev server

About

The web server and site that runs on a raspberry pi to keep track of time spent in the robotics room.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published