Public vals
779
stevekrouse avatar
stevekrouse
messages2
Script
// set by stevekrouse.tell2 at 2023-05-08T17:20:41.218Z
0
stevekrouse avatar
stevekrouse
nowcastPMAQISeverity
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
easyAQI
Script
easyAQI Get the Air Quality Index (AQI) for a location via open data sources. It's "easy" because it strings together multiple lower-level APIs to give you a simple interface for AQI. Accepts a location in basically any string format (ie "downtown manhattan") Uses Nominatim to turn that into longitude and latitude Finds the closest sensor to you on OpenAQ Pulls the readings from OpenAQ Calculates the AQI via EPA's NowCAST algorithm Uses EPA's ranking to classify the severity of the score (ie "Unhealthy for Sensitive Groups") It uses blob storage to cache the openai location id for your location string to skip a couple steps for the next time. Example usage @stevekrouse.easyAQI({ location: "brooklyn navy yard" }) // Returns { "aqi": 23.6, "severity": "Good" } Forkable example: val.town/v/stevekrouse.easyAQIExample Also useful for getting alerts when the AQI is unhealthy near you: https://www.val.town/v/stevekrouse.aqi
3
stevekrouse avatar
stevekrouse
openAQLocation
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
aqiLocation
Script
// deprecated in favor of @stevekrouse.openAQLocation
0
stevekrouse avatar
stevekrouse
nominatimSearch
Script
Geocode a free-form description via the Nominatim API The search API allows you to look up a location from a textual description or address. Nominatim supports structured and free-form search queries. Docs: https://nominatim.org/release-docs/latest/api/Search/
0
stevekrouse avatar
stevekrouse
mutateTestArray
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
testMutableArray
Script
// set by stevekrouse.mutateTestArray at 2023-04-08T21:24:52.417Z
0
stevekrouse avatar
stevekrouse
runAllTests
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
mutationTests
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
unauthenticatedCanMutateViaObjectSneak
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
unauthenticatedCantMutateViaObjectSneak
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
authenticatedCanMutateAnotherSetter
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
authenticatedCantMutateAnother
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
myTestState
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
authenticatedCanMutate
Script
An interactive, runnable TypeScript val by stevekrouse
0