Display Joy Digital Signage client library
The Display Joy library works with your Display Joy account to handle device registration, profile management, authentication, configuration and status management.
Display Joy's developer libraries provide everything you need to provision, manage, and build displays- configuration management, uptime analytics, and authentication.
https://cdn.jsdelivr.net/npm/displayjoy-client@latest/dj2.js
<script src="https://cdn.jsdelivr.net/npm/displayjoy-client@latest/dj2.js"></script>
https://cdn.jsdelivr.net/gh/kidGodzilla/displayjoy-client@latest/dj-no-jquery.js
Run npm i -s displayjoy-client
to save locally via NPM
Next publish will export as module.
The following example registers a device with the display key fooallbars, gets it's device configuration, subscribes to updates, and sends regular status updates.
var dj = new DisplayJoy();
dj.init('fooallbars');
Doc comments: http://usejsdoc.org/