- Added signal graphs for RSRP, RSRQ, and SINR - Added ethernet connection details - Added memory usage details - Added ping graph Known bug: Signal graphs may sometimes show inaccurate values. It seems to be a fetching error but Ill try to find the real root cause as soon as possible Co-Authored-By: Russel Yasol <73575327+dr-dolomite@users.noreply.github.com>
14 lines
311 B
Bash
Executable File
14 lines
311 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Set the content type to JSON
|
|
echo "Content-Type: application/json"
|
|
echo ""
|
|
|
|
# Ping 8.8.8.8 with 2 packets and capture the result
|
|
if ping -c 2 8.8.8.8 > /dev/null 2>&1; then
|
|
# Ping was successful
|
|
echo '{"connection": "ACTIVE"}'
|
|
else
|
|
# Ping failed
|
|
echo '{"connection": "INACTIVE"}'
|
|
fi |