About Crivit Z31192 pedometer tools for Linux
This tools retrieves data and manage settings from a Crivit Z31192 pedometer. The gait, the step target, the unit system and the weight can be modified. Moreover, this tools can retrieve run performance of the last 7 days and store them into an embedded database (Berkeley DB).
This tools was started by Mike Davies (ie forgeuser33) on PedometerLog. I kept almost all the USB hacks to communicate with the dongle but I remove the GUI, the Qt stuffs and use a embedded Berkeley DB instead of MySQL database or SQLite database.
User commands
- -b database is used to define a database file name (default is /home/user/.pedometer.db) to store performances.
- -d is used to fill the embedded database with the non null performance of the last 7 days.
- -f is used to find the Crivit Z31192 USB device.
- -g gait is used to set the gait (in cm of in in).
- -h is used to display pedometer (short) help.
- -i is used to show internal settings (gait, step target, unit system and weight) of the pedometer.
- -n is used for time synchronization with computer clock. As time synchronization is done on every parameter setting, this option is useful when nothing else need to be changed.
- -r is used to retrieve non null performances of the last 7 days. Output are preceded by a header line containing date steps distance calorie time. date format is year-month-day. distance is in centimeter or in inch depending of the unit system set. calorie is in kilo-calories. time is in minutes.
- -s system is used to set the unit system (1 for metric system and 2 for imperial system).
- -t steps is used to set the step target.
- -V is used to display pedometer version.
- -v level is used to set the verbose level (2 for debug, 1 for warning, 0 for error and -1 for quiet mode). Default level is warning ie 1.
- -w weight is used to set the weight (in kg or in lb).
- -x is used to retrieve all performances from embedded database. Output are preceded by a header line containing date steps distance calorie time step/h. date format is year-month-day. distance is in centimeter or in inch depending of the unit system set. calorie is in kilo-calories. time is in minutes. step/h is a performance indicator in step per minutes.
- -z system is used to convert database to a unit system (1 for metric, 2 for imperial). By default, database has no unit system defined thus an interactive question is asked. After first usage of this command the database unit system is set and will not be asked again.
Screen-shot
Shell view
Downloads
Source packages
Debian packages
Requirements
To compile this tools, one needs:
- a recent version of Berkeley-DB (tested with version 4.8),
- or a recent version of Level-DB (tested with version 1.15),
- or a recent version of Ma-DB (tested with version 0.8),
- and libusb API 1.0 (tested with version 1.0.16).
To install, one only needs to
- unpack the archive,
- do a 'make CONFIG=bdb' for Berkeley-DB support,
- or do a 'make CONFIG=ldb' for Level-DB support,
- or do a 'make CONFIG=mdb' for Ma-DB support,
- and a 'make install'.
To get read/write access for non root user, file pedometer.udev must be placed in /etc/udev/rules.d as 94-pedometer.rules
Changelogs
Pedometer 1.6 (Tue, 26 Aug 2014 09:19:49 +0200)
- Support for Level-DB
- Support for Ma-DB
- Add conversion tools (Berkeley-DB, Level-DB, Ma-DB)
Pedometer 1.4 (Wed, 07 May 2014 21:42:55 +0200)
- New option to synchronize device with computer clock
- Fix calculus of improvement indicator
Pedometer 1.2 (Wed, 18 Dec 2013 20:27:49 +0100)
- Fix clock s
- Add udev rule file to grant read/write access for non root user
- Manage DB system unit
- Add a improvement indicator on DB extraction
- New parameter to define DB file name
- Only print header when data are available
- Sort DB output
Pedometer 1.0 (Wed, 21 Aug 2013 22:12:26 +0200)
- Initial version