Skip to content

About

Dashboard Code for MT Mesonet

Resources

Stars

2 stars

Watchers

4 watching

Forks

Repository files navigation

The Montana Mesonet Dashboard

Weather and soil data from one Montana Mesonet station.

https://mesonet2.climate.umt.edu/dash/

Run it

The app is in web/. The dev server proxies the API. Open http://localhost:5174/mesonet-dashboard/.

cd web
npm ci
npm run dev

Deploy

.github/workflows/deploy-web.yml publishes web/ to GitHub Pages on a push to main. The Mesonet host proxies /dash/ to Pages. Cutover: change MESONET_ORIGIN in web/src/core/config.ts and the CSP connect-src.

URL parameters

The section is the hash: #now, #charts or #about.

Parameter Values What it does
s station id, e.g. aceabsar Opens that station
units us, si Display units
theme dark, light, high-contrast Theme
v variable or Ag tool id, e.g. air_temp, gdd Opens that chart
from, to YYYY-MM-DD Chart window
agg hourly, daily, raw Chart interval
cmp 1 Opens Compare
dl 1 Opens Download

Every key is in web/src/core/url-schema.ts.

Data

Workflows rebuild normals/ weekly with calc_normals.R, and one-pagers.json every 3 hours with get_pager_urls.py.

The retired Python Dash app is in app/, with the root Dockerfile. It still serves mesonet.climate.umt.edu/dash/ until the cutover.

Tests

cd web
npm run typecheck
npm run lint
npm test
npm run verify

.github/workflows/web-check.yml runs them on pull requests.

Kit

mco-web-style 1.0.0. Design rules: mco-web-style/HOUSE-STYLE.md

About

Dashboard Code for MT Mesonet

Resources

Stars

2 stars

Watchers

4 watching

Forks

Used by

Contributors

Languages