Enhancing old heatmap.py
Python 3.14.3 original code: https://github.com/keenerd/rtl-sdr-misc/blob/master/heatmap/heatmap.py Enhanced code. Optimizations and works with latest pillow (12.x.x) versions #! /usr/bin/env python # fix for the pillow 12 from PIL import Image, ImageDraw, ImageFont import os, sys, gzip, math, argparse, colorsys, datetime from collections import defaultdict urlretrieve = lambda a, b: None try: import urllib.request urlretrieve = urllib.request.urlretrieve except: import urllib urlretrieve = urllib.urlretrieve # todo: # matplotlib powered --interactive # arbitrary freq marker spacing # ppm # blue-less marker grid # fast summary thing # gain normalization # check pil version for brokenness vera_url = "https://github.com/keenerd/rtl-sdr-misc/raw/master/heatmap/Vera.ttf" vera_path = os.path.join(sys.path[0], "Vera.ttf") tape_height = 25 tape_pt = 10 if not os.path.isfile(vera_path): urlretrieve(vera_url, vera_path)...