Skip to content

Commit d07e92d

Browse files
itsDNNSclaude
andcommitted
Add FR/ES languages, modularize i18n to JSON, ISP color dots, adjust poll defaults
- Refactor i18n from single Python file to app/i18n/ package with per-language JSON files. Adding a new language now only requires dropping a .json file. - Add French and Spanish translations with region-appropriate ISP lists - Add colored brand dot next to ISP dropdown on setup and settings pages - Change poll interval default from 5min to 15min, max from 1h to 4h Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ef15c0c commit d07e92d

File tree

13 files changed

+712
-367
lines changed

13 files changed

+712
-367
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Click **Test Connection** to verify DOCSight can reach your router. If successfu
249249
| Field | Description | Default |
250250
|---|---|---|
251251
| **ISP** | Your internet provider name (for reports) | - |
252-
| **Poll Interval** | How often to read channel data (seconds) | `300` (5 min) |
252+
| **Poll Interval** | How often to read channel data (seconds) | `900` (15 min) |
253253
| **History Days** | How many days of snapshots to keep (0 = unlimited) | `0` (keep all) |
254254
| **Snapshot Time** | When to save the daily snapshot (server timezone, set `TZ` env var to change) | `06:00` |
255255

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- **Health Assessment**: Automatic traffic-light evaluation with actionable recommendations
3737
- **Setup Wizard**: Browser-based configuration - no .env file needed
3838
- **Settings Page**: Change all settings at runtime, test connections, toggle themes
39-
- **Internationalization**: English and German UI
39+
- **Internationalization**: English, German, French, and Spanish UI
4040
- **LLM Export**: Generate structured reports for AI analysis (ChatGPT, Claude, Gemini, etc.)
4141
- **MQTT Auto-Discovery**: Zero-config integration with Home Assistant
4242
- **Optional Authentication**: Password-protected web UI with scrypt hashing
@@ -81,7 +81,7 @@ Copy `.env.example` to `.env` and edit:
8181
| `MQTT_USER` | - | MQTT username (optional) |
8282
| `MQTT_PASSWORD` | - | MQTT password (optional) |
8383
| `MQTT_TOPIC_PREFIX` | `docsight` | MQTT topic prefix |
84-
| `POLL_INTERVAL` | `300` | Polling interval in seconds |
84+
| `POLL_INTERVAL` | `900` | Polling interval in seconds |
8585
| `WEB_PORT` | `8765` | Web UI port |
8686
| `HISTORY_DAYS` | `0` | Snapshot retention in days (0 = unlimited) |
8787
| `ADMIN_PASSWORD` | - | Web UI password (optional) |

app/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
log = logging.getLogger("docsis.config")
1212

1313
POLL_MIN = 60
14-
POLL_MAX = 3600
14+
POLL_MAX = 14400
1515

1616
SECRET_KEYS = {"modem_password", "mqtt_password"}
1717
HASH_KEYS = {"admin_password"}
@@ -26,7 +26,7 @@
2626
"mqtt_user": "",
2727
"mqtt_password": "",
2828
"mqtt_topic_prefix": "docsight",
29-
"poll_interval": 300,
29+
"poll_interval": 900,
3030
"web_port": 8765,
3131
"history_days": 0,
3232
"snapshot_time": "06:00",

app/i18n.py

Lines changed: 0 additions & 341 deletions
This file was deleted.

0 commit comments

Comments
 (0)