This repository allows you to disable network access to any devices if you don't meet an activity goal for a time period.
For example, if you wanted to turn off your internet to your Desktop or Mobile unless you've gotten a certain number of steps for the day... this will do that for you.
This works by integrating with Garmin Connect to get your activity, and your nighthawk router to remotely control devices by MAC address.
To set up time periods for device control, you create a Google Calendar and add events that correlate with control of those devices.
You can add a twilio account to configuration to get a text message when your device is being disabled due to failing your fitness goals.
# Backend
docker build .
docker tag <hash> activ8/backend:<version>
docker push activ8/backend:<version>
# Frontemd
cd frontend
docker build .
docker tag <hash> activ8/frontend:<version>
docker push activ8/frontend:<version>
-
Flash Berry Lan on a Raspberry Pi Zero and Connect the WiFi http://berrylan.org/
-
Install Docker ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no pi@raspberrypi.local
sudo apt-get update && sudo apt-get upgrade
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker pi
sudo reboot
- Log back in and Start Containers
docker network create internal-activ8-network
docker run -d \
--name rpi3-mongodb3 \
--restart unless-stopped \
-v /data/db:/data/db \
-v /data/configdb:/data/configdb \
-p 27017:27017 \
-p 28017:28017 \
--network internal-activ8-network \
andresvidal/rpi3-mongodb3:latest \
mongod
docker run -d \
--name activ8-backend \
--restart unless-stopped \
-e MONGO_HOST=rpi3-mongodb3 \
--network internal-activ8-network \
activ8/backend:0.0.9
docker run -d \
--name activ8-frontend \
--restart unless-stopped \
--network internal-activ8-network \
-e MONGO_HOST=rpi3-mongodb3 \
-p 80:80 \
activ8/frontend:0.0.9.1
- You're done! On your local network, head to http://raspberrypi.local to configure