View sportinggreen.py
This file contains 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
#! /usr/bin/env python3 | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
import hashlib | |
import PyRSS2Gen | |
import datetime | |
import html.entities | |
from urllib.parse import urljoin |
View networkquality.30m.py
This file contains 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
#! /usr/bin/python3 | |
# <xbar.title>Network Quality</xbar.title> | |
# <xbar.version>v1.1</xbar.version> | |
# <xbar.author>Jason Snell</xbar.author> | |
# <xbar.author.github>jasonsnell</xbar.author.github> | |
# <xbar.desc>Display current network quality from networkQuality binary.</xbar.desc> | |
# <swiftbar.hideRunInTerminal>true</swiftbar.hideRunInTerminal> | |
import json |
View echo.1m.py
This file contains 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
#! /usr/bin/env python3 | |
# <xbar.title>Echo Shortcut Notifier</xbar.title> | |
# <xbar.version>v1.01</xbar.version> | |
# <xbar.author>Jason Snell</xbar.author> | |
# <xbar.author.github>jasonsnell</xbar.author.github> | |
# <xbar.desc>Display status from Shortcuts.</xbar.desc> | |
import os | |
import datetime |
View weathercat-last7rain.py
This file contains 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
#! /usr/local/bin/python3 | |
# Recent daily rain script | |
# For WeatherCat - https://trixology.com | |
# By Jason Snell <jsnell@sixcolors.com> | |
import re | |
import matplotlib.pyplot as plt | |
from collections import defaultdict | |
from datetime import date |
View weatherkit-sampleproject.py
This file contains 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
#! /usr/bin/env python3 | |
import time | |
import jwt | |
import json | |
import requests | |
from datetime import datetime | |
from collections import defaultdict | |
import matplotlib.pyplot as plt |
View stormlog.py
This file contains 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
#! /usr/local/bin/python3 | |
# Storm Log script | |
# For WeatherCat - https://trixology.com | |
# By Jason Snell <jsnell@sixcolors.com> | |
import re | |
from collections import defaultdict | |
import datetime |
View podcast-noter.scpt
This file contains 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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
# Sample Keyboard Maestro macros at | |
# <https://sixcolors.com/wp-content/uploads/2022/01/Podcast-Noter-Macros.kmmacros.zip> | |
on run argv | |
try | |
set theNote to (item 1 of argv) | |
on error |
View Template Gun.applescript
This file contains 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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
set nameArray to {} | |
set templateFolder to (alias "Macintosh HD:Users:jsnell:Dropbox:Podcast Templates:") | |
tell application "Finder" to set theNames to the name of items in folder templateFolder | |
set mychoice to (choose from list theNames with prompt "Choose your Template" with title "Template Gun" default items "None" OK button name {"Choose"} cancel button name {"Cancel"}) as string |
View epaaq.5m.php
This file contains 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
#!/usr/bin/env php | |
<?php | |
error_reporting( 0 ); | |
// This version requires SwiftBar, rather than BitBar. swiftbar.app | |
// <bitbar.title>EPA Air Quality</bitbar.title> | |
// <bitbar.version>v2.0</bitbar.version> | |
// <bitbar.author>Jason Snell</bitbar.author> | |
// <bitbar.author.github>jasonsnell</bitbar.author.github> |
View aqmono.5m.php
This file contains 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
#!/usr/bin/env php | |
<?php | |
error_reporting( 0 ); | |
// find a PurpleAir sensor ID on the PurpleAir map and put that ID in $show | |
$show = '6732'; | |
$url = ( 'https://www.purpleair.com/json?show=' . $show ); | |
// Get the sensor data via JSON |
NewerOlder