Skip to content

Instantly share code, notes, and snippets.

View tve's full-sized avatar

Thorsten von Eicken tve

  • Santa Barbara, CA
View GitHub Profile
@tve
tve / README.md
Last active October 23, 2024 18:00
Motus burst-finder for Sensorgnome

Find-bursts stand-alone test program

The purpose of this burst finder is to parse Lotek tag pulses emitted by the pulse finder plugin to VAMP and output detected bursts. The bursts are detected by matching against a tag database provided in CSV format and applying default frequency, signal strength and timing slop.

While this test program outputs bursts the actual intended function is to filter pulses, i.e. to remove all pulses that do not correspond to a burst.

@tve
tve / ctt-tag.cpp
Last active September 3, 2024 02:03
Motus test tag
// Simple Motus/CTT test tag
// Adapted from https://forum.seeedstudio.com/t/274974
#include <Arduino.h>
#include <RadioLib.h> // https://github.com/jgromes/RadioLib
#include <CRC.h> // https://github.com/RobTillaart/CRC
#define UID ((uint32_t*)0x1FFF7580) // IEEE 64-bit unique device ID register
//#define UID ((uint32_t)0x613455FF)
@tve
tve / flash-ss.sh
Last active February 6, 2024 07:59
Flash SensorStation from rPi
#! /bin/bash -e
# Flash a SensorStation (Compute Module) attached via USB
if [[ -z $1 ]]; then echo "usage: $0 <url>"; exit 1; fi
url=$1
zip=$(basename $1)
img=$(basename $1 zip)img
cd /data
if ! [[ -f $zip ]]; then
@tve
tve / gps-speed.sh
Last active February 1, 2024 21:03
Sensorgnome GPS speed detection
#! /bin/bash
active=$(systemctl is-active gpsd.service)
if [[ "$active" == active ]]; then
echo "Stopping gpsd"
sudo systemctl stop gpsd.service
sudo systemctl stop gpsd.socket
sleep 1
fi
function cleanup {
@tve
tve / fcd-check
Last active May 3, 2024 18:53
Sensorgnome FUNcube check
#! /bin/bash
DEBUG=1 # 1=report whether error or not (recommended)
PASS=none
VAH=/tmp/VAH.sock
# fetch currently active ports from VAH (vamp-alsa-host)
date=$(date +%s)
data="$(echo list | nc -U -i 1 -q 1 $VAH)"
@tve
tve / Dockerfile-mc
Created December 14, 2022 18:28
Moddable SDK docker
FROM debian:stable-slim
RUN set -ex && \
apt-get update &&\
apt-get install -y bash curl vim
WORKDIR /usr/src
# Install ESP-IDF SDK
RUN apt-get install -y git wget flex bison gperf cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
@tve
tve / Dockerfile
Last active December 13, 2022 21:22
Dockerfile for node-red-mcu-plugin
ARG ARCH=amd64
ARG OS=bullseye-slim
ARG NODE_VERSION=18
ARG NODE_RED_VERSION=3.0.2
#### Stage BASE ########################################################################################################
FROM ${ARCH}/node:${NODE_VERSION}-${OS} AS base
# Install tools, create Node-RED app and data dir, add user and set rights
RUN set -ex && \
@tve
tve / model-maker-object-detection-tutorial.ipynb
Created July 26, 2021 19:13
Model Maker Object Detection Tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.