Lattice
A workspace for your research.
Display today's regional weather and event schedule for site inspections
AI summary · website content
ProductivityJavaScript · HTMLGitHub @dramaq2093-creatorOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗오늘 현장 일정과 Open-Meteo에서 받은 지역별 날씨를 한 화면에서 보고, 날씨 때문에 주의 · 중지를 검토할 일정을 표시합니다. (교육용 가상 데이터)
setup.sql 전체를 실행합니다. public.wx_tasks 표, 읽기·추가 RLS 정책, 허용 값 제약과 가상 일정 6건이 생성됩니다.config.js의 두 줄에 프로젝트 URL과 공개용 publishable/anon 키를 입력합니다. service_role 비밀 키는 사용하지 마세요.index.html을 더블클릭하거나 배포 주소에서 엽니다. Supabase에서 일정을 읽고, 추가 일정도 같은 표에 저장합니다.공개용 키는 브라우저에 보입니다. SQL은 익명 방문자의 읽기와 일정 추가만 허용하고 수정·삭제는 허용하지 않습니다. 지역과 구분, 제목·담당 필수값은 DB 제약으로 확인합니다.
외부 스크립트는 Supabase의 supabase-js 하나만 사용합니다.
| 파일 | 역할 |
|---|---|
| index.html | 화면 구조 |
| style.css | 디자인 |
| logic.js | 날씨 API 주소·응답 해석 및 판단 규칙 |
| app.js | 화면 동작 및 날씨 API 호출 |
| config.js | Supabase URL과 공개용 키 |
| setup.sql | wx_tasks 표·제약·RLS 정책·초기 일정 |
| api/kma.js | 지역별 DB 일정·KMA 날씨·판단 JSON API |
| PRD.md | 무엇을 · 왜 만드는지 |
| CLAUDE.md | AI가 지킬 작업 규칙 |
| .gitignore | GitHub에 올리지 않을 파일 목록 |
?test=wind를 주소 끝에 붙이면 풍속을 12m/s로 적용해 고소 일정을 포함한 판단 규칙을 시험할 수 있습니다.현장일정_판단_YYYY-MM-DD.md 파일로 내려받습니다.KMA_KEY, SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY를 설정합니다. Supabase 키는 공개용 키만 사용하고 service role 키는 설정하지 마세요.GET /api/kma?region=대전처럼 호출하면 해당 지역의 Supabase 일정, KMA 오늘 최고기온·최대풍속·강수확률, 일정별 판단 결과를 JSON으로 반환합니다.{ "region": "대전", "weather": { "tempMax": 0, "windMax": 0, "rainProb": 0 }, "tasks": [{ "id": "...", "title": "...", "region": "대전", "kind": "야외", "owner": "...", "weather": {}, "level": "ok", "decision": "진행" }] } 형식입니다. 지역이 없거나 지원되지 않으면 400, upstream 연결에 실패하면 502를 반환합니다.