This commit is contained in:
PaulVua
2025-01-30 13:51:49 +01:00
parent 4f59928b1e
commit 437be5cad9
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
"""
Script to set the RTC using the browser time.
/usr/bin/python3 /var/www/nebuleair_pro_4g/RTC/set_with_browserTime.py '$rtc_time'
/usr/bin/python3 /var/www/nebuleair_pro_4g/RTC/set_with_browserTime.py '2024-01-30 12:48:39'
"""

View File

@@ -351,7 +351,7 @@ function set_RTC_withBrowser(){
$.ajax({
url: `launcher.php?type=set_RTC_withBrowser&time=${encodeURIComponent(formattedTime)}`,
method: 'GET', // Use GET or POST depending on your needs
dataType: 'text', // Specify that you expect a JSON response
dataType: 'json', // Specify that you expect a JSON response
success: function(response) {
// Handle success response if needed