Skip to content

mzakharo/smartbow

Repository files navigation

APK build using buildozer

Project description

  • Augment your bow with cybertech from your smartphone
  • Count arrows shot
  • Orientation view for stability/consistency analsysis

Installation

InfluxDB setup (Optional)

  • Upload raw orientation/accelerometer data for each shot into your private InfluxDB instance, for offline analsys/data science InfluxDB
  • You can obtain a free InfluxDB account
  • Edit and add a smartbow_config.json to the root of the internal storage (/sdcard)

APK Build instructions

Tested on Ubuntu 20.04.

Add to .bashrc

export PATH=$HOME/.local/bin/:$HOME/.buildozer/android/platform/android-sdk/platform-tools/:$PATH

Prep for buildozer

#  from https://buildozer.readthedocs.io/en/latest/installation.html#android-on-ubuntu-20-04-64bit
sudo apt install -y git zip unzip openjdk-8-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
sudo apt install ccache

Setup native runtime environment

Download and install conda

 conda install -c conda-forge kivy
 conda install cython numpy
 pip install -r  requirements.txt

run the app on the desktop

python main.py

build the mobile .apk

make

install the .apk

make install

log

./logcat.sh

Linux adb permissions

lsusb  to get vendor/product
cp 51-android.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules