How kmfouda/energy_watch_nyc works
NYC Energy Watch is a static compliance dashboard and information site for NYC building energy laws. Its main user workflow resolves an address, BBL, or BIN into a building identity, combines CBL, violations, and benchmarking records, then renders a compliance report and runs a BIN-completeness audit. Other documented capabilities include a ZIP-level EUI map, compliance articles, and gated PDF downloads. The README provides the search flow, but the dashboard source was not sampled; links from it to Netlify endpoints are therefore shown as unverified. The backend endpoint behavior is supported by sampled source.
Main entry points: index.html Search and report UI · get-resource.js Signed download link · insights.html Insights index · geocode-address.js Address geocoder
Components 22
Building dashboard
- Search and report UI
index.html - Address resolution
index.html - BBL and BIN resolution
index.html - Search finalization
index.html - Compliance report
index.html - BIN completeness audit
index.html
Compliance data
- Covered Buildings List
- NYC Open Data
- LL84 benchmarking
- ZIP EUI map
nycenergymap.html - Google Sheets
Insights and resources
- Insights index
insights.html - Insight articles
insights - Resource download request
insights.html - PDF resources
pdfs
Supporting services
- Address geocoder
netlify/functions/geocode-address.js - NYC data query
netlify/functions/query-nyc-data.js - Signed download link
netlify/functions/get-resource.js - PDF link validation
netlify/functions/serve-pdf.js - Event logger
netlify/functions/log-event.js - Resource download logger
google-apps-script/Code.gs
Other components
- Building visitor
Connections 28
- Building visitor → Search and report UI: searches
README.md - Search and report UI → Address resolution: submits address
README.md - Search and report UI → BBL and BIN resolution: submits BBL or BIN
README.md - Address resolution → Address geocoder: geocodes address
- Address geocoder → Search and report UI: returns coordinates
netlify/functions/geocode-address.js - BBL and BIN resolution → Covered Buildings List: looks up BIN
README.md - BBL and BIN resolution → NYC Open Data: resolves identity
README.md - BBL and BIN resolution → LL84 benchmarking: fallback lookup
README.md - Address resolution → Search finalization: passes resolved identity
README.md - BBL and BIN resolution → Search finalization: passes resolved identity
README.md - Search finalization → NYC Open Data: fetches violations
README.md - Search finalization → LL84 benchmarking: fetches filings
README.md - Search finalization → Compliance report: renders report
README.md - Search finalization → BIN completeness audit: starts audit
README.md - BIN completeness audit → Covered Buildings List: compares official BINs
README.md - BIN completeness audit → LL84 benchmarking: checks filing BINs
README.md - Search and report UI → NYC data query: queries NYC data
- Building visitor → ZIP EUI map: views map
README.md - Building visitor → Insights index: browses insights
README.md - Insights index → Insight articles: links articles
README.md - Building visitor → Resource download request: requests resource
- Resource download request → Signed download link: requests download link
- Signed download link → Google Sheets: logs request
netlify/functions/get-resource.js - Signed download link → PDF link validation: issues signed link
- PDF link validation → PDF resources: redirects to file
netlify/functions/serve-pdf.js - Search and report UI → Event logger: logs events
- Event logger → Google Sheets: forwards event
netlify/functions/log-event.js - Resource download logger → Google Sheets: records download