Repository navigation
Replies: 1 comment
|
Community modules are open, so go ahead and build it. A first version needs no core changes. Where it lives Build it in your own repository (one module per repo), starting from the template: https://github.com/itsDNNS/docsight-modules/tree/main/TEMPLATE The docsight-modules README is the development guide (manifest, collectors, settings panels, config_secrets, local testing under /data/modules): https://github.com/itsDNNS/docsight-modules#readme Once it works, open a PR against docsight-modules that adds an entry to registry.json pointing to your module directory via download_url, with "verified": false. Catalog CI validates the manifest against current core and checks the registry entry. After review the module shows up in Settings > Extensions > Community Modules. Details: https://github.com/itsDNNS/docsight-modules#submitting-a-module Rules
Code size Keep it to the code the feature actually needs. Use what core already provides: the Collector base class with its backoff, save_events_with_ids() for events, config_secrets for the password, the existing settings CSS classes. No own storage layer, no abstractions for routers you don't support, no duplicated logic. udm-wan-monitor shows the structure, but don't copy it wholesale, take only what the OpenWrt case needs. If you use AI tools, review and trim the generated code yourself before submitting. Tests should cover the detection logic (state change, uptime reset between polls) with shared fixtures instead of copy-pasted cases. Your questions
Post the repo link here when there is something to test. |
Uh oh!
There was an error while loading. Please reload this page.
Context
I am planning to run DOCSight in Generic Router mode, in Docker on my OpenWrt router, which dials PPPoE through my ISP's fiber ONT. I have not deployed it yet. From the docs, latency (Connection Monitor) and speed tests (Speedtest Tracker) are already covered in that mode. What I could not find is a way to record when the router's own WAN link dropped and reconnected, which is a natural first thing to check when a line is unstable.
As far as I know, many OpenWrt users (DSL, fiber, mobile) sit behind ISP-locked modems that cannot be read, so the OpenWrt router would be the only device that knows when the WAN went down.
Idea
A small, read-only community
integrationmodule, structured likeudm-wan-monitor(v3.3.4), that reads the router's WAN interface status and records reconnects as DOCSight events:@require_authroutes, a settings panel and a connection-test endpointsave_event()under its own event type: critical for down, info for restoredOut of scope for a first version: DSL/GPON line statistics. They would need a non-DOCSIS data model in core, so I would raise that separately. The module would only read generic WAN interface status, so it should behave the same on fiber, DSL and mobile lines. On OpenWrt devices that are themselves the DSL modem,
dsl_controlexposes line statistics (SNR margin, attenuation, errors, line uptime) over the same interface; I see that as a possible later extension, not part of v1.Questions before I write any code
udm-wan-monitor, its config keys, routes and event type are UniFi-specific, and each module seems to be standalone, so I would build a sibling module. Or would you prefer a shared "WAN monitor" abstraction in core?udm-wan-monitorwrites events with its own event type. Are custom event types from community modules shown properly (labels, filters, Journal, reports), or is there a list of types I should register or reuse?Status
Planning only; nothing is built yet. I need this for my own setup, and if you think it fits the catalog I would like to build and contribute it myself, in its own repository from the docsight-modules TEMPLATE, following the pre-submission checklist. For reference, chaffed/luci-app-modemhealth is an OpenWrt-native package with a similar evidence goal for Arris SURFboard cable modems; it is a separate project, not a DOCSight module. I can only test PPPoE over fiber myself. DSL support would depend on volunteers sharing redacted outputs from their devices.
I am a hobbyist developer, always wanting to contribute to the community, and AI helps me a lot.
All reactions