If you are running on Nightscout-related data and keep the first for loop, it uses jsonV as a simplistic way to grab ONLY BG and time stamp for the entries.csv creation. If you keep that for loop, you must:
- Install jsonV (https://github.com/archan937/jsonv.sh)
- Install gawk (http://macappstore.org/gawk/)
- (For Mac OS X, I think I also had to install coreutils gnu-sed, and
brew install homebrew/dupes/gzip
) - Update script:
- figure out how you want to name/rename
- figure out the format of your json, and what datums you want to put into csv
- Make sure to
chmod+x filename
the file
Other General Tips:
- Depending on size of data files, create a test folder with ONE folder/file to make sure script works w/ your edits before running through large folder/file.