Skip to content

Instantly share code, notes, and snippets.

@coughski
coughski / subway_widget.js
Created April 8, 2022 19:50
A NYC subway departure timeline widget with status alerts
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: subway;
let GtfsRealtimeBindings = importModule("gtfs-realtime.js") // add this file to Scriptable from https://github.com/MobilityData/gtfs-realtime-bindings/blob/master/nodejs/gtfs-realtime.js
// also add https://github.com/protobufjs/protobuf.js/blob/master/dist/protobuf.min.js to Scriptable
const API_KEY = "paste_your_api_key_here" // get a free MTA API key at https://api.mta.info/#/landing
const ROOT = "entity"
const ALERT = "alert"
@coughski
coughski / citi_bike.js
Last active January 20, 2024 06:24
Scriptable widget for tracking the status of a Citi Bike station
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: bicycle;
/*** WIDGET SETUP ***
* Edit the Scriptable widget, select this CitiBike script, and fill the Parameter field with your station's id
*
* HOW TO FIND A STATION'S ID
* Search for a CitiBike station by street name at https://gbfs.citibikenyc.com/gbfs/en/station_information.json
* Find the station_id field associated with the name
@coughski
coughski / pollen_forecast.js
Last active April 13, 2023 06:17
Scriptable widget displaying daily pollen forecast
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: tree;
/*** SETUP ***
* Register for a free Accuweather API Key at https://developer.accuweather.com
* Enter your API key in the field below
*
* Use the Locations API to determine the location key of your city at http://dataservice.accuweather.com/locations/v1/search
* Paste the location key in the appropriate variable below
@coughski
coughski / keybase.md
Created January 17, 2018 18:40
Keybase proof

Keybase proof

I hereby claim:

  • I am coughski on github.
  • I am coughski (https://keybase.io/coughski) on keybase.
  • I have a public key ASDpRw6UqGtowijdVVz_Mz33qk6a3VFi5oRwZsu4iExl5wo

To claim this, I am signing this object: