Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Diashow Node.js API Demo

A Node.js implementation of the Diashow API client, allowing you to upload, start, and control presentations via the command line.

Prerequisites

  • Node.js >= 16.0.0
  • A running Diashow server

Setup

  1. Navigate to the directory:
    cd tools/api/nodejs
  2. Install dependencies:
    npm install

Usage

Run the script with the required arguments:

node index.js <display-ip> <filename> <api-key> [show-in-archive]

Example

node index.js 192.168.1.100 widget_demo.ddl.json my-secret-key

Controls

  • Arrow Left: Previous slide
  • Arrow Right: Next slide
  • q: Quit and stop the presentation
  • Ctrl+C: Force exit