baldav/tools/brouter-web/README.md
4aiman 99cd4c8d30 Scrub location/identity: home city name and external mirror IP → placeholders
Remove the home-city name from docs/comments/UI strings and the external
mirror IP (WAN) from code, docs and the Android cleartext allowlist, replacing
the IP with mirror.invalid (set the real host locally, uncommitted). LAN mirror
and routing keep working; the WAN fallback needs the real host set. Generic
big-city map presets are kept (not identifying).
2026-09-10 00:55:45 +03:00

21 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# BRouter-Web на зеркале BalDav
Статический фронтенд nrenner/brouter-web 0.18.1, развёрнут на роутере (Keenetic uhttpd :88):
`/opt/share/www/brouter-web/`. Смотрит на свой RouteServer (ПК, systemd brouter.service, :17777).
## Файлы кастомизации (кладутся рядом с распакованным brouter-web)
- `config.js` — host RouteServer (LAN 192.168.1.18:17777 / WAN mirror.invalid:17777), профили с зеркала,
базовые слои (ÖPNV дефолт, CARTO Dark «needs key» и т.д.), центр — опорная точка, профили trekking/shortest.
- `baldav-custom.css` + `baldav-custom.js` — подключены в index.html после `dist/brouter-web.js`:
тумблер день/ночь (☾/☀) в тулбаре → тёмная карта (invert только слой тайлов) + тёмная правая панель;
авто-простановка нужных POI-оверлеев один раз (флаг localStorage `baldav_bw_overlays_v1`).
## Развёртывание
1. Скачать `brouter-web.<ver>.zip` (github nrenner/brouter-web), распаковать.
2. Положить туда `config.js`, `baldav-custom.css`, `baldav-custom.js`.
3. В `index.html` после `<script src="dist/brouter-web.js"></script>` добавить:
`<link rel="stylesheet" href="baldav-custom.css" />` и `<script src="baldav-custom.js"></script>`.
4. Скопировать всё в докрут веб-сервера роутера. Доступ: http://192.168.1.1:88/brouter-web/ (+ WAN :8088).
Данные (сегменты .rd5 + профили) — в `/opt/share/www/brouter/` на роутере и в
`/mnt/02F6E7F6F6E7E7BD/brouter-mirror/` на ПК (для RouteServer).