Browse code

4G latency fix

Louis Jonget authored on23/12/2023 11:07:50
Showing2 changed files
1 1
Binary files a/build/synocam_home_switch.pbw and b/build/synocam_home_switch.pbw differ
... ...
@@ -280,7 +280,7 @@ function timed_switch_home(duration) {
280 280
   console.log('---- authenticate');
281 281
   if (sid != "") {
282 282
     var epoch = Math.round(new Date().getTime() / 1000.0);
283
-    var start_ts = epoch //+ 10
283
+    var start_ts = epoch + 10
284 284
     var end_ts = duration + start_ts
285 285
     console.log('---- switching home mode for ' + duration + 'seconds');
286 286
     url_path = "/webapi/entry.cgi?api=SYNO.SurveillanceStation.HomeMode&version=1&method=SaveOneTimeSwitch&onetime_enable_on=true&onetime_disable_on=true&onetime_enable_time=" + start_ts + "&onetime_disable_time=" + end_ts + "&_sid=" + sid;