Skip to content

Norgate-AV/ch5-join-getter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ch5-join-getter

ch5-logo

CI Conventional Commits Commitizen friendly GitHub contributors MIT license


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 ⚡

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 🚀

The package exports a single function getCh5ReservedJoins which returns a promise that resolves to the latest reserved join data.

import { getCh5ReservedJoins } from "@norgate-av/ch5-join-getter";

const data = await getCh5ReservedJoins();

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 ⚽

This project is maintained by the following person(s) and a bunch of awesome contributors.


Damien Butt

Contributors ✨

All Contributors

Thanks go to these awesome people (emoji key):

This project follows the all-contributors specification. Contributions of any kind are welcome!

LICENSE ⚖️

MIT

About

Dynamically get the latest CH5 joins

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors