This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 && \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.