normen / homebridge-bravia

Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others)
139 stars 26 forks source link

events.js:160 throw er; #7

Closed magefesa closed 7 years ago

magefesa commented 7 years ago

On my Sony Bravia, I can run and enter the pin, but than alway throw an error

events.js:160 throw er; // Unhandled 'error' event ^

Error: EISDIR: illegal operation on a directory, open 'directory of cookiePAth' at Error (native)

I ve add another directory with CookiePAth parameter but no results...any ideas pleasE?

normen commented 7 years ago

Its not a directory name, its a file name.

magefesa commented 7 years ago

So...To solve it? Please?

magefesa commented 7 years ago

I d'on t know how to avoid that error, please could you explain me what i haver to do?

normen commented 7 years ago

Point to a non-existing file in an existing directory. Say if you made the directory "/home/pi/mystuff/" you enter "cookiepath": "/home/pi/mystuff/cookie.file"

What you did is create the directory and then enter "cookiepath": "/home/pi/mystuff"

magefesa commented 7 years ago

On json file i ve added The "cookiepath" parAmeter:

"cookiepath":"my_folder"

My_folder can be any existing path ?

I ve done this and the error persist

normen commented 7 years ago

File, not folder.

You don't have to enter the folder name, you enter a file name.

The path you enter denotes the path to a file and not a folder.

Don't enter the folder name, enter the file name.

The parameter is not a folder name, its a file name.

Cookiepath is a file name, not a folder name.

magefesa commented 7 years ago

Ok! I ll try later!! Sorry !! "cookiepath":"/folder name/cookie.file"

Right?

normen commented 7 years ago

Yes :)

magefesa commented 7 years ago

All works like a charm!!!

Thanks a lot !!! Now from ElGato i can control volumen, channel...

Not from Home, but enough!!

normen commented 7 years ago

Read the manual, you can create scenes in Elgato Eve that you can use in Home and with Siri.

magefesa commented 7 years ago

Volume/ on-off working fine

Channel does not works....Ideas?

normen commented 7 years ago

Read. The. Manual. Create a scene in Elgato with Channel = 1 and call it "Turn on channel one", the scene will work in Home and Siri.