Skip to content

Instantly share code, notes, and snippets.

@danamlewis
danamlewis / Tips-To-Unzip-Rename-OpenHumansdata.md
Last active February 13, 2017 04:59
Unzipping json files from OpenHumans, renaming, and porting over to CSV

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:

  1. Install jsonV (https://github.com/archan937/jsonv.sh)
  2. Install gawk (http://macappstore.org/gawk/)
  3. (For Mac OS X, I think I also had to install coreutils gnu-sed, and brew install homebrew/dupes/gzip)
  4. 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
  1. Make sure to chmod+x filename the file
@danamlewis
danamlewis / spi_error_fixes.md
Last active April 17, 2019 05:00
Fixing spi errors in early April 2019

There are different fixes for the master (0.6.2) or dev (0.7.0) branches - make sure to use the solution specific for the branch you want to use.

Master installation

If you're getting spi-related errors, e.g.

Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
grepImportError: No module named spi_serial
Radio check failed. ImportError: No module named spi_serial
@danamlewis
danamlewis / master patch test fixes.md
Last active April 21, 2019 20:06
Clearer instructions for 0.6.3 patch fixes

1. Run an edited bootstrap

(Assuming you already have flashed jubilinux recently) Copy and paste this bootstrap script instead of the current one in the docs:

#!/bin/bash
(
dmesg -D
echo Scanning for wifi networks: