Skip to content

Instantly share code, notes, and snippets.

@MattGrayYes
MattGrayYes / ultrafeeder.env
Created May 6, 2024 11:47
Environment variable template for ADSB Ultrafeeder, with ADSB Exchange, FlightRadar24 and FlightAware
FEEDER_TZ=Europe/London
ADSB_SDR_SERIAL=00000001
FEEDER_LAT=
FEEDER_LONG=
FEEDER_ALT_M=
FEEDER_ALT_FT=
FEEDER_NAME=
MULTIFEEDER_UUID=
ADSBX_UUID=
FR24_SHARING_KEY=
@MattGrayYes
MattGrayYes / docker_compose.yaml
Last active May 6, 2024 11:50
ADSB Ultrafeeder Docker Compose (Portainer Stack) Config, incl. ADSB Exchange, FlightAware (PiAware), and FlightRadar24
services:
ultrafeeder:
image: ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder
# Note - if you want to enable telegraf for use with InfluxDB/Prometheus and Grafana,
# use the following image instead:
# image: ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder:telegraf
tty: true
container_name: ultrafeeder
hostname: ultrafeeder
restart: unless-stopped
@MattGrayYes
MattGrayYes / ssd1306_128x64_i2c_Olimex_ESP32_MOD-OLED.ino
Last active February 10, 2024 17:10
Using an Olimex MOD-OLED screen on a ESP32-POE-ISO via I2C using Arduino.
/*
Adafruit OLED Test, changed to work for an Olimex ESP32-POE-ISO board with a MOD-OLED-128x64 attached via the UEXT1 port.
I had to:
Change the Screen Address to 0x3C, despite Olimex' documentation saying the I2C port was 0x3D
Add this to the top of Setup(), to make it use the I2C port on the UEXT connector.
Wire.setPins(13,16);
*/
/**************************************************************************
@MattGrayYes
MattGrayYes / Gemma_ATtiny85_Mac.md
Last active January 18, 2024 12:12
Programming an Adafruit Gemma ATtiny85 on Mac OS 12 Monterey with Arduino IDE

Programming an Adafruit Gemma ATtiny85 on Mac OS 12 Monterey with Arduino IDE

This is for the black circuit board ADAFRUIT Gemma specfifically, not the arduino gemma.

Set Up Adafruit Boards

  1. Open Arduino IDE (I'm using 2.0.3)
  2. Open Adafruit IDE -> Preferences
  3. Add this URL to the Additional boards manager URLs https://adafruit.github.io/arduino-board-index/package_adafruit_index.json 4. Click the two squares icon at the right of the text box
@MattGrayYes
MattGrayYes / brightness.sh
Created January 9, 2023 13:43
Pimoroni Hyperpixel Brightness Adjuster
#!/bin/bash
# Pimoroni Hyperpixel Brightness Adjuster
# Tested on Hyperpixel Round with Raspberry Pi Zero W https://shop.pimoroni.com/products/hyperpixel-round?variant=39381081882707
#
# Matt Gray | mattg.co.uk | @MattGrayYes
# if we've got one argument
if [ $# -eq 1 ];
then
# if the argument is an integer