{"id":30694677,"url":"https://github.com/expresslrs/rfpowermeter","last_synced_at":"2025-09-02T06:43:46.515Z","repository":{"id":310204162,"uuid":"1038737943","full_name":"ExpressLRS/RfPowerMeter","owner":"ExpressLRS","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-17T09:06:03.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-26T12:55:48.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExpressLRS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-15T18:24:24.000Z","updated_at":"2025-08-25T21:02:13.000Z","dependencies_parsed_at":"2025-08-16T14:25:50.906Z","dependency_job_id":"0f202300-6942-42b0-94ec-f6b48c5cd8d5","html_url":"https://github.com/ExpressLRS/RfPowerMeter","commit_stats":null,"previous_names":["expresslrs/rfpowermeter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExpressLRS/RfPowerMeter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpressLRS%2FRfPowerMeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpressLRS%2FRfPowerMeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpressLRS%2FRfPowerMeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpressLRS%2FRfPowerMeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExpressLRS","download_url":"https://codeload.github.com/ExpressLRS/RfPowerMeter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpressLRS%2FRfPowerMeter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273244303,"owners_count":25070959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-02T06:43:45.911Z","updated_at":"2025-09-02T06:43:46.495Z","avatar_url":"https://github.com/ExpressLRS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RfPowerMeter\n\n# Before use:\n\ninstall `uv` python package manager: https://docs.astral.sh/uv/getting-started/installation/\n\ninstall the required libraries\n\n```uv sync```\n\n# RF Meter Logger (rf_meter_logger.py)\n\nA Python script to log the measured values from a ImmersionRC RF meter v2, saving the results to a timestamped CSV file.\n\n## Usage\nIf you run the script without any arguments, it will display usage instructions, the list of supported frequencies, and available serial ports.\n\n```bash\nuv run rf_meter_logger.py \u003cserial_port\u003e \u003cfrequency\u003e [attenuation]\n```\n\n- `\u003cserial_port\u003e`: The serial port to connect to (e.g., `COM3` on Windows or `/dev/ttyUSB0` on Linux/Mac).\n- `\u003cfrequency\u003e`: Frequency in MHz. Must be one of the supported values (see below).\n- `[attenuation]`: (Optional) Attenuation value to add to dBm readings (float).\n\n### Examples\n\n```bash\nuv run rf_meter_logger.py COM3 900\nuv run rf_meter_logger.py /dev/ttyUSB0 2400 10.5\n```\n\n## Supported Frequencies\n- 35, 72, 433, 868, 900, 1200, 2400, 5600, 5650, 5700, 5750, 5800, 5850, 5900, 5950, 6000 (MHz)\n\n## Output\n- The script creates a CSV file named with the current date and time (e.g., `250417-235849.csv`).\n- Each line in the CSV contains:  \n  `timestamp (ms), dBm, mW`\n\n## Troubleshooting\n- If you see \"No serial ports found,\" check your device connection and permissions.\n- If you get a serial error, ensure the port is correct and not in use by another application.\n\n\n# RF Power Logger Plotter (plot_powers.py)\n\nThis script visualizes RF power data from a CSV file (generated from rf_meter_logger.py), providing both raw and moving average plots for dBm and mW values.\n\n## Features\n- Reads CSV files with columns: timestamp (ms), RF power (dBm), RF power (mW)\n- Optionally applies a correction offset to dBm values (e.g., for compensation of the RF meter)\n- Filters to the first hour of data (≤ 3,600,000 ms)\n- Excludes the lowest 1% of data (outliers) for both dBm and mW\n- Generates two subplots: one for dBm, one for mW\n\n## Usage\n```bash\nuv run plot_powers.py \u003ccsv_file\u003e [correction]\n```\n\n- `\u003ccsv_file\u003e`: Path to the CSV file to plot. The file should have three columns: timestamp in ms, RF power (dBm), RF power (mW), **without a header row**.\n- `[correction]` (optional): A numeric value (float) to add to all dBm readings (e.g., for calibration).\n\n### Example\n```bash\nuv run plot_powers.py data.csv\n```\n\nor with a correction offset:\n\n```bash\nuv run plot_powers.py data.csv -2.5\n```\n\n## Output\n\n- The script displays two plots:\n  - **RF Power (dBm)**: Raw data and moving average over time (minutes)\n  - **RF Power (mW)**: Raw data and moving average over time (minutes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpresslrs%2Frfpowermeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpresslrs%2Frfpowermeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpresslrs%2Frfpowermeter/lists"}