Files
lollerfirstandGitHub 760efc97b1 add automated relay count tracking with dual trend charts (#8)
* Add relay count tracking workflow with dual charts

This commit adds:
- New GitHub workflow to track relay counts
- Two charts: BitChat-compatible relays and total functioning relays
- Extended history for both charts (70 days)
- Project structure improvements with scripts and assets directories
- Updated documentation in README.md and other files
- Dependencies in requirements.txt

* Remove overlapping data point labels from relay count charts

* Add .venv to gitignore

* Add relay location maps and automation workflow

* Improve relay maps with proper world map backgrounds using cartopy

* Add relay location map to README

* update readme
2025-11-01 22:19:32 +01:00

26 lines
692 B
Markdown

# Georelays Scripts
This directory contains utility scripts for the Georelays project:
## track_relay_counts.py
This script analyzes the git history of the `nostr_relays.csv` file to track how the number of relay entries changes over time.
### Features:
- Retrieves the last 30 commits that modified the relay CSV file
- Counts the number of relay entries in each commit
- Creates a time series chart showing the trend of relay counts
- Saves the chart as `assets/relay_count_chart.png`
### Usage:
```
python scripts/track_relay_counts.py
```
### Dependencies:
- pandas
- matplotlib
- numpy
This script is automatically run by the GitHub workflow after each update to the relay data.