Almanac
Mother maintains a list of all grids in the world running Mother that are connected via an antenna network. The Almanac is used to track grid locations, status, and other information. It is automatically generated during boot, and updates as a result of certain interactions with other grids.
Note
Grids running Mother will periodically communicate, at which time the Almanac is updated with details specific to each grid.
To immediately refresh the Almanac, you can run the ping
command.
Why Do We Have It?
In order for grids to interoperate seamlessly, it is important for them to store key information about each other. This includes properties like their id, position and speed. Other modules can make use of this for secure communication, and sending remote commands.
Storing Information
By default, the Almanac uses LocalStorage to ensure the positions and information of grids and waypoints are not lost when Mother encounters an error, or the script is rebooted/recompiled. This means that the Almanac is persistent across reboots of the Programmable Block, preventing the loss of important data over time.