YOUR OWN SILO IN THE MESH
=========================

This folder runs one silo on your computer -- Windows, Mac or Linux. It
joins the other silos over the internet: it trades, swaps migrants and
builds relations with them. Your silo, its save and its dashboard all stay
on your computer.

Windows uses the .bat files, Mac and Linux the .command files. They do
the same things and share one settings file, SETTINGS.txt.

ONCE
----
1. Install Python 3 (the newest is best; 3.11 or later is recommended,
   and 3.9 is the oldest that works).
   Windows: from https://www.python.org/downloads/ -- on the installer's
            first screen tick "Add python.exe to PATH".
   Mac:     from https://www.python.org/downloads/ (the macOS installer).
   Linux:   usually already there. If not: sudo apt install python3
            (or your distribution's own package). For the editor also:
            sudo apt install python3-tk
2. Unzip this folder somewhere it can stay, e.g. Documents/SiloRemote.
3. SETTINGS.txt needs your silo letter and the hub's address, and your
   silo needs its key to the mesh: mesh_key.json, from your host (in a
   zip -- put the file in this folder, next to SETTINGS.txt). If your
   host sent you this folder they're already there; if you downloaded
   it from the website, email rgamingmoments@gmail.com to get them.
   Open SETTINGS.txt with any text editor (Notepad, TextEdit...) to
   fill them in or check. Don't share the key: anyone with a copy can
   check in as your silo.
4. Mac only, the first time: macOS blocks files downloaded from the
   internet. Right-click (or Control-click) 1_START_MY_SILO.command and
   choose Open, then Open again. Do the same once for each .command file
   you use. (Or, once, in Terminal:  xattr -dr com.apple.quarantine
   followed by a space and this folder dragged into the window, then Enter.)
   Linux: run them from a terminal in this folder, e.g.
       ./1_START_MY_SILO.command
   (if it says "permission denied": chmod +x *.command  first).

EACH TIME
---------
1. Start 1_START_MY_SILO (.bat or .command). The first time it founds a
   new silo. You should soon see a line like
       Mesh hub: connected to http://... -- 22 other silo(s) in the mesh.
   in green. Yellow "can't reach" means the hub is offline or the address
   or password is wrong -- your silo keeps running on its own and joins
   when it can.
   If Windows asks about the firewall, "Allow" is fine (private networks).
2. Start 2_START_MY_DASHBOARD. Your browser opens http://localhost:8899
   -- the dashboard, mesh map, newsletter and more.
3. To stop: close the windows (or press Ctrl+C in them). Nothing is lost;
   next time it carries on.

The silo runs only while its window is open. One simulated day is about
50 seconds.

ALSO HERE
---------
3_LOOKUP         look up anyone in your silo (type "help").
4_EDITOR         the editor (changes apply on the next day).
6_RESET_MY_SILO  start over from day 1 with a new colony (close the silo
                 and dashboard first; the old one is moved aside, not
                 deleted).
7_UNDO_UPDATE    go back to the program files from before the last update
                 (close the silo and dashboard first).
8_REMOTE_SNAPSHOT  when something isn't right: tests the link to the hub
                 and packs one zip (snapshots folder) to send your host.
                 No password, addresses or messages go in it.
9_RESTORE_MY_SILO  if your silo says its save is damaged (after a power
                 cut, say): puts it back from its newest good backup,
                 after you type YES (close the silo first).

UPDATES FROM THE HUB
--------------------
When your host has a newer version, your dashboard shows "Update
available" with an Update button. Nothing changes until you press it.
1. Press Update. The new files download at your silo's next sync (within
   a minute), over the internet or Reticulum. The notice says when they're
   ready.
2. Close the dashboard and the silo window, then start 1_START_MY_SILO:
   it installs the update first ("Update installed: ..."), then starts
   your silo where it left off. Then start 2_START_MY_DASHBOARD.
Your save and SETTINGS.txt are never touched. If something seems wrong
afterwards, 7_UNDO_UPDATE puts the old files back.
(Updates are signed by your host's hub -- with the key's own check, or
the mesh password -- so only that hub can send them.)

Chess against your residents (optional), in a Command Prompt / Terminal:
    Windows:     py -m pip install chess
    Mac / Linux: python3 -m pip install chess
then restart the dashboard.

Keep all the files together; don't rename them. Your silo's save is
silo_<letter>_state.json -- back it up if you like.

RETICULUM (OPTIONAL BACKUP)
---------------------------
Normally your silo reaches the hub over the internet (HTTP). Reticulum is
a second, separate way in: if HTTP can't get through, your silo tries
Reticulum instead, and goes back to HTTP when it can. You don't need it to
play; set it up only if your host asks you to.

1. Put the hub's Reticulum address (a long code your host gives you) in
   SETTINGS.txt:   RNS_HUB=1a2b3c...
2. Run 5_SETUP_RETICULUM once. It installs Reticulum and writes its
   settings in the "reticulum" folder here. (It doesn't touch any other
   Reticulum setup on your computer.)
3. Start your silo as usual. You'll see
       Starting Reticulum ...
       Mesh hub backup: Reticulum, hub address 1a2b3c...
   and later, only if HTTP fails, a purple line:
       Mesh hub: reconnected over Reticulum (HTTP unreachable).
   Green lines are HTTP, purple Reticulum, yellow means no way through.

To stop using it, empty RNS_HUB in SETTINGS.txt (RNS_HUB=).

Copyright (c) 2026 Ken Bernard, InyoSys. MIT License: see LICENSE.
