Skip to content

Instantly share code, notes, and snippets.

View LongboatAline's full-sized avatar

Tatjana LongboatAline

  • Berlin, Germany
View GitHub Profile
@LongboatAline
LongboatAline / datamodel.md
Last active April 13, 2019 11:29
Data model input

(input for Adrian/Tebbe)

Bolus

  • bolus type: prebolus, correction, meal bolus, basal - not really convinced, often several causes for a dose combined in one bolus. Count UAM dosed as SMB as correction, meal bolus, or basal? There's some of each included...
  • Insulin with bolus: everything relevant already taken care of. I've just needed some help with reading
    • Allow the presence of different types of insulin administered externally. As Adrian pointed out: dia and peak are logged already, so this is already fixed, and doesn't even require a lookup table to decode brand names to generic parameters. Great!
    • Store insulin used in pump at each reservoir change. can be done with comment, not needed since dia/peak already taken into account
    • keep track of each bolus for its duration according to its profile. Done. how great is that?
    • later? allow for prolonged insulin action with large Bolus. (That's not DB, and possible with the information availabe. so scratch it)
@LongboatAline
LongboatAline / aaps-backup.sh
Created April 17, 2018 10:27
Backup AAPS/ruffy/xDrip+ configuration and log files relevant for debugging and restoring a previous combo pairing.
#!/bin/sh
# Trying to backup AAPS related data into a directory per device for later perusal
# Install: Configure Path variable section before use, comment out those parts you
# do not want to archive (bugreport, wlan configuration,...
# To use, connect (only) your phone used to run AAPS via usb, and call this script
# Check we only have one Android Device connected, and are allowed to access it via adb.
adb start-server || echo $0: Could not start adb server!
device=$(adb devices |awk 'NR == 2 {print $1}')
@LongboatAline
LongboatAline / adbscreenshot.sh
Last active April 11, 2018 12:31
Shell script to take (and file) a screenshot from an Android device via adb
#!/bin/bash
# Installation: configure target directory, and make sure it exists
targetdir=/export/Android/Screenshots
prefix="android"
device=$(adb devices |awk 'NR == 2 {print $1}')
prefix=$device
#############################################
@LongboatAline
LongboatAline / diskspace.md
Created April 10, 2018 23:20
Troubleshooting disk space

Troubleshooting Disk Space Issues

no space left on device

If your Edison has been running smoothly for a while, chances are that the filesystem is filling up.

  • slowly: due to normal operation, and even maintenance,
  • quickly: if something is off, and loggin processes are trying to tell you about it, but noone takes note of the logs...

Fortunately, there are some quick actions you can take to reclaim space from the most likely culprits before debugging the problem that caused your filesystem to fill up.