Skip to content

uhuntgx00/cronometer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cronometer

Build status

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

Build on OS X

$ ./build_osx.bash

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 SR24 to SR26.

Unzip the old processed database:

$ unzip lib/usda_sr24.jar
$ mv usda_sr24 usda_sr26

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

Run the importer to update the old processed data:

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

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

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

Create the new JAR:

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

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.

About

Nutrition tracker.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.6%
  • Other 0.4%