added sms, deviceinfo, settings, and watchat changes
This commit is contained in:
18
simpleadmin/www/cgi-bin/get_watchcat_status
Normal file
18
simpleadmin/www/cgi-bin/get_watchcat_status
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Content type header
|
||||
echo "Content-type: application/json"
|
||||
echo ""
|
||||
|
||||
# This script fetches the watchCat parameters from the /tmp/watchCatParams.json file and returns it as JSON
|
||||
|
||||
# Check if the file exists
|
||||
if [ -f /tmp/watchCatParams.json ]; then
|
||||
# Read the file and return the content
|
||||
cat /tmp/watchCatParams.json
|
||||
else
|
||||
# Return an empty JSON object
|
||||
echo "{}"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user