Skip to content
SolutionsAsServicePublic

About

mostly random ESP stuff, off grid focus

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Homestead 2.0

Small tools and sourced numbers for running a homestead: code for the workshop's boards, and reference tables for the wood pile, the garden, the compost and the coop. Browse it in the site/ folder (published at homestead.shadw.app once deployed).

Drawer What is in it Where
Code 55 ESP32 and Arduino sketches (54 listed on the site), each improved in a second pass and read twice, none compiled sketches/<group>/<name>/<name>.ino
Wood 18 firewood species by heat value (SDSU Extension) and 6 natural finishes (the repository owner's own sheet, unsourced) data/woodshop/
Garden 45 vegetables (Missouri Extension), 26 germination soil temperatures (Alabama Extension), 38 seed storage lives (Colorado State Extension), 17 fruit and nut trees (Oregon State Extension) data/garden/
Soil 26 compost materials and their C:N ratios from two sources that differ (Cornell, University of Illinois Extension) data/soil/
Coop 17 backyard chicken housing figures from two sources that differ (University of Maryland, Oregon State) data/coop/
Kitchen 15 safe cooking temperatures (Cornell Cooperative Extension) and 49 refrigerator and freezer storage times (University of Minnesota Extension) data/kitchen/

Layout

sketches/<group>/<name>/<name>.ino   the Arduino/ESP32 sketches, one folder each (11 groups), + sketches/secrets.example.h
data/<topic>/*.yaml                  sourced reference tables (a verbatim quote per figure)
review/                              groups.json and findings/<group>.json: the read-through of every sketch
src/ static/ site/                   the SvelteKit front end; site/ is its committed output
tools/                               audit, figure checks, sketch lint, dataset fetcher, secrets setup, social-card script
docs/                                design log, carry-forward notes, panel reports and screenshots

Data

Each YAML file lists its sources and gives every figure a verbatim quote from the page it came from. python3 tools/fetch_datasets.py rebuilds the nine extension datasets by fetching those pages and fails if a quoted line or name is not on the page (needs pdftotext for the Illinois PDF). The numbers apply to the region of their source. They are reference figures, not advice.

Code

  1. Clone, then run python3 tools/setup_secrets.py and fill in the secrets.h files it creates (Wi-Fi and API keys never live in a sketch).
  2. Install the ESP32 board package and the libraries a sketch lists, open its folder in the Arduino IDE, upload, serial monitor at 115200 baud.

Not every sketch has been compiled or run on hardware; the review in site/review.html was a read-through.

The site (SvelteKit)

The front end is a SvelteKit project (Svelte 5, @sveltejs/adapter-static) that prerenders every page to plain files in site/, which is committed so Shadw serves it with no build step (vercel.json, fluid.json and site/vercel.json follow the standard).

npm install
npm run dev          # develop at http://localhost:5173
npx vite build       # prerender to site/ (commit the result)
python3 -m pip install pyyaml
npm run audit        # tools/audit.py (palette, links, ids, JSON-LD, secrets, Shadw files) + tools/check_figures.py (every printed figure)
  • src/routes/(site)/: the pages; src/lib/components/: the cabinet, plate, board and sketch card; src/lib/pixel.js: the 5 x 7 pixel font and the drawings made from it; src/lib/server/data.js: reads the sketches, the reviewers' findings (_src/review/*.json), the groups and the YAML tables at build time.
  • static/ is copied into site/ as is (stylesheet, favicon, og.png, vercel.json). site/ is generated: edit src/ and static/, then rebuild.
  • The two interactive pages (the sketch table and the garden table) hydrate and filter in Svelte; every other page ships no JavaScript.
  • og.png comes from the /og-card page: node tools/og.cjs with the preview server running (see the file).

MIT licence. See CONTRIBUTING.md.

About

mostly random ESP stuff, off grid focus

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages