Skip to content

Instantly share code, notes, and snippets.

// Return 1 for insulin-related events, 0 for events to skip, -1 on error.
static int decode_history_record(uint8_t *data, int len, int family, history_record_t *r) {
memset(r, 0, sizeof(*r));
r->type = data[0];
r->length = 7;
switch (r->type) {
case Bolus:
if (family <= 22) {
r->length = 9;
r->time = decode_time(&data[4]);

Converting from Yocto to Debian without re-flashing

Eric Cooper <ecc@cmu.edu>

December 2016

This document explains how to convert an Intel Edison from Yocto to Debian GNU/Linux. The conversion is done by installing Debian "in place", without having to re-flash the system.

The resulting Debian system will use the Linux kernel and modules

FROM debian
RUN apt-get update && apt-get install -y \
npm \
nodejs-legacy \
git
COPY . /src
WORKDIR /src
#!/usr/bin/python
from rflib import *
d = RfCat()
print 'Created RfCat instance'
d.setFreq(916620000)
d.setMdmModulation(MOD_ASK_OOK)
d.setMdmChanBW(300e3)
@ecc1
ecc1 / Dockerfile
Created June 4, 2015 17:25
Dockerfile for Nightscout cgm-remote-monitor
FROM debian:latest
RUN apt-get update
RUN apt-get install -y git npm
# make sure nodejs binary is available as node
RUN cd /usr/bin && ln -s nodejs node
COPY . /src