Open edk4971 opened 3 years ago
You might want to try using Channel 1 (add ",1" to the file_find function).
I've made some changes to media.py to get it working on my IP5M-B1186EW as there are some other issues against the latest API documentation, namely
@tchellomello, Not sure how the changes apply to backward compatibility. Do you want me to issue a PR for review?
@wizmo2 , changing to action=close and action=destroy resolved the issue for me. Can you make a PR for that? (Or I can do it)
What is weird, I definitely remember that factory.close and factory.destroy worked for me (~2 years ago). But not now. I am not sure what changed (my Amcrest camera is still the same).
Does it make sense to do:
try:
ret = self.command(
f"mediaFileFind.cgi?action=close&object={factory_id}"
)
except:
ret = self.command(
f"mediaFileFind.cgi?action=factory.close&object={factory_id}"
)
?
@maximvelichko, This was I while ago that I looked at this. It would take me a while to go back and see what I did, so go ahead with your own PR.
Hello, Tried to use the get-files.py example, and it threw a 400 Client Error: $ python3 /home/elliott/get-files.py