roku-polyglot
This is the Roku Poly for the Universal Devices ISY994i Polyglot interface with Polyglot V2
(c) 2019 Robert Paauwe
MIT license.
This node server is intended to support the Roku Media Players.
With this node server you can launch applications and send remote command to a single Roku media box. The current application running on the box is available.
Installation
- Backup Your ISY in case of problems!
- Really, do the backup, please
- Go to the Polyglot Store in the UI and install.
- Add NodeServer in Polyglot Web
- After the install completes, Polyglot will reboot your ISY, you can watch the status in the main polyglot log.
- Once your ISY is back up open the Admin Console.
- Configure the node server with your station ID.
Node Settings
The settings for this node are:
Short Poll
- Not used
Long Poll
- Poll the Roku device for it's current status. Time in seconds.
Roku name / ip
- Add custom parameters with by suppling the name for your Roku as the key and the IP address of the Roku as the value. You may have multiple name / ip entries.
Requirements
- Polyglot V2 itself should be run on Raspian Stretch.
To check your version,
cat /etc/os-release
and the first line should look like
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
. It is possible to upgrade from Jessie to
Stretch, but I would recommend just re-imaging the SD card. Some helpful links:
- This has only been tested with ISY 5.0.14 so it is not guaranteed to work with any other version.
Upgrading
Open the Polyglot web page, go to nodeserver store and click "Update" for "RokuPoly".
For Polyglot 2.0.35, hit "Cancel" in the update window so the profile will not be updated and ISY rebooted. The install procedure will properly handle this for you. This will change with 2.0.36, for that version you will always say "No" and let the install procedure handle it for you as well.
Then restart the Roku nodeserver by selecting it in the Polyglot dashboard and select Control -> Restart, then watch the log to make sure everything goes well.
The Roku nodeserver keeps track of the version number and when a profile rebuild is necessary. The profile/version.txt will contain the WeatherFlow profile_version which is updated in server.json when the profile should be rebuilt.
Release Notes
- 2.0.3 08/11/2021
- Handle case where roku device has no applications installed.
- 2.0.2 10/20/2020
- verify app is on list before updating node with running app.
- 2.0.1 09/16/2020
- Move some error/info log messages to debug level to reduce clutter.
- Handle connection error when getting the current running app.
- Handle failure when connecting to a device.
- 2.0.0 06/12/2020
- Full re-write to support multiple Roku devices.
- 0.0.6 03/28/2020
- Enable polling to get current status of Roku device.
- 0.0.5 03/27/2020
- Strip '&' from application names.
- 0.0.4 12/22/2019
- Fix requirements.txt file to have the right requirements.
- 0.0.3 03/20/2019
- Fix online status going false after query.
- 0.0.2 01/11/2019
- Initial working version published to github
- 0.0.1 01/07/2019
- Initial template published to github