Skip to content

Instantly share code, notes, and snippets.

@jdanders
jdanders / cwop_upload.yaml
Last active August 2, 2026 02:39 — forked from sean6541/cwop_upload.yaml
Upload data from Home Assistant to the CWOP.
#You should use https://github.com/lancer73/ha-weather-uploader instead
blueprint:
name: 'CWOP Upload'
description: >
Periodically uploads weather station data from Home Assistant to CWOP
(Citizen Weather Observer Program) via APRS-IS, whenever any of the
configured trigger entities change state.
Setup:
Add the following shell_command to configuration.yaml. This pipes the
P:16463; T:0x140367463017984 12:09:19.078 [opensc-pkcs11] ctx.c:869:sc_context_create: ===================================
P:16463; T:0x140367463017984 12:09:19.078 [opensc-pkcs11] ctx.c:870:sc_context_create: opensc version: 0.19.0
P:16463; T:0x140367463017984 12:09:19.078 [opensc-pkcs11] reader-pcsc.c:829:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1
P:16463; T:0x140367463017984 12:09:19.078 [opensc-pkcs11] reader-pcsc.c:1311:pcsc_detect_readers: called
P:16463; T:0x140367463017984 12:09:19.078 [opensc-pkcs11] reader-pcsc.c:1324:pcsc_detect_readers: Probing PC/SC readers
P:16463; T:0x140367463017984 12:09:19.078 [opensc-pkcs11] reader-pcsc.c:1352:pcsc_detect_readers: Establish PC/SC context
P:16463; T:0x140367463017984 12:09:19.220 [opensc-pkcs11] reader-pcsc.c:1260:pcsc_add_reader: Adding new PC/SC reader 'Yubico Yubikey NEO OTP+U2F+CCID 00 00'
P:16463; T:0x140367463017984 12:09:19.220 [opensc-pkcs11] reader-pcsc.
@jdanders
jdanders / ksl.py
Last active February 17, 2017 05:14 — forked from blakev/ksl.py
Command line application to search KSL Classifieds
import re
import argparse
import concurrent.futures
import string
from collections import namedtuple
from urllib.request import urlopen
from urllib.parse import urlencode, urljoin
from bs4 import BeautifulSoup