So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By gregBaker
#80658 I am trying to make a physical Roku remote for our house that includes an ESP8266 nodeMCU. (I am using the Arduino IDE). But I am having trouble accessing parts of the Roku’s API. Many API calls work well with simple HTTP, but not so for the ‘query’ command to request current Roku status information: available channels, current channel, …etc.

This request works from my MacBook Pro’s terminal application:
curl http://192.168.1.134:8060/query/apps

…and similarly, this works from my browser’s address bar:
http://192.168.1.134:8060/query/apps

Both of these inquiries return the anticipated response data:

Code: Select all    <apps>
    <app id="12" subtype="ndka" type="appl" version="4.2.81179021">Netflix</app>
    <app id="2285" subtype="rsga" type="appl" version="6.13.2">Hulu</app>
    <app id="86398" subtype="rsga" type="appl" version="4.1.11">SYFY</app>
    <app id="68669" subtype="rsga" type="appl" version="3.0.0">NBC</app>
    …
    </apps>


Question: How can I code the ESP8266 to make a similar call successfully? I’m stumped!

Note: I am not an IT nor a developer, just an old man and “I do not know what I do not know” about these use-cases. That is, I do not know what exactly to post as a question to solicit proper help. Please bear with me.

Thank you in advance for your time and patience.
User avatar
By gregBaker
#80786 Solved! …with the less than $7 ESP8266 12E v1 WI-FI nodeMCU using the Arduino IDE (free) setup as a local network Access Point and Web Server for an HTML, CSS and javascript web page representing my Extended Roku Remote works great. The same interface page works fine on OSx, IOS and Android - our computer, iPads and smart phones respectively; all the devices that I have to test it with. Thanks all for your time and help.
User avatar
By gregBaker
#80796 Solved! …using the ESP8266 12E v1 WI-FI nodeMCU via the Arduino IDE to set it up as a local network http server defaulting to an HTML, CSS and javascript web page representing my Extended Roku Remote UI, works great!  The same UI page works fine on OSx, IOS and Android - our computer, iPads and smart phones; all the devices that I have to test it with, LOL. Thanks all for your time and help.