All Projects → myint → cronometer

myint / cronometer

Licence: other
Nutrition tracker; fork of the old Java-based Cronometer with better macOS support and newer USDA database

Programming Languages

java
68154 projects - #9 most used programming language

cronometer

Build status

cronometer is a nutrition tracking tool. This is a fork of the original.

Build on OS X

$ ./build_osx.bash

Build and start on Linux

$ ant
$ ./start_cronometer.sh

Download

https://github.com/myint/cronometer/releases

Importing new USDA food database

As an example, below is the procedure that was used to upgrade from SR26 to SR28.

Unzip the old processed database:

$ unzip lib/usda_sr26.jar
$ mv usda_sr26 usda_sr28

Update src/ca/spaz/cron/datasource/USDAImport/USDAImporter.java to point to sr28.

Run the importer to update the old processed data:

$ java -classpath lib/cronometer.jar \
    ca.spaz.cron.datasource.USDAImport.USDAImporter < sr28.zip

Append deleted items from the old foods.index into the new deprecated.index:

$ ./scripts/deprecated.py usda_sr26/foods.index usda_sr28/foods.index \
     >> usda_sr28/deprecated.index

Create the new JAR:

$ rm lib/usda_sr26.jar
$ zip -r lib/usda_sr28.jar usda_sr28

Update src/ca/spaz/cron/datasource/USDAFoods.java to point to the new JAR. And update the OS X app to point to the new JAR.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].