Files
quectel-rgmii-toolkit/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/home/fetch_data_usage.sh
2024-12-24 09:13:52 +08: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' /tmp/signal_graphs/data_usage.json