camera-widget
camera-widget copied to clipboard
parameters missing in fetch_image function call
Please note that I noticed an issue with the code currently posted:
the calls to fetch_image are missing some parameters:
the lines new_file1 = fetch_image(@camera1Host,@oldFile1,@newFile1) ... ...
need to be replaced by the following lines: new_file1 = fetch_image(@camera1Host,@oldFile1,@newFile1,@camera1Port,@camera1Username,@camera1Password,@camera1URL) ... (same as above for new_file2 with associated params) ... (same as above for new_file3 with associated params)
After doing this change, and changing the hoist IP address, url,... I was able to set up the view to my camera
I know this is ancient, but thanks for the issue.
One note for anyone coming after me: @issamy you have a typo in your suggested fix.
@newfile1
should be @newFile1
I was getting the following error until I fixed the case-sensative typo: TypeError no implicit conversion of nil into String
The corrected string would be:
new_file1 = fetch_image(@camera1Host,@oldFile1,@newFile1,@camera1Port,@camera1Username,@camera1Password,@camera1URL)