Skip to content
This repository has been archived by the owner. It is now read-only.
Command-line nutrition/activity/wahtever tracker [legacy version]
Go
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
README.md
accumulator.go
accumulator_test.go
element.go
element_test.go
errors.go
errors_test.go
food.yaml
hranoprovod.go
log.yaml
log_node.go
log_node_test.go
main.go
node.go
node_test.go
options.go
parser.go
parser_test.go
processor.go
reporter.go
resolver.go
resolver_test.go
utils.go
utils_test.go

README.md

Hranoprovod Build Status

Note: This is the legacy verion of the tool and as such, must be treated as deprecated. The new version can be found here

Command-line life tracker.

Description

Hranoprovod is command line tracking tool. It supports recipies, which makes it perfect for tracking calories and other nutionin data.

Installation

First make sure you have go (golang) installed.

http://golang.org/

Download the source code.

git clone git://github.com/aquilax/hranoprovod-go.git
cd hranoprovod-go
go build

Requirements

Hranoprovod uses two files.

  • database file (default: food.yaml) contains the recipies for the tracked items:

The file format is:

element_name/measure_name[:]
  ingredient1[:] quantity
  ingredient2[:] quantity

[:] are optional (I use them for yaml highlight support)

Example:

pie/apple/100g:
  calories: 265
  fat: 13
  carb: 37
  protein: 2
pie/apple/slice:
  pie/apple/100g: 1.55
  • log file (default: log.yaml) contains the daily log:

The file format is:

date[:]
  element_name1/measure_name[:] quantity
  element_name2/measure_name[:] quantity

[:] are optional (I use them for yaml highlight support)

Note: The date format is (YYYY/MM/DD)

Example:

2011/08/08:
  walking/slow/km: 5
  egg/boiled/pcs: 3
  brad/slice: 1

Command-line options

Files

-d="food.yaml": Specifies the database file name

-f="log.yaml": Specifies log file name

Filtering

-b="": Beginning of date interval (YYYY/MM/DD)

-e="": Ending of date interval (YYYY/MM/DD)

Output

-single="": Show only single element

-food="": Shows single food

-total=true: Shows totals for each day

-unresolved=false: Shows unresolved elements

-csv=false: Shows data in CSV format (works only with --single)

Misc

-help=false: Shows this message

-version=false: Shows version

Changelog

0.1.2 (2013-07-11) Added comments support in data files; To addd a comment start the line with # (pound sign)

0.1.1 - First stable version

You can’t perform that action at this time.