Mobile app (PWA) + full network-stack backend (cellular, Wi-Fi, satellite, GNSS)#7
Draft
AntwerpDesignsIonity wants to merge 1 commit into
Conversation
Introduce a mobile-friendly interface and extend the backend to expose the entire network stack from physical interfaces up to GNSS and satellite networks. - network_extended.py: ExtendedNetworkMonitor probing cellular (2G-5G via ModemManager), Wi-Fi (nmcli/iw), satellite internet (Starlink dish gRPC) and GNSS/satellite positioning (gpsd), each with graceful fallbacks. - api_server.py: Flask REST API exposing the full backend and serving the PWA; aggregated /api/overview and /api/extended/* endpoints. - mobile/: installable PWA (manifest, service worker, icon) with Dashboard, Layers, GNSS and Tools views; responsive dark UI, network-first API, offline app shell. - run_mobile.sh/.bat launchers, [Mobile] config section, flask dependency. - Tests for the extended layers and README documentation.
Reviewer's GuideAdds an extended network monitoring backend (cellular, Wi‑Fi, satellite internet, GNSS), exposes it plus existing functionality via a new Flask REST API, and serves an installable mobile PWA frontend for monitoring and tools from any phone on the same network, with updated docs, config, tests, and launch scripts. Sequence diagram for loading the mobile dashboard via /api/overviewsequenceDiagram
actor User
participant MobilePWA
participant FlaskAPI
participant NetworkMonitor
participant ExtendedNetworkMonitor
User->>MobilePWA: open app (loadDashboard)
MobilePWA->>FlaskAPI: GET /api/overview
FlaskAPI->>NetworkMonitor: get_network_info()
NetworkMonitor-->>FlaskAPI: network info
FlaskAPI->>NetworkMonitor: check_internet_connectivity()
NetworkMonitor-->>FlaskAPI: connectivity
FlaskAPI->>ExtendedNetworkMonitor: get_all_layers()
ExtendedNetworkMonitor-->>FlaskAPI: cellular, wifi, satellite_internet, gnss
FlaskAPI-->>MobilePWA: overview JSON
MobilePWA-->>User: render dashboard cards
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes NetworkzeroMonitor run on mobile and extends the backend to report the entire network stack — from local interfaces all the way up to cellular (2G–5G), Wi-Fi, satellite internet (Starlink) and GNSS / satellite positioning.
Rather than ship a separate native build, this reuses the whole existing Python backend behind a small Flask API and an installable mobile PWA, so it works on any phone via the browser (Add to Home Screen) on the same network.
What's included
Extended backend —
network_extended.pyExtendedNetworkMonitorprobing:mmcli) — operator, access tech, 2G/3G/4G/5G generation, signal.nmcli/iw— SSID, signal, band, rate, security.grpcurlis present.gpsd— fix, lat/lon/alt, satellites in view & used, per-satellite SNR with constellation (GPS/Galileo/GLONASS/BeiDou…).available: falsewith a human-readablereasoninstead of raising.Mobile API server —
api_server.py(Flask)/api/overview(single-call dashboard),/api/network,/api/connectivity,/api/traffic,/api/ping,/api/dns,/api/ports,/api/pihole/<action>, and/api/extended/{cellular,wifi,satellite,gnss,all}.Mobile PWA —
mobile/Plumbing
run_mobile.sh/run_mobile.batlaunchers,[Mobile]config section,flaskadded torequirements.txt.Testing notes
psutil,requests,flask), which aren't installable in the offline CI sandbox; new files passpy_compile.Try it
./run_mobile.sh # prints http://<your-ip>:8088Open that URL on your phone → Add to Home Screen.
Generated by Claude Code
Summary by Sourcery
Add a mobile-friendly PWA frontend backed by a Flask REST API and an extended monitoring backend that surfaces cellular, Wi‑Fi, satellite internet, and GNSS data.
New Features:
Enhancements:
Build:
Tests: