Add a production dashboard
Every minute, the mod diffs the force's production statistics for each
surface against the totals it sent last time (kept in
storage.productionTotals), and sends what was produced and consumed as a
ProductionUpdate.
events-server-web keeps the statistics in ring buffers (1440 minutes and
168 hours), and serves them at
/kafkatorio/data/servers/{id}/production, for a range of game time and
optionally one surface.
The web map has a production page (/servers/{id}/production, linked from
the header) with science packs used per minute (in total and per pack),
production per minute as a line chart, and a searchable table of
everything produced and consumed.
export_building_icons.py now also exports every item and fluid icon and
name (items.json, fluids.json), for the production page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8770a0617b
commit
0e1b315a6d
24 changed files with 1524 additions and 30 deletions
|
|
@ -88,9 +88,11 @@ on `127.0.0.1`, and Kafka isn't exposed at all.
|
|||
WebSocket support is enabled.
|
||||
7. In Factorio, run `/kafkatorio prototypes` and then `/kafkatorio chunks 10` to send the existing
|
||||
map.
|
||||
8. Optional: building icons. The web map's 'Building icons' layer uses icons and building sizes
|
||||
exported from a Factorio client that has the same mods as the server (they're not in this repo,
|
||||
since they belong to Wube and the mod authors). With the game closed, run
|
||||
8. Optional: icons and names. The web map's 'Building icons' layer, the research page and the
|
||||
production page use icons, building sizes, the technology tree and in-game names, exported from
|
||||
a Factorio client that has the same mods as the server (they're not in this repo, since they
|
||||
belong to Wube and the mod authors). Without them, those pages show less, or nothing. With the
|
||||
game closed, run
|
||||
|
||||
```terminal
|
||||
factorio --dump-data
|
||||
|
|
@ -100,4 +102,5 @@ on `127.0.0.1`, and Kafka isn't exposed at all.
|
|||
scp -r ./icons root@<unraid>:/mnt/user/appdata/kafkatorio-platform/
|
||||
```
|
||||
|
||||
Re-export them when the mods change.
|
||||
Re-export them when the mods change. If [Pillow](https://pypi.org/project/pillow/) is installed,
|
||||
the (large) technology icons are shrunk.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue