This file contains hidden or 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/env python3 | |
import os | |
import sys | |
import gzip | |
import json | |
import pandas as pd | |
from datetime import datetime, timedelta | |
from shapely.geometry import shape, MultiPoint, mapping | |
from collections import Counter | |
import argparse |
This file contains hidden or 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
# Horrorbox v1.4 | |
# List box used for file panel with bounds checking | |
import urwid | |
class SafeListBox(urwid.ListBox): | |
def keypress(self, size, key): | |
if key in ('up', 'down'): | |
focus_pos = self.focus_position | |
max_pos = len(self.body) - 1 |
This file contains hidden or 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
# Horrorbox v1.4 | |
# File panel class, containing navigation and display functions | |
import os | |
import urwid | |
from ui.safe_listbox import SafeListBox | |
class FileListPanel: | |
def __init__(self, root_path, video_extensions): | |
self.root_path = root_path |
This file contains hidden or 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
# Horrorbox v1.4 | |
# Debug panel class | |
import urwid | |
from ui.safe_listbox import SafeListBox | |
from datetime import datetime | |
class DebugPanel: | |
def __init__(self, max_lines=10): | |
self.max_lines = max_lines |
This file contains hidden or 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
#!/home/pi/horrorbox/bin/python | |
# Horrorbox v1.4 | |
from ui.debug_panel import DebugPanel | |
from ui.file_list_panel import FileListPanel | |
import urwid | |
import os | |
import subprocess | |
import shutil | |
import RPi.GPIO as GPIO |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder