A lightweight web app and data scraper to plan your base in Dune: Awakening. It helps you pick placeables, track required materials, power, water capacity, and auto-calculate consumables for a target number of days.
- Search and filter placeables by tier
- Deep Desert discount toggle (50%)
- Power Budget widget (available vs used)
- Water Capacity widget
- Apartment Planner (quick-add common materials per apartment)
- Consumables (Auto): enter days, it computes total consumables needed for selected equipment
- Selected items list and required materials summary
- Export/Import your planner state to a JSON file
get_data.py— scraper that buildsitems_data.jsonfrom the community wikibase_calc_v2.html— the calculator UI (loadsitems_data.json)items_data.json— generated data file (created byget_data.py)
- Python 3.9+ (tested with 3.11)
- Packages:
requests,beautifulsoup4
Install packages (optional venv recommended):
python -m pip install --upgrade pip
pip install requests beautifulsoup4- Fetch fresh data from the wiki (recommended for first run):
python .\get_data.py --update- Or reuse/merge existing data without external polling (only merges manual items and ensures minimal consumable items are present):
python .\get_data.pyThis writes items_data.json in the project root.
Serve the folder and open the UI in a browser (so the JSON loads via HTTP):
# Start a simple local server in the project directory
python -m http.server 8000Then open:
- Use search and tier filter to find items; click +/− to adjust counts
- Toggle Deep Desert to apply 50% material discount
- Apartment Planner lets you add per-apartment materials in bulk
- Set "Run equipment for: [days]" and the app auto-calculates needed consumables
- If an item has multiple consumables, the most efficient (longest burn time) is used
- Export state to a dated JSON file or Import it later to continue planning
- Export creates a file like
dune_base_YYYY-MM-DD.jsoncontaining:- Deep Desert toggle, target days, selected item counts, and apartment planner values
- Import loads the same and repopulates the UI so you can tweak further
- The scraper targets Placeables pages and extracts: build cost, power, water capacity, and consumables
- Some items are added/overridden manually (e.g., Pentashield) for completeness
- Consumables can come from tables like "Consumable | Burn Time"; the scraper parses these into
{ Name, Hours }
- Bug reports and feature requests: https://github.com/sylvainsf/dune-base-calculator/issues
- PRs welcome; please include a short description and testing notes
Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) — see LICENSE.