SILO v6.32.1

Silo Simulation

The Tools

Everything that runs the silos, watches them, looks inside them, changes them and keeps them healthy: 63 tools, what each one does, where it runs, how to start it, and what it looks like running. The Project Overview explains the silos themselves.

Running the meshWatchingLooking things upChanging a siloChecking & fixingPictures & AIGadgetsPublishing
PART 1

Running the mesh

Starting the silos and joining them up.

Silo windows

silo_simulation.py · Resume_mesh_A_to_U.bat · start_mesh.bat
HUB PC

Each silo runs in its own console window, a day every minute, saving after every simulated day. The window prints the day's numbers and what happened: shopping, jobs, rumours, breakdowns, pets, births and deaths. Close it with Ctrl+C (closing it with the X leaves a lock file: see Clear silo locks).

HOW TO STARTResume_mesh_A_to_U.bat (all 21 silos, each in its own window)
a fresh start: start_mesh.bat
Silo windowsSilo C's window, picking up where it left off.

Mesh hub

mesh_hub.py · start_mesh_hub.bat · start_mesh_hub_reticulum.bat
HUB PC

Lets silos on other computers (V and W) join the mesh over the internet: it passes on their deliveries, migrants, letters and messages, mirrors the mesh for their dashboards, sends them program updates, and answers the Pico gadgets. The Reticulum version adds a backup way in when HTTP can't get through.

HOW TO STARTstart_mesh_hub_reticulum.bat (or start_mesh_hub.bat, not both)
with Silo A's dashboard: start_hub_and_silo_A_web.bat

Remote silo kit

silo_kit/ · SiloRemote_latest.zip
V AND W

Everything a silo on another computer needs, in one zip from the website. Numbered start files do the rest: start the silo, start its dashboard, the lookup, the editor, set up Reticulum, reset the silo, or undo the last update. Windows (.bat) and Mac (.command) both.

HOW TO STARTUnzip, set the hub's address in SETTINGS.txt, then 1_START_MY_SILO and 2_START_MY_DASHBOARD
Remote silo kitBuilding the kit on the hub (update_landing_page.bat does it).

Updates and undo

silo_update.py · undo_remote_update.bat · 7_UNDO_UPDATE
V AND W

V and W fetch new program files from the hub when they start, keeping the old ones in update_backup. If an update goes wrong, undo puts the old files back. The save is never touched.

HOW TO STARTAutomatic at start-up. To undo: close the silo and its dashboard, then undo_remote_update.bat

Clear silo locks

clear_silo_locks.bat
HUB PC

A silo refuses to start while its lock file says it's already running. Closing a window with the X leaves the lock behind; this deletes the leftover locks so the silos start again.

HOW TO STARTClose all silo windows, then clear_silo_locks.bat
PART 2

Watching

Seeing what the silos are doing, live.

Web dashboard

silo_web.py · web/index.html
EVERY SILOREAD-ONLY

One silo at a glance in a browser: the colony, air, water, food and power, the ecosystem, livestock, shops, the president, safety and unrest, and the latest events, with a live picture of the silo. The menu leads to every other page below. The public one is the address of your ngrok tunnel.

HOW TO STARTstart_hub_and_silo_A_web.bat on the hub; 2_START_MY_DASHBOARD on V and W
then open the address it prints
Web dashboardSilo A's dashboard.

Desktop visualizer

silo_visualizer.py
EVERY SILOREAD-ONLY

A live picture of one silo in its own window: the sky and weather over the surface, the robots and wildlife, people on the residential deck and in jail, the crops and pens, the reactor, reservoir and gauges, and the latest news. Day turns to night with the silo's own clock; storms, hail, floods and festivals are drawn as they happen.

HOW TO STARTpython3 silo_visualizer.py --state-file silo_a_state.json
Desktop visualizerSilo A by day.

Dual view

launch_dual_view.py
HUB PCREAD-ONLY

Opens two silos' visualizers side by side in one step (A and B unless told otherwise), optionally with a GUI editor for each. Ctrl+C in its window closes them all.

HOW TO STARTpython3 launch_dual_view.py
python3 launch_dual_view.py --with-editors
Dual viewSilos A and B together.

3D silo

web/silo3d.html
EVERY SILOREAD-ONLY

The silo as a 3D model you can turn and zoom around, from the surface down to the reactor.

HOW TO STARTDashboard menu: Silo in 3D
3D silo

Mesh map

web/mesh_map.html
EVERY SILOREAD-ONLY

Every silo on one map, coloured by how it's doing, with what's moving between them.

HOW TO STARTDashboard menu: Mesh map
Mesh map

Silo Mesh

web/monitor.html
EVERY SILOREAD-ONLY

A table of all the silos side by side: population, food, water, medicine, power, alerts and who's up, for spotting the one in trouble.

HOW TO STARTDashboard menu: Silo Mesh
Silo Mesh

Stock Market

web/ticker.html
EVERY SILOREAD-ONLY

Each silo's fund price, its moves and its debts to other silos, as a running ticker and charts.

HOW TO STARTDashboard menu: Stock Market
Stock Market

Newsletter

silo_newsletter.py · web/newsletter.html
EVERY SILOREAD-ONLY

The silo's own newspaper, written from what really happened: the news, births and deaths, community notes and pets.

HOW TO STARTDashboard menu: Newsletter
Newsletter

Activity log

silo_a_log.txt · the dashboard's Log page
EVERY SILOREAD-ONLY

The daily journal every silo writes: the full numbers and every event of each day. The dashboard shows the newest days; the file keeps them all.

HOW TO STARTDashboard menu: Activity log, or open silo_a_log.txt
Activity log

Network traffic

silo_traffic.py · web/traffic.html
HUB PCREAD-ONLY

What's travelling between the silos and the hub, over HTTP and Reticulum: how much, how often, and anything that failed.

HOW TO STARTOn the hub PC only: the dashboard's address followed by /traffic
Network traffic

History charts

plot_history.py
HUB PCREAD-ONLY

Plots a silo's history file (population, food, happiness and more, day by day) as charts. Needs matplotlib and pandas.

HOW TO STARTpython3 plot_history.py silo_a_history.csv
PART 3

Looking things up

Finding people, families and records.

Lookup tool

silo_query.py · silo_lookup.bat · web/lookup.html
EVERY SILOREAD-ONLY

Look up anyone in any silo: their life story, family, money, health, pets and portrait; or a silo's jobs, shops, jail, couples, pets, market and more. Type a name or a number, or press the view buttons.

HOW TO STARTDashboard menu: Lookup tool
in a window: silo_lookup.bat, then e.g. A #1621
Lookup toolA person's page on the dashboard.

Lookup in a window

silo_query.py · silo_lookup.bat
EVERY SILOREAD-ONLY

The same lookup at a command prompt, for when the dashboard isn't running.

HOW TO STARTsilo_lookup.bat
Lookup in a window

Family tree

silo_family.py · web/family.html
EVERY SILOREAD-ONLY

One person at a time: their parents, partner, children and step-children, with pets and portraits. Click anyone to move to them; the whole family is behind a button. The dead are greyed out.

HOW TO STARTDashboard menu: Family trees, or from a person's lookup page
Family tree

Mesh database

silo_db.py · database_page.bat · silo_database_queries.json
HUB PCREAD-ONLY

A copy of the important data in one SQLite file (silo_database.db), kept up to date by the hub every 10 minutes: everyone the saves remember (alive, dead, moved away), every life story line and disaster, each silo's figures day by day, and each time a computer went quiet or came back. The saves stay the real record; delete the file and the hub builds it again. The page (Datasette, free and open source, installed the first time) lets you browse, filter and sort every table, save it as CSV, and ask 42 ready-made questions under four headings (people and families, life and death, crime and justice, the silos; and the outages) or your own in SQL.

HOW TO STARTdatabase_page.bat, then http://localhost:8001
fill it without the hub: python3 silo_db.py
Mesh databaseSomeone's life story, across the silos they lived in.

Silo Records (the website)

database.html · make_public_db.py · silo_public.db.gz · feed.xml · sqljs/
READ-ONLY

The records on kinworx.net for anyone: what has happened lately in the silos (also as an RSS feed, feed.xml, for feed readers), find someone and see their card (age, work, family, each a link) and life story, 39 questions as buttons under four headings, or your own in SQL. A small copy of the mesh database (people, life stories, each silo a day a month; not the computers) that runs in the visitor's own browser, so the hub is never asked and nothing goes through the tunnel. update_landing_page.bat makes a fresh copy.

HOW TO STARTOpen database.html on the website (the Silo Records button on the home page)
fresh: update_landing_page.bat, then upload what it names
Silo Records (the website)Someone's card and life story, on the website.

SiloLook messages

silo_messages.py · silo_lxmf.py · web/messages.html
EVERY SILO

The mesh's email: messages between silos and to the outside world over LXMF, with the Sysop and past contacts at the top of the To list.

HOW TO STARTDashboard menu: SiloLook Messages
SiloLook messages

Letters

silo_letters.py · web/letters.html
EVERY SILOREAD-ONLY

The letters families write each other across silos: news from home, births, deaths and moves.

HOW TO STARTDashboard menu: Letters between silos
Letters

Other dashboard pages

web/flowchart.svg · shops.html · poverty.html · chess.html · scene.html · lookup.html
EVERY SILOREAD-ONLY

The system flowchart of how a silo works; the shops (the Commercial District); people in poverty; deaths and their causes; the Memorial Wall (the dead, with their portraits); the robots list; chess against a sim; the scene picture; and the LLM narration log.

HOW TO STARTDashboard menu
Other dashboard pagesThe flowchart (make_flowchart.py draws it).

Deep Dig

silo_dig.py · web/drill.html
EVERY SILOREAD-ONLY

How a silo grows: when it's crowded and healthy, and it's been 25 years since its last new deck, the council votes to dig one out of the bedrock. A drafted crew runs a drill that eats power and parts and stops for gas, jams in the granite and floods (which can kill); then the engineers build the deck out, and its 10% more room is given out over a year. The dashboard's Deep Dig card follows it, and its 3D view looks straight down the shaft: the drill turns only while they really dig.

HOW TO STARTDashboard: the Deep Dig card, then Watch the drill in 3D (/drill)
Deep Dig
PART 4

Changing a silo

The sysop's tools. They change saves, so close the silo first unless it says otherwise.

GUI editor

silo_editor_gui.py · silo_gui_editor.bat
EVERY SILOSYSOP: CHANGES THINGS

Every person in a silo in one table: search, sort, add, edit or remove anyone, and fix repeated names. Edit Colony Stats / Disasters changes the silo itself and triggers any crisis.

HOW TO STARTsilo_gui_editor.bat A (or type the letter when asked)
GUI editor

Web editor

silo_webedit.py · web/editor.html · SET_EDITOR_PASSWORD.bat
HUB PCSYSOP: CHANGES THINGS

The GUI editor in a browser, from anywhere, behind a password: choose any silo on the hub, search its people, open a profile and change it, add or remove someone, see the colony overview, and the Controls tab: the colony figures, the Trigger and Clear buttons, shops, grudges and the settings boxes. Every change waits for the silo itself to make it on its next day (it needn't be closed), its save is backed up first, and every login and change is listed. Five wrong passwords and that address waits 15 minutes.

HOW TO STARTSet the password once: SET_EDITOR_PASSWORD.bat on the hub PC; then your dashboard's address + /editor
Web editor

CLI editor

silo_editor.py
EVERY SILOSYSOP: CHANGES THINGS

The editor at a command prompt: show the colony, list, add, edit or remove people, change the stores and trigger any disaster, one command at a time. The crisis files use it.

HOW TO STARTpython3 silo_editor.py --state-file silo_a_state.json colony
python3 silo_editor.py --state-file silo_a_state.json edit-colony --help
CLI editor

Random crisis

Trigger_random_crisis_A_toU.bat · random_crisis_a_to_t.bat
HUB PCSYSOP: CHANGES THINGS

Picks one random crisis for every silo, shows the whole list and asks once before anything happens. A running silo meets its crisis on its next day.

HOW TO STARTTrigger_random_crisis_A_toU.bat

Reactor meltdown

trigger_meltdown_k_to_t.bat
HUB PCSYSOP: CHANGES THINGS

Asks Y or N for each of Silos K to T, shows your picks, and asks once more. Each chosen reactor melts down on its next day.

HOW TO STARTtrigger_meltdown_k_to_t.bat

Add money

silo_add_money.py · add_money.bat
HUB PCSYSOP: CHANGES THINGS

Adds money to every silo's treasury (or the ones named). A running silo picks it up as it saves.

HOW TO STARTadd_money.bat
Add money

Add unemployed adults

silo_add_unemployed.py · add_unemployed_adults.bat
HUB PCSYSOP: CHANGES THINGS

Adds a few job-seeking adults to the silos named, for a silo short of workers.

HOW TO STARTadd_unemployed_adults.bat
Add unemployed adults

Refound a silo

silo_refound.py · refound_silo.bat
HUB PCSYSOP: CHANGES THINGS

For a silo past saving: its people move to the neighbours and new settlers start it again. It asks for yes first; anything else does nothing.

HOW TO STARTrefound_silo.bat
Refound a siloAnswering n: nothing done.

Reset silos

reset_all_silos.py · reset_all_silos.bat · reset_silos_a_to_j.bat
HUB PCSYSOP: CHANGES THINGS

Starts silos over from day one (backed up first). --list only shows what it would reset.

HOW TO STARTreset_all_silos.bat, reset_silos_a_to_j.bat, reset_silos_k_to_t.bat
Reset silos
PART 5

Checking & fixing

Keeping the program and the saves healthy.

Tests

tests/run_tests.py · RUN_TESTS.bat · RUN_ALL_CHECKS.bat
HUB PCFOR WHOEVER MAKES CHANGES

Every test suite, or the ones named. RUN_ALL_CHECKS runs the tests, the health check, the record check and a snapshot one after another, with no pauses (about half an hour). Some tests open a visualizer window for a moment.

HOW TO STARTRUN_TESTS.bat or RUN_TESTS.bat pets
RUN_ALL_CHECKS.bat
Tests

Health check

silo_healthcheck.py · run_healthcheck.bat
HUB PCREAD-ONLY

Runs copies of the silos forward (a year by default) and reports what went wrong: deliveries, poverty, sickness, strikes, shortages, the market. The real saves are untouched.

HOW TO STARTrun_healthcheck.bat
Health check

Record check

silo_recordcheck.py · run_recordcheck.bat
HUB PCREAD-ONLY

Checks the saves' records add up: people, families, money, jobs and the archive of the dead. Someone alive in two silos? Fix duplicates (below) sorts it out.

HOW TO STARTrun_recordcheck.bat
Record check

Restore a silo

silo_restore.py · restore_silo.bat
HUB PCSYSOP: CHANGES THINGS

Lists each silo's backups (made at start-up and on a timer) and puts one back. Afterwards it checks whether the restored save brought back anyone who had since moved to another silo (see Fix duplicates).

HOW TO STARTClose the silo, then restore_silo.bat
Restore a silo

Fix duplicates

fix_duplicates.py · fix_duplicates.bat
HUB PCSYSOP: CHANGES THINGS

Finds anyone alive in two silos at once (someone who moved from one silo to another, but the silo they left still has them, after its save was restored, copied back or lost) and works out which copy is the leftover. It looks first and asks before fixing; the leftover is then marked as having moved, letting go of any shop, seat or money it held there. Skips any silo still running, and backs up each save it changes (.before_fix.json).

HOW TO STARTClose the silos it names, then fix_duplicates.bat
Fix duplicates

Delete old logs

silo_clean_logs.py · delete_old_logs.bat
HUB PCSYSOP: CHANGES THINGS

Trims the activity logs to the last 365 simulated days (by default) so they don't grow for ever.

HOW TO STARTdelete_old_logs.bat
Delete old logs

Mesh snapshot

collect_mesh_snapshot.py · collect_mesh_snapshot.bat
HUB PCREAD-ONLY

Packs every save, history, recent log and the mesh folder into one zip, for analysis.

HOW TO STARTcollect_mesh_snapshot.bat (the zip goes in snapshots)
Mesh snapshot

Remote silo snapshot

collect_remote_snapshot.py · 8_REMOTE_SNAPSHOT.bat / .command
V AND WREAD-ONLY

On V or W: tests the link to the hub there and then (HTTP and Reticulum), shows which day each lookup copy holds against where that silo really is, the last update and the dashboard's traffic, and packs it with the silo's save and recent log into one zip to send for a look. No password, addresses or messages go in it.

HOW TO START8_REMOTE_SNAPSHOT in the silo's folder (the zip goes in snapshots)
Remote silo snapshotA test silo whose copy of Q is 1,423 days old.
PART 6

Pictures & AI

Stable Diffusion and the local language model.

Portraits

silo_portraits.py · portrait_samples.py · PORTRAIT_SAMPLES.bat
HUB PC

ID-badge photos of the silos' people, painted by Stable Diffusion when the machine is idle (or when a person's page asks), shown on the lookup and family tree. Old unseen portraits are shrunk and cleared. The samples tool paints a few to check the look.

HOW TO STARTDashboard flag --scene-images-url; samples: PORTRAIT_SAMPLES.bat
PortraitsSamples from the Stable Diffusion machine.

Scene pictures and scene test

silo_scene.py · scene_test.py · SCENE_TEST.bat
HUB PC

The dashboard's picture of what's happening (a meltdown, unrest, rain in winter), painted by Stable Diffusion. The scene test is a page for trying any scene four at a time, with its prompt and settings.

HOW TO STARTSCENE_TEST.bat, then open http://localhost:8898
Stable Diffusion must run with --api

Fine-tuning file

make_finetune.py · MAKE_FINETUNE.bat
HUB PCFOR WHOEVER MAKES CHANGES

Turns the project overview into questions and answers for teaching a local model about the silos.

HOW TO STARTMAKE_FINETUNE.bat
Fine-tuning file

LM Studio import

IMPORT_MODEL_LMSTUDIO.bat
HUB PC

Copies the silo's model into LM Studio, which narrates Silo A's days.

HOW TO STARTIMPORT_MODEL_LMSTUDIO.bat, then lms load
PART 7

Gadgets

Small screens and devices that show the mesh. Each one: the real one (its photo), and the drawing the dashboard makes of it, live, on its own page.

Pico status gadget

pico_gadget/ · silo_gadget.py
HUB PCREAD-ONLY

A Raspberry Pi Pico 2 W with a 3.5-inch touch screen: six screens (silo, mesh, sky, news, people, PCs) and an RGB light for the worst alert anywhere. It only reads.

HOW TO STARTSet up with pico_gadget/HOW_TO_SET_UP.txt; its page: dashboard menu Pico Gadget
The real Pico status gadgetThe real one.
Pico status gadget, drawnAs the dashboard draws it.
See it live ↗

Desk unit

pico_gadget/desk.py · silo_desk.py
HUB PCREAD-ONLY

A second Pico: a silo's SiloLook mailbox (read, reply, delete), a desk clock with the real weather where it is, the stock ticker, and the PCs screen.

HOW TO STARTROLE = "desk" in the Pico's settings.py
The real Desk unitThe real one.
Desk unit, drawnAs the dashboard draws it.

Mesh watchdog (Raspberry Pi)

pi_node/ · pi_watchdog.py · install_pi_node.sh
READ-ONLY

An always-on Raspberry Pi Zero W that isn't a silo: a Reticulum relay for the mesh, a message store, and a watchdog that writes to the sysop over LXMF when the hub or a silo goes quiet, when something serious happens in a silo, every morning, and every two hours (never at night), at home or away. Its own monitor shows what it sends and how far each message got, and its own health; reply "status" for a summary any time. If it stops reporting for 15 minutes, its page turns red and the hub writes to the sysop.

HOW TO STARTCopy pi_node to the Pi, run bash install_pi_node.sh, then follow pi_node/HOW_TO_SET_UP.txt; its page: dashboard menu Mesh Watchdog
The real Mesh watchdog (Raspberry Pi)The real one.
Mesh watchdog (Raspberry Pi), drawnAs the dashboard draws it.
See it live ↗

Silo status tower (Arduino)

arduino_tower/ · silo_tower.py · silo_tower.ino
READ-ONLY

An Arduino Uno R3 with an LED strip as an alert light for the mesh: lights 1 to 24 are silos A to X. Green fine, yellow trouble, red serious, a fast-flashing red for a meltdown or a seal emergency, off for a silo not running; a new problem blinks for a minute (reds and yellows take turns). A small program on the PC it's plugged into reads the hub every 5 seconds and sends it the colours over USB; blue: that PC can't reach the hub. It dims at night, and reports to the hub every minute (the Pi watchdog writes to the sysop if it stops).

HOW TO STARTFollow arduino_tower/HOW_TO_SET_UP.txt, then silo_tower.bat; its page: dashboard menu Silo Tower
The real Silo status tower (Arduino)The real one.
Silo status tower (Arduino), drawnAs the dashboard draws it.
See it live ↗

Pocket tower (Pico 2 W)

pocket_tower/ · pocket.py · tower_rules.py
READ-ONLY

The silo tower in your pocket: a Pico 2 W with Waveshare's Pico-LCD-1.14 plugged on top (a small screen, a joystick and two buttons), no wires. Silos A to X in the tower's colours and by its rules, blinking for a new problem, all blue when it can't reach the hub; the news slides along the bottom. The joystick picks a silo; A and B step through TOWER, NEWS and PCS. It dims at night.

HOW TO STARTFollow pocket_tower/HOW_TO_SET_UP.txt; its page: dashboard menu Pocket Tower
The real Pocket tower (Pico 2 W)The real one.
Pocket tower (Pico 2 W), drawnAs the dashboard draws it.
See it live ↗

Touch tower (ESP32)

touch_tower/ · touch.py · cyd.py
READ-ONLY

The pocket tower bigger and by touch, on an ESP32-2432S028 (a 2.8-inch touch screen, an RGB LED and a light sensor) in a clear case. Silos A to X, 6 by 4; tap one for its own page; tabs for TOWER, NEWS and PCS. The RGB LED on the back shows the worst problem and flashes for a new one; in a dark room the screen dims.

HOW TO STARTFollow touch_tower/HOW_TO_SET_UP.txt; its page: dashboard menu Touch Tower
The real Touch tower (ESP32)The real one.
Touch tower (ESP32), drawnAs the dashboard draws it.
See it live ↗

Silo pager (ESP32)

esp32_pager/ · pager.py · ssd1306.py · max7219.py
READ-ONLY

An ESP32 on two breadboards with a 0.96-inch OLED and an 8x8 LED matrix. The OLED shows the worst problem in big letters (more than one take turns), the bad and warning counts, people and silos running, and the news sliding along the bottom; all clear: ALL OK and unread Silolook mail. The matrix has a dot a silo (A-H, I-P, Q-X): lit fine, blinking slowly for trouble, fast for serious, dark not running; every 30 seconds the worst problem slides across. It dims at night and shows NO HUB when it can't reach the hub.

HOW TO STARTFollow esp32_pager/HOW_TO_SET_UP.txt (a wiring test first, then the pager); its page: dashboard menu Silo Pager
The real Silo pager (ESP32)The real one.
Silo pager (ESP32), drawnThe four OLED screens, as its code draws them.
See it live ↗

CrowPi silo desk (Raspberry Pi)

crowpi/ · crowpi_silo.py · crowpi_hw.py · crowpi_screen.py · web/desk.html
READ-ONLY

A CrowPi (a Raspberry Pi in a case with a 7-inch touch screen and a board of parts) as a silo desk. The touch screen shows every silo as a tile in the towers' colours, the hub PC's temperature and the news; tap a silo for its page. The 8x8 matrix has a dot a silo; the 4 digits take turns with the time, AL and the silos with alerts, and the hub PC's temperature; the LCD shows the worst problem and the news sliding by; the 16 buttons pick Silos A-P and the arrows step through them. The displays wake when someone is near; at night the matrix is off and the screen off until touched, an emergency still shows. A short soft chirp only if the hub PC runs hot. At home or away, by itself.

HOW TO STARTFollow crowpi/HOW_TO_SET_UP.txt (crowpi_test.py first, then the desk and its screen); its page: dashboard menu CrowPi Desk
The real CrowPi silo desk (Raspberry Pi)The real one.
CrowPi silo desk (Raspberry Pi), drawnIts touch screen, LCD, 8x8 matrix, 4 digits and buttons, as its code draws them.
See it live ↗

The gadgets' pages on the dashboard

web/gadget.html · watchdog.html · tower.html · pocket.html · touch.html · pager.html · crowpi.html
EVERY SILOREAD-ONLY

One page for each gadget, all alike: the gadget drawn live from the same summary the real one reads (the screens work: buttons, joystick, taps), what it does, and the photo of the real one (click for bigger), with the seven pages along the top. The Pico gadget's page installs on a phone as an app. View only.

HOW TO STARTDashboard menu: Pico Gadget, Mesh Watchdog, Silo Tower, Pocket Tower, Touch Tower, Silo Pager, CrowPi Desk
The gadgets' pages on the dashboardA picture of the Pocket Tower's page (click to see it bigger).See it live ↗

Watchdog web page

pi_node/pi_watchdog.py (WEB_PORT)
READ-ONLY

The watchdog's view from the Pi itself, for any computer or phone on the home network, with Status now and Test buttons.

HOW TO STARThttp://the-Pi's-address:8080
Watchdog web page

Board check

pico_gadget/board_check.py
HUB PC

Reports what a Pico board can do (memory, speed, storage, screen redraws, Wi-Fi to the hub, HTTPS), for planning the gadget's upgrades. It changes nothing on the Pico.

HOW TO STARTOpen it in Thonny and press Run (no need to upload it)
PART 8

Publishing

The website and the project's version. For whoever makes changes.

Update docs

update_docs.py · make_codeupdate.py · make_tools_page.py
FOR WHOEVER MAKES CHANGES

Rebuilds docs.html from PROJECT_OVERVIEW.md, the Code Update PDF and this page.

HOW TO STARTpython3 update_docs.py

Landing page and kit

update_landing_page.py · site_version.py · make_silo_kit.py · update_landing_page.bat
FOR WHOEVER MAKES CHANGES

Refreshes the website's population figures and version, builds the remote silo kit, and makes the Silo Records copy (make_public_db.py: silo_public.db.gz, the questions and date in database.html, and its button on the home page). It ends by naming the files to upload.

HOW TO STARTupdate_landing_page.bat (at the end it offers to upload what changed)

Upload the website

upload_site.py · upload_site.bat
HUB PCFOR WHOEVER MAKES CHANGES

Sends the website's files that changed since the last upload to the web server by FTP, into httpdocs then silo as you'd do by hand: the pages, the pictures, the silo kit, codeupdate.pdf, the Silo Records file and the sqljs folder (found from what the pages link to). It lists them first; each goes up under a temporary name and is checked. Encrypted (FTP over TLS) when the server offers it. The password is typed each time and never saved; the server and user name are kept in site_upload.txt, on this PC only.

HOW TO STARTupload_site.bat, or answer Y at the end of update_landing_page.bat
only list: python3 upload_site.py --list; everything: --all

Stamp version

stamp_version.py
FOR WHOEVER MAKES CHANGES

Moves the version on when something V or W gets through Update changes, and notes what changed in each file.

HOW TO STARTpython3 stamp_version.py "what changed" files...

Screenshots for this page

make_tool_shots.py · MAKE_TOOL_SHOTS.bat
HUB PCFOR WHOEVER MAKES CHANGES

Takes a fresh mesh snapshot, takes every screenshot on this page from a copy of it (the silos can keep running), and writes this page again. Windows open and close by themselves for a moment while it works.

HOW TO STARTMAKE_TOOL_SHOTS.bat, then upload tools.html and the tools_shots folder