Socket
Book a DemoInstallSign in
Socket

iadea-rest

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iadea-rest

A JavaScript library that provides REST API interface for Iadea media players and signboards.

latest
Source
npmnpm
Version
1.6.6
Version published
Maintainers
1
Created
Source

README

A JavaScript library that provides REST API interface for Iadea media players and signboards. This library uses Q promises.

Installation

npm install iadea-rest

Usage examples

To use Iadea REST API library

Require 'iadea-reset' in your file:

var iadea = require('iadea-rest');

Connect to Iadea device and perform API calls:

iadea.connect(host).
    then(iadea.getModelInfo).
    then(console.log).
    then(iadea.getFirmwareInfo).
    then(console.log).
    catch(console.log);

To play a file:

iadea.connect(host).
    then(function(){return iadea.playFile('/user-data/test.smil')}).
    then(console.log).
    catch(console.log);

It is possible to combine findFileByName adn playFile:

iadea.connect(host).
    then(function () {return iadea.findFileByName('slideshow.smil')}).
    then(iadea.playFile).
    then(console.log).
    catch(console.log); 

Contribution

If you would like to contribute, please fork the repo and send in a pull request.

License

(The MIT License) Copyright (c) 2017 Alexander Pivovarov pivovarov@gmail.com

Keywords

iadea

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts