Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameters missing in fetch_image function call #4

Open
issamy opened this issue Apr 4, 2017 · 1 comment
Open

parameters missing in fetch_image function call #4

issamy opened this issue Apr 4, 2017 · 1 comment

Comments

@issamy
Copy link

issamy commented Apr 4, 2017

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

@klinstifen
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants