{"id":15016979,"url":"https://github.com/eyzi/pixia","last_synced_at":"2025-04-12T10:42:41.330Z","repository":{"id":57325173,"uuid":"217832024","full_name":"eyzi/pixia","owner":"eyzi","description":"Telos Axia LWRP Library","archived":false,"fork":false,"pushed_at":"2021-06-29T15:37:15.000Z","size":423,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T05:33:25.267Z","etag":null,"topics":["axia","broadcasting","livewire","radio","telephony"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eyzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-27T09:28:17.000Z","updated_at":"2024-07-08T01:03:15.000Z","dependencies_parsed_at":"2022-09-18T22:11:35.572Z","dependency_job_id":null,"html_url":"https://github.com/eyzi/pixia","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyzi%2Fpixia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyzi%2Fpixia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyzi%2Fpixia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyzi%2Fpixia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyzi","download_url":"https://codeload.github.com/eyzi/pixia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557393,"owners_count":21124158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axia","broadcasting","livewire","radio","telephony"],"created_at":"2024-09-24T19:49:38.608Z","updated_at":"2025-04-12T10:42:41.308Z","avatar_url":"https://github.com/eyzi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pixia\r\nAxia Lwrp Wrapper Library\r\n\r\n## Installation\r\n`npm install --save pixia`\r\n\r\n## Usage\r\n```\r\nconst pixia = require(\"pixia\");\r\n\r\npixia.on(\"source\",src=\u003e{\r\n    console.log(src);\r\n});\r\n\r\npixia.on(\"destination\",dst=\u003e{\r\n    console.log(dst);\r\n});\r\n\r\npixia.addDevice({\r\n    name: 'XNode',\r\n    host: '172.16.0.5',\r\n    port: 93,\r\n    pass: ''\r\n});\r\n```\r\n\r\n# Structures\r\n\r\n## Manager\r\n\r\n### Properties\r\n- devices `{[Device]}`, All added devices to manager\r\n- sources `{[Source]}`, All sources of all devices for easy access\r\n\r\n### Methods\r\n- addDevice(DeviceData), Returns `{Device}`\r\n- removeDevice(String), Removes Device host `String` from list of devices. Returns `{null}`\r\n\r\n### Events\r\n- data `{LwrpData}`, parsed LWRP data\r\n- destination `{DestinationData}`, change in a device destination\r\n- error `{ErrorData}`\r\n- gpi `{GPI}`, change in GPI\r\n- gpo `{GPO}`, change in GPO\r\n- meter `{MeterData}`, change in meter\r\n- running, The LWRP socket is connected and running the command poll\r\n- source `{SourceData}`, change in a device source\r\n\r\n\r\n## Device\r\n\r\n### Properties\r\n- destinations `{[Destination]}`, collection of device's destinations\r\n- gpis `{[Gpi]}`, collection of device's GPIs\r\n- gpos `{[Gpo]}`, collection of device's GPOs\r\n- host `{String}`, IP of device\r\n- lwrp `{Lwrp}`, socket connected to the device\r\n- name `{String}`, device's friendly name\r\n- pass `{String}`, pass used for login\r\n- port `{String|Number}`, LWRP port. Defaults to `93`\r\n- sources `{[Source]}`, collection of device's sources\r\n\r\n### Method\r\n- getDestinations(), Calls `DST` from LWRP. Returns `{null}`\r\n- getGpis(), Calls `ADD GPI` from LWRP. Returns `{null}`\r\n- getGpos(), Calls `ADD GPO` from LWRP. Returns `{null}`\r\n- getMeters(), Adds `MTR` to LWRP poll. Returns `{null}`\r\n- getSources(), Calls `SRC` from LWRP. Returns `{null}`\r\n- getVersion(), Calls `VER` from LWRP. Returns `{null}`\r\n- hasCommand(CommandString), Check if `CommandString` is in LWRP poll. Returns `{Boolean}`\r\n- login(String), Logs into LWRP with `String` as password. Default is `this.pass`. Returns `{null}`\r\n- stop(), stop device LWRP\r\n- write(String), Writes `String` to LWRP. Returns `{Boolean}`\r\n\r\n### Events\r\n- data `{LwrpData}`, parsed LWRP data.\r\n- destination `{Destination}`, change in destination\r\n- error `{ErrorData}`\r\n- gpi `{GPI}`, change in GPI\r\n- gpo `{GPO}`, change in GPO\r\n- meter `{MeterData}`, change in meter\r\n- running, The LWRP socket is connected and running the command poll\r\n- source `{Source}`, change in source\r\n\r\n\r\n\r\n## Source\r\n\r\n### Properties\r\n- address `{String}`, IP/RTPA\r\n- channel `{String}`\r\n- chCount `{Number}`, number of audio channels\r\n- device `{Device}`, parent device\r\n- name `{String}`, friendly name\r\n- raw `{LwrpData}`\r\n- streamType `{String}`, `DST` or `SRC`\r\n- subscribers `{[Destination]}`, destinations listening to this source\r\n\r\n### Methods\r\n- addSub(Destination)\r\n- removeSub(Destination)\r\n- update(LwrpData)\r\n\r\n### Events\r\n- change, on source update\r\n\r\n\r\n## Destination\r\n\r\n### Properties\r\n- address `{String}`, IP/RTPA\r\n- channel `{String}`\r\n- chCount `{Number}`, number of audio channels\r\n- device `{Device}`, parent device\r\n- name `{String}`, friendly name\r\n- raw `{LwrpData}`\r\n- streamType `{String}`, `DST` or `SRC`\r\n- source `{Source}`\r\n\r\n### Methods\r\n- setAddress(rtpa)\r\n\r\n### Events\r\n- change, on destination update\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyzi%2Fpixia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyzi%2Fpixia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyzi%2Fpixia/lists"}