zupzup / calories Goto Github PK
View Code? Open in Web Editor NEWCalories Tracker for the Commandline
License: Apache License 2.0
Calories Tracker for the Commandline
License: Apache License 2.0
I changed my weight down a bit with the weight
command. The intent judging on the description seems to be for adding or removing weight from the existing value? However, it sets the value from scratch instead:
To be clear, I prefer the behavior of it just overwriting the current value, as I don't have to do math or remember what my last value was. I just put in what the value currently IS.
Either weight
should add/remove like the text seems to be describing, or calories shouldn't be adding the weights in reply to the command calories weight
.
OS: Win10 64-bit
Release: 1.0.3, 32-bit and 64-bit
Problem:
After giving a location to put calories.db, program closes. Files "calories.db" and "calories.db.lock" are created at the designated locations. File ".caloriesconf" is created in the program folder. calories.exe refuses to reopen unless ".caloriesconf" is deleted, and does not recognize the ".db" files.
After importing an exported JSON file, when adding new entries or weights, IDs start at 1, overwriting the imported data.
There seems to be a problem with the way the JSON-import works or the auto-increment IDs in storm.
I don't know whether it's intended or not, but the ascii gopher is output on almost every command, filling up the terminal and generally being a nuisance.
Is this an intended behavior?
$ calories -commands
Welcome to Calories!
'./y/.
'........'.. -oss+sh/'
../+soyyssssysss+ss++o/:/-... ':sssdmsyo.
'.-+sohyhhdddddhhdhhddddhhhhhhdhyss/--:yymhhhyy-'
'.-//:-' '.+oyhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhdddhdhhsdNNsoo-.'
./ooyyyyy+/-oyhhddhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhdhddshNNyyoohyoo/.'
'/osyhhhhhhyoyyhhhyhdmmNNNNmdsyhhhhhhhhhhhhyyhhddddhhhdymNh+shhhhhysso-
+yshhhsooshhhhhhyhmMMMMMMMMMMNyshhhhhhhhhhhmNMMMMMMMNdyymmNhoyssoohhyy..
ohhhhy+//+ydhdydNNNNNMMMMMMMMMMmyhhhhhhydMMMMMMMMMMMMMmysmNmooo+//shhy+-
ohyhhh+/ohhhhhyMy++++hMMMMMMMMMMdyhhhhydMdo+oyNMMMMMMMMNsshmmyhs+ohhhs+:
-+sshhhshhhhhhmM/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hhhhhhdddhhsshmNNmhmmo: :/hmmmymssoyhddddyho:
-ohmmNNNNdh/.'.::+++hhhhhhddhhhddhhhhhhhhhhhdddddhs+-./ohmNNdyy:. /ydmNmyyyddNhdhyo/.
./dddNNNds:' ../:/+sohhyhhyhhhhhdddhhhyoo/.' '//ssys+' ':ydhmdmdmhdhs/-'
:ohhmhyo- '....//o+yyo:-::-.-' '''.. '/syysysso/..
'.:/.. '.-..-.
You can show the HELP for each command by using
COMMAND --help
You can switch the output format of each command by using
COMMAND --o=[string[terminal|json] OUTPUTFORMAT]
List of Commands:
- config
Displays your current configuration
- config --w=[float WEIGHT] --h=[float HEIGHT] --a=[float ACTIVITY] --b=[date[dd.mm.yyyy] BIRTHDAY], --g=[string[male|female] GENDER] --u=[string[metric|imperial] UNITSYSTEM
Overrides the configuration with the given values, asks for confirmation
- weight
Displays your weight timeline
- weight [float WEIGHT]
Adds the given weight to your weight timeline with date = today
- add [int CALORIES] [string FOOD]
Adds an entry with the given calories and food for today
- add --date=[date[dd.mm.yyyy] DATE] [int CALORIES] [string FOOD]
Adds an entry with the given calories and food for the given date
- clear
Clears the entries for the current day, asks for confirmation
- clear --date=[date[dd.mm.yyyy] DATE]
Clears the entries for the given day, asks for confirmation
- clear --position=[int POSITION]
Clears the entry at the given position (1-n) for the given day, asks for confirmation
- export > backup.json
Exports the database to stdout
- import --f=[string FILENAME]
Imports the given file to the database, overwriting all data
I accidentally added the wrong weight, is there a way to clear weight entries?
(I exported, edited the json, and imported again, but it feels like I'm missing something)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.