richiebful / Utrack

Background position tracking for Ubuntu Touch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Utrack

Background terminal position tracking for Ubuntu Touch devices.

Download

OpenStore

Credits

features

version

  • 0.3
    • Auto import into activitytracker
    • Realtime tracking into PhoneTrack
    • Harden and cleanup code
    • Better use of the binary test_gps
    • Add debug information
    • Add help menu
    • Renaming of the script
    • migrate to github
  • 0.2 update UI
  • 0.1 intial release

Requierments

Howto use it

To start the application, it's required to be in the folder of the python script and be launched with sudo. By default Utrack creates a gpx file at the end of the run, for extra features argument needs to be passed to the script :

phablet@ubuntu-phablet:~$ cd /opt/click.ubuntu.com/utrack/current/
phablet@ubuntu-phablet:/opt/click.ubuntu.com/utrack/current$ sudo ./Utrack.py -h
usage: Utrack.py [-h] [--cloud CLOUD] [-d] [-activity]

Utouch tracker options.

optional arguments:
  -h, --help     show this help message and exit
  --cloud CLOUD  Add Phonetrack address to enable cloud recording, address
                 type https://Cloudserver.org/apps/phonetrack/log/owntracks/c1eb6b15bc694e1127db6ac4/
  -d             create a debug file /tmp/Utrack_log.txt
  -activity      Auto import the trip to Activity tracker application

Thus to record a gpx file + pushing it to Activitytracker the following is required : sudo ./Utrack.py -activity To record a gps file + Activitytracker + phonetrack : sudo ./Utrack.py -activity --cloud https://Cloudserver.org/apps/phonetrack/log/owntracks/c1eb6b15bc694e1127db6ac4/

Userfriendly tip

  • The application is located in the folder /opt/click.ubuntu.com/utrack/current/, in order to ovoid each time to write down this path, let's create a bash alias doing that for you.
  • open ~/.bashrc by nano ~/.bashrc
  • add the following : alias GPS="cd /opt/click.ubuntu.com/utrack/current/ && sudo ./Utrack.py"
  • close the terminal and reopen it,
  • To start the recording by calling the shortcut GPS.

I've two alias one with the other without --cloud argument.

Enjoy.

About

Background position tracking for Ubuntu Touch

License:Other


Languages

Language:Python 100.0%