npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

appium-ares

v0.0.1

Published

Command line interface for webOS TV

Downloads

15

Readme

🚀 appium-ares

NPM version Downloads

A wrapper over LG webOS ares, implemented using ES6 and along with async/await. This package is mainly used by Appium to perform all ares operations on smart tv's LG device.

🚀 Usage:

Prerequisites: _ node 8.x or above _ npm _ LG SDK installed with emulators V3.0.0 or above _ Set the environment variables with the route of your LG SDK installation.

- (FOR MAC)
ARES_HOME=/opt/webOS_TV_SDK/CLI
export PATH=$PATH:$ARES_HOME/bin:$PATH
export PATH=$PATH:/opt/webOS_TV_SDK/CLI/bin:$PATH
  • Import the library appium-ares (npm install appium-ares) as a dependency.
  • Define the variables to use.

example:

import ARES from "appium-ares";

const ares = new ARES();

await ares.createARES({
  device = "home",
  pkgFromPath = "/Users/username/documents/SmartTVWorkspace/com.applg-webos-_0.0.1_all.ipk",
  pkg = "com.applg-webos"
});

🚀 List of methods:

  • createARES()
  • getConnectedDevices()
  • getConnectedDevicesInfo()
  • getConnectDevice(device)
  • install(device, pkgFromPath)
  • uninstall(device, pkg)
  • isAppInstalled(device, pkg)
  • isStartedApp(device, pkg)
  • startApp(device, pkg)
  • closeApp(device, pkg)
  • createDevice()
  • getKey(device)
  • removeDevice(device)
  • webInspector(device, pkg)

🚀 Create Device method:

Tips:

  • To create a device you can use this library or follow the steps in LG Official documentation http://webostv.developer.lge.com/sdk/tools/using-webos-tv-cli/
  • This method works to create, modify, and remove devices.
  • The device name shouldn't have spaces or hyphens (-).
  • The user that you should use is "prisoner".
  • You can leave the password empty, just press enter.
  • The host or IP for your device connection. Default is 127.0.0.1. You can get the IP on your Developer Mode App.
  • If you want to change the port, feel free to change it. The default is 9922 for LG TV and 6622 for the emulator.
  • The key server should be ON in the Developer Mode app.
import ARES from "appium-ares";

async function createDeviceAres() {
  let ares = await ARES.createARES();
  let result = await ares.createDevice();
  return result;
}
createDeviceAres();

🚀 get SSH Key Device method:

GET the SSH file name getKey(device) when you have an LG TV connected. "device" is the name that you put it when created it. Remember, for this method you need to have the Developer Mode activated on your device. https://webostv.developer.lge.com/develop/app-test/

🚀 Web Inspector method:

Inspect your application installed on your device using the Google Chrome or Chromium (Strongly recommended) web inspector with the webInspector(device, pkg) method.