Added netifyd-collector daemon to aggregate real-time statistics from
netifyd and populate the dashboard with actual data.
New Features:
- Added /usr/sbin/netifyd-collector script
- Queries netifyd socket for flow data
- Aggregates devices, applications, protocols
- Writes /var/run/netifyd/status.json
- Runs every minute via cron
- Added /etc/cron.d/netifyd-collector cron job
- Added socat dependency for socket communication
Changes:
- Bumped version to 1.0.2
- Updated Makefile to install collector and cron job
- Fixed dashboard empty metrics issue:
* Unique Devices will now show count
* Applications will now show count
* Total Traffic will now show bytes
This fixes the "0" values issue in dashboard Network Statistics.
Dashboard will now show real metrics after 1 minute of netifyd running.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fixed critical bug in get_top_applications() and get_top_protocols()
RPC methods where data was extracted with jq but never added to the
JSON output. The functions were using jshn arrays but only echoing
data instead of adding it to the array.
Changes:
- Rewrote get_top_applications() to output complete JSON via jq
- Rewrote get_top_protocols() to output complete JSON via jq
- Removed broken jshn array manipulation
- Added proper fallback to empty arrays when no data available
This fixes the "metrics vides" (empty metrics) issue in LuCI dashboard.
The dashboard will now properly display:
- Top applications with traffic stats
- Top protocols with bandwidth usage
- Flow counts and bytes transferred
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>