Create a HTTP device

Hi,

 

I am struggling with the SDK, I've posted a comment on Niels guide for that.

What I am wanting to achieve is Icons on the remote that are sending HTTP requests to a device. this is: 192.168.10.20/enado/api/core/Triggers/cmd/8272/41/?auth_token=abcde12345f23b9c3a419892c6c37436

The IP doesn't need to be in the syntax it could just be /enado onwards.

Is this easy to do once I've got my head around it?

The bits that change will be the bits after /cmd i.e. 8272/41 could be 9334/41 or 3456/31 or similar. I'm guessing i would just need to create a button per command string?

Reply
12replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I can make you a minimal starter if you like.

    Reply Like
  • That would be amazing, although i do need to get my head around the issues I'm having with the SDK. As I am totally new to JS if it doesn't look like the examples given or go how the guide says it should then I am lost and can't move on. 

    Reply Like
  • Dont worry about the SDK. I have worked out a driver named simple.

    Try if you can work with this.:

    https://github.com/nklerk/neeo_driver-simple

    Have fun

    Reply Like 1
  • Thanks for that, I will take a look and see how I get on. Sorry for the late reply, been away with work so just seen this.

    Reply Like
  • Hi,

    I have tried to follow the steps on the link but I still have the same issues as i have when trying to use the SDK, it says to change the IP to my brain IP, I know this but I don't know where to change it, I can see the index.js from the SDK guide but the info from the brain isn't there, it stops at line 24. If i need to open a different folder I'm not sure what this would be.

    Reply Like
      • Aaron Ranson
      • Consumer
      • Aaron_Ranson
      • 3 mths ago
      • Reported - view

      Alex Martin are you using the official neeo sdk example or the one niels posted above? The official neeo sdk example includes a handful of devices and can be a bit confusing when first learning (it was for me at least). Niel's driver that he posted above has brain info on line 32 of the index.js file.

      Reply Like
  • seen, i just realised my error, thanks for pointing that out!

    Reply Like
  • Ok so next n00b question, I have my code sorted out but how do I up load and save it to the brain?! then where do I go from there with creating the UI? I've used many control systems before but this is totally alien to me having to actually write script etc. I'm used to using drivers and just uploading them to the processor via software, this is code editing and installing it to my PC, its not saving it to the brain by the looks of it. 

    Reply Like
      • Aaron Ranson
      • Consumer
      • Aaron_Ranson
      • 3 mths ago
      • Reported - view

      Alex Martin You have to run it from your pc or other similar device at all times. You can't run it directly from the Brain.

      Reply Like
  • ok so I ran the index.js and its saying its loaded, I created a dummy accessory but this isn't being seen in the app. The app says No automation items found! so not sure what steps to do next, I was expecting to see a way to link the 4 buttons from the driver but they don't appear anywhere.

    I think what I am trying to do is simply too much to ask of Neeo, or at least far too complex to do anyway. 

    Reply Like
      • Aaron Ranson
      • Consumer
      • Aaron_Ranson
      • 3 mths ago
      • Reported - view

      Alex Martin As an accessory you can't create its own recipe. You have to add 2 items, the accessory driver that you created and a separate dummy device. Within the dummy device recipe, you add a shortcut which you can then add any of the 4 buttons from the accessory driver.

      Reply Like
  • Hi,

     

    been away for a while as my wife had a baby!

     

    Right update, i added the dummy device but this doesn't seem to find anything i can use. I appear to have done everything correctly but it wont find the code etc on the remote. I get how to edit Neils code to add my URL etc, what i cant do is get the remote to see this command etc the dummy device doesnt seem to see anything. Also will the command Neils made let me use the hard buttons?

     

    I want to have the hard button remote do things like control my sound bar all the time, but the navigation button to jump between TV, STB etc

    Reply Like
reply to topic
Like1 Follow