Closed grdleo closed 2 months ago
Hi,
There is no more convenient way unfortunately,
You could just set version:1 as below
def shutdown(self):
api_name = 'SYNO.Core.System'
info = self.core_list[api_name]
api_path = info['path']
req_param = {'version': 1, 'method': 'shutdown'}
return self.request_data(api_name, api_path, req_param)
Maybe it is from synology side, the max version should work, but apparently it doesn't for you. If more issue will be reported I will integrate a way to be able to modify it
What DSM7 version you have?
What DSM7 version you have?
Thank you for your reply. DSM 7.1-42661 Update 4
Hi, I was looking at the issue, pulling the list from NAS I see SYNO.Core.System': {'maxVersion': 3, 'minVersion': 1, 'path': 'entry.cgi'}
where maxVersion is 3 for me. however I did not encounter the issue. Is it still happening? I was thinking to add the possibility to change max min version only for this function.
added possibility to change version in PR #175
shutdown
request from SYNO.Core.System does not work depending onversion
request parameterHardware: DS218j
Looking inside the code, I see the request parameters are made like this:
I have found out that using a different
version
request parameter, it worksI bet the problem is from Synology's side... Is it because of my hardware that
shutdown
does not work on thisversion
parameter? Is there a more convenient way to change thisversion
parameter?