A python script and steps to display locations of peers connected to qbittorrent
qbittorrent-peers-location-grafana
A python script (along with instructions) to display the locations of all the peers your qBittorrent client is connected to in a Grafana worldmap dashboard.
Pre-requisites
Steps
- First step is to create the database which will contain the information about the IP addresses and their corresponding locations. I used this “https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude” since it is free and it had the latitude and longitude information which is enough precision to pipoint a peer on the map. Download the IPV4 CSV file from this link and follow the instructions given below in the same page to create a database and import the location data to a table.
- Next, create a new table which I’ll call peer_list to store the IP addresses