1.6.6 • Published 5 years ago
iadea-rest v1.6.6
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
1.6.6
5 years ago
1.6.5
5 years ago
1.6.4
5 years ago
1.6.3
6 years ago
1.6.2
7 years ago
1.6.1
7 years ago
1.6.0
7 years ago
1.5.0
7 years ago
1.4.0
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.0
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago