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
This commit is contained in:
lollerfirst
2025-11-01 19:30:35 +01:00
parent 83c131a24b
commit d415891be3
10 changed files with 420 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# 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.