Open MartinCRichards opened 1 year ago
It's just called ethernet... if you only have wifi whatever. It'll be one graph is there actual a data issue or is this just label stuff?
If you only have wifi and no ethernet then no bandwidth data is displayed. I think this test:
if [[ $(ls ${DB}/localhost | grep interface -c) < 2 ]]
means that it only looks for the $ether data but there isn't any :-(
if [[ -n $ether ]]; then
ether="interface-${ether}"
else
ether="$(ls ${DB}/localhost | grep -v 'interface-lo' | grep interface -m1)"
fi
Please describe your actual symptoms.
ls /run/collectd/localhost | grep interface
Let's check this for starters.
Apologies in advance for any etiquette errors... first-time user of github!
I installed readsb, tar1090 and then graphs1090 on a Pi Zero W which only has wifi, no ethernet.
collectd.conf has been correctly configured for wlan0 but if there are less than 2 interfaces found, the network_graph() function only reads ethernet data
suggested change in behaviour: always check for presence of $ether, $wifi rather than just interface count
workaround: set
ether=wlan0
in config file /etc/defaultgrapsh1090