Git Commits
dash commits 9
ohnsh/dash-
10:51 pm — John Sherrell <dev@ohn.sh>
next: chart demo now on home route. Add `headless` option to VODView to prevent it from rendering an empty player. Now used whenever there's no video specified in the query string on the home route.
-
9:07 pm — John Sherrell <dev@ohn.sh>
next: alternate implementation of SensorChart in which the server fetches the data and passes a promise down via props. Factor out the UI and provide the different implementations via wrappers SensorChartPromise and SensorChartEffect.
-
6:01 pm — John Sherrell <dev@ohn.sh>
next: fix types so project will build on vercel.
-
5:50 pm — John Sherrell <dev@ohn.sh>
next: move sensor demo up to /scratch/sensor
-
5:48 pm — John Sherrell <dev@ohn.sh>
next: playing with x-axis formatting. Ruled out stateful formatters that detect date changes. This relies on them being called in timestamp order, and it turns out they're not. Also creates stale closure risk.
-
3:40 pm — John Sherrell <dev@ohn.sh>
next: flexible grid layout for charts, bump font-size down, use "none" | "snap125" for `niceTicks` prop to solve most axis issues (they tend to render nice, round numbers).
-
12:25 pm — John Sherrell <dev@ohn.sh>
next: wrap charts in div and render optional title; handle explicit abort signal gracefully to prevent unhandled rejections.
-
5:08 am — John Sherrell <dev@ohn.sh>
next: new demo chart interface at /scratch/recharts/sensor that consumes the new dashd temperature/humidity sensor API and plots the data using Recharts.
-
1:54 am — John Sherrell <dev@ohn.sh>
dashd: Added /sensor prefix to tunnel route config. POST /sensor saves readings to the database, and GET /sensor queries the database. Query parameter loc=location_name limits queries to a specific location (e.g. 'encore_main'), and last=n limits results to the n most recent.