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
import csv | |
with open('aircraft.csv', 'r', newline='') as db_csvfile: | |
db_reader = csv.reader(db_csvfile, delimiter = ';') | |
db_data = list(db_reader) | |
with open('replacements.csv', 'r', newline='') as replacements_csvfile: | |
replacements_reader = csv.reader(replacements_csvfile, delimiter = ';') | |
replacements_data = list(replacements_reader) |
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 | |
export HOME="/home/pi" | |
export TERM="linux" | |
read CALL | |
CALL=$(echo "$CALL" | tr -d '\r') | |
mkdir -p "/home/pi/zork/nodesaves/$CALL" | |
echo "Hello $CALL! Do you wish to load a saved game? [y/N]" |
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
import time | |
import json | |
import time | |
import os | |
import json | |
from contextlib import closing | |
from urllib.request import Request, urlopen | |
#--------- URLS for receiver, accepts multiple | |
urls= ["http://127.0.0.1/tar1090/data/aircraft.json"] |
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
#!/usr/bin/python3 | |
# OARC ADS-B Feed Checker v4 - Mark 2M0IIG with additional help from Roger M7TEE | |
# This script reads in the readsb and mlat-server clients.json files and presents the information in a clearer manner | |
# to identify users with issues | |
import json | |
import argparse | |
colour_red = "\033[1m\033[91m***" | |
colour_yellow = "\033[1m\033[93m***" |
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 | |
LOCATOR=IO85gw ; Set to your Grid Square to send reports to the BPQ32 Node Map s ystem | |
MAPCOMMENT=2M0IIG Experimental Node<br>144.9375 | Other bands/modes to follow | |
EnableM0LTEMap=1 ; new packet node map | |
NODECALL=2M0IIG-7 | |
NODEALIAS=BRXBRN | |
SAVEMH=1 | |
NODESINTERVAL=15 |
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
# RPi zero RTL-SDR VHF weather satellite recorder | |
# Mark Pentler 2021 v0.1 | |
from gpiozero import Button #import button from the Pi GPIO library | |
import time # import time functions | |
import os #imports OS library for Shutdown control | |
hold_time = 2 | |
record_button_delay = 1 | |
# define button GPIO pins |
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
#include <avr/io.h> | |
#include <util/delay.h> | |
int ledPWM1 = 0; | |
int ledPWM2 = 1; | |
void setup() { | |
DDRB = 0b00011111; | |
PORTB = 0b00011100; |
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
int ledPWM1 = 0; | |
int ledPWM2 = 1; | |
void setup() { | |
pinMode(ledPWM1, OUTPUT); | |
pinMode(ledPWM2, OUTPUT); | |
} | |
void loop() { | |
analogWrite(ledPWM1, random(50, 120)); |
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
// Conference Mood Badge - Mark Pentler 2020 | |
// Tested with: ATTiny85 and 13 | |
// Code rev: v0.3 07/08/2020 | |
// 0.01: initial Arduino test code, ATMega328p based | |
// 0.1: Changed to ATTiny85, compiles fine | |
// 0.15: Switched to ATTiny13 and Microcore, switched to direct I/O and removed Arduino-like helper functions | |
// 0.2: Global LEDpin variable replaced with spare register - now 0 bytes RAM used!, compiled size now reduced by a third since 0.1! | |
// 0.3: Power improvements: ADC disabled saved 200-300ish microamps | |
#include <avr/sleep.h> |
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
// Conference Mood Badge - Mark Pentler 2020 | |
// Tested with: ATTiny85 and 13 | |
// | |
#include <avr/sleep.h> | |
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
uint8_t LEDpin = PB0; // start on green LED | |
void setup() { |
NewerOlder