Skip to content

Restart automatically miners using ethos API and TpLink switchers through AWS Lambda

License

Notifications You must be signed in to change notification settings

ivanbeldad/miner-waker-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miner Waker Lambda

GitHub package version GitHub last commit Known Vulnerabilities

Restart automatically miners using ethos API and TPLink switchers through AWS Lambda

About

This project ONLY works with TPLink HS100 devices and ethos.

Deploy

Amazon Setup

First of all you will need an Amazon Web Services account and the aws cli installed and configured. More info: https://aws.amazon.com/cli/

  • Create a lambda function using either the https://console.aws.amazon.com/lambda or aws lambda create-function
  • Select Nodejs6.10 as runtime
  • Change handler to src/main.handler
  • Set timeout to at least 10 seconds

Recommended: Add a schedule trigger with CloudWatch Events

Local

Clone this repository

git clone https://github.com/ivandelabeldad/miner-waker-lambda.git

Copy config.yml.sample to config.yml and fill the gaps with your own configuration

Then run the following inside the project folder

npm install
npm run deploy -- name-of-your-lambda-function

License

The API Rackian is open-sourced software licensed under the MIT license.

About

Restart automatically miners using ethos API and TpLink switchers through AWS Lambda

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published