Files
quectel-rgmii-toolkit/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/home/fetch_data_usage.sh
Cameron Thompson a8043e6d95 Final Touches
2025-01-18 21:59:14 -05:00

8 lines
184 B
Bash
Executable File

#!/bin/sh
# Set content type to JSON
echo "Content-Type: application/json"
echo
# Read the JSON file and get only the last entry using jq
jq 'last' /www/signal_graphs/data_usage.json