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
[ | |
"Abbeville", | |
"Aberdeen", | |
"Ackerman", | |
"Algoma", | |
"Alligator", | |
"Amory", | |
"Anguilla", | |
"Arcola", | |
"Artesia", |
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
[ | |
"Abbott", | |
"Abernathy", | |
"Abilene", | |
"Ackerly", | |
"Addison", | |
"Adrian", | |
"Agua Dulce", | |
"Alamo", | |
"Alamo Heights", |
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
# dallewood | jeffehobbs@gmail.com | |
import typer, configparser, os, shutil, requests, hashlib, openai | |
from tqdm import tqdm | |
app = typer.Typer() | |
OUTPUT_DIR = '/output' | |
OUTPUT_PROMPT_PREFIX = '' | |
# generate image from post text |
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
# ariseCthulhuBot.py | jeffehobbs@gmail.com | |
# taking the Great Tweets and sending them through the | |
# Lovecraftian-chaotic wheat thresher of the "bark" TTS library | |
# in order to summon The Old Ones | |
# | |
# to-do: | |
# | |
# 1. [X] get a CLASSIC tweet | |
# 2. [X] make a music intro | |
# 3. [X] make a text tweet |
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
Equipment for BirdNet | |
— | |
SUMMARY: You’ll need a decent Raspberry Pi, a case, a microSD card, a decent USB mic, a longish USB cable | |
and a decent power supply. It’ll run you about $150. | |
COMPUTER: RASPBERRY PI 4, 4GB ($55) | |
I’m using this, it works great. $55. | |
https://www.adafruit.com/product/4296 |
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
# radiodreambot | jeffehobbs@gmail.com | |
# record radio, transcribe it, make art | |
import requests, os, shutil, configparser, datetime, time, multiprocessing, openai, tweepy, subprocess | |
from mastodon import Mastodon | |
from faster_whisper import WhisperModel | |
from atproto import Client | |
from PIL import Image | |
#STREAM_URL = 'https://live.wostreaming.net/direct/saga-wrsifmaac-ibc2' |
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
# generates a REST lambda for WeatherKit data & OpenAI summarization | |
import requests, json, os, boto3, configparser | |
from flask import Flask, Response, request, json, jsonify | |
import openai | |
app = Flask(__name__) | |
# set up API keys from external config secrets.txt configparser file | |
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) |
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
# curbalert 2025 | jeffehobbs@gmail.com | |
# refactored to use playwright | |
from playwright.sync_api import sync_playwright | |
import requests, time, os, tweepy, hashlib, configparser, logging | |
from mastodon import Mastodon | |
from atproto import Client, client_utils | |
# globals | |
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) |
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
# policelog.py // jeffehobbs@gmail.com | |
# | |
# todo: | |
# | |
# 1. get latest police log from RSS feed | |
# 2. scrape html and get individual log entries | |
# 3. if unique: pull text from entry, redact people's names, create illustration | |
# 4. tweet text and illustration | |
# 5. mastodon too | |
# 6. also bluesky |
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
# Configuration for WeatherKit in Home Assistant: customize lat/long/token | |
rest: | |
- resource: https://weatherkit.apple.com/api/v1/weather/en/YOUR_LATITUDE/YOUR_LONGITUDE | |
headers: | |
Authorization: 'Bearer YOUR_TOKEN_HERE' | |
params: | |
countryCode: 'US' | |
dataSets: 'currentWeather,forecastDaily,forecastNextHour,forecastHourly,weatherAlerts' | |
timezone: 'GMT-5' | |
scan_interval: 60 |