Skip to content

Instantly share code, notes, and snippets.

Avatar

David Honess davidhoness

View GitHub Profile
View websdr_doppler.py
#!/usr/bin/python3
import urllib.request
import math
import ephem
import time
import sys
import ssl
import pyperclip
import pyautogui
@davidhoness
davidhoness / satnogs_wx.py
Last active Feb 17, 2020
Used to process a satnogs ogg audio file for loading in WxToImg GUI
View satnogs_wx.py
#!/usr/bin/python3
import os
import sys
import wave
from datetime import datetime, timedelta
from dateutil import tz
# example satnogs_1692904_2020-02-14T10-24-03.ogg
@davidhoness
davidhoness / kenwood.py
Created Oct 4, 2019
Python script for tuning rtl_fm using input from WxToImg
View kenwood.py
#!/usr/bin/python3
import serial
import socket
import time
import subprocess
"""
DC0;SQ0000;FA00137100000;MD4;FA00137102450;FA00137102440;FA00137102436;...
View pyaudio_sstv.py
from __future__ import division
from pysstv.sstv import SSTV
from pysstv.color import PD120
from itertools import islice
from PIL import Image
from shapely.geometry import Polygon, Point
import struct
import serial
import pyaudio
import glob
@davidhoness
davidhoness / wpa_supplicant.conf
Created Nov 19, 2018
Connecting a Raspberry Pi to WPA2 Enterprise Wireless Network
View wpa_supplicant.conf
network={
ssid="ssid"
scan_ssid=1
key_mgmt=WPA-EAP
group=CCMP TKIP
eap=PEAP
identity="username"
password=hash:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
phase1="peapver=0"
phase2="MSCHAPV2"
View power_cycle_usb.sh
#!/bin/bash
echo 0 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off
sleep 10
echo 1 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off
@davidhoness
davidhoness / install_macguyver.sh
Last active Apr 30, 2021
MacGuyver mode for Raspberry Pi
View install_macguyver.sh
#!/bin/bash
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
apt-get update
apt-get install realvnc-vnc-server dnsmasq -y
cd /usr/local/share/
wget https://github.com/novnc/noVNC/archive/v1.2.0.zip
unzip v1.2.0.zip
rm v1.2.0.zip
mv noVNC-1.2.0 noVNC
cd noVNC
View image_location.py
#!/usr/bin/python3
import ephem
import picamera
import time
import datetime as dt
from math import degrees, radians, cos, sin, asin, sqrt
time_format = "%d/%m/%Y %H:%M:%S"
name = "ISS (ZARYA)"
View birthday.py
#!/usr/bin/python3
import sys
import os
import glob
import time
import random
import datetime
from sense_hat import SenseHat
View sense_hat_en.py
#!/usr/bin/python3
from sense_hat import *
EN_DIRECTION_UP = 'up'
EN_DIRECTION_DOWN = 'down'
EN_DIRECTION_LEFT = 'left'
EN_DIRECTION_RIGHT = 'right'
EN_DIRECTION_MIDDLE = 'middle'