small tool to "survey" foundkey instances' nodeinfo or similar
Go to file
Johann150 2755b2deb6
add script
2023-05-01 13:09:27 +02:00
.gitignore Initial commit 2023-05-01 12:57:17 +02:00
LICENSE Initial commit 2023-05-01 12:57:17 +02:00
README.md add script 2023-05-01 13:09:27 +02:00
foundkey-survey.py add script 2023-05-01 13:09:27 +02:00

README.md

foundkey-survey

Small tool to "survey" foundkey instances' nodeinfo or similar. This script has been used to collect usage information about enabled features in the past. It is currently programmed to collect information about integrations from the nodeinfo endpoint.

The script will read a list of instances to check from the file instances.csv, and will consider the 1st column as the instances hostname. Other columns are ignored. Duplicates are only fetched the first time they are encountered.

The script will output to a file called survey.csv (append only). The first column of the output will be the hostname again, and the other columns will be as configured.

The script will not fetch twice evenif it crashes in the middle: If you start it and a file called survey.csv already exists, the hostnames that are already in that file (in the first column) will not be fetched again. This is handy when you did not write you collection code carefully enough which leads to it failing under some conditions.

CSV format

The CSV files do not have headers. Fields are separated with commas. Fields are quoted with " (U+0022).