# benjita44/medidor-utn architecture

> Architecture diagram of the GitHub repository benjita44/medidor-utn, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/benjita44/medidor-utn
- Repository: https://github.com/benjita44/medidor-utn

## Overview

Medidor de Señal is a cross-platform connectivity and Wi‑Fi measurement product: Android and Windows clients collect device/network telemetry, run speed and latency tests, and present theoretical signal analysis; results can be synchronized to shared measurement storage and reviewed in statistics. The sampled Android entry point creates its statistics panel, while the local Node server validates and persists API submissions. The tree also documents a web client and Google Apps Script backend, but their implementation excerpts were not provided; those capability links are therefore documented or left unverified.

Main entry points: [`android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java`](https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java) (Android measurement app), [`android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java`](https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java) (Android statistics), [`index.html`](https://github.com/benjita44/medidor-utn/blob/main/index.html) (Web measurement client), [`server.js`](https://github.com/benjita44/medidor-utn/blob/main/server.js) (Local telemetry API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Measurement clients"]
  node_android_app["Android measurement app<br/>[MainActivity.java]"]
  node_windows_client["Windows desktop client<br/>[MedidorSenalPC.cs]"]
  node_python_client["Python PC client<br/>[medidor_pc.py]"]
  node_web_client["Web measurement client<br/>[index.html]"]
end

subgraph group_analysis["Analysis and presentation"]
  node_android_stats["Android statistics"]
  node_android_theme["Android theme<br/>[Tema.java]"]
  node_web_stats["Web statistics view<br/>[estadisticas.html]"]
  node_theory["Signal theory calculations<br/>[teoria.js]"]
end

subgraph group_services["Synchronization services"]
  node_web_config["Client configuration<br/>[config.js]"]
  node_local_api["Local telemetry API<br/>[server.js]"]
  node_apps_script["Sheets integration"]
end

subgraph group_data["Measurement data"]
  node_measurement_store[("Measurement records<br/>[mediciones.json]")]
end

node_android_user(("Android user"))
node_windows_user(("Windows user"))

node_android_user -->|"runs measurements"| node_android_app
node_android_app -->|"creates panel"| node_android_stats
node_android_app -->|"resolves theme"| node_android_theme
node_android_stats -->|"uses palette"| node_android_theme
node_android_stats -->|"formats values"| node_android_app
node_windows_user -->|"runs measurements"| node_windows_client
node_android_app -.->|"calculates theory"| node_theory
node_web_client -.->|"uses calculations"| node_theory
node_web_client -.->|"reads settings"| node_web_config
node_web_client -.->|"submits results"| node_local_api
node_python_client -.->|"syncs measurements"| node_apps_script
node_android_stats -.->|"loads statistics"| node_apps_script
node_local_api -->|"reads and writes"| node_measurement_store
node_web_stats -.->|"reviews records"| node_measurement_store

click node_android_app "https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java"
click node_android_stats "https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java"
click node_android_theme "https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/Tema.java"
click node_windows_client "https://github.com/benjita44/medidor-utn/blob/main/pc/MedidorSenalPC.cs"
click node_python_client "https://github.com/benjita44/medidor-utn/blob/main/pc/medidor_pc.py"
click node_web_client "https://github.com/benjita44/medidor-utn/blob/main/index.html"
click node_web_stats "https://github.com/benjita44/medidor-utn/blob/main/estadisticas.html"
click node_theory "https://github.com/benjita44/medidor-utn/blob/main/teoria.js"
click node_web_config "https://github.com/benjita44/medidor-utn/blob/main/config.js"
click node_local_api "https://github.com/benjita44/medidor-utn/blob/main/server.js"
click node_apps_script "https://github.com/benjita44/medidor-utn/blob/main/backend/google-apps-script.gs"
click node_measurement_store "https://github.com/benjita44/medidor-utn/blob/main/data/mediciones.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_android_app,node_windows_client,node_python_client,node_web_client,node_android_user,node_windows_user toneBlue
class node_android_stats,node_android_theme,node_web_stats,node_theory toneAmber
class node_web_config,node_local_api,node_apps_script toneMint
class node_measurement_store toneRose
```

## Components

### Measurement clients

- [Android measurement app](https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java): `android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java`
- [Windows desktop client](https://github.com/benjita44/medidor-utn/blob/main/pc/MedidorSenalPC.cs): `pc/MedidorSenalPC.cs`
- [Python PC client](https://github.com/benjita44/medidor-utn/blob/main/pc/medidor_pc.py): `pc/medidor_pc.py`
- [Web measurement client](https://github.com/benjita44/medidor-utn/blob/main/index.html): `index.html`

### Analysis and presentation

- [Android statistics](https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java): `android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java`
- [Android theme](https://github.com/benjita44/medidor-utn/blob/main/android/app/src/main/java/ar/edu/utn/frt/medidor/Tema.java): `android/app/src/main/java/ar/edu/utn/frt/medidor/Tema.java`
- [Web statistics view](https://github.com/benjita44/medidor-utn/blob/main/estadisticas.html): `estadisticas.html`
- [Signal theory calculations](https://github.com/benjita44/medidor-utn/blob/main/teoria.js): `teoria.js`

### Synchronization services

- [Client configuration](https://github.com/benjita44/medidor-utn/blob/main/config.js): `config.js`
- [Local telemetry API](https://github.com/benjita44/medidor-utn/blob/main/server.js): `server.js`
- [Sheets integration](https://github.com/benjita44/medidor-utn/blob/main/backend/google-apps-script.gs): `backend/google-apps-script.gs`

### Measurement data

- [Measurement records](https://github.com/benjita44/medidor-utn/blob/main/data/mediciones.json): `data/mediciones.json`

### Other components

- **Android user**
- **Windows user**

## Connections

- Android user → Android measurement app: runs measurements (evidence: `android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java`)
- Android measurement app → Android statistics: creates panel (evidence: `android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java`)
- Android measurement app → Android theme: resolves theme (evidence: `android/app/src/main/java/ar/edu/utn/frt/medidor/MainActivity.java`)
- Android statistics → Android theme: uses palette (evidence: `android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java`)
- Android statistics → Android measurement app: formats values (evidence: `android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java`)
- Windows user → Windows desktop client: runs measurements (evidence: `pc/MedidorSenalPC.cs`)
- Android measurement app → Signal theory calculations: calculates theory
- Web measurement client → Signal theory calculations: uses calculations
- Web measurement client → Client configuration: reads settings (evidence: `config.js`)
- Web measurement client → Local telemetry API: submits results
- Python PC client → Sheets integration: syncs measurements (evidence: `pc/medidor_pc.py`)
- Android statistics → Sheets integration: loads statistics (evidence: `android/app/src/main/java/ar/edu/utn/frt/medidor/EstadisticasPanel.java`)
- Local telemetry API → Measurement records: reads and writes (evidence: `server.js`)
- Web statistics view → Measurement records: reviews records
