1.0.1 • Published 3 years ago

iotlink-client v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

IOT Link

A NPM Package For IOT Link control

Setup

Install and Setup IOT Link Here

npm install iotlink-client --save

If you have IOT Link installed and setup the package will grab MQTT credentials from the configuartion.yaml file this means there is no need to input credentials in your project.

Commands

const iotLink = require('iotlink-client');

Send Notification

iotLink.sendNotification('Title Of Message','Contents Of Message')

Computer Controls

//Lock
iotLink.lockComputer()
//Shutdown
iotLink.shutdownComputer()
//Reboot
iotLink.rebootComputer()
//Log Off
iotLink.logOffComputer()
//Hibernate
iotLink.hibernateComputer()

Media Controls

//Play / Pause
iotLink.toggleMedia()
//Stop
iotLink.stopMedia()
//Next
iotLink.nextSong()
//Previous
iotLink.previousSong()

Other

//Toggle Display State can be on or off
iotLink.toggleDisplay('state');
//Open Application 
iotLink.openApplication('path')

Path needs to be full path to application for example: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

1.0.1

3 years ago

1.0.0

3 years ago