Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
/ ewelink-reboot Public archive

Cut and restore force if a device goes offline.

Notifications You must be signed in to change notification settings

lfamorim/ewelink-reboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ewelink-reboot

Reboot a device using eWeLink account when a device doesn't ping anymore.

Installing

npm install -g ewelink-reboot 

Using

user@hostname:~/$ ewelink-reboot --help
Wed Aug 14 2019 15:53:30 GMT-0300 (-03): Alert: It is not safe to set passwords on environment variables.
Usage: ewelink-reboot [options] <addr> <device>

Options:
  -V, --version             output the version number
  -e --email <email>        Email address to eWeLink.
  -p --password <password>  Your password to eWeLink.
  -r --region <region>      The API region you use, valid ones are 'us', 'eu' and 'cn'.
  -l, --loop <loop>         Run the program in loop, checking.
  -w, --wait <wait>         Wait to check again (Default: 300).
  -h, --help                output usage information

API

const ewelinkReboot = require('ewelink-reboot');

ewelinkReboot({
  email: '[email protected]',
  password: 'your-password',
  addr: 'localhost',
  device: 'name-or-deviceid'
}).then(isRebooted => console.log(isRebooted))

About

Cut and restore force if a device goes offline.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published