@norgate-av/ch5-join-getter
v1.0.1
Published
A simple package to get the most up-to-date reserved join data from the ch5 site
Downloads
2
Readme
ch5-join-getter
Dynamically get all the latest CH5 reserved join data from the CH5 json file at https://siproducts.blob.core.windows.net/ch5-release/rjviewapp.json.
This package is intended to be used as a test helper for crestron-ch5-helper to test for changes in the reserved join data.
Contents 📖
Installation :zap:
npm install --save-dev @norgate-av/ch5-join-getter
# or
yarn add -D @norgate-av/ch5-join-getter
# or
pnpm add -D @norgate-av/ch5-join-getter
Usage :rocket:
The package exports a single function getReservedJoinData
which returns a promise that resolves to the latest reserved join data.
import { getReservedJoinData } from "@norgate-av/ch5-join-getter";
const data = await getReservedJoinData();
console.log(data.ReservedJoin.Analog.Event);
console.log(data.ReservedJoin.Digital.Event);
console.log(data.ReservedJoin.Serial.Event);
console.log(data.ReservedJoin.Analog.State);
console.log(data.ReservedJoin.Digital.State);
console.log(data.ReservedJoin.Serial.State);
Team :soccer:
This project is maintained by the following person(s) and a bunch of awesome contributors.
Contributors :sparkles:
Thanks go to these awesome people (emoji key):
This project follows the all-contributors specification. Contributions of any kind are welcome!