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
""" | |
ex_type1_nomo_1.py | |
Simple nomogram of type 1: F1 + F2 + F3 = 0 | |
Copyright (C) 2007-2009 Leif Roschier | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or |
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 | |
# Generate a regular expression for amateur radio call signs | |
# Mikel L. Forcada 2025 | |
# Public domain software | |
# strict or lax matching | |
strict="yes" | |
# strict = ITU https://www.itu.int/pub/R-REG-RR-2024, section III, article 19 | |
# change to "no" or anything else if you want to match callsigns such as E7W, D4A or very long call signs |
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
# 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 | |
# Mods by Mikel Forcada (new callsign regular expression, and workaround as | |
# re.findall(CALLSIGN_REGEX, display_name) did not work well with parentheses in that | |
# regular expression) | |
import re | |
import requests |