This commit is contained in:
2025-03-10 16:48:59 +08:00
commit 396980136a
47 changed files with 3375 additions and 0 deletions

13
cgi-bin/j/time.cgi Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
if ntpd -n -q -N; then
payload='{"result":"success","message":"Camera time synchronized with NTP server."}'
else
payload='{"result":"danger","message":"Synchronization failed!"}'
fi
echo "HTTP/1.1 200 OK
Content-type: application/json
Pragma: no-cache
${payload}
"