/bike-tracking

Location tracking for MTB adventures

Primary LanguageNixMIT LicenseMIT

Bike tracking

Location tracking for my MTB adventures using Owntracks.

Test VM

  • Launch test VM
nix run .#vm

AWS EC2 deployment

  • Launch NixOS AMI (t2.small instance)

  • Enable Flakes

mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  • Deploy
nixos-rebuild switch --flake github:imincik/bike-tracking#ec2
  • Allow following SG inbound rules
  - TCP: port 80, 0.0.0.0/0
  • Generate application credentials and phone configuration file
tracker-generate-password

Phone configuration

  • Install Owntracks app (available for Android and iOS)

  • Load phone-config.otrc file generated by tracker-generate-password command