ivanbeldad / miner-waker-lambda

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%