I hereby claim:
- I am ianrenton on github.
- I am ianrenton (https://keybase.io/ianrenton) on keybase.
- I have a public key whose fingerprint is D732 954A 1EFD CB26 BB00 87BE 40F6 0729 F8CC 2EF5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Find callsigns of all the ham radio folks you are mutuals with on fedi (may only work with Mastodon) | |
# and produce a list so you can add them to HamAlert or something. | |
# Ian Renton, January 2025 | |
# Public Domain software | |
import re | |
import requests | |
USERNAME='ian' | |
INSTANCE='https://mastodon.radio' |
# Script to find your fedi mutuals' websites. | |
# In the spirit of nerd fedi's desire to bring back self-owned websites, blogs and RSS feeds, this scripts finds all | |
# your fedi mutuals, and grabs the URLs from their custom fields. By default it only returns "verified" ones on the | |
# assumption that these are probably personal sites not other randomly-linked things, but you can turn that off if you | |
# like. Definitely works on Mastodon, not tested on anything else, sorry. | |
# Ian Renton, January 2025 | |
# Public Domain software | |
import re | |
import requests |
from requests_cache import CachedSession | |
from datetime import timedelta | |
from time import sleep | |
# List of UK-adjacent programs | |
programs = ["GB", "IM", "GG", "JE", "GI", "FK"] | |
call_prefixes = ["G", "M", "2"] | |
year = 2024 | |
# Setup |
// Convert a Maidenhead grid reference of arbitrary previcision to lat/long. | |
function latLonForGrid(grid) { | |
// Make sure we are in upper case so our maths works. Case is arbitrary for Maidenhead references | |
grid = grid.toUpperCase(); | |
// Return null if our Maidenhead string is invalid or too short | |
let len = grid.length; | |
if (len <= 0 || (len % 2) !== 0) { | |
return null; | |
} |