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