NoPaste

ttwatch usage

von Pa D.

SNIPPET_TEXT:
  1. ~/test/ttwatch/ttwatch-master/ttwatch$ ./ttwatch -h
  2. Usage: ./ttwatch [OPTION]...
  3. Perform various operations with an attached TomTom GPS watch.
  4.  
  5. Mandatory arguments to long options are mandatory for short options too.
  6.   -h, --help                 Print this help
  7.   -s, --activity-store=PATH Specify an alternate place for storing
  8.                                downloaded ttbin activity files
  9.   -a, --auto                 Same as "--update-fw --update-gps --get-activities --set-time"
  10.       --all-settings         List all the current settings on the watch
  11.       --clear-data           Delete all activities and history data from the
  12.                                watch. Does NOT save the data before deleting it
  13.       --create-continuous-race [RACE] Create a continuously monitored race and
  14.                                uploads it to the watch (see below)
  15.       --daemon               Run the program in daemon mode
  16.       --delete-history=[ENTRY] Deletes a single history entry from the watch
  17.   -d, --device=STRING        Specify which device to use (see below)
  18.       --devices              List detected USB devices that can be selected.
  19.       --factory-reset        Performs a factory reset on the watch. This option
  20.                                must be specified twice for safety.
  21.       --get-activities       Downloads and deletes any activity records
  22.                                currently stored on the watch
  23.       --get-formats          Displays the list of file formats that are
  24.                                saved when the watch is automatically processed
  25.       --get-name             Displays the current watch name
  26.       --get-time             Returns the current GPS time on the watch
  27.       --initial-setup        Performs an initial setup for the watch, adding a
  28.                                default preferences file and default race files
  29.       --list-history         Lists the activity history as reported by the watch
  30.       --list-races           List the available races on the watch
  31.       --packets              Displays the packets being sent/received
  32.                                to/from the watch. Only used for debugging
  33.       --runas=USER[:GROUP]   Run the daemon as the specified user, and
  34.                                optionally as the specified group
  35.       --set-formats=LIST     Sets the list of file formats that are saved
  36.                                when processing activity files
  37.       --set-name=STRING      Sets a new watch name
  38.       --set-time             Updates the time on the watch
  39.       --settings             Lists all available settings and their valid
  40.                                values and physical units
  41.       --setting [SETTING[=VALUE]] Gets or sets a setting on the watch. To get
  42.                                the current value of a setting, simply leave off
  43.                                the "=VALUE" part
  44.       --update-fw            Checks for available firmware updates from
  45.                                Tomtom's website and updates the watch if
  46.                                newer firmware is found
  47.       --update-gps           Updates the GPSQuickFix data on the watch
  48.       --update-race=[RACE]   Update a race
  49.   -v, --version              Shows firmware version and device identifiers
  50.  
  51. ENTRY is a single-character activity type followed by a positive index
  52. starting from 1. The indices are listed by the --list-history option. The
  53. activity type is specified as 'r' for running, 'c' for cycling, 's' for
  54. swimming, 't' for treadmill or 'f' for freestyle. For example:
  55. "--delete-history t3" would delete the third treadmill entry.
  56.  
  57. NUMBER is an integer specified in decimal, octal, or hexadecimal form.
  58.  
  59. The --device (-d) option takes a string. The string can match either the
  60. serial number or the name of the watch. Both are also printed out by the
  61. --devices option.
  62.  
  63. If --activity-store is not specified, "~/ttwatch" is used for storing
  64. downloaded activity data, with subdirectories of the watch name and
  65. activity date, as per the official TomTom software.
  66.  
  67. LIST is a comma-separated list of file formats. Valid formats are:
  68.     csv, fit, gpx, kml, pwx, tcx.
  69. Case is not important, but there must be no spaces or other characters
  70. in the list.
  71.  
  72. RACE is a race specification consisting of 5 comma-separated parts:
  73.   <entry>,<name>,<duration>,<distance>,<laps>
  74. Where: <entry>    is a single entry as per the entry for deleting a
  75.                   history item. index must be between 1 and 5 inclusive.
  76.        <name>     is the name of the race. Maximum of 16 characters,
  77.                   although only 9 are visible on the watch screen.
  78.        <duration> is the duration of the race, specified as seconds,
  79.                   minutes:seconds or hours:minutes:seconds.
  80.        <distance> is the race distance in metres, must be an integer.
  81.        <laps>     is the number of laps to record, evenly spaced.
  82. For example: --update-race "r1,3KM 14:30MIN,14:30,3000,3"
  83.     specifies a race for running 3km in 14:30 minutes with 3 laps stored
  84.     (every 1000m - automatically calculated).
  85. If the name has spaces in it, the entire race specification must be
  86. surrounded in quotes, or the space can be escaped with a '\'.
  87.  
  88. --create-continuous-race creates a different type of race that shows
  89. progress on the watch every second. It appears as a recent activity race
  90. rather than a MySports race. It is listed under the date and time that
  91. the race is created. It has a different specification string to the
  92. --update-race command, and is as follows:
  93.   <activity>,<distance/time>[,<distance/time>]...
  94. Where: <activity>      is a single-character activity type (r, c, s, f or t)
  95.        <distance/time> is a distance and time specification given as
  96.                        "<distance>/<time>" to race a set distance in a
  97.                        set time, or "<distance>@<pace>" to race a set
  98.                        distance at a given pace.
  99. The distance specification consists of a number followed by a unit suffix,
  100. either "km", "mi", "m" or "yd". Fractional numbers are allowed.
  101. The time/pace specification is in seconds, minutes:seconds or
  102. hours:minutes:seconds and represents the time per km (if a "km" or "m"
  103. distance is specified) or time per mile (if a "mi" or "yd" distance is
  104. specified. Multiple specifications can be given, separated by commas, which
  105. are concatenated in the race.
  106. For example:  --create-continuous-race "r,400m/1:00,10km@4:00"
  107.     specifies a race for running 400m in 1 minute, followed by 10km at 4min/km
  108. Note that the watch cannot differentiate between multiple segments, so it
  109. will not notify you when you have finished a segment.
  110.  
  111. The program can be run as a daemon, which will automatically perform
  112. the operations specified on the command line whenever a watch is
  113. connected. The program must be run as root initially, but the --runas
  114. parameter can be used to specify a user (and optionally a group) that the
  115. program will drop privileges to after it has finished initialising.
  116. Without this parameter specified, the program will continue to run as
  117. root, which is not recommended for security reasons. Note that this
  118. unprivileged user must have access to the USB devices, and write access
  119. to the activity store location.

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN