neeo_driver_sony_bravia does not start

https://github.com/trouty00/neeo_driver_sony_bravia

After installing the driver and changing the settings I cant start the driver.

 

$ node index.js 

/home/nelus/node_modules/neeo_driver_sony_bravia/index.js:135

    brain:,

          ^

 

I have tried multiple settings in index.js

Reply
8replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular

  • Niels Feenstra  Hey, as far as I can see, all you have to do is delete the ":" then it should work.

    Reply Like
    • Fäbu Thanks for your help!

      This is the error i get:

       

      $ sudo node index.js 

      /home/nelus/node_modules/neeo_driver_sony_bravia/index.js:136

          port: 6336,

                ^

      Reply Like
      • Fäbu@NEEO
      • Driver Development Team
      • Fabu
      • 3 wk ago
      • Reported - view

      Niels Feenstra I'm sorry I misspelled and edited it, you have to delete ":" not ","

      Reply Like
  • Like this:

      function startSdkExample(brain) {

      console.log('- Start server');

      neeoapi.startServer({

        brain ,

        port: 6336,

        name: 'simple-adapter-one',

        devices: [braviatv]

     

    It stil wont start

    Reply Like
      • Fäbu@NEEO
      • Driver Development Team
      • Fabu
      • 3 wk ago
      • Reported - view

      Niels Feenstra i see there is some space after brain, i think you need to delete the space like brain,

      Reply Like
  • Yeah tried that.

     

    I looks like it is going a little bit further:

     

    $ sudo node index.js 

    NEEO SDK Example "simpleCustomDevice" adapter

    ---------------------------------------------

    /home/nelus/node_modules/neeo_driver_sony_bravia/node_modules/neeo-sdk/lib/device/devicetype/index.js:17

      throw new Error('INVALID_DEVICETYPE');

      ^

     

    Error: INVALID_DEVICETYPE

    Reply Like
      • Fäbu@NEEO
      • Driver Development Team
      • Fabu
      • 3 wk ago
      • 1
      • Reported - view

      Niels Feenstra This is a NEEO SDK error you need to update to a newer NEEO SDK, you can open package.json and search this lines:
       

        "bundleDependencies": false,
        "dependencies": {
          "neeo-sdk": "^0.48.13",
          "sony-bravia-tv-remote": "^2.0.0"

      change the version to this you see in my example, now you can execute again in the folder "npm update" or "npm install" then the driver should work.

      But i see another problem you need to edit.
      open index.js and on line 32 you find 'ENTER' you need to rename it to 'CURSOR ENTER'

      and last

      open controller.js
      on line 39 you find neeo:'ENTER' you need to rename it to 'CURSOR ENTER' but dont change bravia:'Enter'

      This community driver is very old :)

      Reply Like 1
    • Fäbu Thank you! its working now!

      Reply Like
reply to topic
Like Follow