Configuration
Everything is set with environment variables. On Vercel: Project → Settings → Environment Variables. After changing anything, redeploy (Deployments → ⋯ → Redeploy). Variables are read at build and start time.
Required
| Variable | What it is | Example |
|---|---|---|
SHINE_USER | ShineMonitor / SmartClient username, exactly as you log in (case-sensitive) | MyName123 |
SHINE_PASS | ShineMonitor password. Server-only | |
DASH_USER | Username for your Helio dashboard. Case-insensitive | family |
DASH_PASSWORD | Password for your Helio dashboard. 12+ characters, different from SHINE_PASS | |
AUTH_SECRET | Random text that signs sessions. Changing it signs everyone out | openssl rand -hex 32 |
TARIFF | What you pay the grid per unit (kWh) | 7.5 |
Optional
| Variable | Default | What it does |
|---|---|---|
EXPORT_TARIFF | 0 | What the grid pays per exported unit. When set, values show as a range. See Accuracy and savings |
CURRENCY | ₹ | Currency symbol, e.g. $, €, £ |
LOCALE | en-IN | Number and date formatting, e.g. en-US, de-DE |
TIMEZONE | Asia/Kolkata | IANA timezone of your plant, e.g. Europe/Berlin |
SITE_LAT / SITE_LON | plant's saved location | Your roof's coordinates for weather-based health checks, e.g. 28.6139 / 77.2090. Only needed if your ShineMonitor plant has no location, or to be more exact |
SYSTEM_KWP | panels × watts from the datalogger | Panel size in kWp for per-kW figures |
GRID_VOLTAGE | 230 | Nominal grid voltage for the grid check, e.g. 120, 220, 240 |
GRID_FREQUENCY | 50 | Nominal grid frequency, 50 or 60 |
TELEGRAM_LINK | none | Connect code from the Helio Solar bot for the daily alert |
TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID | none | Your own Telegram bot instead |
CRON_SECRET | none | Optional: only Vercel's scheduler can then trigger the daily alert |
APP_URL | your Vercel production address | The dashboard link at the end of each alert, if you use a custom domain |
NEXT_PUBLIC_TELEGRAM_CONNECT_URL | https://helio.rishishah.in/telegram | Where Connect Telegram points, for forks that run their own relay |
ALERT_ONLY_ISSUES | false | true sends the alert only on days with something to check |
WEATHER | on | Set to off to never call Open-Meteo. Health then compares raw output only |
SHINE_PLANT_ID | first plant | Only for accounts with several plants: the API plant id to show |
NEXT_PUBLIC_BRAND_NAME | Rishi Shah | Name in the footer credit |
NEXT_PUBLIC_BRAND_URL | https://rishishah.in | Link for the footer credit |
NEXT_PUBLIC_PROJECT_URL | https://helio.rishishah.in | "About Helio" link on the demo page |
NEXT_PUBLIC_REPO_URL | https://github.com/byrishi/helio | GitHub links in the app |
Changing rates without redeploying
TARIFF, EXPORT_TARIFF and CURRENCY are the defaults. Anyone signed in can override them from What it's worth → Edit rates on the dashboard. That choice is saved in their browser only, so each phone can use its own rates, and Reset goes back to the defaults.
Advanced
Only change these if ShineMonitor changes something or your account lives on a vendor-specific portal.
| Variable | Default | Notes |
|---|---|---|
SHINE_BASE_URL | https://web.shinemonitor.com/public/ | API endpoint |
SHINE_COMPANY_KEY | ShineMonitor web portal key | Vendor portals may use their own |
SHINE_SUFFIX | empty | Extra query parameters on every request. Never add source=1, which targets the battery-storage platform and returns ERR_NOT_FOUND_USR for solar accounts |
Example .env.local
SHINE_USER=MyName123
SHINE_PASS=••••••••
DASH_USER=family
DASH_PASSWORD=••••••••••••
AUTH_SECRET=3f9c…
TARIFF=7.5
EXPORT_TARIFF=2.25
CURRENCY=₹
TIMEZONE=Asia/Kolkata
Custom domain
- Vercel → Project → Settings → Domains → add e.g.
solar.yourdomain.com. - At your domain provider, add the record Vercel shows (usually a
CNAMEtocname.vercel-dns.com). - HTTPS is issued automatically within a few minutes.
Share with family
- Send the link and the
DASH_USER/DASH_PASSWORDprivately, never in a group. - iPhone: Safari → Share → Add to Home Screen. Android: Chrome → ⋮ → Add to Home screen.
- Sign-in lasts 30 days per device. To sign everyone out, change
AUTH_SECRETand redeploy.
Updating
One-click deploys create a copy of the repo, so updates aren't automatic:
git clone https://github.com/<you>/helio.git && cd helio
git remote add upstream https://github.com/byrishi/helio.git
git pull upstream main
git push # Vercel redeploys on push
Watch the repo (Watch → Custom → Releases) to hear about new versions.
Something wrong or unclear? Edit this page on GitHub