
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Roku developer helper tools.
Based mostly on https://developer.roku.com/en-gb/docs/developer-program/dev-tools/external-control-api.md
but also using the functionality of the local Roku app (http://<Roku_IP>
) associated with the device.
Could be used as a command line or programmatically.
Includes Common JavaScript, ECMAScript, and Typescript sources.
npm install --save-dev roku-dev
npm install -g roku-dev
Environment variables (including .env file) could be used instead of arguments or options.
This is using ECP and the local Roku device app.
Returns data of the currently running application.
roku app [--ip <Roku device IP>]
Environment variables (command argument/option):
Returns data of all installed applications.
roku apps [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - GET query/r2d2-bitmaps
Returns a list of the assets that have been loaded into texture memory and the amount of used, available, and maximum memory on your device (in bytes).
As of Roku OS 11.5, this query returns all bitmaps in texture memory including those that cannot be directly attributed to a channel.
roku assets [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP:
query/fwbeacons
fwbeacons/track
fwbeacons/track/<channelId>
fwbeacons/untrack
Tracks channel and media lifecycle events for a specific channel. To use these commands, the device must have developer mode enabled.
command values:
roku beacons [command = 'log'] [channelId] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - GET query/device-info
Retrieves device information similar to that returned by roDeviceInfo.
roku device [field] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - GET query/graphics-frame-rate
Returns the recent number of rendered graphics frames per seconds (this value is separate from the video frame rate). Developer mode must be enabled to use this command.
roku fps [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - GET query/icon/<CHANNEL_ID>
Downloads under iconPath an icon file corresponding to the application identified by channelId. The binary data with an identifying MIME-type header is returned.
roku icon [channelId] [iconPath] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - POST input?<query>
Sends custom events to the current application.
It takes a user-defined list of name-value pairs sent as query string URI parameters.
Eg. contentId=contentId1234&mediaType=episode
The external control server places these name-value pairs into an associative array,
and passes them directly through to the currently executing channel script
using a Message Port attached to a created roInput object.
roku input <query> [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP:
keydown/<KEY>
keyup/<KEY>
keypress/<KEY>
Sends key press/down/up
type values:
roku key [keyString] [type = 'press'] [--ip <Roku device IP>] [-u --escaped]
Environment variables (command argument/option):
Roku ECP - launch/[channelId]?contentId=<contentId>&MediaType=<mediaType>
Launches channel of given channel id with given content id and media type.
roku launch [channelId] [--ip <Roku device IP>] [--mediaType <mediaType>] [--contentId <contentId>]
Environment variables (command argument/option):
Roku ECP:
query/sgnodes/all
query/sgnodes/roots
query/sgnodes/nodes?node-id=nodeId
Returns all/root or finds some rendered nodes.
type values:
roku nodes [type = 'all'] [nodeId] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku GUI (device's local app) - Packager
Creates and downloads packaged application.
To use this command, the device must be keyed with the same developer ID/key that was used to generate the channel package.
roku package [appName] [path] [password] [--ip <Roku device IP>] [-p --password <password>]
Environment variables (command argument/option):
Roku ECP:
query/chanperf
query/chanperf/<channelld>?duration-seconds=<seconds>
Returns the current memory and CPU utilization of the channel running in the foreground (RAM usage is reported bytes). The foreground channel may either be a sideloaded channel or a channel from the Roku Channel Store. To output the results for a channel in the channel store, the device must be keyed with the same developer ID/key that was used to generate the channel package.
Including the channelId option in the path outputs statistics for a specific channel from the Roku Channel Store.
To use this command, the device must be keyed with the same developer ID/key that was used to generate the channel package.
The channel's process ID (pid) is added to the output of this command.
roku performance [channelId] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - GET query/media-player
Returns a child element named 'player' that identifies the media player state. The information returned includes the current stream segment and position of the content being played, the running time of the content, audio format, and buffering.
roku player [field] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku ECP - GET query/registry/<CHANNEL_ID>
Lists the entries in the device registry for a sideloaded channel or production/beta channel linked to the Roku developer's account. The channel ID must be provided; for sideloaded channels, use "dev" as the channelId.
Options:
roku registry [channelId] [--ip <Roku device IP>] [-u, --escaped] [-k, --keys <keys>] [-s, --sections <sections>]
Environment variables (command argument/option):
Roku GUI (device's local app) - Utilities - Rekey
Rekey the Roku device with the given signed package and signing password.
roku rekey [password] [path] [--ip <Roku device IP>] [-p --password <password>]
Environment variables (command argument/option):
Roku ECP:
query/sgrendezvous
sgrendezvous/track
sgrendezvous/untrack
Lists the node rendezvous events for a sideloaded channel or production/beta channel linked to the Roku developer's account.
command values:
roku rendezvous [command = 'log'] [channelId] [--ip <Roku device IP>]
Environment variables (command argument/option):
Roku GUI (device's local app) - Utilities - Screenshot
Takes a screenshot of the dev app and download it to the JPG file.
roku screenshot [path] [--ip <Roku device IP>] [-p, --password <password>]
Environment variables (command argument/option):
Roku GUI (device's local app) - Installer
Uploads archived (.zip) app to the Roku device.
roku upload [path] [--ip <Roku device IP>] [-p, --password <password>]
Environment variables (command argument/option):
FAQs
Roku developer helper tools
The npm package roku-dev receives a total of 26 weekly downloads. As such, roku-dev popularity was classified as not popular.
We found that roku-dev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.