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

pixia

v2.1.17

Published

Axia Lwrp Wrapper Library

Downloads

18

Readme

Pixia

Axia Lwrp Wrapper Library

Installation

npm install --save pixia

Usage

const pixia = require("pixia");

pixia.on("source",src=>{
    console.log(src);
});

pixia.on("destination",dst=>{
    console.log(dst);
});

pixia.addDevice({
    name: 'XNode',
    host: '172.16.0.5',
    port: 93,
    pass: ''
});

Structures

Manager

Properties

  • devices {[Device]}, All added devices to manager
  • sources {[Source]}, All sources of all devices for easy access

Methods

  • addDevice(DeviceData), Returns {Device}
  • removeDevice(String), Removes Device host String from list of devices. Returns {null}

Events

  • data {LwrpData}, parsed LWRP data
  • destination {DestinationData}, change in a device destination
  • error {ErrorData}
  • gpi {GPI}, change in GPI
  • gpo {GPO}, change in GPO
  • meter {MeterData}, change in meter
  • running, The LWRP socket is connected and running the command poll
  • source {SourceData}, change in a device source

Device

Properties

  • destinations {[Destination]}, collection of device's destinations
  • gpis {[Gpi]}, collection of device's GPIs
  • gpos {[Gpo]}, collection of device's GPOs
  • host {String}, IP of device
  • lwrp {Lwrp}, socket connected to the device
  • name {String}, device's friendly name
  • pass {String}, pass used for login
  • port {String|Number}, LWRP port. Defaults to 93
  • sources {[Source]}, collection of device's sources

Method

  • getDestinations(), Calls DST from LWRP. Returns {null}
  • getGpis(), Calls ADD GPI from LWRP. Returns {null}
  • getGpos(), Calls ADD GPO from LWRP. Returns {null}
  • getMeters(), Adds MTR to LWRP poll. Returns {null}
  • getSources(), Calls SRC from LWRP. Returns {null}
  • getVersion(), Calls VER from LWRP. Returns {null}
  • hasCommand(CommandString), Check if CommandString is in LWRP poll. Returns {Boolean}
  • login(String), Logs into LWRP with String as password. Default is this.pass. Returns {null}
  • stop(), stop device LWRP
  • write(String), Writes String to LWRP. Returns {Boolean}

Events

  • data {LwrpData}, parsed LWRP data.
  • destination {Destination}, change in destination
  • error {ErrorData}
  • gpi {GPI}, change in GPI
  • gpo {GPO}, change in GPO
  • meter {MeterData}, change in meter
  • running, The LWRP socket is connected and running the command poll
  • source {Source}, change in source

Source

Properties

  • address {String}, IP/RTPA
  • channel {String}
  • chCount {Number}, number of audio channels
  • device {Device}, parent device
  • name {String}, friendly name
  • raw {LwrpData}
  • streamType {String}, DST or SRC
  • subscribers {[Destination]}, destinations listening to this source

Methods

  • addSub(Destination)
  • removeSub(Destination)
  • update(LwrpData)

Events

  • change, on source update

Destination

Properties

  • address {String}, IP/RTPA
  • channel {String}
  • chCount {Number}, number of audio channels
  • device {Device}, parent device
  • name {String}, friendly name
  • raw {LwrpData}
  • streamType {String}, DST or SRC
  • source {Source}

Methods

  • setAddress(rtpa)

Events

  • change, on destination update