In general, putting large blocks of code inside nested IF statements (or even using multiple nested IF statements) is considered poor programming practice, so you're on the right track. However, you can easily avoid this by separating out the fruit-processing code into its own function: Function doF...
Hello, Is there a reason/problem why the local movie listings is not working and has not worked for a year or more? Yes. The web site from which the movie listings data is derived (something I have no control over) underwent a major change a year or two ago, which would require a major re-write of ...
Why not just let the loop construct handle the counter: Sub Main() testA = ["apple", 2, "carrot", "dapple", 5, "fapple", "gourd"] FOR i = 0 TO testA.Count() - 1 fruit = testA[i] IF TYPE(fruit) = "roString" THEN ? i; ...
Due to the way floating point numbers are implemented, your number could be "9.899999", in which case your function will return "9.8" when it should return "9.9". I'd do something like this (assuming your numbers are stored internally as Doubles, but you want to print t...
Most of those properties you're setting are unnecessary. The one thing you do need that you're missing is setRequestMethod("POST"). I don't do Java, so there may be other issues with your code. Also, instead of using Chrome Developer Tools to determine the Roku interface, why not read the ...
The call to InitClientCertificates() instructs the Roku to use Client Authentication, in addition to the Server Authentication you get with SetCertificatesFile(). With client authentication, communications with the server are encrypted using the Roku Company private key securely embedded in the Roku...
For purposes of debugging the back-end, I need to make calls to it from Postman. How can I get the value of the `ca-bundle.crt` file for inclusion in the call made by Postman? You don't. Assuming you are trying to do what you say: use Postman as a client to make requests to your API server, and no...
The roku-develop Atom package can now create a Package file (.pkg) for the currently-deployed application. Thanks to Rolando Islas for the GitHub pull request.
I'm currently working on a version of roku-develop for Visual Studio Code, since I very rarely use Atom any more.
I would use two Home keypresses, just in case the channel paused, or somehow the video stopped playing, and the Roku screensaver kicked in. The first Home keypress exits the screensaver, the second goes back to the home screen. Then, instead of emulating keypresses to launch the channel, use the ECP...
The reason the SmugMug Roku channel no longer works is that the channel uses version 1.2.2 of the SmugMug API, which was disabled on June 11, 2018, according to this announcement by SmugMug: https://dgrin.com/discussion/263631/upcoming-api-changes-please-read The SmugMug API version 1.3.0 still work...
I don't use this plugin, although from looking at the source code, the deploy functionality seems rather primitive (only supports one device, does not auto-discover Rokus on the local network). If you want deploy functionality with Atom you can use the roku-develop package.