airodump-ng [netwerk info] used to control cv in max

Rikkk isch's icon

I'm trying to use wifi data to control cv in a Maxpatch

What I found out:
By running th following command I get a csv file [problem here is that airodump only appends lines and don't overwrite, so there is no realtime overview]:

sudo airodump-ng wlan1mon -w dump --output --background -format csv

And then I parse with a Pythoncode [see images but not the cleanest code]

the dump-01.csv into readable file text file [see text-file] for max in coll object.

0, 276;
1, 8014;
2, 40;
3, 19;
4, 30;
5, 812;
6, 6031;

puls.txt
text/plain 0.05 KB

filewatch martijn1_basic2.maxpat
Max Patch

Question 1:
- Is there maybe a more direct way to use the info from airodump or another sniffing program
- Is there a way with airodump to overwrite the dump-01.csv so I have realtime overview.