How artbombs/app-mananciais-sp-zeppos works
Mananciais SP is a Zepp OS watch app for browsing public reservoir conditions across eight Sabesp systems. The user opens the watch app to see cached data, then requests an update through the phone side service, which fetches Sabesp data and packages it for the watch. The watch presents volume, rain, levels and flows, reservoirs, a 30-day trend, and system diagrams, with Portuguese/English labels; a separate About screen provides support QR art. Edges follow README statements or shown imports and calls; some UI internals and the watch-to-phone transport are documented but not implemented in the sampled page excerpt.
Main entry points: index/index.page.js Reservoir dashboard · index.js Phone side service · sabesp.js Payload builder · about/index.page.js About screen
Components 13
Watch experience
- Reservoir dashboard
page/index/index.page.js - System diagrams
page/index/diagrama.js - Watch cache
page/index/index.page.js - Watch display
page/index/index.page.js
Data retrieval
- Phone side service
app-side/index.js - Sabesp API
- Phone cache
app-side/index.js
Payload modeling
- Payload builder
shared/sabesp.js - System catalog
shared/sabesp.js
About and language
- Language and labels
page/i18n.js - About screen
page/about/index.page.js - Zepp app lifecycle
app.js
Other components
- Watch user
Connections 15
- Watch user → Reservoir dashboard: opens and browses
README.md - Reservoir dashboard → Watch cache: reads cached data
README.md - Reservoir dashboard → Phone side service: requests update
README.md - Phone side service → Sabesp API: fetches public data
app-side/index.js - Phone side service → Phone cache: reads stale values
app-side/index.js - Phone side service → Phone cache: stores payload
app-side/index.js - Phone side service → Payload builder: builds payload
app-side/index.js - Payload builder → System catalog: uses catalog
shared/sabesp.js - Reservoir dashboard → Watch display: renders metrics
page/index/index.page.js - Reservoir dashboard → System diagrams: renders diagrams
page/index/index.page.js - Reservoir dashboard → Language and labels: uses translations
page/index/index.page.js - About screen → Language and labels: uses translations
page/about/index.page.js - Reservoir dashboard → About screen: opens screen
README.md - Phone side service → Reservoir dashboard: returns payload
- Reservoir dashboard → Watch cache: saves payload
page/index/index.page.js