Hello Lazer,
Please excuse my lack of French and the Google translation attempt:
I have your virtual device installed on my HC2. I have 2 Synology NAS devices with 2 cameras on each, and I would like your script to work with the 4 cameras.
Am I right in thinking that I should have 2 virtual devices, with different sets of global variables?
I'm not very familiar with LUA but looking at the code and your annotations, it seems to me that I should have a second SurvStation_SID, and SurvStation_Status for the second virtual device, for example. SurvStation_SID2 and SurvStation_Stat2? then change all references in the code for the second virtual device to match?
That's what I tried but oddly, although the second virtual device works, the original fails to list the cameras with the following (even though the passwords are correct:
[DEBUG] 12:47:22: Synology API version OK
[DEBUG] 12:47:22: Error : Synology Surveillance Station list cameras failed, Insufficient user privilege, {"error":{"code":105},"success":false}
[DEBUG] 12:47:22: Destroy current SID
[DEBUG] 12:47:22: Request new SID
[DEBUG] 12:47:22: Error : API Authentication failure, Invalid password.
[DEBUG] 12:47:22: Error : Synology Surveillance Station list cameras failed, Insufficient user privilege, {"error":{"code":105},"success":false}
What am I doing wrong?
Please excuse my lack of English and the google translation attempt:
I have your virtual device installed on my HC2. I have 2 Synology NAS devices with 2 cameras on each, and would like to make your work with all 4 cameras.
Am I correct in thinking I would need to have 2 Virtual Devices, with different sets of global variables?
I'm not very familiar with LUA but looking at the code and your annotations, it seems to me that I should have a second SurvStation_SID, and SurvStation_Status for the second virtual device, for example, eg SurvStation_SID2, and SurvStation_Stat2? and then change the reference in the code for the second virtual device to match?
That's what I've tried but strangely, but the passwords are correct:
[DEBUG] 12:47:22: Synology API version OK
[DEBUG] 12:47:22: Error : Synology Surveillance Station list cameras failed, Insufficient user privilege, {"error":{"code":105},"success":false}
[DEBUG] 12:47:22: Destroy current SID
[DEBUG] 12:47:22: Request new SID
[DEBUG] 12:47:22: Error : API Authentication failure, Invalid password.
[DEBUG] 12:47:22: Error : Synology Surveillance Station list cameras failed, Insufficient user privilege, {"error":{"code":105},"success":false}
What am I doing wrong?