Glasshouse
루팅된 LG webOS TV용 대시보드·프라이버시 제어·Home Assistant 연동
미국 레이더·강수량·번개·풍속·기온·NWS 경보·감시·지점 예보 제공, 지도 타일·JSON, 단일 키
Radar, rain totals, lightning, wind, temperature, NWS watches and warnings, and point forecasts. Map tiles and JSON, one key.
개발 도구HTML · JavaScriptGitHub @cvrooman온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Animated US weather radar on a map in one HTML file — a starter for the Splitshot Weather API. https://splitshotweather.com
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Animated US weather radar on a map, in one HTML file and about 80 lines of JavaScript. No build step, no framework, no bundler.
Real tiles from the API, composited at full colour depth. The basemap
under them is Esri's dark canvas; index.html ships with CARTO's, so your
ground will look slightly different. The radar is identical.
Built on the Splitshot Weather API — NOAA radar, rainfall, lightning, wind and temperature rendered as map tiles, plus point forecasts and history. This repo is the shortest path from an API key to something moving on a screen.
Get a key. splitshotweather.com — the trial is free and takes no card. Current limits are on the pricing page.
Paste it into config.js, replacing PASTE_YOUR_KEY_HERE.
Serve the folder and open it:
python3 -m http.server 8000
# then open http://localhost:8000
Opening index.html directly as a file:// URL will not work. index.html
uses an ES module to import config.js, and browsers refuse module imports over
file://. Any static server will do — the one-liner above, npx serve,
whatever you already run.
Two calls. Read the manifest, then load tiles.
The manifest tells you which frames exist right now:
curl -H "x-api-key: YOUR_KEY" \
https://api.splitshotweather.com/manifest/composite.json
{
"product": "composite",
"cadenceMinutes": 5,
"maxZoom": 8,
"units": "dBZ",
"frames": ["20261026-1945", "20261026-1950", ...], // observed, oldest first
"latest": "20261026-2140",
"forecast": [{ "ts": "20261026-2145", "leadMinutes": 5 }, ...],
"tileUrlTemplate": "/tiles/composite/{ts}/{z}/{x}/{y}.png",
"forecastTileUrlTemplate": "/tiles/composite-fcst/{ts}/{z}/{x}/{y}.png",
"legend": [{ "value": 5.0, "unit": "dBZ", "rgb": [126, 211, 126] }, ...]
}
Always read the manifest rather than deriving timestamps from the clock. Frames are published when the upstream data lands, which is not on a tidy schedule, and a guessed timestamp is a 404.
Then substitute a timestamp into the template and hand the result to your map
library as a raster source. That is all index.html does.
The legend array is the exact colour ramp the tiles were rendered with, so a
legend in your UI can be generated from it instead of hard-coded and drifting.
x-api-key: YOUR_KEY header | Use this wherever you control the request — the manifest fetch, /forecast, /history. |
?key=YOUR_KEY query string | For raster tiles, where the map engine issues the request and gives you no way to attach a header. |
The key is stripped at the edge before anything is cached or logged, and the tile cache key ignores it, so every customer shares one cached tile.
GET /manifest/{product}.json
GET /tiles/{product}/{ts}/{z}/{x}/{y}.png
GET /forecast/{lat},{lon}
GET /history/{lat},{lon}/{iso8601}
GET /points/lightning/{ts}.json lightning as GeoJSON points
GET /alerts active NWS alerts, as GeoJSON
GET /alerts/{lat},{lon} just the ones over one point
Products: composite (radar reflectivity), qpe-1h and qpe-24h (rainfall
accumulation), lightning, wind, temperature. Each has its own manifest, legend and
cadence — change PRODUCT in config.js to try one.
Full reference: splitshotweather.com/docs.html
Mount every frame, switch opacity. The obvious approach — one source whose
URL you rewrite on each step — makes the map tear down and refetch the entire
tile set every time, so scrubbing flickers and burns requests re-downloading
frames you just had. Mounting each frame as its own layer and flipping
raster-opacity is a GPU operation on tiles already in memory.
The cost is that all frames load up front. At 24 observed frames that is real, so a production app usually mounts a window around the current frame rather than the whole timeline.
A dark basemap. The radar ramp starts at light green. On a light basemap the weak returns — which are most of the pixels — wash out completely.
config.js puts the key in front-end JavaScript, which is fine for a demo you
run locally and wrong for anything you deploy. Anyone who opens devtools can
read it, and usage bills to you.
In production, keep the key on your server and proxy the tile requests. Your server attaches the key; the browser never sees it.
MIT — see LICENSE. Use it as a starting point, not as a dependency.
Issues and pull requests are welcome here. This directory is published from the API's own repository, so a fix lands next to the service it demonstrates.
Weather data is derived from NOAA / National Weather Service sources, which are in the public domain. The rendering is Splitshot Weather's. Note that the API is not for safety-of-life use — see the terms.